/* ========== FONTS ========== */
@font-face {
    font-family: 'Josefin Sans';
    src: url('/assets/fonts/JosefinSans-Bold.woff2') format('woff2'),
         url('/assets/fonts/JosefinSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Josefin Sans';
    src: url('/assets/fonts/JosefinSans-Regular.woff2') format('woff2'),
         url('/assets/fonts/JosefinSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #0B1D2E;
    --navy-light: #0F2438;
    --navy-mid: #132D45;
    --aqua: #22C8B2;
    --laqua: #00FFCC;
    --sand: #E8D5B7;
    --sand-dim: rgba(220, 225, 230, 0.85);
    --coral: #FF6B5A;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(34, 200, 178, 0.12);
    --glass-border-hover: rgba(34, 200, 178, 0.35);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--navy);
    color: var(--sand);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--aqua); border-radius: 3px; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

a {
    color: var(--aqua);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover { color: var(--laqua); }

/* ========== NAV ========== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: all 0.35s ease;
}

.site-nav.scrolled {
    background: rgba(11, 29, 46, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo svg {
    height: 40px;
    width: auto;
    transition: height 0.3s ease;
}

.scrolled .nav-logo svg { height: 32px; }

.nav-logo svg path { fill: var(--aqua); }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--sand-dim);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.25s ease;
    position: relative;
}

.nav-links a:hover { color: var(--aqua); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--aqua);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-right: 4px;
    position: relative;
    top: -2px;
    transition: transform 0.2s ease;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-light);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0;
    min-width: 140px;
    backdrop-filter: blur(20px);
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown:hover > a::before { transform: rotate(-135deg); }

.nav-dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.82rem;
    color: var(--sand-dim);
}

.nav-dropdown-menu a:hover {
    color: var(--aqua);
    background: rgba(34, 200, 178, 0.05);
}

.nav-dropdown-menu a::after { display: none; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 110;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--sand);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
    background: linear-gradient(to bottom, #0B1D2E 0%, #0d3152 40%, #0F2438 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--aqua);
    border: 1px solid var(--glass-border-hover);
    padding: 8px 24px;
    border-radius: 100px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.85;
    color: #fff;
    margin-bottom: 0;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-title span {
    display: block;
    background: linear-gradient(135deg, var(--aqua), var(--laqua));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(5rem, 16vw, 13rem);
    line-height: 0.85;
}

.hero-date {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--sand);
    margin-top: 0;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 4vw, 48px);
    margin-top: 32px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.8s forwards;
}

.countdown span {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown strong {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.countdown em {
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--sand-dim);
    margin-top: 8px;
}

/* Wave */
.wave-divider {
    position: relative;
    z-index: 3;
    margin-top: -1px;
    line-height: 0;
    background: #0F2438;
}

.wave-divider svg {
    width: 100%;
    height: 80px;
    display: block;
}

.wave-divider path {
    animation: waveShift 8s ease-in-out infinite alternate;
}

@keyframes waveShift {
    0% { d: path('M0,40 C240,80 480,0 720,40 C960,80 1200,0 1440,40 L1440,80 L0,80 Z'); }
    100% { d: path('M0,40 C240,0 480,80 720,40 C960,0 1200,80 1440,40 L1440,80 L0,80 Z'); }
}

/* ========== SECTIONS ========== */
.section {
    padding: 100px 24px;
    position: relative;
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.section-alt {
    background: var(--navy-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--sand-dim);
    font-size: 1.05rem;
    max-width: 560px;
    margin-bottom: 56px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

/* ========== ABOUT CARDS ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--aqua), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    border-color: var(--glass-border-hover);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
}

.card:hover::before { opacity: 1; }

.card h3 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 12px;
}

.card p {
    font-size: 0.92rem;
    color: var(--sand-dim);
    line-height: 1.6;
}

.card p a { color: var(--aqua); }

/* ========== VENUE ========== */
.venue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.venue-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.venue-image img {
    width: 100%;
    display: block;
    border-radius: 16px;
    filter: brightness(0.85) saturate(0.9);
    transition: filter 0.4s ease;
}

.venue-image:hover img {
    filter: brightness(0.95) saturate(1);
}

.venue-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 29, 46, 0.3), rgba(34, 200, 178, 0.1));
    border-radius: 16px;
    pointer-events: none;
}

.venue-text p {
    color: var(--sand-dim);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.venue-text a { color: var(--aqua); }

/* ========== TICKETS ========== */
.tickets-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 48px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.tickets-box p {
    color: var(--sand-dim);
    font-size: 1rem;
}

/* ========== SPONSORS TERMINAL ========== */
.terminal {
    background: #0a0e14;
    border: 1px solid rgba(34, 200, 178, 0.2);
    border-radius: 12px;
    padding: 32px;
    font-family: 'DM Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 2;
    max-width: 720px;
    margin: 0 auto;
    overflow-x: auto;
}

.terminal-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }

.prompt { color: var(--aqua); }
.sql-keyword { color: var(--coral); }
.sql-string { color: var(--laqua); }
.sql-comment { color: var(--sand-dim); }
.terminal-result { color: rgba(232, 213, 183, 0.4); padding-left: 4px; }

.cursor {
    display: inline-block;
    color: var(--aqua);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.sponsor-contact {
    text-align: center;
    margin-top: 40px;
}

.sponsor-contact p {
    color: var(--sand-dim);
    font-size: 0.95rem;
}

.sponsor-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.sponsor-level {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.sponsor-level:hover { border-color: var(--glass-border-hover); }

.sponsor-level img {
    max-width: 80px;
    margin-bottom: 16px;
    opacity: 0.85;
}

.sponsor-level h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
}

.sponsor-level strong {
    font-size: 0.8rem;
    color: var(--sand-dim);
    font-weight: 400;
}

/* ========== FAQ ========== */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.faq-item {
    padding: 32px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.faq-item:hover { border-color: var(--glass-border-hover); }

.faq-item h3 {
    font-size: 1rem;
    color: var(--aqua);
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--sand-dim);
    line-height: 1.65;
}

/* ========== GUIDELINE ========== */
.guideline-text {
    max-width: 720px;
    color: var(--sand-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== SUBSCRIBE ========== */
.subscribe-section {
    background: linear-gradient(135deg, var(--aqua), var(--laqua));
    padding: 80px 24px;
    text-align: center;
}

.subscribe-section .section-inner { max-width: 640px; }

.subscribe-section h2 {
    color: var(--navy);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: 32px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.subscribe-form input[type="text"],
.subscribe-form input[type="email"] {
    width: 100%;
    max-width: 400px;
    padding: 14px 20px;
    border: 2px solid var(--navy);
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.subscribe-form input[type="text"]:focus,
.subscribe-form input[type="email"]:focus {
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(11, 29, 46, 0.25);
}

.subscribe-form input::placeholder { color: rgba(255, 255, 255, 0.5); }

.subscribe-form input[type="submit"] {
    padding: 14px 40px;
    border: 2px solid var(--navy);
    border-radius: 8px;
    background: var(--navy);
    color: var(--aqua);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.subscribe-form input[type="submit"]:hover {
    background: var(--navy-light);
    color: var(--laqua);
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--navy-light);
    padding: 64px 24px;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
}

.footer-about {
    color: var(--sand-dim);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer-col strong {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sand);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--aqua);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-about a {
    display: inline;
}

.footer-divider {
    border: none;
    height: 1px;
    background: rgba(232, 213, 183, 0.1);
    margin: 40px 0 24px;
    grid-column: 1 / -1;
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    color: rgba(232, 213, 183, 0.3);
    font-size: 0.78rem;
}

.footer-bottom a { color: rgba(232, 213, 183, 0.4); }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.stagger-children .animate-in:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .animate-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .animate-in:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .animate-in:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .animate-in:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .animate-in:nth-child(6) { transition-delay: 0.3s; }
.stagger-children .animate-in:nth-child(7) { transition-delay: 0.35s; }
.stagger-children .animate-in:nth-child(8) { transition-delay: 0.4s; }

/* ========== CTA BUTTON ========== */
.btn-aqua {
    display: inline-block;
    padding: 12px 32px;
    background: var(--aqua);
    color: var(--navy);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--aqua);
}

.btn-aqua:hover {
    background: transparent;
    color: var(--aqua);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: rgba(11, 29, 46, 0.97);
        backdrop-filter: blur(20px);
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        z-index: 105;
        padding: 100px 24px 60px;
        overflow-y: auto;
    }

    .nav-links.open a {
        font-size: 1.2rem;
        color: var(--sand);
    }

    .nav-links.open .nav-dropdown-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
        position: static;
        background: transparent;
        border: none;
        padding: 0;
        text-align: center;
        transform: none;
        min-width: 0;
    }

    .nav-links.open .nav-dropdown-menu::before { display: none; }

    .nav-links.open .nav-dropdown-menu a {
        font-size: 0.95rem;
        color: var(--aqua);
        padding: 4px 0;
    }

    .nav-links.open .nav-dropdown {
        text-align: center;
    }

    .nav-links.open .nav-dropdown > a::before { display: none; }

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

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

    .venue-image { order: -1; }

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

    .sponsor-levels { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 640px) {
    .section { padding: 64px 20px; }

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

    .countdown { gap: 12px; }

    .countdown strong { font-size: 2rem; }

    .subscribe-form { padding: 0 16px; }
}

/* ========== PAGE CONTENT (privacy, coc) ========== */
.page-content {
    color: var(--sand-dim);
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 800px;
}

.page-content h2 {
    font-size: 1.4rem;
    color: #fff;
    margin-top: 40px;
    margin-bottom: 12px;
}

.page-content p {
    margin-bottom: 16px;
}

.page-content strong {
    color: var(--sand);
}

.page-content ul {
    margin: 12px 0 20px 24px;
    list-style: disc;
}

.page-content ul li {
    margin-bottom: 8px;
}

.page-content a {
    color: var(--aqua);
}

/* Hide form hidden fields cleanly */
input[style*="display:none"] { display: none !important; }
