/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: #1a0000; background: #fff; line-height: 1.6; }

/* ─── Colours ─── */
:root {
    --gold:    #fce14b;
    --gold-lt: #fde96e;
    --deep:    #1a0000;
    --purple:  #a20103;
    --purple2: #c90206;
    --white:   #ffffff;
    --light:   #fff5f5;
    --muted:   #666;
    --border:  #ddd;
}

/* ─── Utility ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.btn {
    display: inline-block; padding: 14px 36px; border-radius: 50px;
    font-weight: 700; font-size: 1rem; text-decoration: none;
    cursor: pointer; transition: all .25s; border: none;
}
.btn-gold  { background: var(--gold); color: var(--deep); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(252,225,75,.4); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--purple); }
.section-tag { display: inline-block; background: var(--gold); color: var(--deep); font-size: .78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 4px 16px; border-radius: 50px; margin-bottom: 14px; }
.section-title { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto 40px; }

/* ─── Logo images ─── */
.nav-logo-img  { height: 52px; width: auto; display: block; }
.hero-logo     { height: clamp(160px, 28vw, 260px); width: auto; margin: 0 auto 28px; display: block; filter: drop-shadow(0 4px 24px rgba(0,0,0,.45)); }
.about-logo    { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.footer-logo   { height: 80px; width: auto; margin: 0 auto 12px; display: block; }

/* ─── Nav ─── */
nav.main-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; background: rgba(26,0,0,.92); backdrop-filter: blur(12px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 1.3rem; font-weight: 900; color: var(--white); text-decoration: none; letter-spacing: -0.5px; }
.nav-logo span { color: var(--gold); }
.nav-links a { color: rgba(255,255,255,.8); text-decoration: none; margin-left: 28px; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-links .nav-btn { background: var(--gold); color: var(--deep); padding: 8px 22px; border-radius: 50px; font-weight: 700; }
.nav-links .nav-btn:hover { background: var(--gold-lt); color: var(--deep); }

/* ─── Hero ─── */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    background:
        linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.72)),
        url('../img/hero-bg.png') center center / cover no-repeat;
    position: relative; overflow: hidden; padding: 120px 20px 80px;
}
.hero::before { display: none; }
.hero .container { text-align: center; }
.hero-eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 900; color: var(--white); line-height: 1.05; margin-bottom: 10px; text-shadow: 0 4px 30px rgba(0,0,0,.4); text-align: center; }
.hero h1 .accent { color: var(--gold); display: block; text-align: center; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.75); max-width: 560px; margin: 20px auto 40px; text-align: center; }
.hero-meta { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-meta-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.85); font-weight: 600; }
.hero-meta-item .icon { font-size: 1.3rem; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.4); font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; }

/* ─── Countdown Timer ─── */
.countdown-wrap { margin-top: 48px; text-align: center; }
.countdown-label { color: rgba(255,255,255,.6); font-size: .8rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.countdown { display: inline-flex; align-items: center; gap: 8px; }
.countdown-unit { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 16px 22px; backdrop-filter: blur(8px); min-width: 78px; }
.countdown-num { font-size: 2.4rem; font-weight: 900; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.countdown-lbl { font-size: .65rem; color: rgba(255,255,255,.55); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
.countdown-sep { font-size: 2rem; font-weight: 900; color: var(--gold); opacity: .5; margin-bottom: 18px; }

/* ─── About ─── */
.about { padding: 100px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img-wrap { position: relative; }
.about-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--gold); color: var(--deep); border-radius: 16px;
    padding: 20px 24px; text-align: center; font-weight: 800; box-shadow: 0 8px 30px rgba(252,225,75,.35);
}
.about-badge .big { font-size: 2.5rem; display: block; line-height: 1; }
.about-placeholder { width: 100%; height: 380px; background: #fff; border-radius: 20px; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.1); }
.about-text .section-title { text-align: left; }
.about-text .section-sub { text-align: left; margin: 0 0 28px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.stat { text-align: center; padding: 20px; background: var(--light); border-radius: 12px; }
.stat .num { font-size: 2rem; font-weight: 900; color: var(--purple); display: block; }
.stat .lbl { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ─── Speakers ─── */
.speakers { padding: 100px 0; background: var(--light); text-align: center; }
.speakers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 40px; }
.speaker-card { background: var(--white); border-radius: 20px; padding: 36px 24px; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; }
.speaker-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.speaker-avatar { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--purple) 0%, var(--purple2) 100%); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--white); font-weight: 900; }
.speaker-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.speaker-card p { color: var(--muted); font-size: .88rem; }
.speaker-card .role { display: inline-block; background: var(--light); color: var(--purple); font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 50px; margin-top: 8px; }

/* ─── Schedule ─── */
.schedule { padding: 100px 0; background: var(--white); }
.schedule-grid { display: grid; gap: 16px; margin-top: 40px; }
.schedule-grid-5 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.schedule-day { border: 2px solid var(--border); border-radius: 16px; overflow: hidden; }
.day-header { background: linear-gradient(90deg, var(--purple) 0%, var(--purple2) 100%); color: var(--white); padding: 16px 28px; font-weight: 800; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.day-header .date-tag { background: rgba(255,255,255,.2); padding: 4px 14px; border-radius: 50px; font-size: .85rem; }
.session { display: grid; grid-template-columns: 120px 1fr; gap: 0; border-top: 1px solid var(--border); }
.session-time { padding: 16px 20px; background: var(--light); font-weight: 700; font-size: .88rem; color: var(--purple); display: flex; align-items: center; }
.session-info { padding: 16px 24px; }
.session-info h4 { font-weight: 700; margin-bottom: 2px; }
.session-info p { color: var(--muted); font-size: .88rem; }

/* ─── Venue ─── */
.venue { padding: 100px 0; background: linear-gradient(135deg, var(--deep) 0%, var(--purple) 100%); text-align: center; color: var(--white); }
.venue .section-title { color: var(--white); }
.venue .section-sub { color: rgba(255,255,255,.7); }
.venue-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: 40px; max-width: 600px; margin: 0 auto; backdrop-filter: blur(10px); }
.venue-icon { font-size: 3rem; margin-bottom: 16px; }
.venue-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.venue-card p { color: rgba(255,255,255,.75); line-height: 1.8; }
.venue-details { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 24px; }
.venue-detail { display: flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: .95rem; }

/* ─── CTA ─── */
.cta { padding: 100px 0; background: var(--light); text-align: center; }
.cta-box { background: linear-gradient(135deg, var(--purple) 0%, var(--deep) 100%); border-radius: 24px; padding: 64px 40px; color: var(--white); position: relative; overflow: hidden; }
.cta-box::after { content: ''; position: absolute; top: -80px; right: -80px; width: 300px; height: 300px; background: rgba(252,225,75,.1); border-radius: 50%; }
.cta-box .section-title { color: var(--white); }
.cta-box .section-sub { color: rgba(255,255,255,.7); }

/* ─── Footer ─── */
footer { background: var(--deep); color: rgba(255,255,255,.6); padding: 40px 0; text-align: center; }
footer .logo { font-size: 1.2rem; font-weight: 900; color: var(--white); margin-bottom: 8px; }
footer .logo span { color: var(--gold); }
footer p { font-size: .88rem; }

/* ─── Registration Page ─── */
.reg-hero { padding: 120px 0 60px; background: linear-gradient(135deg, var(--deep) 0%, var(--purple) 100%); text-align: center; color: var(--white); }
.reg-hero h1 { font-size: 2.8rem; font-weight: 900; margin-bottom: 12px; }
.reg-hero p { color: rgba(255,255,255,.75); }
.reg-body { padding: 60px 0 100px; background: var(--light); }
.form-card { background: var(--white); border-radius: 24px; padding: 48px; max-width: 720px; margin: 0 auto; box-shadow: 0 8px 40px rgba(0,0,0,.08); }
.form-title { font-size: 1.5rem; font-weight: 800; color: var(--purple); margin-bottom: 32px; padding-bottom: 16px; border-bottom: 2px solid var(--light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: #333; }
.form-group label .req { color: #c00; margin-left: 2px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 10px;
    font-size: .95rem; font-family: inherit; transition: border-color .2s, box-shadow .2s; outline: none;
    background: #fafafa;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--purple2); box-shadow: 0 0 0 3px rgba(162,1,3,.1); background: #fff;
}
.form-group textarea { min-height: 90px; resize: vertical; }
.radio-group { display: flex; gap: 20px; }
.radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .95rem; }
.radio-label input { width: auto; }
.form-submit { text-align: center; margin-top: 10px; }
.form-submit .btn { padding: 16px 56px; font-size: 1.05rem; }
.alert { padding: 14px 20px; border-radius: 10px; margin-bottom: 24px; font-weight: 600; font-size: .95rem; }
.alert-success { background: #e8f9ed; color: #1a6b35; border: 1px solid #b2dfcb; }
.alert-error   { background: #fde8e8; color: #9b1c1c; border: 1px solid #f5c6c6; }
.alert-ok      { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.success-screen { text-align: center; padding: 60px 0; }
.success-screen .check { font-size: 5rem; margin-bottom: 20px; }
.success-screen h2 { font-size: 2rem; font-weight: 800; color: var(--purple); margin-bottom: 12px; }
.success-screen p { color: var(--muted); margin-bottom: 28px; }

/* ─── Admin ─── */
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--deep) 0%, var(--purple) 100%); padding: 20px; }
.login-box { background: var(--white); border-radius: 24px; padding: 48px 40px; width: 100%; max-width: 420px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.login-logo { font-size: 1.8rem; font-weight: 900; color: var(--purple); margin-bottom: 4px; }
.login-logo span { color: var(--gold); }
.login-sub { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.login-box .form-group { text-align: left; }
.login-box .btn { width: 100%; padding: 14px; font-size: 1rem; background: var(--purple); color: var(--white); border-radius: 10px; margin-top: 8px; }
.login-box .btn:hover { background: var(--purple2); transform: none; }

.admin-wrap { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: var(--deep); color: var(--white); padding: 0; display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-logo { padding: 28px 24px 20px; font-size: 1.1rem; font-weight: 900; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-logo span { color: var(--gold); }
.sidebar-logo small { display: block; color: rgba(255,255,255,.4); font-size: .75rem; font-weight: 400; margin-top: 2px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 14px 24px; color: rgba(255,255,255,.65); text-decoration: none; font-size: .92rem; font-weight: 600; transition: all .2s; }
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(255,255,255,.07); color: var(--white); border-left: 3px solid var(--gold); }
.sidebar-footer { margin-top: auto; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: rgba(255,255,255,.35); }

.admin-main { flex: 1; background: var(--light); display: flex; flex-direction: column; }
.admin-topbar { background: var(--white); padding: 18px 32px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h1 { font-size: 1.3rem; font-weight: 800; color: var(--deep); }
.admin-topbar .logout-btn { background: none; border: 1px solid var(--border); padding: 8px 20px; border-radius: 8px; font-size: .88rem; color: #666; cursor: pointer; text-decoration: none; transition: all .2s; }
.admin-topbar .logout-btn:hover { background: #f0f0f0; }
.admin-topbar .export-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--purple); color: #fff; border: none; padding: 8px 20px; border-radius: 8px; font-size: .88rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s; }
.admin-topbar .export-btn:hover { background: var(--purple2); transform: translateY(-1px); }
.admin-content { padding: 32px; flex: 1; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: 16px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.stat-card .s-num { font-size: 2.2rem; font-weight: 900; color: var(--purple); }
.stat-card .s-lbl { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.stat-card.gold .s-num { color: var(--gold); }
.stat-card.green .s-num { color: #1a6b35; }
.stat-card.red .s-num { color: #9b1c1c; }

.table-card { background: var(--white); border-radius: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.05); overflow: hidden; }
.table-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.table-card-header h2 { font-size: 1.05rem; font-weight: 800; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters select, .filters input { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: .85rem; font-family: inherit; outline: none; }
.filters input:focus, .filters select:focus { border-color: var(--purple2); }

table { width: 100%; border-collapse: collapse; font-size: .88rem; }
table th { background: var(--light); padding: 12px 16px; text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
table td { padding: 14px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
table tr:hover td { background: var(--light); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: .75rem; font-weight: 700; }
.badge-pending   { background: #fff3cd; color: #856404; }
.badge-confirmed { background: #d4edda; color: #155724; }
.badge-declined  { background: #f8d7da; color: #721c24; }
.action-btn { padding: 5px 12px; border-radius: 6px; font-size: .78rem; font-weight: 700; border: none; cursor: pointer; text-decoration: none; display: inline-block; margin-right: 4px; transition: opacity .2s; }
.action-btn:hover { opacity: .75; }
.btn-confirm { background: #d4edda; color: #155724; }
.btn-decline { background: #f8d7da; color: #721c24; }
.btn-view    { background: var(--light); color: var(--purple); }

/* Detail modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--white); border-radius: 20px; padding: 40px; max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 24px; color: var(--purple); }
.detail-row { display: grid; grid-template-columns: 140px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.detail-row:last-child { border: none; }
.detail-label { font-weight: 700; color: var(--muted); }
.modal-close { background: none; border: 1px solid var(--border); padding: 8px 20px; border-radius: 8px; cursor: pointer; margin-top: 24px; font-size: .88rem; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .about-grid, .form-row { grid-template-columns: 1fr; }
    .about-badge { position: static; margin-top: 20px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .nav-links a:not(.nav-btn) { display: none; }
    .admin-wrap { flex-direction: column; }
    .users-grid { grid-template-columns: 1fr !important; }
    .sidebar { width: 100%; }
    .session { grid-template-columns: 90px 1fr; }
    table { display: block; overflow-x: auto; }

    /* Prevent horizontal overflow */
    body, html { overflow-x: hidden; max-width: 100%; }
    .hero { overflow: hidden; }
    .hero-orb { display: none; }
    .cta-box { padding: 40px 24px; }
    .cta-box::after { display: none; }
    .form-card { padding: 28px 20px; }
    .venue-card { padding: 28px 20px; }

    /* Hero container centring */
    .hero {
        flex-direction: column;
        align-items: stretch;
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero .container {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero h1,
    .hero h1 .accent,
    .hero-eyebrow,
    .hero-sub { text-align: center; width: 100%; }
    .hero-sub { margin: 20px auto 32px; max-width: 100%; }
    .hero-meta { flex-direction: column; align-items: center; gap: 12px; width: 100%; }
    .hero-btns { flex-direction: column; align-items: center; width: 100%; }
    .hero-btns .btn { width: 100%; max-width: 320px; text-align: center; }

    /* Countdown mobile */
    .countdown { gap: 4px; }
    .countdown-unit { padding: 12px 14px; min-width: 62px; }
    .countdown-num { font-size: 1.8rem; }
    .countdown-sep { font-size: 1.4rem; }
}

@media (max-width: 1024px) {
    /* Clip orbs on tablet so they don't create horizontal scroll */
    .hero { overflow: hidden; }
    .hero-orb { max-width: 50vw; max-height: 50vw; }
    .cta-box::after { display: none; }

    /* Hero container centring — same fix as mobile */
    .hero {
        flex-direction: column;
        align-items: stretch;
    }
    .hero .container {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero h1,
    .hero h1 .accent,
    .hero-eyebrow,
    .hero-sub { text-align: center; width: 100%; }
}

/* ══════════════════════════════════════════════════════
   ANIMATIONS & EFFECTS
══════════════════════════════════════════════════════ */

/* ─── Keyframes ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-18px); }
}
@keyframes orbPulse {
    0%, 100% { transform: scale(1);    opacity: .12; }
    50%       { transform: scale(1.15); opacity: .22; }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}
@keyframes rippleExpand {
    from { transform: translate(-50%, -50%) scale(0); opacity: .5; }
    to   { transform: translate(-50%, -50%) scale(3);  opacity: 0; }
}
@keyframes borderGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(252,225,75,0); }
    50%       { box-shadow: 0 0 24px 6px rgba(252,225,75,.35); }
}
@keyframes gradientShift {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}
@keyframes navSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(30px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes countBounce {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}
@keyframes tagSlide {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes cardFlicker {
    0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
    50%       { box-shadow: 0 8px 36px rgba(162,1,3,.18); }
}

/* ─── Hero Canvas ─── */
#hero-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

/* ─── Hero Orbs ─── */
.hero-orb {
    position: absolute; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(252,225,75,.18) 0%, rgba(162,1,3,.08) 60%, transparent 80%);
    animation: orbPulse linear infinite;
    z-index: 0;
}

/* ─── Hero entrance animations ─── */
.hero-eyebrow {
    animation: tagSlide .7s ease both;
    animation-delay: .1s;
    opacity: 0; /* overridden by typewriter JS after load */
}
.hero h1      { animation: heroTextIn .9s cubic-bezier(.22,1,.36,1) both; animation-delay: .3s; }
.hero .accent { animation: heroTextIn .9s cubic-bezier(.22,1,.36,1) both; animation-delay: .5s; }
.hero > div > p[style*="gold"] { animation: fadeIn .8s ease both; animation-delay: .7s; }
.hero-sub     { animation: fadeUp .8s ease both; animation-delay: .85s; }
.hero-meta    { animation: fadeUp .8s ease both; animation-delay: 1s; }
.hero-btns    { animation: fadeUp .8s ease both; animation-delay: 1.15s; }

/* Animated gradient text on the hero h1 */
.hero h1 {
    background: linear-gradient(270deg, #fff 0%, #fde96e 40%, #fff 70%, #fce14b 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTextIn .9s cubic-bezier(.22,1,.36,1) both,
               gradientShift 6s ease infinite;
    animation-delay: .3s, 1.5s;
}

/* ─── Nav entrance & scroll state ─── */
nav.main-nav { animation: navSlideDown .6s cubic-bezier(.22,1,.36,1) both; }
nav.main-nav.nav-scrolled {
    padding: 10px 0;
    background: rgba(26,0,0,.98) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
    transition: padding .3s, background .3s, box-shadow .3s;
}
.nav-links a.nav-active { color: var(--gold) !important; }

/* ─── Scroll Reveal base state ─── */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .7s cubic-bezier(.22,1,.36,1),
                transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.from-left  { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.from-below { transform: translateY(50px); }
.reveal.scale-in   { transform: scale(.92); }

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Stagger delays for child groups */
.reveal-group > *:nth-child(1) { transition-delay: .05s; }
.reveal-group > *:nth-child(2) { transition-delay: .15s; }
.reveal-group > *:nth-child(3) { transition-delay: .25s; }
.reveal-group > *:nth-child(4) { transition-delay: .35s; }

/* ─── Section tags animated ─── */
.section-tag { transition: transform .3s, box-shadow .3s; cursor: default; }
.section-tag:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(252,225,75,.4); }

/* ─── About badge float ─── */
.about-badge { animation: floatY 4s ease-in-out infinite; }

/* ─── Stat numbers bounce on reveal ─── */
.stat .num, .stat-card .s-num {
    display: block;
    transition: color .3s;
}
.count-up.revealed-num {
    animation: countBounce .5s ease;
}

/* ─── Speaker cards ─── */
.speaker-card {
    transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
    transform-origin: center bottom;
    will-change: transform;
}
.speaker-card:hover {
    animation: cardFlicker 2s ease infinite;
}
.speaker-avatar {
    transition: transform .35s, box-shadow .35s;
    box-shadow: 0 4px 20px rgba(162,1,3,.2);
}
.speaker-card:hover .speaker-avatar {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 36px rgba(162,1,3,.45);
}

/* ─── Schedule sessions ─── */
.session {
    transition: background .25s;
    position: relative; overflow: hidden;
}
.session::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    background: linear-gradient(90deg, rgba(252,225,75,.12), transparent);
    transition: width .35s;
}
.session:hover::before { width: 100%; }
.session:hover .session-time { color: var(--gold); }

/* Day header pulse glow */
.day-header {
    transition: letter-spacing .3s;
}
.schedule-day:hover .day-header {
    animation: borderGlow 2s ease infinite;
}

/* ─── Venue card shimmer ─── */
.venue-card {
    position: relative; overflow: hidden;
    transition: transform .35s, box-shadow .35s;
}
.venue-card::after {
    content: '';
    position: absolute; top: 0; left: -150%;
    width: 80%; height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%);
    animation: shimmer 4s linear infinite;
}
.venue-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }

/* ─── CTA box animated gradient border ─── */
.cta-box {
    background: linear-gradient(270deg, var(--purple) 0%, var(--deep) 50%, var(--purple2) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* ─── Form inputs ─── */
.form-group input, .form-group select, .form-group textarea {
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    transform: translateY(-1px);
}

/* ─── Button enhancements ─── */
.btn { position: relative; overflow: hidden; }

/* Shimmer sweep on hover */
.btn::before {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
    transition: left .45s;
}
.btn:hover::before { left: 140%; }

/* Ripple wave (injected by JS) */
.ripple-wave {
    position: absolute; border-radius: 50%;
    width: 12px; height: 12px;
    background: rgba(255,255,255,.45);
    pointer-events: none;
    animation: rippleExpand .7s ease-out forwards;
    transform-origin: center;
}

/* ─── btn-gold pulsing glow at rest ─── */
.btn-gold { animation: borderGlow 3s ease-in-out infinite; }
.btn-gold:hover { animation: none; }

/* ─── Hero scroll indicator ─── */
.hero-scroll {
    animation: fadeUp 1s ease both, floatY 2.5s ease-in-out 1.5s infinite;
    animation-delay: 2s, 0s;
}

/* ─── Page load fade-in ─── */
body { animation: fadeIn .4s ease both; }

/* ─── About placeholder pulse ─── */
.about-placeholder {
    animation: gradientShift 10s ease infinite;
    background: linear-gradient(270deg, var(--purple) 0%, var(--deep) 50%, var(--purple2) 100%);
    background-size: 200% 200%;
    transition: transform .4s;
}
.about-img-wrap:hover .about-placeholder { transform: scale(1.02); }

/* ─── Stat cards count-up glow ─── */
.stat { transition: transform .3s, box-shadow .3s; }
.stat:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(162,1,3,.15); }
.stat-card { transition: transform .3s, box-shadow .3s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(162,1,3,.15); }

/* ─── Reduce motion for accessibility ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    #hero-canvas { display: none; }
    .hero-orb    { display: none; }
}
