/* =========================================
   CODE CARNAGE 2.0 — Global Styles
   Purplish-Pink & Black Color Theme
   ========================================= */

:root {
    /* Primary accent: purplish-pink */
    --accent: #d946ef;
    --accent-light: #e879f9;
    --accent-lighter: #f0abfc;
    --accent-dark: #a21caf;
    --accent-darker: #86198f;
    --accent-glow: rgba(217, 70, 239, 0.35);
    --accent-glow-strong: rgba(217, 70, 239, 0.6);

    /* Background tones — Zenith-matched pure black */
    --bg-primary: #050505;
    --bg-secondary: #000000;
    --bg-card: rgba(18, 18, 20, 0.65);
    --bg-card-hover: rgba(28, 28, 32, 0.75);

    /* Text */
    --text-primary: #f0f0f0;
    --text-secondary: #888888;
    --text-muted: #555555;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(217, 70, 239, 0.2);

    /* Grid pattern — Zenith copper/orange dot grid */
    --grid-color: rgba(255, 255, 255, 0.025);
    --grid-dot-color: rgba(255, 90, 31, 0.18);
    --grid-spacing: 40px;

    /* Typography */
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-padding: 100px;
    --container-max: 1100px;
}

/* =========================================
   Reset & Base
   ========================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Grid + Dot pattern background — Zenith copper-dot grid */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        /* Copper/orange intersection dots */
        radial-gradient(circle, var(--grid-dot-color) 1.2px, transparent 1.2px),
        /* Faint horizontal grid lines */
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px),
        /* Faint vertical grid lines */
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px);
    background-size:
        var(--grid-spacing) var(--grid-spacing),
        var(--grid-spacing) var(--grid-spacing),
        var(--grid-spacing) var(--grid-spacing);
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

/* Grain / noise texture overlay — premium tactile feel */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    mix-blend-mode: screen;
}

/* Zenith-style blue vignette glow overlays */
.zenith-glow {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(120px);
}

.zenith-glow-tl {
    top: -15%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 80, 220, 0.12) 0%, transparent 70%);
}

.zenith-glow-br {
    bottom: -10%;
    right: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 60, 200, 0.08) 0%, transparent 70%);
}

.zenith-glow-center {
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(62, 32, 19, 0.25) 0%, transparent 70%);
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.accent-text {
    color: var(--accent);
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    font-style: italic;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

/* Section Dividers */
.section-divider {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    position: relative;
    z-index: 1;
}

/* =========================================
   Animations
   ========================================= */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* =========================================
   Navbar
   ========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.9);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hack-name {
    font-family: var(--font-serif);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--accent);
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--accent);
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-icon {
    transition: transform 0.4s ease;
    border-radius: 7px;
    object-fit: contain;
}

.nav-logo:hover .logo-icon {
    transform: scale(1.1);
}

.nav-login-btn {
    padding: 8px 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

/* =========================================
   Hero Section
   ========================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 350px;
    height: 500px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.hero-glow-left {
    bottom: 20%;
    left: -5%;
    background: var(--accent-dark);
    opacity: 0.2;
}

.hero-glow-right {
    bottom: 30%;
    right: -5%;
    background: var(--accent-dark);
    opacity: 0.15;
}

/* Animated shooting star accent bars */
.hero-vertical-bar {
    position: absolute;
    width: 1px;
    height: 500px;
    border-radius: 2px;
    z-index: 1;
    overflow: hidden;
}

.hero-bar-left {
    top: 10%;
    left: 6%;
}

.hero-bar-left-side {
    top: 10%;
    left: 16%;
}

.hero-bar-right {
    top: 15%;
    right: 6%;
}

/* The shooting star trail */
.hero-vertical-bar::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 80px;
    border-radius: 2px;
    background: linear-gradient(to top, transparent, var(--accent), rgba(255, 255, 255, 0.9));
    box-shadow: 0 0 15px var(--accent-glow-strong), 0 0 40px var(--accent-glow);
    animation: shootingStar 3s ease-in-out infinite;
}

.hero-bar-right::before {
    animation: shootingStar 4.5s ease-in-out infinite 3s;
    background: linear-gradient(to top, transparent, var(--accent), rgba(255, 255, 255, 0.9));
    animation: shootingStar 5s ease-in-out infinite;
}

/* The faint static trail line */
.hero-vertical-bar::after {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    left: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(217, 70, 239, 0.15), transparent);
}

.hero-vertical-bar-another::before {
    content: '';
    position: absolute;
    width: 1.25px;
    height: 80px;
    border-radius: 2px;
    background: linear-gradient(to top, transparent, var(--accent), rgba(255, 255, 255, 0.9));
    box-shadow: 0 0 15px var(--accent-glow-strong), 0 0 40px var(--accent-glow);
    animation: shootingStar 4s ease-in-out infinite;
}

.hero-vertical-bar-another::after {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    left: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(217, 70, 239, 0.15), transparent);
}

@keyframes shootingStar {
    0% {
        top: 100%;
        opacity: 0;
    }

    10% {
        opacity: 0.9;
    }

    70% {
        opacity: 0.9;
    }

    100% {
        top: -40%;
        opacity: 0;
    }
}

@keyframes shootingStarDown {
    0% {
        top: -40%;
        opacity: 0;
    }

    10% {
        opacity: 0.9;
    }

    70% {
        opacity: 0.9;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-sponsors {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.hero-sponsors .sponsor-name {
    font-family: var(--font-serif);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(3.5rem, 7vw, 8rem);
    color: var(--accent);
    line-height: 1.1;
    letter-spacing: 0.00em;
}

.hero-sponsors .sponsor-presented {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    font-style: normal;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-sponsors .sponsor-numinous {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 4rem);
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.sponsor-divider {
    display: none;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 6px;
    border: 1px solid var(--border-accent);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1.0rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================================
   Buttons
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    position: relative;
}

.btn-white {
    background: #ffffff;
    color: #111111;
}

.btn-white:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
}

.btn-dark {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-large {
    padding: 12px 30px;
    font-size: 0.9rem;
}

/* =========================================
   Stats Section (Big numbers)
   ========================================= */

.stats-section {
    padding: 80px 24px 60px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.stats-marquee {
    width: 100%;
    overflow: hidden;
    margin-bottom: 24px;
}

.stats-track {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-mega {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-mega-number {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    color: var(--accent);
}

.stat-mega-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.stats-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 400;
    font-style: italic;
    text-align: center;
    color: var(--text-primary);
    margin-top: 16px;
}

/* =========================================
   Timeline Section (Zenith Glassmorphism)
   ========================================= */

.timeline-section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

/* Zenith-style ambient glow behind timeline */
.timeline-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(62, 32, 19, 0.2) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.timeline-zenith {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 1;
}

/* The vertical track container — centered */
.timeline-track {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    z-index: 1;
}

/* The static background line */
.timeline-track-line {
    position: absolute;
    inset: 0;
    width: 2px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.04) 8%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.04) 92%,
            transparent 100%);
}

/* The animated progress line — flowing energy glow like Zenith */
.timeline-track-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0%;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 60%,
            rgba(255, 255, 255, 0.7) 85%,
            #ffffff 100%);
    box-shadow:
        0 0 6px rgba(255, 255, 255, 0.5),
        0 0 15px rgba(255, 255, 255, 0.2),
        0 0 35px rgba(217, 70, 239, 0.1),
        0 0 60px rgba(217, 70, 239, 0.05);
    transition: height 0.05s linear;
    border-radius: 0 0 2px 2px;
}

/* Flowing orb at the tip of the progress */
.timeline-track-progress::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(217, 70, 239, 0.3);
}

/* Each timeline event — Zenith premium glass card */
.tl-event {
    position: relative;
    margin-bottom: 130px;
    padding: 30px 34px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.5s ease,
        box-shadow 0.5s ease,
        background 0.5s ease;
    overflow: hidden;
}

.tl-event.tl-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Reflective glass shine on card — the "glossy finish" */
.tl-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.0) 10%,
            rgba(255, 255, 255, 0.12) 30%,
            rgba(255, 255, 255, 0.18) 50%,
            rgba(255, 255, 255, 0.12) 70%,
            rgba(255, 255, 255, 0.0) 90%,
            transparent 100%);
    border-radius: 18px 18px 0 0;
}

/* Diagonal reflective sweep — premium glossy */
.tl-event::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 0%,
            rgba(255, 255, 255, 0.015) 40%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.015) 60%,
            transparent 100%);
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.tl-event:hover::after {
    left: 120%;
}

.tl-event:hover {
    border-color: rgba(217, 70, 239, 0.12);
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 0 30px rgba(217, 70, 239, 0.04),
        0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tl-event:last-child {
    margin-bottom: 0;
}

/* The glowing orb dot — on the center line */
.tl-glow-orb {
    position: absolute;
    left: -9px;
    top: 34px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.5) 35%,
            rgba(217, 70, 239, 0.12) 60%,
            transparent 100%);
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.15),
        0 0 40px rgba(217, 70, 239, 0.08);
    z-index: 2;
    opacity: 0;
    transform: scale(0.2);
    transition: opacity 0.6s ease 0.3s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.tl-event.tl-visible .tl-glow-orb {
    opacity: 1;
    transform: scale(1);
}

/* Content styling — serif italic titles like Zenith */
.tl-event-content h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.tl-event-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    opacity: 0.85;
}

/* =========================================
   Problem Statements Section
   ========================================= */

.ps-section {
    padding: var(--section-padding) 0;
    position: relative;
}

.ps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.ps-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Glass highlight on top edge */
.ps-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.ps-card:hover {
    border-color: rgba(217, 70, 239, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    box-shadow:
        0 0 30px rgba(217, 70, 239, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ps-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.15);
}

.ps-card h4 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.ps-card p {
    font-size: 1.0rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ps-cta {
    text-align: center;
    margin-top: 32px;
}

/* =========================================
   Prize Breakdown Section
   ========================================= */

.prize-section {
    padding: var(--section-padding) 0;
    position: relative;
}

.prize-layout-centered {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.prize-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.3s ease;
}

.prize-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.prize-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.trophy-icon {
    opacity: 0.6;
}

.trophy-silver {
    opacity: 0.4;
}

.trophy-bronze {
    opacity: 0.2;
}

.prize-rank-badge {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 3px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.prize-amount {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.prize-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.tl-eve {
    position: relative;
    margin-bottom: 20px;
    padding: 30px 34px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    opacity: 1;
    transform: translateY(50px) scale(0.96);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.5s ease,
        box-shadow 0.5s ease,
        background 0.5s ease;
    overflow: hidden;
}


.tl-eve::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.0) 10%,
            rgba(255, 255, 255, 0.12) 30%,
            rgba(255, 255, 255, 0.18) 50%,
            rgba(255, 255, 255, 0.12) 70%,
            rgba(255, 255, 255, 0.0) 90%,
            transparent 100%);
    border-radius: 18px 18px 0 0;
}

/* Diagonal reflective sweep — premium glossy */
.tl-eve::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 0%,
            rgba(255, 255, 255, 0.015) 40%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.015) 60%,
            transparent 100%);
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.tl-eve:hover::after {
    left: 120%;
}

.tl-eve:hover {
    border-color: rgba(217, 70, 239, 0.12);
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 0 30px rgba(217, 70, 239, 0.04),
        0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tl-eve:last-child {
    margin-bottom: 0;
}


/* =========================================
   Organizers Section — Zenith-Style Animated Cards
   ========================================= */

.organizers-section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

/* Ambient glow behind organizers */
.organizers-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(217, 70, 239, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.organizers-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.organizers-text {
    position: sticky;
    top: 120px;
}

.organizers-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.organizers-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.organizers-link {
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
}

.organizers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Zenith-style organizer card with 3D tilt */
.organizer-card.zenith-card {
    position: relative;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 22px;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(800px) rotateX(0) rotateY(0) scale(1);
    transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        background 0.4s ease;
    will-change: transform;
    cursor: default;
}

/* Top edge glass highlight — like Zenith */
.organizer-card.zenith-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.0) 10%,
            rgba(255, 255, 255, 0.12) 30%,
            rgba(255, 255, 255, 0.18) 50%,
            rgba(255, 255, 255, 0.12) 70%,
            rgba(255, 255, 255, 0.0) 90%,
            transparent 100%);
    border-radius: 16px 16px 0 0;
    z-index: 3;
}

/* Diagonal reflective sweep on hover */
.zenith-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 0%,
            rgba(255, 255, 255, 0.015) 40%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.015) 60%,
            transparent 100%);
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
}

.organizer-card.zenith-card:hover .zenith-card-shine {
    left: 120%;
}

/* Accent glow that follows mouse position */
.zenith-card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.15) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    z-index: 1;
}

.organizer-card.zenith-card:hover .zenith-card-glow {
    opacity: 1;
}

/* Hover state */
.organizer-card.zenith-card:hover {
    border-color: rgba(217, 70, 239, 0.15);
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 0 30px rgba(217, 70, 239, 0.06),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Staggered entrance animation */
.organizer-card.zenith-card.animate-on-scroll {
    opacity: 0;
    transform: perspective(800px) rotateX(8deg) translateY(40px) scale(0.95);
}

.organizer-card.zenith-card.animate-on-scroll.visible {
    opacity: 1;
    transform: perspective(800px) rotateX(0) translateY(0) scale(1);
}

/* Stagger delays using data-delay attribute */
.organizer-card.zenith-card[data-delay="0"].animate-on-scroll {
    transition-delay: 0ms;
}

.organizer-card.zenith-card[data-delay="1"].animate-on-scroll {
    transition-delay: 80ms;
}

.organizer-card.zenith-card[data-delay="2"].animate-on-scroll {
    transition-delay: 160ms;
}

.organizer-card.zenith-card[data-delay="3"].animate-on-scroll {
    transition-delay: 240ms;
}

.organizer-card.zenith-card[data-delay="4"].animate-on-scroll {
    transition-delay: 320ms;
}

.organizer-card.zenith-card[data-delay="5"].animate-on-scroll {
    transition-delay: 400ms;
}

.organizer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 3;
}

.organizer-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(217, 70, 239, 0.2);
    box-shadow: 0 0 12px rgba(217, 70, 239, 0.08);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.15), rgba(162, 28, 175, 0.25));
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.8rem;
}

.organizer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.organizer-info {
    position: relative;
    z-index: 3;
}

.organizer-info h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.organizer-company {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.organizer-card>p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    z-index: 3;
}

/* =========================================
   Sponsors Section
   ========================================= */

.sponsors-section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

/* Ambient glow behind sponsors */
.sponsors-section::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(217, 70, 239, 0.05) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.sponsors-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: -40px;
    margin-bottom: 50px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 3-item sponsors grid — overrides to 3 columns and caps width so cards stay centered */
.sponsors-grid--3col {
    grid-template-columns: repeat(3, 1fr);
    max-width: 820px;
}

/* Each sponsor card — glassmorphism with 3D tilt */
.sponsor-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px; /* Increased from 140px */
    padding: 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(800px) rotateX(0) rotateY(0) scale(1);
    transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        background 0.4s ease;
    will-change: transform;
    text-decoration: none;
    cursor: pointer;
}

/* Top edge glass highlight */
.sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.0) 10%,
            rgba(255, 255, 255, 0.12) 30%,
            rgba(255, 255, 255, 0.18) 50%,
            rgba(255, 255, 255, 0.12) 70%,
            rgba(255, 255, 255, 0.0) 90%,
            transparent 100%);
    border-radius: 18px 18px 0 0;
    z-index: 3;
}

/* Diagonal reflective sweep */
.sponsor-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 0%,
            rgba(255, 255, 255, 0.015) 40%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.015) 60%,
            transparent 100%);
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 2;
}

.sponsor-card:hover .sponsor-card-shine {
    left: 120%;
}

/* Accent glow on hover */
.sponsor-card-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.12) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    z-index: 1;
}

.sponsor-card:hover .sponsor-card-glow {
    opacity: 1;
}

/* Hover state */
.sponsor-card:hover {
    border-color: rgba(217, 70, 239, 0.15);
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 0 30px rgba(217, 70, 239, 0.06),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Staggered entrance animation */
.sponsor-card.animate-on-scroll {
    opacity: 0;
    transform: perspective(800px) rotateX(8deg) translateY(40px) scale(0.95);
}

.sponsor-card.animate-on-scroll.visible {
    opacity: 1;
    transform: perspective(800px) rotateX(0) translateY(0) scale(1);
}

.sponsor-card[data-delay="0"].animate-on-scroll {
    transition-delay: 0ms;
}

.sponsor-card[data-delay="1"].animate-on-scroll {
    transition-delay: 100ms;
}

.sponsor-card[data-delay="2"].animate-on-scroll {
    transition-delay: 200ms;
}

.sponsor-card[data-delay="3"].animate-on-scroll {
    transition-delay: 300ms;
}

/* Logo wrapper and image */
.sponsor-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 3;
}

.sponsor-logo-img {
    max-width: 180px;  /* Increased from 120px */
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.05);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.sponsor-card:hover .sponsor-logo-img {
    filter: brightness(1.1) contrast(1.1);
    transform: scale(1.08);
}

/* =========================================
   Venue Section
   ========================================= */

.venue-section {
    padding: var(--section-padding) 0;
    position: relative;
}

.venue-label {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.venue-label strong {
    color: var(--text-primary);
}

.venue-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: start;
}

.venue-map {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
}

.venue-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transport-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.transport-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.transport-item strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.transport-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =========================================
   FAQ Section
   ========================================= */

.faq-section {
    padding: var(--section-padding) 0;
    position: relative;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-item.active {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.faq-item.active .faq-question span:first-child {
    color: var(--accent);
}

.faq-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-vert {
    opacity: 0;
}

.faq-vert {
    transition: opacity 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =========================================
   Footer CTA Section
   ========================================= */

.footer-cta {
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

.footer-cta-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 80px 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-cta-glow {
    position: absolute;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom center, var(--accent) 0%, var(--accent-dark) 30%, transparent 70%);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.footer-cta-content {
    position: relative;
    z-index: 1;
}

.footer-cta-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.footer-cta-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* =========================================
   Footer
   ========================================= */

.footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-link {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: flex;
}

.social-link:hover {
    color: var(--text-primary);
}

/* =========================================
   Responsive Design
   ========================================= */

@media (max-width: 1024px) {
    .organizers-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .organizers-text {
        position: static;
    }

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

    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }

    .sponsors-grid--3col {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }
    
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .hero-vertical-bar {
        display: none;
    }

    .stats-track {
        gap: 30px;
    }

    .stat-mega-number {
        font-size: clamp(2rem, 6vw, 4rem);
    }

    .timeline-zenith {
        padding: 0 16px;
    }

    .timeline-track {
        display: none;
    }

    .tl-glow-orb {
        display: none;
    }

    .tl-event {
        padding: 22px 20px;
        margin-bottom: 20px;
    }

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

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

    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

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

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

    .stats-track {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================
   Custom Scrollbar
   ========================================= */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================================
   Selection
   ========================================= */

::selection {
    background: rgba(217, 70, 239, 0.3);
    color: var(--text-primary);
}

/* =========================================
   Gallery Section — Cinematic Film Reel
   ========================================= */

.gallery-section {
    /* Hidden by default */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        max-height 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    position: relative;
    z-index: 1;
}

.gallery-section.gallery-open {
    max-height: 700px;
    opacity: 1;
    pointer-events: auto;
    padding: 70px 0 60px;
}

.gallery-inner {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Header row with flanking lines */
.gallery-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-bottom: 10px;
    padding: 0 40px;
}

.gallery-header-line {
    flex: 1;
    max-width: 180px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 70, 239, 0.4), transparent);
}

.gallery-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text-primary);
    white-space: nowrap;
}

.gallery-subtitle {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-bottom: 32px;
}

/* ---- Film strip wrapper ---- */
.film-reel-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

/* Top & bottom sprocket-hole edges */
.film-reel-edge {
    background: #0c0c0c;
    border-left: none;
    border-right: none;
    height: 28px;
    width: 100%;
    position: relative;
    z-index: 2;
    overflow: hidden;
    flex-shrink: 0;
}

.film-reel-edge-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.film-reel-edge-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Animated sprocket holes — created via repeating gradient */
.film-holes-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    /* wide enough to seamlessly loop */
    width: 200%;
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 26px,
        rgba(255,255,255,0.0) 26px,
        rgba(255,255,255,0.0) 30px
    );
    /* punched holes */
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent       0px,
            transparent       14px,
            rgba(30,30,30,1)  14px,
            rgba(30,30,30,1)  34px,
            transparent       34px,
            transparent       54px
        );
    /* overlay a thin rect "hole" at each interval */
    display: flex;
    align-items: center;
}

/* We use a pseudo-element technique via box-shadows instead */
.film-reel-edge::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    /* infinite repeating holes via box-shadow — generated by JS */
    height: 14px;
    width: 18px;
    border-radius: 3px;
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow:
        40px 0 0 0 var(--bg-primary), 80px 0 0 0 var(--bg-primary), 120px 0 0 0 var(--bg-primary),
        160px 0 0 0 var(--bg-primary), 200px 0 0 0 var(--bg-primary), 240px 0 0 0 var(--bg-primary),
        280px 0 0 0 var(--bg-primary), 320px 0 0 0 var(--bg-primary), 360px 0 0 0 var(--bg-primary),
        400px 0 0 0 var(--bg-primary), 440px 0 0 0 var(--bg-primary), 480px 0 0 0 var(--bg-primary),
        520px 0 0 0 var(--bg-primary), 560px 0 0 0 var(--bg-primary), 600px 0 0 0 var(--bg-primary),
        640px 0 0 0 var(--bg-primary), 680px 0 0 0 var(--bg-primary), 720px 0 0 0 var(--bg-primary),
        760px 0 0 0 var(--bg-primary), 800px 0 0 0 var(--bg-primary), 840px 0 0 0 var(--bg-primary),
        880px 0 0 0 var(--bg-primary), 920px 0 0 0 var(--bg-primary), 960px 0 0 0 var(--bg-primary),
        1000px 0 0 0 var(--bg-primary), 1040px 0 0 0 var(--bg-primary), 1080px 0 0 0 var(--bg-primary),
        1120px 0 0 0 var(--bg-primary), 1160px 0 0 0 var(--bg-primary), 1200px 0 0 0 var(--bg-primary),
        1240px 0 0 0 var(--bg-primary), 1280px 0 0 0 var(--bg-primary), 1320px 0 0 0 var(--bg-primary),
        1360px 0 0 0 var(--bg-primary), 1400px 0 0 0 var(--bg-primary), 1440px 0 0 0 var(--bg-primary),
        1480px 0 0 0 var(--bg-primary), 1520px 0 0 0 var(--bg-primary), 1560px 0 0 0 var(--bg-primary),
        1600px 0 0 0 var(--bg-primary), 1640px 0 0 0 var(--bg-primary), 1680px 0 0 0 var(--bg-primary),
        1720px 0 0 0 var(--bg-primary), 1760px 0 0 0 var(--bg-primary), 1800px 0 0 0 var(--bg-primary),
        1840px 0 0 0 var(--bg-primary), 1880px 0 0 0 var(--bg-primary), 1920px 0 0 0 var(--bg-primary),
        1960px 0 0 0 var(--bg-primary), 2000px 0 0 0 var(--bg-primary), 2040px 0 0 0 var(--bg-primary),
        2080px 0 0 0 var(--bg-primary), 2120px 0 0 0 var(--bg-primary), 2160px 0 0 0 var(--bg-primary),
        2200px 0 0 0 var(--bg-primary), 2240px 0 0 0 var(--bg-primary), 2280px 0 0 0 var(--bg-primary),
        2320px 0 0 0 var(--bg-primary), 2360px 0 0 0 var(--bg-primary), 2400px 0 0 0 var(--bg-primary);
}

/* Scrollable image strip */
.film-reel-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    background: #080808;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
    /* No padding — images are flush */
}

.film-reel-scroll::-webkit-scrollbar {
    display: none;
}

.film-reel-scroll.is-dragging {
    cursor: grabbing;
}

/* The inner track that holds all images */
.film-reel-track {
    display: flex;
    align-items: stretch;
    gap: 6px;
    padding: 10px 6px;
    width: max-content;
    /* CSS-driven infinite left scroll */
    animation: filmRoll 28s linear infinite;
}

.film-reel-track.paused {
    animation-play-state: paused;
}

@keyframes filmRoll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Each image frame */
.film-frame {
    flex-shrink: 0;
    position: relative;
    height: 320px;
    /* width is set per-image based on aspect ratio via inline style */
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.film-frame:hover {
    transform: scale(1.035) translateY(-4px);
    border-color: rgba(217, 70, 239, 0.35);
    box-shadow:
        0 12px 40px rgba(0,0,0,0.6),
        0 0 20px rgba(217, 70, 239, 0.15);
    z-index: 10;
}

/* Film grain overlay on each frame */
.film-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.5;
    z-index: 1;
}

/* Slight colour-grade overlay — cinematic look */
.film-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(217, 70, 239, 0.04) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.25) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.film-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    filter: saturate(0.88) contrast(1.05);
    transition: filter 0.35s ease;
}

.film-frame:hover img {
    filter: saturate(1.05) contrast(1.05);
}

/* Left / right gradient vignettes */
.film-vignette {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 5;
    pointer-events: none;
}

.film-vignette-left {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary) 0%, transparent 100%);
}

.film-vignette-right {
    right: 0;
    background: linear-gradient(270deg, var(--bg-primary) 0%, transparent 100%);
}

/* Scroll hint */
.gallery-scroll-hint {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-top: 14px;
    opacity: 0.6;
}

/* Animated dots on the hint */
@keyframes galleryHintPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1;   }
}
.gallery-scroll-hint::after {
    content: ' ···';
    animation: galleryHintPulse 2s ease-in-out infinite;
}

/* =========================================
   24-Hour Hackathon Countdown Timer
   ========================================= */

.hackathon-timer {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0 auto 32px;
    padding: 24px 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(217, 70, 239, 0.18);
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(217, 70, 239, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Top glass shine line */
.hackathon-timer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.0) 10%,
        rgba(217, 70, 239, 0.35) 40%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(217, 70, 239, 0.35) 60%,
        rgba(255, 255, 255, 0.0) 90%,
        transparent 100%);
}

/* Ambient corner glow */
.hackathon-timer::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(217, 70, 239, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Label row */
.timer-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Status dot — grey = idle, green = running, red = finished */
.timer-label-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #555;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.timer-label-dot.running {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
    animation: timerDotPulse 1.4s ease-in-out infinite;
}
.timer-label-dot.finished {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow-strong);
}

@keyframes timerDotPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* Digit display */
.timer-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.timer-digit {
    font-family: var(--font-mono);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1;
    min-width: 2.4ch;
    text-align: center;
    /* Flip animation on digit change */
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.timer-digit.flip {
    transform: translateY(-6px) scale(0.92);
    opacity: 0.4;
}

/* Accent colour for hours when running */
.hackathon-timer.timer-running .timer-digit {
    color: var(--accent-light);
    text-shadow: 0 0 20px rgba(217, 70, 239, 0.35);
}

.hackathon-timer.timer-finished .timer-digit {
    color: #22c55e;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.timer-unit-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.timer-colon {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: var(--text-muted);
    margin-bottom: 14px;  /* offset to align with digits, not labels */
    animation: colonBlink 1s step-start infinite;
}

@keyframes colonBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

/* Admin Panel — hidden by default */
.timer-admin-panel {
    display: none;
    flex-direction: row;
    gap: 10px;
    margin-top: 8px;
}

.timer-admin-panel.admin-visible {
    display: flex;
}

/* Admin buttons */
.timer-admin-btn {
    padding: 7px 20px;
    border-radius: 100px;
    border: 1px solid var(--border-accent);
    background: rgba(217, 70, 239, 0.08);
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timer-admin-btn:hover {
    background: rgba(217, 70, 239, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 14px rgba(217, 70, 239, 0.2);
}

.timer-btn-reset {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.timer-btn-reset:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    color: var(--text-primary);
}

/* Admin badge — small pill shown in timer when admin mode is active */
.timer-admin-badge {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    padding: 2px 7px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 480px) {
    .hackathon-timer {
        padding: 18px 20px 16px;
    }
    .timer-digit {
        font-size: 2.2rem;
        min-width: 2.2ch;
    }
    .timer-colon {
        font-size: 2rem;
    }
}