/* ========================================
   OUQIS — Quantum Reality
   A website that feels like being inside
   a quantum computer
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
    /* The void */
    --void: #020205;
    --void-up: #08080f;
    --void-card: #0c0c14;

    /* Quantum spectrum */
    --q-violet: #7c3aed;
    --q-purple: #a855f7;
    --q-blue: #6366f1;
    --q-cyan: #22d3ee;
    --q-pink: #ec4899;
    --q-emerald: #34d399;

    /* The gradient — the signature look */
    --q-gradient: linear-gradient(135deg, #7c3aed, #6366f1, #22d3ee);
    --q-gradient-warm: linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b);
    --q-gradient-cool: linear-gradient(135deg, #6366f1, #22d3ee, #34d399);

    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: #9494a8;
    --text-dim: #5a5a72;

    /* Borders & surfaces */
    --border: rgba(255, 255, 255, 0.04);
    --border-glow: rgba(99, 102, 241, 0.2);
    --surface-glow: rgba(124, 58, 237, 0.03);

    /* System */
    --font: 'Space Grotesk', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 100px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--void);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar — thin violet line */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--q-violet); border-radius: 2px; }

/* ========================================
   Bloch Sphere Loader
   ======================================== */
#blochLoader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--void);
}

#blochLoader canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ========================================
   Quantum Circuit Background
   ======================================== */
#quantumCircuit {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--q-purple);
    transition: color 0.3s var(--ease);
}
a:hover { color: var(--q-cyan); }

/* Gradient text utility */
.gradient-text {
    background: var(--q-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Layout
   ======================================== */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--q-gradient);
    margin: 1rem auto 0;
    border-radius: 1px;
}

/* ========================================
   Navigation — Floating glass bar
   ======================================== */
.navbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0.55rem 1rem;
    background: rgba(8, 8, 15, 0.7);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    transition: all 0.4s var(--ease);
    max-width: 95vw;
}

.navbar.scrolled {
    background: rgba(8, 8, 15, 0.9);
    border-color: var(--border-glow);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-text {
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: var(--q-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.15rem;
}

.nav-menu a {
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-pill);
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu a.active {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 4px;
}

.nav-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   Hero — The Quantum Void
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* Ambient orbs — like quantum probability clouds */
.quantum-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.quantum-bg::before,
.quantum-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.quantum-bg::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 70%);
    top: -10%;
    left: -5%;
}

.quantum-bg::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
    bottom: -10%;
    right: -5%;
    animation-delay: -10s;
    animation-direction: reverse;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding: 0 2rem;
}

.hero-title {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: heroReveal 1s var(--ease) 0.3s forwards;
}

.hero-title .line1 {
    display: block;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-family: var(--mono);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: heroReveal 1s var(--ease) 0.5s forwards;
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroReveal 1s var(--ease) 0.7s forwards;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.35s var(--ease);
    position: relative;
}

.btn-primary {
    background: var(--q-gradient);
    color: white;
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(124, 58, 237, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ========================================
   Scroll Indicator
   ======================================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.25;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

.mouse {
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--text-dim);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 2px;
    height: 6px;
    background: var(--text-dim);
    border-radius: 1px;
    animation: wheel 2s ease-in-out infinite;
}

@keyframes wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(8px); }
}

/* ========================================
   Sections
   ======================================== */
.quick-info,
.events-preview,
.about-section,
.partners-section {
    position: relative;
    z-index: 1;
    padding: 8rem 0;
}

/* Alternate subtle backgrounds */
.events-preview,
.partners-section {
    background: var(--void-up);
}

/* ========================================
   Cards — Frosted quantum surfaces
   ======================================== */
.info-card,
.event-card,
.resource-card,
.contact-card,
.committee-card {
    background: var(--void-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.4s var(--ease);
    position: relative;
}

/* Hover glow ring */
.info-card::before,
.event-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: var(--q-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s var(--ease);
}

.info-card:hover::before,
.event-card:hover::before {
    opacity: 1;
}

.info-card:hover,
.event-card:hover {
    background: var(--void-card);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Re-add inner background to mask the gradient border */
.info-card::after,
.event-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius) - 1px);
    background: var(--void-card);
    z-index: -1;
}

/* --- Info Cards --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-card {
    padding: 2.5rem 2rem;
    text-align: center;
}

.info-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.info-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.info-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* --- Events Grid --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.event-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.event-date .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--q-purple);
    font-weight: 500;
}

.event-info { flex: 1; }

.event-info h3 {
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.event-info p {
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}

.event-meta {
    display: block;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.4rem;
}

/* --- About --- */
.about-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 2.5rem;
}

/* --- Partners --- */
.partners-section p.text-center {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
}

.partner-placeholder {
    width: 100%;
    height: 100px;
    background: var(--void-card);
    border: 1px dashed rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--void);
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-brand h3 {
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: var(--q-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.5rem;
    list-style: none;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.3rem 0;
    transition: color 0.3s var(--ease);
}

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

.footer-social {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.footer-social a {
    color: var(--text-dim);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}

.footer-social a:hover {
    color: var(--text-primary);
    border-color: var(--border-glow);
    background: rgba(124, 58, 237, 0.06);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ========================================
   Events Page (term card)
   ======================================== */
.events-hero,
.resources-hero {
    padding: 130px 0 60px;
    background: var(--void);
    text-align: center;
    position: relative;
    z-index: 1;
}

.events-hero p,
.resources-hero p {
    color: var(--text-secondary);
}

.term-card-section,
.resources-section {
    padding: 5rem 0;
    background: var(--void-up);
    position: relative;
    z-index: 1;
}

.term-header {
    text-align: center;
    margin-bottom: 3rem;
}

.term-header h2 {
    color: var(--text-primary);
    font-size: 2rem;
}

.term-header p { color: var(--text-dim); }

.events-list {
    max-width: 780px;
    margin: 0 auto;
}

.event-item {
    background: var(--void-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid transparent;
    border-image: var(--q-gradient) 1;
    border-image-slice: 0 0 0 3;
    transition: all 0.35s var(--ease);
}

.event-item:hover {
    background: rgba(124, 58, 237, 0.03);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.event-week {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    background: rgba(124, 58, 237, 0.1);
    color: var(--q-purple);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.event-speaker {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0.3rem 0;
}

.event-speaker .affiliation {
    color: var(--text-dim);
    font-weight: 400;
}

.speaker-link {
    color: var(--text-primary);
    transition: color 0.3s var(--ease);
}
.speaker-link:hover { color: var(--q-cyan); }

.event-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.event-details {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-dim);
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.event-status {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.03em;
}

.event-status.past {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
}

.event-status.upcoming {
    background: rgba(124, 58, 237, 0.1);
    color: var(--q-purple);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.event-status.today {
    background: rgba(34, 211, 238, 0.1);
    color: var(--q-cyan);
    border: 1px solid rgba(34, 211, 238, 0.2);
    animation: todayBlink 2.5s ease-in-out infinite;
}

@keyframes todayBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.highlight-event {
    background: rgba(124, 58, 237, 0.04);
    border-image: linear-gradient(135deg, #ec4899, #7c3aed) 1;
    border-image-slice: 0 0 0 3;
}

/* ========================================
   Resources Page
   ======================================== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.resource-card {
    padding: 1.5rem;
    border-left: 3px solid transparent;
    border-image: var(--q-gradient) 1;
    border-image-slice: 0 0 0 3;
}

.resource-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.resource-icon { font-size: 1.3rem; }

.resource-date {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-dim);
}

.resource-speaker {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.resource-speaker .affiliation {
    color: var(--text-dim);
    font-weight: 400;
    font-size: 0.9rem;
}

.resource-title {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.resource-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s var(--ease);
    background: var(--q-gradient);
    color: white;
}

.resource-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.25);
    color: white;
}

.resource-link.secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.resource-link.secondary:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--text-primary);
}

.no-resources {
    text-align: center;
    padding: 4rem;
    color: var(--text-dim);
}

.upload-instructions {
    background: var(--void-card);
    border: 1px solid var(--border);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    margin-top: 3rem;
}

.upload-instructions h3 { color: var(--text-primary); margin-bottom: 0.5rem; }
.upload-instructions p { color: var(--text-secondary); font-size: 0.9rem; }

.upload-instructions code {
    font-family: var(--mono);
    background: rgba(124, 58, 237, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    color: var(--q-purple);
    font-size: 0.85rem;
}

.upload-instructions ol {
    color: var(--text-secondary) !important;
}

/* ========================================
   Committee Page
   ======================================== */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.committee-card {
    background: var(--void-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s var(--ease);
}

.committee-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    padding: 2rem;
    text-align: center;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in grids */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.54s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        left: 8px;
        right: 8px;
        transform: none;
        border-radius: var(--radius);
    }

    .nav-menu {
        position: fixed;
        left: 0;
        right: 0;
        top: -100vh;
        flex-direction: column;
        background: rgba(8, 8, 15, 0.98);
        backdrop-filter: blur(24px);
        padding: 1.5rem;
        gap: 0.25rem;
        transition: top 0.4s var(--ease);
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }

    .nav-menu.active {
        top: 56px;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 0.7rem 1rem;
        text-align: center;
    }

    .nav-toggle { display: flex; }

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

    .info-grid { grid-template-columns: 1fr; }
    .events-grid { grid-template-columns: 1fr; }

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

    .btn { width: 100%; max-width: 260px; text-align: center; justify-content: center; }

    .footer-nav {
        gap: 0.3rem 1rem;
    }

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

    .event-header { flex-direction: column; align-items: flex-start; }
    .event-details { flex-direction: column; gap: 0.3rem; }
}

@media (max-width: 480px) {
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    .event-date { align-self: center; }
}
