/* ==========================================================================
   ZIRCON ROBOTICS CLUB
   COMPLETE RESPONSIVE STYLE.CSS
   ========================================================================== */


/* ==========================================================================
   1. GLOBAL
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0b0b0e;
    color: #ffffff;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    overflow-x: hidden;
}

body.hero-loading {
    overflow: hidden;
}

body.drawer-open {
    overflow: hidden;
}


/* ==========================================================================
   2. NAVBAR
   ========================================================================== */

.navbar {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    padding: 2rem 4rem;

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 1000;

    background: transparent;

    pointer-events: auto;
}

.logo-container {
    display: flex;
    align-items: center;

    gap: 1.2rem;
}

.logo {
    font-size: 1.8rem;

    font-weight: 900;

    letter-spacing: 4px;

    text-transform: uppercase;

    color: #ffffff;
}

.logo a {
    color: inherit;
    text-decoration: none;
}


/* ==========================================================================
   NAV LINKS
   ========================================================================== */

.navbar .nav-links {
    display: flex;

    align-items: center;

    list-style: none;

    gap: 1rem;
}

.navbar .nav-links li {
    display: flex;

    align-items: center;
}

.navbar .nav-links a {
    color: #ffffff;

    text-decoration: none;

    font-size: 0.8rem;

    font-weight: 600;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    opacity: 0.85;

    transition:
        color 0.3s ease,
        opacity 0.3s ease;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.7);
}

.navbar .nav-links a:hover {
    color: #00e5ff;

    opacity: 1;
}

.nav-divider {
    display: inline-block;

    width: 1px;

    height: 12px;

    background:
        rgba(255,
            255,
            255,
            0.35);

    margin: 0 0.3rem;
}


/* ==========================================================================
   3. MENU BUTTON
   ========================================================================== */

.menu-pop-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(255,
            255,
            255,
            0.08);

    border:
        1px solid rgba(0,
            229,
            255,
            0.4);

    color: #00e5ff;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    cursor: pointer;

    opacity: 0;

    transform:
        translateX(-40px) scale(0.7);

    pointer-events: none;

    transition:
        all 0.5s cubic-bezier(0.175,
            0.885,
            0.32,
            1.275);

    box-shadow:
        0 0 15px rgba(0,
            229,
            255,
            0.2);
}

.menu-pop-btn.active {
    opacity: 1;

    transform:
        translateX(0) scale(1);

    pointer-events: auto;
}

.menu-pop-btn:hover {
    background: #00e5ff;

    color: #0b0b0e;

    box-shadow:
        0 0 25px rgba(0,
            229,
            255,
            0.6);
}

.menu-pop-btn svg {
    width: 20px;
    height: 20px;

    fill: currentColor;
}


/* ==========================================================================
   4. SIDE DRAWER
   ========================================================================== */

.side-drawer-overlay {
    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;

    background:
        rgba(0,
            0,
            0,
            0.75);

    backdrop-filter: blur(8px);

    z-index: 150;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.4s ease;
}

.side-drawer-overlay.open {
    opacity: 1;

    pointer-events: auto;
}

.side-drawer {
    position: fixed;

    top: 0;
    left: -320px;

    width: 320px;
    height: 100vh;

    background:
        rgba(11,
            11,
            14,
            0.97);

    border-right:
        1px solid rgba(0,
            229,
            255,
            0.25);

    z-index: 160;

    padding:
        3rem 2rem;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    transition:
        left 0.4s cubic-bezier(0.16,
            1,
            0.3,
            1);

    box-shadow:
        10px 0 30px rgba(0,
            0,
            0,
            0.8);
}

.side-drawer.open {
    left: 0;
}

.drawer-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 2.5rem;
}

.drawer-title {
    font-size: 1.4rem;

    font-weight: 900;

    letter-spacing: 3px;

    text-transform: uppercase;

    color: #ffffff;
}

.close-drawer-btn {
    background: none;

    border: none;

    color: #a1a1aa;

    font-size: 1.8rem;

    cursor: pointer;

    transition:
        color 0.3s ease;
}

.close-drawer-btn:hover {
    color: #00e5ff;
}

.drawer-menu {
    list-style: none;

    display: flex;

    flex-direction: column;

    gap: 1.2rem;
}

.drawer-menu li a {
    color: #d1d1d6;

    text-decoration: none;

    font-size: 1.1rem;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

    display: flex;

    align-items: center;

    gap: 12px;

    transition:
        all 0.3s ease;
}

.drawer-menu li a:hover {
    color: #00e5ff;

    transform:
        translateX(8px);
}

.drawer-footer {
    font-size: 0.75rem;

    color: #71717a;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* ==========================================================================
   5. ROBOT HERO
   ========================================================================== */

.robot-hero {
    position: relative;

    width: 100%;
    height: 100vh;

    min-height: 650px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #020406;

    isolation: isolate;
}


/* ==========================================================================
   ROBOT BACKGROUND
   ========================================================================== */

.robot-background {
    position: absolute;

    inset: 0;

    z-index: -10;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background: #020406;

    /* Post-intro scroll motion is applied to the wrapper so the calibrated
       robot-image transform, crop, and responsive scales stay untouched. */
    transform:
        translateY(var(--robot-scroll-y, 0px)) scale(var(--robot-scroll-scale, 1));

    transform-origin: center center;

    will-change: transform;
}

.robot-image {
    position: absolute;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center center;

    transform:
        scale(1.02);

    opacity: 0;

    filter:
        brightness(0.66) contrast(1.12) saturate(0.9);

    animation:
        robotReveal 1.8s ease-out 0.2s forwards;
}

@keyframes robotReveal {

    0% {
        opacity: 0;

        transform:
            scale(1.08);

        filter:
            brightness(0) contrast(1.4) saturate(0);
    }

    100% {
        opacity: 1;

        transform:
            scale(1.02);

        filter:
            brightness(0.66) contrast(1.12) saturate(0.9);
    }
}


/* ==========================================================================
   HERO DARKNESS
   ========================================================================== */

.hero-darkness {
    position: absolute;

    inset: 0;

    z-index: -4;

    pointer-events: none;

    background:
        radial-gradient(ellipse at center,

            rgba(0,
                0,
                0,
                0) 15%,

            rgba(0,
                0,
                0,
                0.08) 45%,

            rgba(0,
                0,
                0,
                0.70) 100%);

    transform: translateY(var(--hero-background-scroll-y, 0px));

    will-change: transform;
}


/* ==========================================================================
   SCANLINES
   ========================================================================== */

.hero-scanlines {
    position: absolute;

    inset: 0;

    z-index: 8;

    pointer-events: none;

    opacity: 0.08;

    background:
        repeating-linear-gradient(to bottom,

            transparent 0px,

            transparent 3px,

            rgba(255,
                255,
                255,
                0.06) 4px);

    mix-blend-mode: screen;
}


/* ===========================================================================
   SCANNING BEAM + SYSTEM HUD
   =========================================================================== */

.hero-scanner {
    position: absolute;
    inset: 0;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.62;
}

.hero-scanner::before {
    content: "";
    position: absolute;
    top: -12%;
    left: 7%;
    width: 86%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(183, 250, 255, 0.78) 18%,
            #ffffff 50%,
            rgba(0, 229, 255, 0.72) 82%,
            transparent);
    box-shadow:
        0 0 6px rgba(190, 250, 255, 0.8),
        0 0 18px rgba(0, 229, 255, 0.42);
    animation: heroScannerSweep 9s linear infinite;
}

@keyframes heroScannerSweep {
    from {
        transform: translateY(-8vh);
    }

    to {
        transform: translateY(116vh);
    }
}

.hero-system-label {
    position: absolute;
    z-index: 5;
    display: grid;
    gap: 3px;
    color: rgba(187, 248, 255, 0.74);
    font-family: "Courier New", monospace;
    font-size: clamp(0.45rem, 0.65vw, 0.62rem);
    letter-spacing: 0.16em;
    line-height: 1.15;
    opacity: 0.5;
    pointer-events: none;
    text-transform: uppercase;
    transform: translateY(var(--hero-hud-scroll-y, 0px));
    will-change: transform;
    animation: heroHudPulse 3.4s ease-in-out infinite;
}

.hero-system-label::before {
    content: "";
    width: 30px;
    height: 1px;
    margin-bottom: 3px;
    background: linear-gradient(90deg, #00e5ff, transparent);
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.55);
}

.hero-system-label strong {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84em;
    font-weight: 700;
}

.hero-system-label--optics {
    top: 25%;
    left: clamp(24px, 6vw, 110px);
}

.hero-system-label--laser {
    top: 31%;
    right: clamp(24px, 6vw, 110px);
    text-align: right;
}

.hero-system-label--laser::before {
    justify-self: end;
    background: linear-gradient(90deg, transparent, #00e5ff);
}

.hero-system-label--identity {
    bottom: 25%;
    left: clamp(24px, 6vw, 110px);
}

@keyframes heroHudPulse {

    0%,
    100% {
        opacity: 0.38;
    }

    50% {
        opacity: 0.62;
    }
}


/* ==========================================================================
   6. ROBOT EYES
   ========================================================================== */

.robot-eye {
    position: absolute;

    width: 48px;
    height: 35px;

    border-radius: 50%;

    z-index: 8;

    pointer-events: none;

    background:
        radial-gradient(circle,

            #ffffff 0%,

            #00f6ff 15%,

            #00d9ff 35%,

            rgba(0,
                229,
                255,
                0.45) 55%,

            transparent 72%);

    filter:
        brightness(var(--eye-scroll-brightness, 1)) blur(1px) drop-shadow(0 0 8px #00e5ff) drop-shadow(0 0 22px #00e5ff) drop-shadow(0 0 40px rgba(0,
                229,
                255,
                0.55));

    opacity: 0;

    transform:
        translate(-50%, -50%) scaleY(0.03);

    animation:
        eyeOpen 0.8s cubic-bezier(0.22,
            1,
            0.36,
            1) 1.8s forwards,

        eyePulse 2.2s ease-in-out 2.8s infinite;
}

.eye-left {
    left: 45.2%;

    top: 32.5%;
}

.eye-right {
    left: 53.4%;

    top: 32.5%;
}


/* ==========================================================================
   EYE OPENING
   ========================================================================== */

@keyframes eyeOpen {

    0% {
        opacity: 0;

        transform:
            translate(-50%, -50%) scaleY(0.03);
    }

    40% {
        opacity: 1;

        transform:
            translate(-50%, -50%) scaleY(0.15);
    }

    70% {
        transform:
            translate(-50%, -50%) scaleY(1.12);
    }

    100% {
        opacity: 1;

        transform:
            translate(-50%, -50%) scaleY(1);
    }
}


/* ==========================================================================
   EYE PULSE
   ========================================================================== */

@keyframes eyePulse {

    0%,
    100% {

        filter:
            brightness(var(--eye-scroll-brightness, 1)) blur(1px) drop-shadow(0 0 8px #00e5ff) drop-shadow(0 0 22px #00e5ff) drop-shadow(0 0 40px rgba(0,
                    229,
                    255,
                    0.45));
    }

    50% {

        filter:
            brightness(var(--eye-scroll-brightness, 1)) blur(1px) drop-shadow(0 0 12px #00e5ff) drop-shadow(0 0 30px #00e5ff) drop-shadow(0 0 55px rgba(0,
                    229,
                    255,
                    0.65));
    }
}


/* ==========================================================================
   7. LASERS
   ========================================================================== */

.laser {
    position: absolute;

    height: 8px;

    width: 0;

    opacity: 0;

    z-index: 6;

    border-radius: 999px;

    transform-origin:
        0 50%;

    pointer-events: none;

    background:
        linear-gradient(to bottom,

            rgba(0,
                229,
                255,
                0.10) 0%,

            #00e5ff 25%,

            #ffffff 50%,

            #00e5ff 75%,

            rgba(0,
                229,
                255,
                0.10) 100%);

    box-shadow:

        0 0 3px #ffffff,

        0 0 8px rgba(255,
            255,
            255,
            0.9),

        0 0 16px #00e5ff,

        0 0 30px rgba(0,
            229,
            255,
            0.75),

        0 0 55px rgba(0,
            229,
            255,
            0.35);

    filter:
        brightness(var(--laser-energy-brightness, 1)) blur(0.25px) drop-shadow(0 0 var(--laser-energy-glow, 0px) rgba(0, 229, 255, 0.72));

    will-change:
        width,
        transform,
        opacity;
}


/* ==========================================================================
   LASER CORE
   ========================================================================== */

.laser-core {
    position: absolute;

    left: 0;

    top: 50%;

    width: 100%;

    height: 3px;

    transform:
        translateY(-50%);

    border-radius: 999px;

    background:
        #ffffff;

    box-shadow:

        0 0 4px #ffffff,

        0 0 9px #ffffff,

        0 0 17px #00e5ff;

    opacity: 0.9;

    filter: brightness(var(--laser-core-energy, 1));
}


/* ==========================================================================
   LASER ACTIVATION
   ========================================================================== */

.laser.active {

    animation:
        laserBeamAppear 1.1s cubic-bezier(0.16,
            1,
            0.3,
            1) forwards;
}

@keyframes laserBeamAppear {

    0% {
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        opacity: 0.92;
    }
}


/* ==========================================================================
   LASER CORE PULSE
   ========================================================================== */

.laser.active .laser-core {

    animation:
        laserCorePulse 0.8s ease-in-out infinite alternate;
}

@keyframes laserCorePulse {

    from {

        opacity: 0.65;

        box-shadow:

            0 0 3px #ffffff,

            0 0 8px #ffffff,

            0 0 15px #00e5ff;
    }

    to {

        opacity: 1;

        box-shadow:

            0 0 5px #ffffff,

            0 0 12px #ffffff,

            0 0 22px #00e5ff;
    }
}


/* ==========================================================================
   8. ZIRCON WRITING
   ========================================================================== */

.zircon-writing {

    position: absolute;

    left: 50%;
    top: 51%;

    transform:
        translate(-50%,
            -50%) translateY(var(--zircon-scroll-y, 0px));

    width:
        min(850px,
            80vw);

    z-index: 7;

    pointer-events: none;

    opacity: 0;

    animation:
        zirconLayerAppear 0.01s linear 4.8s forwards;
}

@keyframes zirconLayerAppear {

    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


/* ==========================================================================
   ZIRCON SVG
   ========================================================================== */

.zircon-svg {

    display: block;

    position: relative;

    z-index: 1;

    width: 100%;
    height: auto;

    overflow: visible;
}


/* ===========================================================================
   TARGET LOCK HUD
   =========================================================================== */

.target-lock-hud {
    position: absolute;
    top: 51%;
    left: 50%;
    width: min(920px, 88vw);
    aspect-ratio: 1000 / 260;
    z-index: 5;
    color: #8df5ff;
    opacity: 0.52;
    pointer-events: none;
    transform:
        translate(-50%, -50%) translateY(calc(var(--zircon-scroll-y, 0px) + var(--hero-hud-scroll-y, 0px)));
    will-change: transform;
}

.target-lock-hud::before,
.target-lock-hud::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.72));
}

.target-lock-hud::before {
    left: 0;
}

.target-lock-hud::after {
    right: 0;
    transform: rotate(180deg);
}

.target-lock-corner {
    position: absolute;
    width: 12%;
    height: 27%;
    border-color: rgba(103, 238, 255, 0.75);
    border-style: solid;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.48));
}

.target-lock-corner--top-left {
    top: 0;
    left: 0;
    border-width: 1px 0 0 1px;
}

.target-lock-corner--top-right {
    top: 0;
    right: 0;
    border-width: 1px 1px 0 0;
}

.target-lock-corner--bottom-left {
    bottom: 0;
    left: 0;
    border-width: 0 0 1px 1px;
}

.target-lock-corner--bottom-right {
    right: 0;
    bottom: 0;
    border-width: 0 1px 1px 0;
}

.target-lock-label {
    position: absolute;
    color: rgba(198, 250, 255, 0.78);
    font-family: "Courier New", monospace;
    font-size: clamp(0.38rem, 0.65vw, 0.56rem);
    letter-spacing: 0.14em;
    line-height: 1;
    white-space: nowrap;
}

.target-lock-label--top {
    top: 3px;
    left: 17%;
}

.target-lock-label--bottom-left {
    bottom: 3px;
    left: 16%;
}

.target-lock-label--bottom-right {
    right: 16%;
    bottom: 3px;
}

.target-lock-indicator {
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    border: 1px solid #dcfdff;
    border-radius: 50%;
    box-shadow: 0 0 7px #00e5ff;
    transform: translateX(-50%);
    animation: targetLockPulse 1.8s ease-in-out infinite;
}

@keyframes targetLockPulse {

    0%,
    100% {
        opacity: 0.45;
        box-shadow: 0 0 4px #00e5ff;
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 10px #00e5ff;
    }
}


/* ==========================================================================
   ZIRCON OUTLINE
   ========================================================================== */

.zircon-outline {

    font-family:
        "Arial Black",
        "Segoe UI",
        sans-serif;

    font-size: 145px;

    font-weight: 900;

    letter-spacing: 15px;

    fill: transparent;

    stroke:
        #00e5ff;

    stroke-width:
        2px;

    stroke-linejoin:
        round;

    paint-order:
        stroke;

    stroke-dasharray:
        2500;

    stroke-dashoffset:
        2500;

    opacity: 0;

    filter:

        drop-shadow(0 0 2px #00e5ff) drop-shadow(0 0 5px rgba(0,
                229,
                255,
                0.45)) drop-shadow(0 0 10px rgba(0,
                229,
                255,
                0.20));

    animation:

        writeZircon 3.5s cubic-bezier(0.65,
            0,
            0.35,
            1) 4.8s forwards;
}


/* ==========================================================================
   ZIRCON FILL
   ========================================================================== */

.zircon-fill {

    font-family:
        "Arial Black",
        "Segoe UI",
        sans-serif;

    font-size: 145px;

    font-weight: 900;

    letter-spacing: 15px;

    fill:
        rgba(0,
            229,
            255,
            0.22);

    opacity: 0;

    filter:

        drop-shadow(0 0 2px rgba(0,
                229,
                255,
                0.35)) drop-shadow(0 0 6px rgba(0,
                229,
                255,
                0.15));

    animation:

        zirconFill 0.8s ease-out 8.0s forwards;
}


/* ==========================================================================
   ZIRCON DRAWING
   ========================================================================== */

@keyframes writeZircon {

    0% {

        opacity: 0;

        stroke-dashoffset:
            2500;
    }

    1% {

        opacity: 1;
    }

    100% {

        opacity: 1;

        stroke-dashoffset:
            0;
    }
}


/* ==========================================================================
   ZIRCON FILL ANIMATION
   ========================================================================== */

@keyframes zirconFill {

    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.72;
    }
}


/* ==========================================================================
   9. HERO INTRO
   ========================================================================== */

.hero-intro {

    position: absolute;

    left: 50%;

    bottom: 10%;

    transform:
        translateX(-50%);

    width: 90%;

    text-align: center;

    z-index: 10;

    opacity: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    animation:

        heroTextReveal 1s ease-out 8.5s forwards;
}

/* These child-level transforms leave the existing hero-intro reveal animation
   and its responsive base transform intact. */
.hero-intro>.hero-status,
.hero-intro>h1,
.hero-intro>p {
    transform: translateY(var(--hero-intro-scroll-y, 0px));
    opacity: var(--hero-intro-scroll-opacity, 1);
    will-change: transform, opacity;
}


/* ==========================================================================
   SYSTEM ONLINE
   ========================================================================== */

.hero-status {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-bottom: 14px;

    font-size: 0.65rem;

    line-height: 1.4;

    letter-spacing: 4px;

    color: #00e5ff;

    white-space: nowrap;
}

.hero-status span {

    display: inline-block;

    flex-shrink: 0;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        #00e5ff;

    box-shadow:
        0 0 10px #00e5ff;

    animation:
        statusBlink 1.2s infinite;
}


/* ==========================================================================
   HERO MAIN TEXT
   ========================================================================== */

.hero-intro h1 {

    width: 100%;

    margin: 0;

    padding: 0;

    font-size:
        clamp(2rem,
            5vw,
            4rem);

    font-weight: 900;

    line-height: 1.1;

    letter-spacing: 14px;

    color:
        #ffffff;

    white-space: nowrap;

    text-align: center;

    text-shadow:

        0 0 8px rgba(255,
            255,
            255,
            0.4),

        0 0 20px rgba(0,
            229,
            255,
            0.25);
}


/* ==========================================================================
   HERO DESCRIPTION
   ========================================================================== */

.hero-intro p {

    width: 100%;

    margin:
        14px 0 0;

    font-size:
        0.7rem;

    line-height:
        1.5;

    letter-spacing:
        5px;

    color:
        rgba(255,
            255,
            255,
            0.6);

    white-space:
        nowrap;

    text-align:
        center;
}


/* ==========================================================================
   STATUS BLINK
   ========================================================================== */

@keyframes statusBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}


/* ==========================================================================
   HERO TEXT REVEAL
   ========================================================================== */

@keyframes heroTextReveal {

    0% {

        opacity: 0;

        transform:
            translate(-50%,
                20px);
    }

    100% {

        opacity: 1;

        transform:
            translate(-50%,
                0);
    }
}


/* ==========================================================================
   10. SCROLL INDICATOR
   ========================================================================== */

.hero-scroll {

    position: absolute;

    bottom:
        35px;

    left:
        50%;

    transform:
        translateX(-50%);

    z-index:
        10;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    gap:
        10px;

    opacity:
        0;

    animation:
        heroTextReveal 1s ease-out 9s forwards;
}

.hero-scroll span {

    font-size:
        0.55rem;

    letter-spacing:
        3px;

    color:
        rgba(255,
            255,
            255,
            0.5);
}

.scroll-line {

    width:
        1px;

    height:
        45px;

    background:
        linear-gradient(to bottom,
            #00e5ff,
            transparent);

    animation:
        scrollPulse 2s infinite;
}

@keyframes scrollPulse {

    0%,
    100% {

        opacity:
            0.3;

        transform:
            scaleY(0.6);

        transform-origin:
            top;
    }

    50% {

        opacity:
            1;

        transform:
            scaleY(1);
    }
}


/* ==========================================================================
   11. GENERAL SECTIONS
   ========================================================================== */

section:not(.robot-hero) {

    position:
        relative;

    z-index:
        3;

    background:
        #0b0b0e;

    color:
        #ffffff;

    padding:
        8rem 2rem;

    min-height:
        100vh;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;
}


/* ==========================================================================
   12. SECTION HEADERS
   ========================================================================== */

.section-header-wrapper {

    position:
        relative;

    width:
        100%;

    max-width:
        1200px;

    text-align:
        center;

    margin-bottom:
        6rem;

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;
}

.watermark-title {

    font-size:
        clamp(4rem,
            14vw,
            11rem);

    font-weight:
        900;

    letter-spacing:
        16px;

    text-transform:
        uppercase;

    color:
        rgba(255,
            255,
            255,
            0.07);

    user-select:
        none;

    line-height:
        1;

    white-space:
        nowrap;
}

.sub-tags {

    position:
        absolute;

    top:
        50%;

    left:
        50%;

    transform:
        translate(-50%,
            -50%);

    width:
        100%;

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    gap:
        1.2rem;

    font-size:
        clamp(0.7rem,
            1.8vw,
            1rem);

    font-weight:
        600;

    letter-spacing:
        6px;

    color:
        #ffffff;

    text-transform:
        uppercase;

    white-space:
        nowrap;
}


/* ==========================================================================
   13. CONTENT
   ========================================================================== */

.content-grid-2col {

    max-width:
        1200px;

    width:
        100%;

    display:
        grid;

    grid-template-columns:
        1fr 1.1fr;

    gap:
        4rem;

    align-items:
        center;
}

.image-wrapper {
    position:
        relative;
}

.glow-backdrop {

    position:
        absolute;

    top:
        50%;

    left:
        50%;

    transform:
        translate(-50%,
            -50%);

    width:
        100%;

    height:
        100%;

    background:
        radial-gradient(circle,

            rgba(0,
                229,
                255,
                0.2) 0%,

            rgba(0,
                0,
                0,
                0) 70%);

    filter:
        blur(50px);

    z-index:
        -1;
}

.image-frame {

    position:
        relative;

    border-radius:
        20px;

    overflow:
        hidden;

    border:
        1px solid rgba(255,
            255,
            255,
            0.12);

    box-shadow:
        0 25px 60px rgba(0,
            0,
            0,
            0.85);

    background:
        rgba(255,
            255,
            255,
            0.02);

    aspect-ratio:
        4 / 3;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    color:
        #71717a;
}

.card-img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    display:
        block;

    transition:
        transform 0.7s cubic-bezier(0.16,
            1,
            0.3,
            1);
}

.image-frame:hover .card-img {

    transform:
        scale(1.06);
}

.badge {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    padding:
        6px 14px;

    background:
        rgba(0,
            229,
            255,
            0.06);

    border:
        1px solid rgba(0,
            229,
            255,
            0.2);

    border-radius:
        100px;

    font-size:
        0.75rem;

    font-weight:
        700;

    letter-spacing:
        2px;

    color:
        #00e5ff;

    margin-bottom:
        1.5rem;
}

.badge-dot {

    width:
        6px;

    height:
        6px;

    background:
        #00e5ff;

    border-radius:
        50%;

    box-shadow:
        0 0 10px #00e5ff;
}

.heading-large {

    font-size:
        2.5rem;

    font-weight:
        800;

    line-height:
        1.25;

    letter-spacing:
        -0.5px;

    margin-bottom:
        1.5rem;
}

.gradient-text {

    background:
        linear-gradient(135deg,
            #ffffff 30%,
            #00e5ff 100%);

    background-clip:
        text;

    -webkit-background-clip:
        text;

    -webkit-text-fill-color:
        transparent;
}

.body-paragraph {

    font-size:
        1.05rem;

    line-height:
        1.7;

    color:
        #a1a1aa;

    margin-bottom:
        1.2rem;
}


/* ==========================================================================
   14. EVENTS
   ========================================================================== */

.events-grid-9 {

    max-width:
        1200px;

    width:
        100%;

    display:
        grid;

    grid-template-columns:
        repeat(3,
            1fr);

    gap:
        2rem;
}

.event-card {

    position:
        relative;

    border-radius:
        20px;

    overflow:
        hidden;

    background:
        rgba(255,
            255,
            255,
            0.02);

    border:
        1px solid rgba(255,
            255,
            255,
            0.08);

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        flex-end;

    height: 520px;
    min-height: 520px;

    cursor:
        pointer;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.event-card:hover {

    transform:
        translateY(-6px);

    border-color:
        rgba(0,
            229,
            255,
            0.5);

    box-shadow:
        0 20px 40px rgba(0,
            229,
            255,
            0.15);
}

.event-media {

    position:
        absolute;

    inset:
        0;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    filter:
        brightness(0.65);

    z-index:
        1;

    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.event-card:hover .event-media {

    transform:
        scale(1.08);

    filter:
        brightness(0.35);
}

.event-overlay {

    position:
        relative;

    z-index:
        2;

    width:
        100%;

    padding:
        1.8rem;

    background:
        linear-gradient(to top,

            rgba(11,
                11,
                14,
                0.98) 20%,

            rgba(11,
                11,
                14,
                0.6) 70%,

            transparent 100%);

    display:
        flex;

    flex-direction:
        column;

    gap:
        8px;
}

.event-tags {

    font-size:
        0.65rem;

    font-weight:
        700;

    letter-spacing:
        2px;

    text-transform:
        uppercase;

    color:
        #00e5ff;
}

.event-title {

    font-size:
        1.35rem;

    font-weight:
        800;

    text-transform:
        uppercase;

    color:
        #ffffff;

    line-height:
        1.2;
}

.event-desc {

    font-size:
        0.85rem;

    color:
        #d1d1d6;

    line-height:
        1.5;

    margin-top:
        4px;
}


/* ==========================================================================
   15. DOMAINS
   ========================================================================== */

.domains-grid {

    max-width:
        1200px;

    width:
        100%;

    display:
        grid;

    grid-template-columns:
        repeat(3,
            1fr);

    gap:
        2rem;
}

.domain-card {

    background:
        rgba(255,
            255,
            255,
            0.02);

    border:
        1px solid rgba(255,
            255,
            255,
            0.08);

    border-radius:
        20px;

    padding:
        2.5rem 2rem;

    display:
        flex;

    flex-direction:
        column;

    gap:
        1rem;

    transition:
        all 0.4s ease;
}

.domain-card:hover {

    border-color:
        rgba(0,
            229,
            255,
            0.5);

    transform:
        translateY(-6px);

    box-shadow:
        0 15px 30px rgba(0,
            229,
            255,
            0.1);
}

.domain-title {

    font-size:
        1.3rem;

    font-weight:
        800;

    color:
        #ffffff;

    text-transform:
        uppercase;
}


/* ==========================================================================
   16. 3D GALLERY
   ========================================================================== */

#gallery {
    overflow:
        hidden;
}

.carousel-3d-container {

    position:
        relative;

    width:
        100%;

    max-width:
        1200px;

    height:
        500px;

    perspective:
        1200px;

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;

    margin:
        0 auto;
}

.carousel-3d-track {

    position:
        absolute;

    width:
        100%;

    height:
        100%;

    transform-style:
        preserve-3d;

    display:
        flex;

    justify-content:
        center;

    align-items:
        center;
}

.carousel-3d-item {

    position:
        absolute;

    width:
        240px;

    height:
        320px;

    border-radius:
        20px;

    overflow:
        hidden;

    border:
        2px solid rgba(255,
            255,
            255,
            0.15);

    box-shadow:
        0 15px 35px rgba(0,
            0,
            0,
            0.8);

    background:
        rgba(255,
            255,
            255,
            0.03);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    color:
        #71717a;

    cursor:
        pointer;

    user-select:
        none;
}

.carousel-3d-item img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    display:
        block;

    pointer-events:
        none;
}

.carousel-3d-item.is-front {

    border-color:
        #00e5ff;

    box-shadow:

        0 0 35px rgba(0,
            229,
            255,
            0.5),

        inset 0 0 20px rgba(0,
            229,
            255,
            0.3);
}

.carousel-3d-item:hover {

    border-color:
        #00e5ff;

    box-shadow:
        0 0 50px rgba(0,
            229,
            255,
            0.9);

    z-index:
        999 !important;
}

.carousel-instructions {

    text-align:
        center;

    margin-top:
        2rem;

    font-size:
        0.85rem;

    letter-spacing:
        2px;

    color:
        #71717a;

    text-transform:
        uppercase;
}


/* ==========================================================================
   17. TEAM
   ========================================================================== */

.team-grid {

    max-width:
        1200px;

    width:
        100%;

    display:
        grid;

    grid-template-columns:
        repeat(4,
            1fr);

    gap:
        2rem;
}

/* Captain — separate first row */
.team-card-captain {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 310px;
}

.team-card {

    background:
        rgba(255,
            255,
            255,
            0.02);

    border:
        1px solid rgba(255,
            255,
            255,
            0.08);

    border-radius:
        20px;

    padding:
        1.5rem;

    text-align:
        center;

    transition:
        transform 0.4s ease;
}

.team-card-captain {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 310px;
    margin-bottom: 10px;
}

.team-card:hover {

    transform:
        translateY(-6px);

    border-color:
        rgba(0,
            229,
            255,
            0.4);
}

.team-avatar {
    width: 110px;
    height: 110px;

    margin: 0 auto 25px;

    border-radius: 50%;

    overflow: hidden;

    border: 2px solid #00e5ff;

    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}


/* ==========================================================================
   18. CONTACT
   ========================================================================== */

.contact-container {

    max-width:
        800px;

    width:
        100%;

    background:
        rgba(255,
            255,
            255,
            0.02);

    border:
        1px solid rgba(255,
            255,
            255,
            0.08);

    border-radius:
        24px;

    padding:
        3.5rem;
}

.contact-form {

    display:
        flex;

    flex-direction:
        column;

    gap:
        1.5rem;

    margin-top:
        2rem;
}

.form-group {

    display:
        flex;

    flex-direction:
        column;

    gap:
        0.5rem;

    text-align:
        left;
}

.form-group label {

    font-size:
        0.85rem;

    font-weight:
        700;

    letter-spacing:
        1.5px;

    text-transform:
        uppercase;

    color:
        #00e5ff;
}

.form-control {

    background:
        rgba(255,
            255,
            255,
            0.04);

    border:
        1px solid rgba(255,
            255,
            255,
            0.12);

    border-radius:
        12px;

    padding:
        1rem 1.2rem;

    color:
        #ffffff;

    font-size:
        1rem;

    font-family:
        inherit;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.form-control:focus {

    outline:
        none;

    border-color:
        #00e5ff;

    box-shadow:
        0 0 15px rgba(0,
            229,
            255,
            0.2);
}

textarea.form-control {

    resize:
        vertical;

    min-height:
        130px;
}

.submit-btn {

    background:
        linear-gradient(135deg,
            #00e5ff 0%,
            #0088cc 100%);

    color:
        #0b0b0e;

    border:
        none;

    border-radius:
        12px;

    padding:
        1rem 2rem;

    font-size:
        0.95rem;

    font-weight:
        800;

    letter-spacing:
        2px;

    text-transform:
        uppercase;

    cursor:
        pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.submit-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0,
            229,
            255,
            0.4);
}


/* ==========================================================================
   19. TABLET
   ========================================================================== */

@media (max-width: 1024px) {

    .events-grid-9,
    .domains-grid {

        grid-template-columns:
            repeat(2,
                1fr);
    }

    .team-grid {

        grid-template-columns:
            repeat(2,
                1fr);
    }

    .content-grid-2col {
        gap: 3rem;
    }

    .zircon-writing {
        width:
            78vw;
    }

    .zircon-outline,
    .zircon-fill {

        font-size:
            125px;

        letter-spacing:
            10px;
    }
}


/* ==========================================================================
   20. SMALL LAPTOP / TABLET
   ========================================================================== */

@media (max-width: 992px) {

    .navbar {

        padding:
            1.2rem 2rem;
    }

    .navbar .nav-links {

        display:
            none;
    }

    .content-grid-2col {

        grid-template-columns:
            1fr;

        gap:
            2.5rem;
    }

    .carousel-3d-container {

        height:
            400px;
    }

    .carousel-3d-item {

        width:
            180px;

        height:
            240px;
    }
}


/* ==========================================================================
   21. MOBILE — 768px
   ========================================================================== */

@media (max-width: 768px) {

    body {
        width:
            100%;

        overflow-x:
            hidden;
    }


    /* ----------------------------------------------------------
       NAVBAR
       ---------------------------------------------------------- */

    .navbar {

        width:
            100%;

        padding:
            1rem 1.2rem;

        z-index:
            1000;
    }

    .logo {

        font-size:
            1.35rem;

        letter-spacing:
            3px;
    }

    .logo-container {

        gap:
            0.6rem;
    }

    .menu-pop-btn {

        width:
            38px;

        height:
            38px;
    }


    /* ----------------------------------------------------------
       DRAWER
       ---------------------------------------------------------- */

    .side-drawer {

        width:
            min(300px,
                82vw);

        left:
            calc(-1 * min(300px,
                    82vw));

        padding:
            2.2rem 1.5rem;
    }

    .side-drawer.open {
        left:
            0;
    }


    /* ----------------------------------------------------------
       HERO
       ---------------------------------------------------------- */

    .robot-hero {

        width:
            100%;

        height:
            100svh;

        min-height:
            600px;

        max-height:
            none;

        overflow:
            hidden;
    }


    /* ----------------------------------------------------------
       ROBOT IMAGE
       ---------------------------------------------------------- */

    .robot-image {

        width:
            100%;

        height:
            100%;

        object-fit:
            cover;

        object-position:
            50% 42%;

        transform:
            scale(1.18);
    }


    /* ----------------------------------------------------------
       MOBILE EYES — LASER ORIGIN
       ---------------------------------------------------------- */

    .robot-eye {
        position: absolute;
        width: 32px;
        height: 24px;
        z-index: 8;
        pointer-events: none;
    }

    .eye-left {
        /* Mobile: place the laser origin on the real LEFT pupil. */
        left: 36.8%;
        top: 33.2%;
    }

    .eye-right {
        /* Mobile: place the laser origin on the real RIGHT pupil. */
        left: 58.4%;
        top: 33.2%;
    }


    /* ----------------------------------------------------------
       MOBILE LASERS
       ---------------------------------------------------------- */

    .laser {

        height:
            6px;

        max-width:
            none;

        z-index:
            6;

        box-shadow:

            0 0 2px #ffffff,

            0 0 6px rgba(255,
                255,
                255,
                0.9),

            0 0 13px #00e5ff,

            0 0 25px rgba(0,
                229,
                255,
                0.65);
    }

    .laser-core {

        height:
            2px;
    }


    /* ----------------------------------------------------------
       ZIRCON
       ---------------------------------------------------------- */

    .zircon-writing {

        position:
            absolute;

        left:
            50%;

        top:
            51%;

        width:
            94vw;

        max-width:
            700px;

        transform:
            translate(-50%,
                -50%) translateY(var(--zircon-scroll-y, 0px));

        overflow:
            visible;
    }

    .zircon-outline,
    .zircon-fill {

        font-size:
            92px;

        letter-spacing:
            5px;
    }


    /* ----------------------------------------------------------
       HERO INTRO
       ---------------------------------------------------------- */

    .hero-intro {

        left:
            50%;

        bottom:
            10%;

        width:
            92%;

        max-width:
            500px;

        padding:
            0 10px;

        display:
            flex;

        flex-direction:
            column;

        align-items:
            center;

        justify-content:
            center;

        text-align:
            center;
    }

    .hero-status {

        width:
            100%;

        margin-bottom:
            10px;

        font-size:
            0.48rem;

        letter-spacing:
            2px;

        line-height:
            1.5;

        justify-content:
            center;

        white-space:
            normal;

        text-align:
            center;
    }

    .hero-status span {

        width:
            5px;

        height:
            5px;
    }

    .hero-intro h1 {

        width:
            100%;

        margin:
            0;

        padding:
            0;

        font-size:
            clamp(1.5rem,
                7vw,
                2.2rem);

        letter-spacing:
            5px;

        line-height:
            1.15;

        white-space:
            normal;

        text-align:
            center;
    }

    .hero-intro p {

        width:
            100%;

        margin-top:
            9px;

        font-size:
            0.43rem;

        letter-spacing:
            2px;

        line-height:
            1.6;

        white-space:
            normal;

        text-align:
            center;
    }


    /* ----------------------------------------------------------
       SCROLL
       ---------------------------------------------------------- */

    .hero-scroll {

        bottom:
            18px;
    }

    .hero-scroll span {

        font-size:
            0.45rem;

        letter-spacing:
            2px;
    }

    .scroll-line {

        height:
            28px;
    }


    /* ----------------------------------------------------------
       SECTIONS
       ---------------------------------------------------------- */

    section:not(.robot-hero) {

        min-height:
            auto;

        padding:
            6rem 1.2rem;
    }


    /* ----------------------------------------------------------
       SECTION HEADERS
       ---------------------------------------------------------- */

    .section-header-wrapper {

        margin-bottom:
            3.5rem;

        overflow:
            hidden;
    }

    .watermark-title {

        font-size:
            clamp(3rem,
                17vw,
                6rem);

        letter-spacing:
            8px;

        white-space:
            nowrap;
    }

    .sub-tags {

        width:
            95%;

        gap:
            0.5rem;

        font-size:
            clamp(0.5rem,
                2vw,
                0.75rem);

        letter-spacing:
            2px;

        white-space:
            normal;

        text-align:
            center;

        line-height:
            1.5;
    }


    /* ----------------------------------------------------------
       CONTENT
       ---------------------------------------------------------- */

    .content-grid-2col {

        width:
            100%;

        grid-template-columns:
            1fr;

        gap:
            2rem;
    }

    .heading-large {

        font-size:
            2rem;
    }

    .body-paragraph {

        font-size:
            0.95rem;
    }


    /* ----------------------------------------------------------
       EVENTS
       ---------------------------------------------------------- */

    .events-grid-9 {

        width:
            100%;

        grid-template-columns:
            1fr;

        gap:
            1.2rem;
    }

    .event-card {

        min-height:
            330px;
    }

    /* ==========================================================
   FIXED EVENT CARDS
   ========================================================== */

    .event-card {
        height: 520px;
        overflow: hidden;
        padding: 0 !important;

        display: flex;
        flex-direction: column;
    }


    /* IMAGE AREA */

    .event-image {
        width: 100%;
        height: 250px;

        flex-shrink: 0;

        overflow: hidden;
        position: relative;
    }


    .event-image img {
        width: 100%;
        height: 100%;

        display: block;

        object-fit: cover;
        object-position: center;

        transition: transform 0.5s ease;
    }


    /* IMAGE HOVER */

    .event-card:hover .event-image img {
        transform: scale(1.05);
    }


    /* DARK IMAGE OVERLAY */

    .event-image::after {
        content: "";

        position: absolute;

        inset: 0;

        background:
            linear-gradient(to bottom,
                transparent 50%,
                rgba(5, 8, 12, 0.7) 100%);

        pointer-events: none;
    }


    /* CONTENT */

    .event-content {
        flex: 1;

        padding: 25px 32px 30px;

        display: flex;
        flex-direction: column;
    }

    /* ----------------------------------------------------------
       DOMAINS
       ---------------------------------------------------------- */

    .domains-grid {

        width:
            100%;

        grid-template-columns:
            1fr;

        gap:
            1.2rem;
    }

    .domain-card {

        padding:
            1.8rem 1.5rem;
    }


    /* ----------------------------------------------------------
       GALLERY
       ---------------------------------------------------------- */

    .carousel-3d-container {

        width:
            100%;

        height:
            360px;

        perspective:
            900px;

        overflow:
            visible;
    }

    .carousel-3d-item {

        width:
            140px;

        height:
            195px;

        border-radius:
            15px;
    }

    .carousel-instructions {

        font-size:
            0.65rem;

        letter-spacing:
            1.5px;

        line-height:
            1.5;
    }


    /* ----------------------------------------------------------
       TEAM
       ---------------------------------------------------------- */

    .team-grid {

        width:
            100%;

        grid-template-columns:
            repeat(2,
                1fr);

        gap:
            1rem;
    }

    .team-card {

        padding:
            1.2rem 0.8rem;
    }

    .team-avatar {

        width:
            75px;

        height:
            75px;
    }


    /* ----------------------------------------------------------
       CONTACT
       ---------------------------------------------------------- */

    .contact-container {

        width:
            100%;

        padding:
            2rem 1.2rem;

        border-radius:
            18px;
    }
}

/* ============================================================================
   22. SMALL MOBILE — 600px
   ============================================================================ */

@media (max-width: 600px) {

    .robot-image {
        object-position: 50% 40%;
        transform: scale(1.28);
    }

    /* ----------------------------------------------------------
       MOBILE EYES
       These are invisible alignment anchors. main.js uses their
       centers as the laser origins.
       ---------------------------------------------------------- */

    .robot-eye {
        width: 32px;
        height: 24px;
        z-index: 8;
    }

    .eye-left {
        /* Mobile: place the laser origin on the real LEFT pupil. */
        left: 36.8%;
        top: 33.2%;
    }

    .eye-right {
        /* Mobile: place the laser origin on the real RIGHT pupil. */
        left: 58.4%;
        top: 33.2%;
    }

    /* ----------------------------------------------------------
       LASERS
       ---------------------------------------------------------- */

    .laser {
        height: 5px;
        max-width: none;
        z-index: 6;
        box-shadow:
            0 0 2px #ffffff,
            0 0 5px #ffffff,
            0 0 11px #00e5ff,
            0 0 22px rgba(0, 229, 255, 0.6);
    }

    .laser-core {
        height: 2px;
    }

    /* ==========================================================
   MOBILE ZIRCON — MATCH LASER SPAN
   ========================================================== */

    .zircon-writing {
        width: 110vw;
        top: 50.5%;
    }

    .zircon-outline,
    .zircon-fill {
        font-size: 105px;
        letter-spacing: 3px;
    }

    /* ----------------------------------------------------------
       HERO INTRO
       ---------------------------------------------------------- */

    .hero-intro {
        bottom: 10%;
        width: 94%;
        max-width: 430px;
    }

    .hero-status {
        font-size: 0.43rem;
        letter-spacing: 1.5px;
        gap: 5px;
        margin-bottom: 8px;
    }

    .hero-status span {
        width: 4px;
        height: 4px;
    }

    .hero-intro h1 {
        font-size: clamp(1.25rem, 6.5vw, 1.7rem);
        letter-spacing: 3px;
        line-height: 1.2;
    }

    .hero-intro p {
        margin-top: 7px;
        font-size: 0.38rem;
        letter-spacing: 1.5px;
        line-height: 1.5;
    }

    /* ----------------------------------------------------------
       SECTIONS
       ---------------------------------------------------------- */

    section:not(.robot-hero) {
        padding: 5rem 1rem;
    }

    .section-header-wrapper {
        margin-bottom: 3rem;
    }

    .watermark-title {
        font-size: 16vw;
        letter-spacing: 5px;
    }

    .sub-tags {
        width: 92%;
        font-size: 0.55rem;
        letter-spacing: 1.5px;
        gap: 0.35rem;
    }

    /* ----------------------------------------------------------
       EVENT CARDS
       ---------------------------------------------------------- */

    .event-card {
        min-height: 300px;
    }

    .event-overlay {
        padding: 1.3rem;
    }

    .event-title {
        font-size: 1.15rem;
    }

    .event-desc {
        font-size: 0.78rem;
    }

    /* ----------------------------------------------------------
       TEAM
       ---------------------------------------------------------- */

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    /* ----------------------------------------------------------
       GALLERY
       ---------------------------------------------------------- */

    .carousel-3d-container {
        height: 320px;
    }

    .carousel-3d-item {
        width: 120px;
        height: 170px;
    }
}


/* ============================================================================
   23. VERY SMALL PHONES — 400px
   ============================================================================ */

@media (max-width: 400px) {

    .robot-hero {
        min-height: 560px;
    }

    .robot-image {
        transform: scale(1.35);
        object-position: 50% 39%;
    }

    /* Keep the same eye anchors so the laser geometry does not jump
       when crossing the 400px breakpoint. */

    .robot-eye {
        width: 26px;
        height: 19px;
    }

    .eye-left {
        /* Mobile: place the laser origin on the real LEFT pupil. */
        left: 36.8%;
        top: 33.2%;
    }

    .eye-right {
        /* Mobile: place the laser origin on the real RIGHT pupil. */
        left: 58.4%;
        top: 33.2%;
    }

    .laser {
        height: 4px;
        box-shadow:
            0 0 2px #ffffff,
            0 0 5px #ffffff,
            0 0 10px #00e5ff,
            0 0 20px rgba(0, 229, 255, 0.55);
    }

    .zircon-writing {
        width: 100vw;
        top: 50%;
    }

    .zircon-outline,
    .zircon-fill {
        font-size: 61px;
        letter-spacing: 2px;
    }

    .hero-intro {
        bottom: 9%;
        width: 96%;
    }

    .hero-status {
        font-size: 0.38rem;
        letter-spacing: 1px;
    }

    .hero-intro h1 {
        font-size: 1.15rem;
        letter-spacing: 2px;
    }

    .hero-intro p {
        font-size: 0.34rem;
        letter-spacing: 1px;
    }

    .logo {
        font-size: 1rem;
        letter-spacing: 2px;
    }

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

    .contact-container {
        padding: 1.5rem 1rem;
    }
}


/* ============================================================================
   24. LANDSCAPE PHONES
   ============================================================================ */

@media (max-height: 550px) and (max-width: 900px) {

    .robot-hero {
        height: 100svh;
        min-height: 500px;
    }

    .robot-image {
        object-position: 50% 38%;
    }

    .zircon-writing {
        top: 51%;
        width: 60vw;
    }

    .zircon-outline,
    .zircon-fill {
        font-size: 65px;
        letter-spacing: 3px;
    }

    .hero-intro {
        bottom: 5%;
        transform: translateX(-50%) scale(0.8);
    }

    .hero-scroll {
        display: none;
    }
}


/* ============================================================================
   25. VISUAL POLISH — CONSISTENT, RESPONSIVE DEPTH
   ============================================================================ */

body {
    background:
        radial-gradient(circle at 50% -15%, rgba(0, 229, 255, 0.10), transparent 32rem),
        radial-gradient(circle at 8% 60%, rgba(0, 124, 170, 0.08), transparent 30rem),
        #07090d;
    line-height: 1.55;
}

.navbar {
    padding-top: clamp(1rem, 2vw, 2rem);
    padding-bottom: clamp(1rem, 2vw, 2rem);
    background: rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(120, 229, 255, 0.08);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.zircon-writing {
    isolation: isolate;
}

/* A low-contrast glass panel separates the hand-drawn word from the busy
   robot image without hiding the robot itself. */
.zircon-writing::before {
    content: "";
    position: absolute;
    inset: -14% -5%;
    z-index: -1;
    border: 1px solid rgba(105, 239, 255, 0.18);
    border-radius: clamp(16px, 2vw, 28px);
    background:
        linear-gradient(90deg, transparent, rgba(0, 13, 20, 0.58) 16%, rgba(0, 23, 32, 0.70) 50%, rgba(0, 13, 20, 0.58) 84%, transparent),
        radial-gradient(ellipse at center, rgba(0, 229, 255, 0.11), transparent 70%);
    box-shadow:
        inset 0 1px 0 rgba(219, 252, 255, 0.12),
        0 0 45px rgba(0, 229, 255, 0.12);
    backdrop-filter: blur(4px);
}

section:not(.robot-hero) {
    background:
        radial-gradient(circle at 16% 18%, rgba(0, 229, 255, 0.055), transparent 26rem),
        radial-gradient(circle at 85% 80%, rgba(17, 96, 146, 0.08), transparent 31rem),
        linear-gradient(135deg, #07090d 0%, #0b0e13 52%, #07090d 100%);
    border-top: 1px solid rgba(126, 231, 255, 0.055);
}

.image-wrapper,
.event-card,
.domain-card,
.team-card,
.contact-container {
    background: linear-gradient(145deg, rgba(18, 28, 36, 0.78), rgba(8, 12, 18, 0.90));
    border-color: rgba(144, 229, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
}

.event-card:hover,
.domain-card:hover,
.team-card:hover {
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.28),
        0 0 28px rgba(0, 229, 255, 0.12);
}

.form-control {
    background: rgba(2, 10, 15, 0.68);
}

@media (max-width: 600px) and (min-height: 551px) {
    .zircon-writing {
        width: min(108vw, 700px);
        top: 50.5%;
    }

    .zircon-outline,
    .zircon-fill {
        font-size: clamp(90px, 25vw, 115px);
        letter-spacing: clamp(2px, 1vw, 5px);
    }

    .zircon-writing::before {
        inset: -18% -3%;
        border-radius: 16px;
    }
}

@media (max-width: 400px) and (min-height: 551px) {

    .zircon-outline,
    .zircon-fill {
        font-size: clamp(82px, 24vw, 100px);
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo img {
        width: 105px;
    }
}

@media (max-width: 400px) {
    .logo img {
        width: 95px;
    }
}

/* ==========================================================
   MENU BUTTON — MOBILE ONLY
   ========================================================== */

/* Hidden on desktop */
.menu-pop-btn {
    display: none;
}


/* Show only on mobile */
@media (max-width: 768px) {

    .menu-pop-btn {
        display: flex;
    }

}

/* ==========================================================
   RIGHT SIDE DRAWER — WORKING OVERRIDE
   ========================================================== */

.side-drawer {
    left: auto !important;
    right: -320px !important;

    transition:
        right 0.4s cubic-bezier(0.16,
            1,
            0.3,
            1) !important;

    border-right: none !important;

    border-left:
        1px solid rgba(0,
            229,
            255,
            0.25) !important;

    box-shadow:
        -10px 0 30px rgba(0,
            0,
            0,
            0.8) !important;
}

.side-drawer.open {
    left: auto !important;
    right: 0 !important;
}


/* ==========================================================
   MOBILE MENU BUTTON — TOP RIGHT
   ========================================================== */

@media (max-width: 768px) {
    .menu-pop-btn {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 1100;
        margin: 0;
    }
}

@media (max-width: 400px) {
    .menu-pop-btn {
        top: 12px;
        right: 12px;
    }
}

/* ==========================================================
   FINAL MOBILE DRAWER FIX
   RIGHT SIDE + ABOVE NAVBAR
   ========================================================== */

@media (max-width: 992px) {

    /* Put the dark overlay above the navbar */
    .side-drawer-overlay {
        z-index: 1990 !important;
    }

    /* Put the drawer ABOVE the navbar/glass layer */
    .side-drawer {
        top: 0 !important;

        left: auto !important;

        right: calc(-1 * min(300px,
                    82vw)) !important;

        width: min(300px,
                82vw) !important;

        height: 100vh !important;

        z-index: 2000 !important;

        transition:
            right 0.4s cubic-bezier(0.16,
                1,
                0.3,
                1) !important;

        border-right: none !important;

        border-left:
            1px solid rgba(0,
                229,
                255,
                0.25) !important;

        box-shadow:
            -10px 0 30px rgba(0,
                0,
                0,
                0.8) !important;
    }


    /* OPEN = slide in from RIGHT */
    .side-drawer.open {
        left: auto !important;

        right: 0 !important;
    }


    /* Make the drawer header definitely clickable */
    .drawer-header {
        position: relative;

        z-index: 2001;
    }


    /* Make X button definitely clickable */
    .close-drawer-btn {
        position: relative;

        z-index: 2002;

        width: 42px;
        height: 42px;

        display: flex;

        align-items: center;

        justify-content: center;

        flex-shrink: 0;

        pointer-events: auto;

        cursor: pointer;

        color: #ffffff;

        font-size: 2rem;
    }


    .close-drawer-btn:hover {
        color: #00e5ff;
    }
}


/* ===========================================================================
   HERO HUD — MOBILE
   =========================================================================== */

@media (max-width: 768px) {
    .hero-scanner {
        opacity: 0.38;
    }

    .hero-scanner::before {
        width: 78%;
        left: 11%;
        animation-duration: 11s;
    }

    .hero-system-label {
        font-size: 0.42rem;
        letter-spacing: 0.12em;
    }

    .hero-system-label::before {
        width: 20px;
        margin-bottom: 1px;
    }

    .hero-system-label--optics {
        top: 17%;
        left: 5%;
    }

    .hero-system-label--laser {
        top: 25%;
        right: 4%;
    }

    .hero-system-label--identity {
        display: none;
    }

    .target-lock-hud {
        top: 51%;
        width: 100vw;
        opacity: 0.42;
    }

    .target-lock-corner {
        width: 10%;
        height: 24%;
    }

    .target-lock-label {
        font-size: 0.33rem;
        letter-spacing: 0.09em;
    }
}

@media (max-width: 600px) {
    .target-lock-hud {
        top: 50.5%;
        width: 116vw;
    }
}

@media (max-width: 400px) {
    .target-lock-hud {
        top: 50%;
        width: 106vw;
    }
}

@media (max-height: 550px) and (max-width: 900px) {
    .target-lock-hud {
        top: 51%;
        width: 66vw;
    }
}


/* ===========================================================================
   ACCESSIBILITY — REDUCED MOTION
   =========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-scanner {
        display: none;
    }

    .hero-system-label,
    .target-lock-indicator {
        animation: none;
    }

    .hero-system-label {
        transform: none;
        will-change: auto;
    }

    .target-lock-hud {
        transform: translate(-50%, -50%);
        will-change: auto;
    }
}


/* ===========================================================================
   CINEMATIC HERO FOCUS
   A visual-only lens layer. It deliberately sits behind eyes, beams, SVG,
   and HUD so it cannot obscure calibrated elements or affect their bounds.
   =========================================================================== */

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    opacity: calc(var(--hero-vignette-opacity, 0.36) * var(--hero-vignette-mobile-factor, 1));
    background:
        radial-gradient(ellipse at 50% 47%,
            rgba(163, 249, 255, var(--hero-focus-center, 0.025)) 0%,
            rgba(0, 229, 255, 0.018) 28%,
            transparent 56%),
        radial-gradient(ellipse at center,
            transparent 34%,
            rgba(0, 0, 0, 0.16) 66%,
            rgba(0, 0, 0, 0.62) 100%);
    transition: opacity 500ms ease, background 500ms ease;
    will-change: opacity;
}


/* ===========================================================================
   ROBOT IDLE POWER
   Filter-only: the calibrated image crop, position, and transforms remain
   untouched while the system idles.
   =========================================================================== */

.hero--idle .robot-image {
    /* robotReveal ends with opacity: 1; preserve it when this later,
       filter-only idle animation replaces the reveal animation shorthand. */
    opacity: 1;
    animation: robotIdlePower 5.2s ease-in-out infinite;
}

@keyframes robotIdlePower {

    0%,
    100% {
        filter: brightness(0.66) contrast(1.12) saturate(0.9);
    }

    42% {
        filter: brightness(0.70) contrast(1.14) saturate(0.94);
    }

    70% {
        filter: brightness(0.64) contrast(1.10) saturate(0.88);
    }
}


/* ===========================================================================
   SCANNER INTERACTION
   The original thin scanner is retained. JavaScript only adds the reactive
   class as its line crosses the cached eye and SVG-target positions.
   =========================================================================== */

.hero-scanner::before {
    animation: none;
}

.hero--scanning .hero-scanner::before,
.hero--locking .hero-scanner::before,
.hero--locked .hero-scanner::before,
.hero--idle .hero-scanner::before {
    animation: heroScannerSweep 9s linear infinite;
}

.robot-eye::after {
    content: "";
    position: absolute;
    inset: -30%;
    border: 1px solid rgba(196, 253, 255, 0.82);
    border-radius: inherit;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.82);
    opacity: 0;
    transition: opacity 300ms ease;
}

.robot-eye.scanner-reactive::after {
    opacity: 0.72;
}

.zircon-writing.scanner-reactive .zircon-svg {
    filter: brightness(1.12) saturate(1.08);
    transition: filter 360ms ease;
}


/* ===========================================================================
   ZIRCON PROJECTION
   Starts only after the handwriting completes. The projection uses filters
   and a contained light sweep, never a transform, so SVG target measurement
   remains identical to the existing laser source of truth.
   =========================================================================== */

.zircon-writing::after {
    content: "";
    position: absolute;
    inset: 14% 4%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            transparent 39%,
            rgba(222, 253, 255, 0.04) 47%,
            rgba(119, 243, 255, 0.26) 50%,
            rgba(222, 253, 255, 0.04) 53%,
            transparent 61%,
            transparent 100%);
    mix-blend-mode: screen;
}

.hero--projection .zircon-svg {
    animation: zirconProjectionBreathe 5.4s ease-in-out infinite;
}

.hero--projection .zircon-writing::after {
    animation: zirconProjectionSweep 6.2s ease-in-out 0.4s infinite;
}

@keyframes zirconProjectionBreathe {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1) saturate(1);
    }

    48% {
        opacity: 0.975;
        filter: brightness(1.055) saturate(1.05);
    }

    52% {
        opacity: 0.965;
        filter: brightness(1.02) saturate(1.04);
    }
}

@keyframes zirconProjectionSweep {

    0%,
    16%,
    100% {
        opacity: 0;
        transform: translateX(-22%);
    }

    30% {
        opacity: 0.38;
    }

    58% {
        opacity: 0.12;
        transform: translateX(22%);
    }
}


/* ===========================================================================
   TARGET LOCK ANIMATION
   The existing brackets and labels are retained; state classes coordinate
   their inward acquisition movement and quieter locked resting state.
   =========================================================================== */

.target-lock-hud {
    transform:
        translate(-50%, -50%) translateY(calc(var(--zircon-scroll-y, 0px) + var(--hero-target-hud-scroll-y, 0px)));
    transition: opacity 450ms ease, filter 450ms ease;
}

.target-lock-label--bottom-right {
    transition: opacity 160ms ease, transform 160ms ease, color 300ms ease;
}

.target-lock-label--bottom-right.is-updating {
    opacity: 0;
    transform: translateY(3px);
}

.hero--scanning .target-lock-hud {
    opacity: 0.64;
}

.hero--scanning .target-lock-indicator {
    border-color: rgba(234, 253, 255, 0.95);
    animation-duration: 0.9s;
}

.hero--locking .target-lock-hud {
    opacity: 0.78;
    filter: brightness(1.12);
}

.hero--locking .target-lock-corner--top-left,
.hero--locking .target-lock-corner--bottom-left {
    animation: targetCornerLockLeft 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero--locking .target-lock-corner--top-right,
.hero--locking .target-lock-corner--bottom-right {
    animation: targetCornerLockRight 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero--locking .target-lock-indicator,
.hero--final-lock .target-lock-indicator {
    animation: targetIndicatorLock 760ms ease-out;
}

.hero--locked .target-lock-hud,
.hero--idle .target-lock-hud {
    opacity: 0.58;
}

.hero--locked .target-lock-label--bottom-right,
.hero--idle .target-lock-label--bottom-right {
    color: rgba(220, 253, 255, 0.94);
}

@keyframes targetCornerLockLeft {

    0%,
    100% {
        transform: translateX(0);
    }

    56% {
        transform: translateX(220%);
    }
}

@keyframes targetCornerLockRight {

    0%,
    100% {
        transform: translateX(0);
    }

    56% {
        transform: translateX(-220%);
    }
}

@keyframes targetIndicatorLock {
    0% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }

    52% {
        opacity: 1;
        transform: translateX(-50%) scale(2.15);
        box-shadow: 0 0 16px #00e5ff;
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}


/* ===========================================================================
   LOCK ENERGY
   Appearance-only energy changes; no laser box-model or geometry properties
   are touched here.
   =========================================================================== */

.hero--locking .laser,
.hero--final-lock .laser {
    filter:
        brightness(calc(var(--laser-energy-brightness, 1) * 1.12)) blur(0.25px) drop-shadow(0 0 calc(var(--laser-energy-glow, 0px) + 5px) rgba(0, 229, 255, 0.76));
}

.hero--locking .laser-core,
.hero--final-lock .laser-core {
    filter: brightness(calc(var(--laser-core-energy, 1) * 1.18));
}

.hero--final-lock .zircon-writing::after {
    animation: zirconLockSweep 760ms ease-out both;
}

.hero--final-lock .zircon-svg {
    animation: zirconLockFlash 760ms ease-out both;
}

@keyframes zirconLockSweep {
    0% {
        opacity: 0;
        transform: translateX(-24%);
    }

    42% {
        opacity: 0.52;
    }

    100% {
        opacity: 0;
        transform: translateX(24%);
    }
}

@keyframes zirconLockFlash {

    0%,
    100% {
        filter: brightness(1) saturate(1);
    }

    42% {
        filter: brightness(1.18) saturate(1.14);
    }
}


/* ===========================================================================
   MOBILE AND REDUCED-MOTION SAFEGUARDS
   =========================================================================== */

@media (max-width: 768px) {
    .robot-hero {
        --hero-vignette-mobile-factor: 0.72;
    }

    .hero--scanning .target-lock-hud,
    .hero--locking .target-lock-hud,
    .hero--locked .target-lock-hud,
    .hero--idle .target-lock-hud {
        opacity: 0.46;
    }

    .hero--projection .zircon-writing::after {
        opacity: 0.18;
    }

    .robot-eye.scanner-reactive::after {
        opacity: 0.42;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero--idle .robot-image,
    .hero--projection .zircon-svg,
    .hero--projection .zircon-writing::after,
    .hero--final-lock .zircon-svg,
    .hero--final-lock .zircon-writing::after,
    .hero--locking .target-lock-corner,
    .hero--locking .target-lock-indicator {
        animation: none;
    }

    .hero--scanning .hero-scanner::before,
    .hero--locking .hero-scanner::before,
    .hero--locked .hero-scanner::before,
    .hero--idle .hero-scanner::before {
        animation: none;
    }

    .hero--projection .zircon-svg,
    .zircon-writing.scanner-reactive .zircon-svg {
        filter: none;
    }

    .target-lock-hud {
        transform: translate(-50%, -50%);
        will-change: auto;
    }
}


/* ============================================================================
   26. PAST FESТS / ZIRCON ARCHIVE
   ============================================================================ */

#past-fests {
    position: relative;
    overflow: hidden;
}

.fest-archive {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.fest-year-card {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1.15fr 1fr;
    min-height: 360px;
    background: linear-gradient(145deg, rgba(18, 28, 36, 0.78), rgba(8, 12, 18, 0.90));
    border: 1px solid rgba(144, 229, 255, 0.12);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.fest-year-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 229, 255, 0.28);
    box-shadow: 0 20px 60px rgba(0, 229, 255, 0.08);
}

.fest-year {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.fest-year span {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(0, 229, 255, 0.6);
    text-align: center;
}

.fest-year strong {
    font-size: 2.1rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.82);
}

.fest-image {
    position: relative;
    min-height: 360px;
    overflow: hidden;
}

.fest-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.38);
    background:
        radial-gradient(circle at center, rgba(0, 229, 255, 0.09), transparent 52%),
        linear-gradient(145deg, rgba(20, 32, 42, 0.9), rgba(5, 9, 14, 0.98));
}

.fest-image-placeholder::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(0, 229, 255, 0.18);
    border-radius: 14px;
}

.fest-image-placeholder span,
.fest-image-placeholder small {
    position: relative;
    z-index: 1;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.fest-image-placeholder span {
    font-size: 0.7rem;
    color: rgba(210, 250, 255, 0.55);
}

.fest-image-placeholder small {
    font-size: 0.55rem;
    color: rgba(0, 229, 255, 0.45);
}

.fest-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.fest-label {
    font-size: 0.62rem;
    letter-spacing: 3px;
    color: rgba(0, 229, 255, 0.65);
    margin-bottom: 1rem;
}

.fest-info h3 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 3px;
    color: #ffffff;
}

.fest-info p {
    max-width: 470px;
    margin-top: 1.2rem;
    color: #a7adb5;
    line-height: 1.7;
    font-size: 0.9rem;
}

.fest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
}

.fest-tags span {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.56rem;
    letter-spacing: 1.5px;
    color: #858b93;
}

.fest-btn {
    width: fit-content;
    margin-top: 2rem;
    padding: 11px 18px;
    background: transparent;
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.fest-btn span {
    margin-left: 8px;
}

.fest-btn:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.65);
    color: #ffffff;
}

/* Archive responsiveness */
@media (max-width: 1024px) {
    .fest-year-card {
        grid-template-columns: 82px 1fr;
    }

    .fest-info {
        grid-column: 2;
        padding: 2rem;
    }

    .fest-image {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 300px;
    }

    .fest-year {
        grid-column: 1;
        grid-row: 1;
        position: relative;
        z-index: 2;
        align-self: start;
        min-height: 82px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        background: rgba(5, 9, 14, 0.72);
        backdrop-filter: blur(5px);
    }

    .fest-year strong {
        writing-mode: initial;
        transform: none;
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    #past-fests .section-header-wrapper {
        margin-bottom: 3.5rem;
    }

    .fest-archive {
        gap: 2rem;
    }

    .fest-year-card {
        display: flex;
        flex-direction: column;
        min-height: auto;
        border-radius: 20px;
    }

    .fest-year {
        order: 1;
        min-height: 64px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 1.3rem;
        gap: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .fest-year strong {
        font-size: 1.45rem;
        letter-spacing: 3px;
    }

    .fest-image {
        order: 2;
        min-height: 230px;
        height: 230px;
    }

    .fest-info {
        order: 3;
        padding: 2rem 1.4rem 2.2rem;
    }

    .fest-info h3 {
        font-size: 1.9rem;
    }

    .fest-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .fest-image {
        min-height: 200px;
        height: 200px;
    }

    .fest-info {
        padding: 1.6rem 1.1rem 1.9rem;
    }

    .fest-info h3 {
        font-size: 1.65rem;
        letter-spacing: 2px;
    }

    .fest-tags span {
        font-size: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .fest-year-card,
    .fest-btn {
        transition: none;
    }
}

/* ==========================================================
   3D GALLERY — MOBILE FIT FIX
   Do not affect desktop
   ========================================================== */

@media (max-width: 768px) {

    #gallery {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .carousel-3d-container {
        width: 100%;
        max-width: 100%;
        height: 360px;

        overflow: hidden;

        perspective: 900px;

        margin: 0 auto;
    }

    .carousel-3d-track {
        width: 100%;
        max-width: 100%;

        overflow: visible;
    }

    .carousel-3d-item {
        width: 140px;
        height: 195px;

        max-width: 42vw;
    }

}


/* Small phones */
@media (max-width: 400px) {

    .carousel-3d-container {
        height: 330px;
        perspective: 750px;
    }

    .carousel-3d-item {
        width: 125px;
        height: 175px;

        border-radius: 14px;
    }

}


/* Slightly larger phones */
@media (min-width: 401px) and (max-width: 480px) {

    .carousel-3d-container {
        height: 345px;
        perspective: 820px;
    }

    .carousel-3d-item {
        width: 135px;
        height: 185px;
    }

}

/* ==========================================================
   FINAL NAVBAR SCROLL FIX
   Logo stays visible
   Desktop navigation hides while scrolling
   ========================================================== */

.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    transition:
        background 0.35s ease,
        backdrop-filter 0.35s ease;
}


/* ----------------------------------------------------------
   DESKTOP
   Keep logo visible, hide only navigation links on scroll
   ---------------------------------------------------------- */

@media (min-width: 993px) {

    .navbar .logo-container {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .navbar .logo,
    .navbar .logo a {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .navbar.navbar-scrolled .nav-links {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        transform: translateY(-15px);
    }

    .navbar .nav-links {
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
    }
}


/* ----------------------------------------------------------
   MOBILE
   Keep logo + hamburger visible
   ---------------------------------------------------------- */

@media (max-width: 992px) {

    .navbar {
        position: fixed !important;
    }

    .navbar .logo-container {
        opacity: 1 !important;
        visibility: visible !important;
    }

}

/* ==========================================================
   PAST FESTS — VIEW PHOTOS BUTTON
   ========================================================== */

.fest-view-btn {
    display: inline-flex;

    align-items: center;
    gap: 10px;

    width: fit-content;

    margin-top: 2rem;

    padding: 12px 18px;

    background: transparent;

    border: 1px solid rgba(0, 229, 255, 0.35);

    color: #d1d1d6;

    text-decoration: none;

    font-size: 0.65rem;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition:
        color 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.fest-view-btn span {
    color: #00e5ff;

    font-size: 0.8rem;

    transition:
        transform 0.3s ease;
}


.fest-view-btn:hover {
    color: #ffffff;

    background:
        rgba(0, 229, 255, 0.07);

    border-color:
        rgba(0, 229, 255, 0.7);

    box-shadow:
        0 0 18px rgba(0, 229, 255, 0.08);
}


.fest-view-btn:hover span {
    transform: translate(3px, -3px);
}

/* ==========================================================
   PAST FESTS — FEATURED EDITION + ARCHIVE
   ========================================================== */


/* ----------------------------------------------------------
   ARCHIVE TOGGLE BAR
   ---------------------------------------------------------- */

.past-fests-toggle {

    width: min(1200px,
            92%);

    margin:
        3rem auto 0;

}


.past-fests-toggle button {

    position: relative;

    width: 100%;

    min-height: 82px;

    padding:
        0 2rem;

    display: grid;

    grid-template-columns:
        1fr auto auto;

    align-items: center;

    gap: 2rem;

    background:
        linear-gradient(100deg,
            rgba(10, 20, 25, 0.95),
            rgba(8, 13, 18, 0.98));

    border:
        1px solid rgba(0,
            229,
            255,
            0.25);

    color: #ffffff;

    cursor: pointer;

    text-align: left;

    transition:
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}


.past-fests-toggle button:hover {

    border-color:
        rgba(0,
            229,
            255,
            0.65);

    background:
        rgba(0,
            229,
            255,
            0.045);

    box-shadow:
        0 0 30px rgba(0,
            229,
            255,
            0.06);
}


/* ----------------------------------------------------------
   TOGGLE TEXT
   ---------------------------------------------------------- */

.past-fests-toggle-text {

    font-size:
        clamp(0.85rem,
            2vw,
            1rem);

    font-weight: 800;

    letter-spacing: 3px;

    color:
        #e5e7eb;
}


.past-fests-toggle-year {

    font-size: 0.6rem;

    letter-spacing: 3px;

    color:
        rgba(0,
            229,
            255,
            0.65);
}


.past-fests-toggle-icon {

    width: 35px;

    height: 35px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(0,
            229,
            255,
            0.35);

    color:
        #00e5ff;

    font-size: 1.2rem;

    transition:
        transform 0.35s ease,
        background 0.35s ease;
}


/* ----------------------------------------------------------
   ROTATE + BUTTON OPEN STATE
   ---------------------------------------------------------- */

.past-fests-toggle button.active .past-fests-toggle-icon {

    transform:
        rotate(45deg);

    background:
        rgba(0,
            229,
            255,
            0.08);
}


/* ----------------------------------------------------------
   ARCHIVE LIST
   ---------------------------------------------------------- */

.past-fests-list {

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transform:
        translateY(-10px);

    transition:
        max-height 0.6s cubic-bezier(0.16,
            1,
            0.3,
            1),
        opacity 0.35s ease,
        transform 0.4s ease;
}


.past-fests-list.open {

    max-height: 1000px;

    opacity: 1;

    transform:
        translateY(0);

}


/* ----------------------------------------------------------
   INDIVIDUAL PAST FEST ROW
   ---------------------------------------------------------- */

.past-fest-row {

    min-height: 76px;

    padding:
        0 1.5rem;

    display: grid;

    grid-template-columns:
        60px 1fr 100px 40px;

    align-items: center;

    gap: 1rem;

    color:
        #d1d5db;

    text-decoration: none;

    border:
        1px solid rgba(255,
            255,
            255,
            0.06);

    border-top: none;

    background:
        rgba(10,
            15,
            20,
            0.75);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        padding-left 0.3s ease;
}


/* ----------------------------------------------------------
   ROW HOVER
   ---------------------------------------------------------- */

.past-fest-row:hover {

    padding-left:
        2rem;

    background:
        rgba(0,
            229,
            255,
            0.045);

    border-color:
        rgba(0,
            229,
            255,
            0.18);
}


/* ----------------------------------------------------------
   NUMBER
   ---------------------------------------------------------- */

.past-fest-number {

    font-size:
        0.65rem;

    letter-spacing:
        2px;

    color:
        rgba(0,
            229,
            255,
            0.5);
}


/* ----------------------------------------------------------
   FEST NAME
   ---------------------------------------------------------- */

.past-fest-name {

    font-size:
        clamp(0.9rem,
            2vw,
            1.05rem);

    font-weight:
        800;

    letter-spacing:
        2px;

    color:
        #e5e7eb;
}


/* ----------------------------------------------------------
   YEAR
   ---------------------------------------------------------- */

.past-fest-year {

    font-size:
        0.7rem;

    letter-spacing:
        3px;

    color:
        #717b84;

    text-align:
        right;
}


/* ----------------------------------------------------------
   ARROW
   ---------------------------------------------------------- */

.past-fest-arrow {

    color:
        #00e5ff;

    font-size:
        0.9rem;

    text-align:
        right;

    transition:
        transform 0.3s ease;
}


.past-fest-row:hover .past-fest-arrow {

    transform:
        translate(3px,
            -3px);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .past-fests-toggle {

        width: 92%;

        margin-top:
            2rem;
    }


    .past-fests-toggle button {

        min-height:
            70px;

        padding:
            0 1rem;

        grid-template-columns:
            1fr auto;

        gap:
            0.7rem;
    }


    .past-fests-toggle-year {

        display: none;
    }


    .past-fests-toggle-text {

        font-size:
            0.72rem;

        letter-spacing:
            2px;
    }


    .past-fests-toggle-icon {

        width:
            32px;

        height:
            32px;
    }


    .past-fest-row {

        min-height:
            68px;

        padding:
            0 1rem;

        grid-template-columns:
            35px 1fr 55px 25px;

        gap:
            0.5rem;
    }


    .past-fest-row:hover {

        padding-left:
            1.2rem;
    }


    .past-fest-number {

        font-size:
            0.55rem;
    }


    .past-fest-name {

        font-size:
            0.75rem;

        letter-spacing:
            1px;
    }


    .past-fest-year {

        font-size:
            0.6rem;
    }

}

/* ==========================================================
   UPCOMING EVENTS
   ========================================================== */

.upcoming-events-section {

    position: relative;

    width: 100%;

    padding:
        8rem 5vw;

    overflow: hidden;

    background:
        linear-gradient(180deg,
            rgba(4, 9, 13, 0),
            rgba(0, 229, 255, 0.018),
            rgba(4, 9, 13, 0));
}


/* ----------------------------------------------------------
   SECTION HEADER
   ---------------------------------------------------------- */

.upcoming-events-header {

    position: relative;

    z-index: 2;

    max-width: 900px;

    margin:
        0 auto 4rem;

    text-align: center;
}


.upcoming-events-label {

    display: block;

    margin-bottom: 1rem;

    color:
        rgba(0,
            229,
            255,
            0.75);

    font-size:
        0.65rem;

    font-weight:
        700;

    letter-spacing:
        4px;

    text-transform:
        uppercase;
}


.upcoming-events-header h2 {

    margin: 0;

    color:
        #ffffff;

    font-size:
        clamp(2.2rem,
            6vw,
            4.5rem);

    font-weight:
        900;

    letter-spacing:
        3px;

    line-height:
        1;
}


.upcoming-events-header p {

    max-width:
        600px;

    margin:
        1.5rem auto 0;

    color:
        #788890;

    font-size:
        0.9rem;

    line-height:
        1.8;

}


/* ----------------------------------------------------------
   COMING SOON CARD
   ---------------------------------------------------------- */

.coming-soon-card {

    position: relative;

    width:
        min(1100px,
            92%);

    min-height:
        420px;

    margin:
        0 auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    overflow:
        hidden;

    background:
        rgba(8,
            14,
            19,
            0.82);

    border:
        1px solid rgba(0,
            229,
            255,
            0.18);

    box-shadow:
        0 0 60px rgba(0,
            229,
            255,
            0.035);

    transition:
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}


.coming-soon-card:hover {

    border-color:
        rgba(0,
            229,
            255,
            0.42);

    box-shadow:
        0 0 70px rgba(0,
            229,
            255,
            0.07);
}


/* ----------------------------------------------------------
   TECH GRID
   ---------------------------------------------------------- */

.coming-soon-grid {

    position: absolute;

    inset: 0;

    opacity:
        0.3;

    background-image:
        linear-gradient(rgba(0,
                229,
                255,
                0.06) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(0,
                229,
                255,
                0.06) 1px,
            transparent 1px);

    background-size:
        45px 45px;

    mask-image:
        radial-gradient(ellipse at center,
            black 20%,
            transparent 75%);
}


/* ----------------------------------------------------------
   CENTER GLOW
   ---------------------------------------------------------- */

.coming-soon-card::before {

    content: "";

    position: absolute;

    width:
        500px;

    height:
        500px;

    border-radius:
        50%;

    background:
        radial-gradient(circle,
            rgba(0,
                229,
                255,
                0.09),
            transparent 65%);

    pointer-events:
        none;
}


/* ----------------------------------------------------------
   CONTENT
   ---------------------------------------------------------- */

.coming-soon-content {

    position:
        relative;

    z-index:
        3;

    max-width:
        650px;

    padding:
        3rem;

    text-align:
        center;
}


.coming-soon-status {

    display:
        inline-block;

    margin-bottom:
        1.5rem;

    color:
        #00e5ff;

    font-size:
        0.6rem;

    font-weight:
        700;

    letter-spacing:
        4px;
}


.coming-soon-content h3 {

    margin:
        0;

    color:
        #ffffff;

    font-size:
        clamp(3rem,
            9vw,
            7rem);

    font-weight:
        900;

    letter-spacing:
        6px;

    line-height:
        0.95;

    text-shadow:
        0 0 35px rgba(0,
            229,
            255,
            0.12);
}


.coming-soon-content p {

    max-width:
        520px;

    margin:
        2rem auto 0;

    color:
        #82949c;

    font-size:
        0.9rem;

    line-height:
        1.8;
}


/* ----------------------------------------------------------
   DECORATIVE LINE
   ---------------------------------------------------------- */

.coming-soon-line {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    margin-top:
        2rem;
}


.coming-soon-line span {

    display:
        block;

    height:
        2px;

    background:
        #00e5ff;

    opacity:
        0.7;
}


.coming-soon-line span:nth-child(1) {

    width:
        35px;

    opacity:
        0.25;
}


.coming-soon-line span:nth-child(2) {

    width:
        70px;
}


.coming-soon-line span:nth-child(3) {

    width:
        35px;

    opacity:
        0.25;
}


/* ----------------------------------------------------------
   CORNER DETAILS
   ---------------------------------------------------------- */

.coming-soon-corner {

    position:
        absolute;

    width:
        35px;

    height:
        35px;

    border-color:
        rgba(0,
            229,
            255,
            0.5);

    border-style:
        solid;
}


.coming-soon-corner.top-left {

    top:
        20px;

    left:
        20px;

    border-width:
        1px 0 0 1px;
}


.coming-soon-corner.top-right {

    top:
        20px;

    right:
        20px;

    border-width:
        1px 1px 0 0;
}


.coming-soon-corner.bottom-left {

    bottom:
        20px;

    left:
        20px;

    border-width:
        0 0 1px 1px;
}


.coming-soon-corner.bottom-right {

    bottom:
        20px;

    right:
        20px;

    border-width:
        0 1px 1px 0;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .upcoming-events-section {

        padding:
            5rem 1rem;
    }


    .upcoming-events-header {

        margin-bottom:
            2.5rem;
    }


    .upcoming-events-header h2 {

        font-size:
            2rem;

        letter-spacing:
            2px;
    }


    .upcoming-events-header p {

        padding:
            0 1rem;

        font-size:
            0.78rem;
    }


    .coming-soon-card {

        width:
            100%;

        min-height:
            330px;
    }


    .coming-soon-content {

        padding:
            2rem 1.2rem;
    }


    .coming-soon-content h3 {

        font-size:
            clamp(2.3rem,
                13vw,
                4rem);

        letter-spacing:
            3px;
    }


    .coming-soon-content p {

        font-size:
            0.75rem;

        padding:
            0 0.5rem;
    }


    .coming-soon-corner {

        width:
            25px;

        height:
            25px;
    }

}

/* =========================================================
   ZIRCON NOTIFICATION + ADMIN SYSTEM
   ========================================================= */

/* ---------- NAV ACTIONS ---------- */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 20px;
}


/* ---------- NOTIFICATION BUTTON ---------- */

.notification-btn {
    position: relative;
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.notification-bell {
    font-size: 17px;
    line-height: 1;
}


/* ---------- NOTIFICATION BADGE ---------- */

.notification-badge {
    position: absolute;

    top: -4px;
    right: -4px;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ff6a00;
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;

    border: 2px solid #05070a;
}


/* ---------- ADMIN BUTTON ---------- */

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0 16px;

    border: 1px solid rgba(255, 255, 255, 0.3);

    background: transparent;
    color: #ffffff;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.admin-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}


/* =========================================================
   NOTIFICATION PANEL
   ========================================================= */

.notification-panel {
    position: fixed;

    top: 82px;
    right: 30px;

    width: 380px;
    max-width: calc(100vw - 40px);

    max-height: 70vh;

    background: #080a0d;

    border: 1px solid rgba(255, 255, 255, 0.18);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.65);

    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-12px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    overflow: hidden;
}


/* OPEN STATE */

.notification-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ---------- PANEL HEADER ---------- */

.notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 22px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.notification-label {
    display: block;

    margin-bottom: 5px;

    color: #ff6a00;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.notification-panel-header h3 {
    margin: 0;

    color: #ffffff;

    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* ---------- CLOSE BUTTON ---------- */

.notification-close {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.18);

    background: transparent;
    color: #ffffff;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.notification-close:hover {
    background: #ffffff;
    color: #000000;
}


/* ---------- NOTIFICATION LIST ---------- */

.notification-list {
    max-height: calc(70vh - 90px);

    overflow-y: auto;
}


/* ---------- INDIVIDUAL NOTIFICATION ---------- */

.notification-item {
    display: block;

    padding: 18px 22px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    text-decoration: none;

    transition:
        background 0.2s ease,
        padding-left 0.2s ease;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.04);
    padding-left: 26px;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item-type {
    display: block;

    margin-bottom: 7px;

    color: #ff6a00;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.notification-item-title {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.notification-item-message {
    margin: 0;

    color: rgba(255, 255, 255, 0.65);

    font-size: 12px;
    line-height: 1.6;
}

.notification-item-date {
    display: block;

    margin-top: 10px;

    color: rgba(255, 255, 255, 0.35);

    font-size: 9px;
    letter-spacing: 1px;
}


/* ---------- LOADING ---------- */

.notification-loading {
    padding: 35px 20px;

    text-align: center;

    color: rgba(255, 255, 255, 0.5);

    font-size: 10px;
    letter-spacing: 2px;
}


/* ---------- EMPTY STATE ---------- */

.notification-empty {
    padding: 45px 20px;

    text-align: center;

    color: rgba(255, 255, 255, 0.45);

    font-size: 11px;
    letter-spacing: 1px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .nav-actions {
        gap: 8px;
        margin-left: 10px;
    }

    .notification-btn {
        width: 38px;
        height: 38px;
    }

    .admin-btn {
        min-height: 36px;
        padding: 0 10px;

        font-size: 9px;
        letter-spacing: 1px;
    }

    .notification-panel {
        top: 70px;
        right: 15px;

        width: calc(100vw - 30px);

        max-height: 75vh;
    }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 480px) {

    .admin-btn {
        display: none;
    }

    .notification-panel {
        top: 65px;
        right: 10px;

        width: calc(100vw - 20px);
    }

}

/* TEST NOTIFICATION CSS */

.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.notification-btn {
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #ffffff !important;
    background: transparent !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
}

.admin-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 10px 15px !important;
    border: 1px solid #ffffff !important;
    background: transparent !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 11px !important;
}

.notification-panel {
    position: fixed !important;
    top: 80px !important;
    right: 30px !important;
    width: 380px !important;
    max-width: calc(100vw - 30px) !important;
    max-height: 70vh !important;
    background: #080a0d !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    z-index: 999999 !important;

    display: none !important;
}

.notification-panel.active {
    display: block !important;
}

.notification-panel-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .2) !important;
}

.notification-panel-header h3 {
    margin: 0 !important;
    color: #ffffff !important;
}

.notification-label {
    color: #ff6a00 !important;
}

.notification-list {
    max-height: 55vh !important;
    overflow-y: auto !important;
}

.notification-loading {
    padding: 30px !important;
    color: #ffffff !important;
}

/* Keep every event photograph visible behind its event details. */
.event-card {
    background-color: #080a0d;
}

.event-card .event-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.event-card .event-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.event-card:hover .event-image img {
    transform: none;
}

/* ==========================================================
   PROFESSIONAL FOOTER
   ========================================================== */

.site-footer {
    width: 100%;

    margin-top: 80px;

    background: #070a0d;

    border-top: 1px solid rgba(126, 231, 255, 0.10);

    color: #8f969d;
}


/* ==========================================================
   MAIN FOOTER
   ========================================================== */

.footer-main {
    width: min(1200px, 92%);

    margin: 0 auto;

    padding: 45px 0 40px;

    display: flex;

    justify-content: space-between;

    align-items: flex-start;
}


/* ==========================================================
   FOOTER COLUMNS
   ========================================================== */

.footer-column {
    display: flex;

    flex-direction: column;
}


/* ==========================================================
   LEFT — QUICK LINKS
   ========================================================== */

.footer-left {
    text-align: left;
}

.footer-left h4 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 12px;

    letter-spacing: 2px;

    font-weight: 700;
}

.footer-left a {
    width: fit-content;

    margin: 5px 0;

    color: #8f969d;

    text-decoration: none;

    font-size: 13px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-left a:hover {
    color: #00e5ff;

    transform: translateX(4px);
}


/* ==========================================================
   RIGHT — DEVELOPERS
   ========================================================== */

.footer-right {
    text-align: right;

    align-items: flex-end;
}

.footer-label {
    margin: 0 0 12px;

    color: #777d84;

    font-size: 12px;

    letter-spacing: 1px;
}

.developer-name {
    margin: 3px 0;

    color: #00e5ff;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 0.3px;
}

.team-name {
    margin-top: 14px;

    color: #777d84;

    font-size: 12px;

    letter-spacing: 0.5px;
}

.batch-info {
    margin-top: 12px;
    color: #777d84;
    font-size: 12px;
    letter-spacing: 0.6px;
}

/* ==========================================================
   BOTTOM COPYRIGHT
   ========================================================== */

.footer-bottom {
    width: 100%;

    padding: 18px 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    text-align: center;
}

.footer-bottom p {
    margin: 0;

    color: #777d84;

    font-size: 12px;

    line-height: 1.6;
}

.footer-bottom strong {
    color: #d8dce0;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .footer-main {
        width: 90%;

        padding: 35px 0;

        flex-direction: column;

        gap: 35px;
    }


    .footer-left,
    .footer-right {
        width: 100%;

        text-align: left;

        align-items: flex-start;
    }


    .footer-left a {
        transform: none;
    }


    .footer-left a:hover {
        transform: translateX(4px);
    }


    .footer-bottom {
        padding: 16px 15px;
    }

}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==========================================================
   MEDIA FRAMING — TEAM, GALLERY AND AADHAR XIV
   ========================================================== */

/* A consistent head-and-shoulders frame keeps every supplied team image
   readable while preserving its individual focus point. */
.team-avatar {
    width: min(100%, 168px);
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 auto 1.25rem;
    border-radius: 18px;
    background: #08131c;
}

.team-avatar .team-portrait {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: var(--portrait-position, center 54%);
    transform: scale(var(--portrait-scale, 1));
    transform-origin: var(--portrait-origin, center center);
    transition: transform 0.35s ease;
}

.portrait-low {
    --portrait-position: center 72%;
    --portrait-origin: center 76%;
    --portrait-scale: 1.08;
}

.portrait-high {
    --portrait-position: center 42%;
    --portrait-origin: center 42%;
    --portrait-scale: 1.05;
}

.portrait-tight {
    --portrait-scale: 1.28;
}

.team-card:hover .team-portrait {
    transform: scale(calc(var(--portrait-scale, 1) + 0.03));
}

/* Keep each carousel photo whole, including portrait and landscape shots. */
.carousel-3d-container {
    height: 600px;
}

.carousel-3d-item {
    width: 290px;
    height: 360px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #07141e, #0c2230);
}

.carousel-3d-item img {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0.3rem;
    object-fit: contain;
    object-position: center;
}

/* Caption stays inside the transformed carousel card. */
.carousel-event-name {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
    z-index: 1;
    padding: 0.4rem 0.55rem;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 8px;
    background: rgba(4, 13, 20, 0.78);
    color: #e9fbff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
}

/* Display the official AADHAR XIV image in full in both placements. */
.aadhar-overview-image,
.fest-image--aadhar-xiv {
    background: linear-gradient(145deg, #07141e, #0c2230);
}

.aadhar-overview-image .card-img,
.fest-image--aadhar-xiv img {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: block;
    padding: 0.5rem;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 1023px) {
    .carousel-3d-container {
        height: 465px;
    }

    .carousel-3d-item {
        width: 235px;
        height: 290px;
    }
}

@media (max-width: 768px) {
    .team-avatar {
        width: min(100%, 138px);
        margin-bottom: 1rem;
    }

    .carousel-3d-container {
        height: 390px;
    }

    .carousel-3d-item {
        width: 180px;
        height: 225px;
        max-width: 46vw;
    }

    .fest-image--aadhar-xiv {
        min-height: 230px;
    }
}

@media (max-width: 400px) {
    .carousel-3d-container {
        height: 335px;
    }

    .carousel-3d-item {
        width: 155px;
        height: 195px;
    }
}

/* ========================================================================== 
   TEAM HIERARCHY
   ========================================================================== */

#team .team-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#team .team-row,
#team .team-members-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

#team .team-row-captain {
    grid-template-columns: minmax(0, 310px);
    justify-content: center;
}

#team .team-row-vice {
    grid-template-columns: repeat(2, minmax(0, 310px));
    justify-content: center;
}

#team .team-row-advisory {
    grid-template-columns: repeat(3, minmax(0, 310px));
    justify-content: center;
}

#team .team-avatar-placeholder {
    color: #00e5ff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    #team .team-members-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #team .team-row-captain,
    #team .team-row-vice,
    #team .team-row-advisory {
        grid-template-columns: minmax(0, 310px);
    }
}

@media (max-width: 480px) {
    #team .team-members-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
