/* ===============================
   Artificial Cerebrum — Landing Page
   Imports shared theme.css for tokens,
   fonts, glass, navbar, footer.
================================== */

/* ── Section base ───────────────────────────────────────────── */
section {
    background: rgba(6, 14, 30, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    margin: 20px auto;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    transition: border-color 0.3s ease;
}

section:hover {
    border-color: rgba(0, 212, 255, 0.18);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 1200px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ac-text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

/* Side menu (mobile) */
.side-menu {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(6, 8, 16, 0.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 212, 255, 0.15);
    overflow-x: hidden;
    transition: 0.3s ease;
    padding-top: 60px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.side-menu a {
    padding: 20px 28px;
    color: var(--ac-text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s;
}

.side-menu a:hover {
    color: var(--ac-teal);
    background: rgba(0, 212, 255, 0.06);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 3rem;
    color: var(--ac-text-muted);
    text-decoration: none;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background: none;
    box-shadow: inset 0 -120px 120px rgba(0, 0, 0, 0.6);
}

.containerOpa {
    display: flex;
    align-items: flex-end;
    width: min(600px, 90vw);
    min-height: min(600px, 70vw);
    max-height: 90vh;
    background: url(/assets/pageAssets/hero_banner_lab.jpg) center center / cover no-repeat;
    background-color: rgba(6, 8, 16, 0.5);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow:
        0 0 0 1px rgba(0, 212, 255, 0.08),
        0 0 60px rgba(0, 212, 255, 0.12),
        0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.containerOpa::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(6, 8, 16, 0.85) 0%,
        rgba(6, 8, 16, 0.3) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.4), 0 2px 4px rgba(0,0,0,0.8);
    width: clamp(240px, 50%, 340px);
    margin-bottom: 1.25rem;
}

.hero-text button {
    margin: 0.4rem 0.4rem 0 0;
    padding: 0.7rem 1.4rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(6, 14, 30, 0.7);
    color: var(--ac-teal);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-text button:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--ac-teal);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
    transform: translateY(-2px);
}

/* ── Showcase Carousel ──────────────────────────────────────── */
.carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 1rem;
}

.item {
    position: relative;
    background: rgba(6, 14, 30, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 16px;
    color: var(--ac-text);
    text-align: center;
    font-weight: 600;
    width: 280px;
    padding: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    cursor: pointer;
}

.item:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
    transform: translateY(-3px);
}

.item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.type-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ac-teal);
    margin-top: 0.6rem;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--ac-gold);
    color: #000;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 10;
}

/* ── Featured Cards ─────────────────────────────────────────── */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    padding: 0.5rem;
}

.card {
    position: relative;
    background: rgba(6, 14, 30, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 212, 255, 0.12);
    border-radius: 16px;
    padding: 1rem;
    width: 280px;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
    transform: translateY(-3px);
}

.card img {
    max-width: 100%;
    border-radius: 10px;
}

.card button {
    margin-top: 0.75rem;
    padding: 0.55rem 1.2rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.1);
    color: var(--ac-gold);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.card button:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--ac-gold);
    color: #fff;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
}

/* ── Featured card download anchor — mirrors .card button (gold theme) ── */
.card-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.55rem 1.2rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    background: rgba(212, 175, 55, 0.1);
    color: var(--ac-gold);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.card-dl-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--ac-gold);
    color: #fff;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
}

/* ── Carousel item download anchor — teal theme to match .item section ── */
.item-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    background: rgba(0, 212, 255, 0.08);
    color: var(--ac-teal);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.item-dl-btn:hover {
    background: rgba(0, 212, 255, 0.18);
    border-color: var(--ac-teal);
    color: #fff;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
}

/* ── Anchor Sections ────────────────────────────────────────── */
.anchor-section {
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

section > .container,
.anchor-section > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
}

section h2 {
    font-family: var(--font-display);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

section p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--ac-text-muted);
    margin: 0 0 1rem;
    max-width: 60ch;
}

/* ── Section-specific: Wallpapers ───────────────────────────── */
#wallpapers {
    background: radial-gradient(80% 100% at 50% 0%,
        rgba(0, 212, 255, 0.06) 0%,
        rgba(6, 8, 16, 0.75) 70%
    ) !important;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.08), 0 8px 40px rgba(0,0,0,0.4);
}

#wallpapers h2 { color: var(--ac-teal); text-shadow: 0 0 20px var(--ac-teal-glow); }

/* ── Section-specific: Models ───────────────────────────────── */
#models {
    background: radial-gradient(circle at center,
        rgba(0, 40, 60, 0.45),
        rgba(6, 8, 16, 0.85)
    ) !important;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.08), 0 8px 40px rgba(0,0,0,0.4);
}

#models h2 { color: var(--ac-teal); text-shadow: 0 0 20px var(--ac-teal-glow); }

/* ── Section-specific: CoA ──────────────────────────────────── */
#dnd {
    background: linear-gradient(135deg,
        rgba(50, 8, 8, 0.55),
        rgba(6, 8, 16, 0.9)
    ) !important;
    box-shadow: 0 0 40px rgba(139, 26, 26, 0.15), 0 8px 40px rgba(0,0,0,0.4);
}

#dnd h2 {
    color: #c0392b;
    text-shadow: 0 0 20px rgba(139, 26, 26, 0.6);
    font-family: var(--font-display);
}

#dnd p { color: var(--ac-text-muted); }

#dnd .btn {
    background: rgba(139, 26, 26, 0.15) !important;
    color: #e8c4b8 !important;
    border: 1px solid rgba(139, 26, 26, 0.4) !important;
    font-family: var(--font-display) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
}

#dnd .btn:hover {
    background: rgba(139, 26, 26, 0.3) !important;
    border-color: #c0392b !important;
    box-shadow: 0 0 20px rgba(139, 26, 26, 0.4) !important;
    transform: translateY(-2px);
}

/* ── Section-specific: Printing ────────────────────────────── */
#printing {
    background: radial-gradient(circle at center,
        rgba(0, 50, 30, 0.4),
        rgba(6, 8, 16, 0.85)
    ) !important;
    box-shadow: 0 0 40px rgba(0, 212, 100, 0.08), 0 8px 40px rgba(0,0,0,0.4);
}

#printing h2 {
    color: #00e676;
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

#printing .btn {
    background: rgba(0, 100, 50, 0.15) !important;
    color: #00e676 !important;
    border: 1px solid rgba(0, 230, 118, 0.35) !important;
    font-family: var(--font-display) !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
}

#printing .btn:hover {
    background: rgba(0, 100, 50, 0.3) !important;
    border-color: #00e676 !important;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.35) !important;
    transform: translateY(-2px);
}

/* ── Section-specific: YouTube ──────────────────────────────── */
#youtube {
    background: linear-gradient(135deg,
        rgba(20, 8, 8, 0.5),
        rgba(6, 8, 16, 0.85)
    ) !important;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.08), 0 8px 40px rgba(0,0,0,0.4);
}

#youtube h2 {
    color: var(--ac-gold);
    text-shadow: 0 0 20px var(--ac-gold-glow);
}

.video-wrap {
    width: 100%;
    max-width: 960px;
    margin: 1rem auto;
    position: relative;
    padding-top: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.12);
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    background: rgba(212, 175, 55, 0.1);
    color: var(--ac-gold);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.youtube-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--ac-gold);
    color: #fff;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* ── Shared .btn (anchor section CTAs) ──────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    background: rgba(0, 212, 255, 0.08);
    color: var(--ac-teal);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn:hover {
    background: rgba(0, 212, 255, 0.18);
    border-color: var(--ac-teal);
    color: #fff;
    box-shadow: 0 0 22px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
    /* OLD: max-width: 1000px caused misalignment vs 1200px sections
    width: 100%;
    max-width: 1000px; */
    width: 100%;
    max-width: 100%; /* let theme.css container handle centering */
}

/* ── popButton ──────────────────────────────────────────────── */
.popButton {
    background: rgba(0, 212, 255, 0.1);
    color: var(--ac-teal);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.65rem 1.2rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    animation: popIn 0.4s ease-out;
}

.popButton:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--ac-teal);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
}

@keyframes popIn {
    0%   { transform: scale(0.3); opacity: 0; }
    60%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

/* ── Wallpaper / image modal (#wm-overlay) ──────────────────── */
/* galleryModal.js is now shared between gallery.html and index.html.
   wallpapersStyles.css has these rules for the gallery page;
   they are duplicated here so the modal works on the index page too. */
#wm-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    background: rgba(4, 8, 16, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    padding: 1rem;
    isolation: isolate;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

#wm-overlay.wm-open {
    opacity: 1;
    pointer-events: all;
}

#wm-box {
    position: relative;
    background: rgba(6, 14, 30, 0.98);
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(0,0,0,0.7), 0 0 30px rgba(0,212,255,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    max-width: min(500px, 92vw);
    width: 100%;
    transform: scale(0.95);
    transition: transform 0.22s ease;
}

#wm-overlay.wm-open #wm-box {
    transform: scale(1);
}

#wm-box.wm-landscape {
    max-width: min(900px, 96vw);
    max-height: 90vh;
}

#wm-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(4, 8, 16, 0.85);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: rgba(200, 220, 240, 0.7);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    backdrop-filter: blur(8px);
}

#wm-close:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

#wm-img-wrap {
    /* OLD: flex: 1 1 0; min-height: 0; max-height: calc(90vh - 60px);
       Firefox does NOT treat max-height on the flex container as a definite size,
       so flex-basis: 0 collapses the wrap to 0 height and overflow: hidden clips
       the image entirely. Fix: use an explicit height so the wrap always has space. */
    height: calc(90vh - 60px);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
}

#wm-img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

#wm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    background: rgba(4, 8, 16, 0.9);
    flex-shrink: 0;
    gap: 1rem;
}

#wm-title {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ac-teal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

#wm-download {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.08);
    color: var(--ac-gold);
    flex-shrink: 0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#wm-download svg { width: 14px; height: 14px; flex-shrink: 0; }

#wm-download:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--ac-gold);
    color: #fff;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    #wm-box { max-width: 98vw; max-height: 95vh; border-radius: 14px; }
    #wm-title { font-size: 0.62rem; }
}

/* ── Section preview grids (wallpapers + models anchor sections) ── */
.section-previews {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0.25rem 0 0.5rem;
}

.section-preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.12);
    transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
    flex: 0 0 auto;
    width: clamp(80px, 22%, 150px);
    aspect-ratio: 9 / 16;
    background: rgba(6, 14, 30, 0.5);
    cursor: pointer;
}

.section-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.section-preview-item:hover {
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.18);
    transform: translateY(-3px);
}

.section-preview-item:hover img {
    transform: scale(1.04);
}

/* CoA section — VS battle layout */
#coa-previews {
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
}

.coa-vs-fighter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.coa-vs-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(224, 196, 188, 0.65);
}

.coa-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 0.25rem;
}

.coa-vs-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #c0392b;
    text-shadow:
        0 0 14px rgba(192, 57, 43, 0.9),
        0 0 40px rgba(192, 57, 43, 0.5),
        0 0 80px rgba(192, 57, 43, 0.2);
    letter-spacing: 0.15em;
    line-height: 1;
}

/* Red glow on the portrait cards */
.coa-preview-item {
    border-color: rgba(139, 26, 26, 0.3);
    width: clamp(90px, 22vw, 160px);
}

.coa-preview-item:hover {
    border-color: rgba(192, 57, 43, 0.75);
    box-shadow: 0 0 24px rgba(139, 26, 26, 0.5);
}

/* Enemy image mirrored to face the hero */
.coa-enemy-img {
    transform: scaleX(-1);
}

@media (max-width: 480px) {
    #coa-previews { gap: 0.5rem; }
    .coa-vs-text  { font-size: 1.6rem; }
    .coa-preview-item { width: clamp(75px, 26vw, 110px); }
}

/* Models section uses a square/landscape ratio for 3D renders */
#models .section-preview-item {
    aspect-ratio: 3 / 4;
    width: clamp(80px, 22%, 160px);
}

@media (max-width: 480px) {
    .section-preview-item,
    #models .section-preview-item {
        width: clamp(70px, 28vw, 110px);
    }
}

/* ── Section divider ────────────────────────────────────────── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 212, 255, 0.18) 20%,
        var(--ac-teal) 50%,
        rgba(0, 212, 255, 0.18) 80%,
        transparent
    );
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 999px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media screen and (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }

    section {
        width: calc(100% - 24px);
        margin: 12px auto;
        padding: 1.5rem 1rem;
    }

    section > .container,
    .anchor-section > .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .hero {
        align-items: center;
        justify-content: center;
        height: auto;
        min-height: 90vh;
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .containerOpa {
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        width: 90%;
        border-radius: 16px;
        padding: 1.5rem 1rem;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-text h2 {
        font-size: 1.4rem;
        width: auto;
        text-align: center;
    }

    .hero-text button {
        width: 80%;
        max-width: 260px;
        margin: 0.4rem auto;
    }

    .cards { flex-direction: column; align-items: center; }

    .btn,
    .youtube-btn,
    .hero-text button {
        width: clamp(200px, 90%, 320px);
        max-width: 100%;
    }
}

@media screen and (max-width: 360px) {
    section p { margin-bottom: 0.9rem; }
    .btn, .youtube-btn { padding: 0.65rem 1rem; }
}
