/* index-responsive.css - Zenith Premium Responsive Layer */

/* ── Global Touch Fixes ── */
@media (hover: none) and (pointer: coarse) {

    #cursor-dot,
    #cursor-ring {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }

    a,
    button {
        cursor: pointer !important;
    }
}

/* ── Laptop / Tablet Large (Up to 1200px) ── */
@media (max-width: 1200px) {

    .container,
    .nav-inner,
    .stats-inner {
        max-width: 100%;
        padding: 0 5%;
    }
}

/* ── Tablet (Up to 1024px) ── */
@media (max-width: 1024px) {
    .hero-orbit {
        width: 450px;
        height: 450px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .stats-inner {
        gap: 2rem;
    }

    .stat-num {
        font-size: 2.2rem;
    }

    .vision-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .vision-quote {
        padding-left: 0;
        text-align: center;
    }

    .vision-quote::before {
        position: relative;
        display: block;
        margin: 0 auto 1rem;
    }
}

/* ── Hamburger hidden on desktop ── */
.menu-toggle {
    display: none;
}

/* ═══════════════════════════════════════════════════
   ZENITH MOBILE MENU
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── nav-inner: logo left, toggle far right ── */
    header .nav-inner {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    /* ── nav element: stretch and push toggle right ── */
    header .nav-inner>nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
    }

    /* ── Hamburger far right ── */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
        z-index: 9001 !important;
        cursor: pointer;
        padding: 8px;
        border: 1px solid transparent;
        border-radius: 8px;
        transition: border-color 0.3s, background 0.3s;
    }

    .menu-toggle:hover {
        border-color: rgba(212, 175, 55, 0.25);
        background: rgba(212, 175, 55, 0.05);
    }

    .menu-toggle span {
        display: block;
        border-radius: 2px;
        background: var(--gold);
        transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .menu-toggle span:nth-child(1) {
        width: 26px;
        height: 1.5px;
    }

    .menu-toggle span:nth-child(2) {
        width: 18px;
        height: 1.5px;
        opacity: 0.55;
    }

    .menu-toggle span:nth-child(3) {
        width: 22px;
        height: 1.5px;
    }

    .menu-toggle.active span:nth-child(1) {
        width: 22px;
        transform: translateY(6.5px) rotate(45deg);
        opacity: 1;
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .menu-toggle.active span:nth-child(3) {
        width: 22px;
        transform: translateY(-6.5px) rotate(-45deg);
        opacity: 1;
    }

    /* ── Full-Screen Overlay — uses TRANSFORM not left ── */
    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        min-height: -webkit-fill-available;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        background: rgba(2, 5, 12, 0.97);
        backdrop-filter: blur(60px);
        -webkit-backdrop-filter: blur(60px);
        /* Slide from right side */
        transform: translateX(100%);
        transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
        z-index: 8500;
        visibility: visible !important;
        padding: 0 !important;
        overflow: hidden;
        list-style: none;
        counter-reset: zenith-counter;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* ── Architectural Grid Layer ── */
    .nav-links::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
        background-size: 60px 60px;
        z-index: 0;
        pointer-events: none;
    }

    /* ── Atmospheric Blob Layer ── */
    .nav-links::after {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(ellipse at 20% 25%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 70%, rgba(0, 180, 255, 0.07) 0%, transparent 50%),
            radial-gradient(ellipse at 55% 5%, rgba(130, 0, 220, 0.05) 0%, transparent 45%);
        animation: zenithAtmos 25s ease-in-out infinite alternate;
        z-index: 0;
        pointer-events: none;
    }

    @keyframes zenithAtmos {
        0% {
            transform: scale(1) rotate(0deg);
        }

        50% {
            transform: scale(1.1) rotate(6deg);
        }

        100% {
            transform: scale(1.05) rotate(-4deg);
        }
    }

    /* ── Nav Items ── */
    .nav-links>li {
        position: relative;
        z-index: 1;
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(30px);
        filter: blur(6px);
        transition:
            opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
            transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
            filter 0.8s cubic-bezier(0.23, 1, 0.32, 1);
        padding: 0.8rem 0;
        list-style: none;
    }

    .nav-links>li:not(:last-child) {
        counter-increment: zenith-counter;
    }

    .nav-links.active>li {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }

    .nav-links.active>li:nth-child(1) {
        transition-delay: 0.15s;
    }

    .nav-links.active>li:nth-child(2) {
        transition-delay: 0.25s;
    }

    .nav-links.active>li:nth-child(3) {
        transition-delay: 0.35s;
    }

    .nav-links.active>li:nth-child(4) {
        transition-delay: 0.45s;
    }

    .nav-links.active>li:last-child {
        transition-delay: 0.6s;
    }

    /* ── Link: number inline before text ── */
    .nav-links>li:not(:last-child)>a {
        font-family: 'Playfair Display', Georgia, serif !important;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(240, 235, 220, 0.9) !important;
        text-decoration: none !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.6em;
        position: relative;
        transition: color 0.3s ease, letter-spacing 0.3s ease, transform 0.3s ease;
    }

    /* [01] number inline before link */
    .nav-links>li:not(:last-child)>a::before {
        content: counter(zenith-counter, decimal-leading-zero);
        font-family: 'Space Mono', monospace;
        font-size: 0.5em;
        font-weight: 400;
        font-style: normal;
        letter-spacing: 4px;
        color: var(--gold);
        opacity: 0.6;
        flex-shrink: 0;
    }

    /* Gold underline on hover */
    .nav-links>li:not(:last-child)>a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        width: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--gold), transparent);
        transform: translateX(-50%);
        transition: width 0.4s ease;
    }

    .nav-links>li:not(:last-child)>a:hover {
        color: var(--gold) !important;
        letter-spacing: 0.1em;
        transform: scale(1.03);
    }

    .nav-links>li:not(:last-child)>a:hover::after {
        width: 50%;
    }

    /* ── Scroll lock when menu is open ── */
    body.menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }

    /* ── Lang Switcher (last li) ── */
    .nav-links>li:last-child {
        margin-top: 2rem;
        padding: 1.5rem 1rem 0;
        border-top: 1px solid rgba(212, 175, 55, 0.1);
        width: 60%;
        text-align: center;
        list-style: none;
    }

    .nav-links>li:last-child .lang-switcher {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        margin: 0 !important;
    }

    .nav-links>li:last-child .lang-btn {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-family: 'Space Mono', monospace;
        font-size: 0.68rem;
        letter-spacing: 3px;
        color: rgba(255, 255, 255, 0.4) !important;
        text-decoration: none;
        text-transform: uppercase;
        transition: color 0.3s;
    }

    .nav-links>li:last-child .lang-btn.active,
    .nav-links>li:last-child .lang-btn:hover {
        color: var(--gold) !important;
    }

    /* ── Page Layout ── */
    .hero {
        padding-top: 6rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 3rem;
    }

    .btn-gold,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .stats-inner {
        grid-template-columns: 1fr 1fr;
        display: grid;
    }

    .stat::after {
        display: none;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 5rem 0;
    }

    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .collab-row {
        gap: 1rem;
    }

    .collab-item {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem;
    }
}

/* ── Mobile Small (Up to 480px) ── */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .stat-num {
        font-size: 1.8rem;
    }

    .stats-inner {
        grid-template-columns: 1fr;
    }

    .hero-orbit {
        display: none;
    }

    .art-card {
        padding: 1.5rem;
    }

    .mem-card {
        flex-direction: column;
        gap: 1rem;
    }
}