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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #ff0024;
    border-radius: 99px;
}

.eye {
    display: none;
}

/* ── Noise overlay ── */
body::before {
    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='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9999;
}

/* ── Navbar ── */
#navbar {
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Hero section ── */
#home {
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

@media(max-width:990px) {
    /* #home-text::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.85) 100%);
        z-index: 1;
    } */

    #home {
        background-image: url('../images/hero-sm.jpg');
        background-position: top;
    }

    .eye {
        display: block;
    }
}



/* ── Hero glow ── */
.hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 36, 0.12) 0%, transparent 70%);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ── Section reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(.16, 1, .3, 1), transform 0.7s cubic-bezier(.16, 1, .3, 1);
}

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

/* ── Swiper custom ── */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    width: 8px;
    height: 8px;
}

.swiper-pagination-bullet-active {
    background: #ff0024;
    width: 24px;
    border-radius: 99px;
}

/* ── Countdown ── */
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
}

@media (max-width: 640px) {
    .countdown-unit {
        min-width: 50px;
    }
}

.countdown-unit span:first-child {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 500;
    line-height: 1;
    color: #fff;
}

.countdown-unit span:last-child {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* ── Speaker card ── */
.speaker-card {
    position: relative;
    height: 100%;
    aspect-ratio: 4/5;
    border-radius: 30px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
}

.speaker-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

@media (hover: hover) {
    .speaker-card:hover img {
        transform: scale(1.08);
    }

    .speaker-card:hover .speaker-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 100%);
    }

    .speaker-card:hover .speaker-details {
        max-height: 300px;
        opacity: 1;
        margin-top: 1rem;
    }

    .speaker-card:hover .speaker-info {
        transform: translateY(-20px);
    }
}

.speaker-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: background 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.speaker-info {
    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.speaker-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s ease 0.2s;
}

.speaker-initials-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 0, 36, 0.2);
    background: #0a0a0a;
}

/* ── Buttons ── */
.btn-primary {
    background: #ff0024;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    background: #cc001d;
    transform: scale(1.03);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.03);
}

/* ── Section badge ── */
.section-badge {
    display: inline-block;
    background: rgba(255, 0, 36, 0.1);
    color: #ff0024;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 1.25rem;
}

/* ── Ticket card red bg ── */
.ticket-card {
    background-image: url('../images/tickets.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

/* ── Swiper slide equal height ── */
.speakers-swiper .swiper-wrapper {
    align-items: stretch;
}

.speakers-swiper .swiper-slide {
    height: auto;
}

/* ── Mobile menu transition ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(.16, 1, .3, 1);
}

#mobile-menu.open {
    max-height: 400px;
}

/* ── Stat cards ── */
.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    padding: 1.75rem;
}

.stat-card.accent {
    background: #ff0024;
    border-color: #ff0024;
}

/* ── Footer social ── */
.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    color: #fff;
}

.social-btn:hover {
    background: #ff0024;
    transform: scale(1.1);
}

/* ── Speaker Modal ── */
#speaker-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

#speaker-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-content {
    position: relative;
    z-index: 10;
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
        height: 600px;
    }
}

#speaker-modal.open .modal-content {
    transform: translateY(0) scale(1);
}

.modal-image {
    width: 100%;
    height: 300px;
    flex-shrink: 0;
    background: #111;
}

@media (min-width: 768px) {
    .modal-image {
        width: 45%;
        height: 100%;
    }
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

@media (min-width: 768px) {
    .modal-body {
        padding: 4rem;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s, transform 0.3s;
}

.modal-close:hover {
    background: #ff0024;
    border-color: #ff0024;
    transform: scale(1.1);
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

h3 {
    font-weight: 500 !important;
}

h2,
h1 {
    font-weight: 200 !important;
}