/* --- Design Tokens --- */
:root {
    --color-bg: #0a0a0c;
    --color-bg-elevated: #111114;
    --color-text: #e0e0e0;
    --color-text-muted: #7a7a7a;
    --color-crimson: #8b0000;
    --color-crimson-glow: rgba(139, 0, 0, 0.4);
    --color-crimson-hover: #a50000;
    --color-sickly-green: #9fbca3;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- Hamburger Nav --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem;
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 101;
    position: relative;
}

.nav-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

.nav-toggle:hover .nav-bar {
    background: var(--color-crimson);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 200;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
    line-height: 1;
}

.nav-close:hover {
    color: var(--color-crimson);
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-link:hover {
    color: var(--color-crimson);
    text-shadow: 0 0 20px var(--color-crimson-glow);
}

.nav-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-socials a {
    color: var(--color-text-muted);
    transition: color 0.3s;
}

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

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 7rem 2rem 5rem;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    background-image: url('../assets/poster-hero.jpg');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
}

.hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 */
    transform: translate(-50%, -50%) scale(1.3); /* scale up to push captions out of the visible viewport boundary */
    pointer-events: none;
    opacity: 0; /* invisible while loading/buffering */
    filter: saturate(0.9) contrast(1.05);
    transition: opacity 0.8s ease; /* smooth fade-in once playing starts */
}

.hero-video-bg.loaded iframe {
    opacity: 0.85; /* brighter baseline */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(10, 10, 12, 0.25) 0%, 
        rgba(10, 10, 12, 0.35) 45%, 
        rgba(10, 10, 12, 0.75) 80%, 
        var(--color-bg) 100%
    );
    z-index: 2;
}

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

.presents {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

/* Title Treatment Image */
.title-treatment {
    max-width: 550px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 30px var(--color-crimson-glow));
}

.tagline {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-crimson);
    letter-spacing: 0.12em;
    margin-bottom: 2.2rem;
    font-style: normal;
    text-transform: uppercase; /* uppercase matches Helvetica design cleanly */
    opacity: 0.9;
}

/* Trailer Button */
.hero-cta {
    margin-bottom: 2rem;
}

.btn-trailer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 2.5rem;
    background: transparent;
    border: 1px solid var(--color-crimson);
    color: var(--color-text);
    font-family: var(--font-body); /* use body font for cleaner minimal look */
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 30px; /* pill shape like Longlegs */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-trailer:hover {
    background: var(--color-crimson);
    border-color: var(--color-crimson);
    color: #fff;
    box-shadow: 0 0 25px var(--color-crimson-glow);
}

.btn-trailer svg {
    opacity: 0.7;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.meta-divider {
    color: var(--color-crimson);
    font-weight: 300;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 18px;
    height: 18px;
    border-right: 1.5px solid var(--color-text-muted);
    border-bottom: 1.5px solid var(--color-text-muted);
    transform: rotate(45deg);
    animation: scrollBounce 2.5s infinite;
    opacity: 0.4;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.2; }
    50% { transform: rotate(45deg) translateY(10px); opacity: 0.6; }
}



/* --- Trailer Modal --- */
.trailer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.trailer-modal.active {
    opacity: 1;
    visibility: visible;
}

.trailer-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.trailer-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 1001;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.trailer-modal.active .trailer-modal-content {
    transform: scale(1);
}

.trailer-modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
    line-height: 1;
    z-index: 1002;
}

.trailer-modal-close:hover {
    color: var(--color-text);
}

.trailer-modal-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 0 60px var(--color-crimson-glow);
}

.trailer-modal-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Poster Section (Fullscreen Slide) --- */
.poster-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-bg);
}

.poster-container {
    max-height: 85vh;
    max-width: 550px;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-image {
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 2px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px var(--color-crimson-glow);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.poster-image:hover {
    transform: scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 60px var(--color-crimson-glow);
}

/* --- Fullscreen Split Slide Section --- */
.split-slide-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 4rem 2rem;
    background-color: var(--color-bg);
}

.split-slide-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Data on left, Poster on right */
    gap: 5rem;
    align-items: center;
}

/* Left side details */
.split-slide-data {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    color: var(--color-text);
}

.story-synopsis {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #c8c8cc;
    font-weight: 300;
}

.data-credits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.credit-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.credit-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    margin: 0;
}

.credit-names {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Right side poster */
.split-slide-poster {
    display: flex;
    justify-content: center;
    align-items: center;
}

.poster-image-split {
    max-height: 75vh;
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 2px;
    box-shadow: 
        0 25px 65px rgba(0, 0, 0, 0.75),
        0 0 45px var(--color-crimson-glow);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.poster-image-split:hover {
    transform: scale(1.015);
    box-shadow: 
        0 35px 85px rgba(0, 0, 0, 0.85),
        0 0 65px var(--color-crimson-glow);
}

/* --- Subscribe Section --- */
.subscribe {
    padding: 2rem 2rem 5rem;
    text-align: center;
}

.subscribe-container h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.subscribe-container > p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 420px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: 2px 0 0 2px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.subscribe-form input:focus {
    border-color: var(--color-crimson);
    background: rgba(255, 255, 255, 0.05);
}

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

.subscribe-form button {
    padding: 0.85rem 1.5rem;
    background-color: var(--color-crimson);
    color: var(--color-text);
    border: 1px solid var(--color-crimson);
    border-radius: 0 2px 2px 0;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.subscribe-form button:hover {
    background-color: var(--color-crimson-hover);
    box-shadow: 0 0 20px var(--color-crimson-glow);
}

.success-msg {
    display: none;
    margin-top: 1.5rem;
    color: var(--color-sickly-green);
    font-weight: 500;
    font-size: 0.9rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 2rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.footer-socials a {
    color: var(--color-text-muted);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

.footer-socials a:hover {
    color: var(--color-text);
    transform: translateY(-2px);
}

footer p {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* --- Animations --- */
.fade-in-up {
    animation: fadeInUp 1.5s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .title-treatment {
        max-width: 320px;
    }
    .tagline {
        font-size: 0.85rem;
    }
    .hero-meta {
        font-size: 0.7rem;
        gap: 0.4rem;
    }
    .glass-card {
        padding: 2rem 1.5rem;
    }
    .credits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .subscribe-form {
        flex-direction: column;
    }
    .subscribe-form input {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }
    .subscribe-form button {
        border-radius: 2px;
    }
    .split-slide-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .split-slide-section {
        padding: 5rem 2rem;
        min-height: auto;
    }
    .data-credits {
        gap: 1.5rem;
    }
    .poster-image-split {
        max-height: 50vh;
    }
    .trailer-modal-content {
        width: 95%;
    }
    .trailer-modal-close {
        top: -2.5rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .title-treatment {
        max-width: 240px;
    }
    .presents {
        font-size: 0.65rem;
    }
    .btn-trailer {
        font-size: 0.65rem;
        padding: 0.75rem 1.5rem;
    }
}
