body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #EBE4DF;
}

/* Hide native browser video controls and play buttons */
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── SLIDE UP TRANSITION ─── */
.page.slide-up {
    transform: translateY(100%);
    opacity: 1;
    visibility: visible;
    background-color: #EBE4DF;
    transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.page.slide-up.active {
    transform: translateY(0);
}

.persistent-logo {
    position: fixed;
    left: 20px;
    z-index: 1;
    top: 3vh;


}

.persistent-logo img {
    height: 35px;
    width: auto;
}


@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    opacity: 1;
    visibility: visible;
}


/* ─── BACKGROUND VIDEO ───────────────────────────────────────── */


/* Used on pages 2–8 as a full-screen background element. */

.bg-video {

    width: 100vw;
    height: 100vh;
    object-fit: contain;

}


#video-p8 {
    object-fit: cover;
}





/* ─── PAGE 1: HERO ───────────────────────────────────────────── */

.hero-section {
    background-image: url('img/BG.jpg.jpeg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.logo-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slide-right 1.2s;
}

.logo {
    width: clamp(120px, 40vw, 200px);
    height: auto;
    transform: translateX(-100px);
    animation: slideLeft 1s ease-out forwards;
}


/* ─── PAGE 2: TAGLINE ────────────────────────────────────────── */

.text-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 10px;
    margin-bottom: 24px;
}

.know {
    color: #18488b;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.kill {
    color: #ff0098;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    margin-left: 0;
}


/* Fades the tagline text out after a delay (added via JS) */

.text-row.fade-out .know,
.text-row.fade-out .kill {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 4s ease, transform 4s ease;
}


/* ─── PAGE 4: CLICK-ANYWHERE OVERLAY ────────────────────────── */

.page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 5vh;
}

.nav-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: pulse 2s infinite;
    pointer-events: none;
}


/* ─── PAGE 10: FINAL CTA ──────────────────────────────────────── */

#page-10 {
    background-image: url('img/BG.jpg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.final-title {
    font-size: clamp(2rem, 10vw, 5rem);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    animation: slideLeft 1.2s ease-out;
}

.final-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    animation: fadeInLeft 1.5s ease-out;
}


/* ─── CONTENT SECTION (shared overlay for text + buttons) ────── */

.content-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 13vh;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    z-index: 10;
    text-align: center;
    pointer-events: none;
    /* lets clicks pass through to video/overlay */
}


/* Allow interactive children to receive clicks */

.content-section h1,
.content-section h2,
.next-btn {
    pointer-events: auto;
}


/* Variant: vertically-centered layout (used on Page 10) */

.content-section.center {
    justify-content: center;
    padding-bottom: 0;
}


/* ─── BUTTONS ────────────────────────────────────────────────── */


/* Primary action button (e.g. "Start", "Restart") */

.next-btn {
    padding: clamp(12px, 3vw, 19px) clamp(28px, 8vw, 55px);
    font-size: clamp(0.85rem, 3vw, 1.2rem);
    font-weight: 700;
    color: white;
    background: #18488b;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 5px 5px 5px rgba(101, 47, 74, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
    animation: fadeInLeft 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s backwards;
    position: relative;
    z-index: 100;
    min-height: 44px;
    min-width: 44px;
}

.next-btn:hover {
    background: #ff0098;
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 0, 127, 0.6);
}




/* Page 6 "Kill Theileria" button — anchored to the bottom-centre */

.kill-btn {
    font-size: 20px;
    font-weight: 600;
    color: white;
    background: #18488b;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: absolute;
    bottom: 13vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 17px 30px;
    width: max-content;
    white-space: nowrap;
    text-transform: none;

}

.kill-btn:hover {
    background: #ff0098;
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 0, 127, 0.6);
}


/* ─── KEYFRAME ANIMATIONS ────────────────────────────────────── */

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 0.7;
        transform: translateY(-5px);
    }
}




/* ─── RESPONSIVE: PHONES ≤ 768px ─────────────────────────────── */

@media (max-width: 768px) {
    .text-row {
        flex-direction: column;
        gap: 4px;
    }

    .next-btn {
        letter-spacing: 1px;
    }

    .logo {
        width: 200px;
    }

    .know,
    .kill {
        font-size: 50px;
    }




}


/* ─── RESPONSIVE: VERY SMALL PHONES ≤ 380px ─────────────────── */

@media (max-width: 380px) {
    .text-row {
        flex-direction: column;
        gap: 4px;
    }

    .next-btn {
        letter-spacing: 1px;
    }

    .logo {
        width: 200px;
    }

    .know,
    .kill {
        font-size: 25px;
    }
}