/* That Friend - 3 Page Site */
/* Color palette from poster: bright turquoise sky, orange speech bubble, white bold text */

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

:root {
    --sky: #4DB8C4;
    --sky-deep: #3a9daa;
    --sky-light: #6dcad4;
    --orange: #FF8C42;
    --orange-dark: #e67a30;
    --white: #ffffff;
    --cream: #f5f0e8;
    --dark: #1a2a32;
    --dark-mid: #2C3E50;
    --text-soft: rgba(255,255,255,0.85);
}

html { scroll-behavior: smooth; }

/* ---- ANIMATIONS ---- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes posterGlow {
    0%, 100% { box-shadow: 0 20px 60px rgba(255,140,66,0.2), 0 0 0 4px var(--white); }
    50% { box-shadow: 0 25px 80px rgba(255,140,66,0.4), 0 0 20px rgba(255,140,66,0.15), 0 0 0 4px var(--white); }
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes sunsetShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--sky);
    color: var(--white);
    line-height: 1.7;
}

a { color: var(--orange); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--orange-dark); }

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(77, 184, 196, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--white);
    text-decoration: none;
    background: linear-gradient(90deg, var(--white) 0%, var(--orange) 50%, var(--white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s;
}

.nav-links a:hover { opacity: 0.9; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
}

/* ---- HOME HERO ---- */
.hero {
    position: relative;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(to bottom, #5ec9d5 0%, var(--sky) 40%, #3a9daa 100%);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 50%;
    width: 177.78vh; /* 16:9 ratio */
    min-width: 100%;
    height: 100%;
    min-height: 56.25vw; /* 16:9 ratio */
    transform: translateX(-50%);
    border: 0;
    pointer-events: none;
    z-index: 1;
    object-fit: cover;
}

.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #5ec9d5 0%, var(--sky) 50%, #3a9daa 100%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15);
    z-index: 2;
}

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

.laurels {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.laurel-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    animation: float 4s ease-in-out infinite;
}

.hero-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(4rem, 12vw, 8rem);
    letter-spacing: 6px;
    color: var(--white);
    text-shadow: 3px 3px 0px rgba(0,0,0,0.1);
    margin-bottom: 0.3rem;
    line-height: 0.95;
}

.hero-tagline-bubble {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 0.4rem 1.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 1rem;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
}

/* ---- POSTER SECTION ---- */
.hero-poster-spacer {
    height: 6rem;
    background: var(--sky);
    position: relative;
    z-index: 5;
}

.poster-section {
    background: var(--sky);
    padding: 0 2rem 6rem;
    text-align: center;
    position: relative;
    z-index: 5;
}

.poster-frame {
    max-width: 500px;
    margin: 0 auto;
}

.poster-frame img {
    width: 100%;
    border-radius: 10px;
    border: 4px solid var(--white);
    animation: posterGlow 4s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.poster-frame:hover img {
    transform: scale(1.02);
}

/* ---- PAGE HEADER (About, Press) ---- */
.page-header {
    padding: 7rem 2rem 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #5ec9d5, var(--sky), #FF8C42, var(--sky), #5ec9d5);
    background-size: 400% 400%;
    animation: sunsetShift 12s ease infinite;
}

.page-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    letter-spacing: 6px;
    color: var(--white);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.08);
}

.page-subtitle {
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* ---- CONTENT SECTIONS ---- */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-section h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    letter-spacing: 4px;
    color: var(--white);
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--orange);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-soft);
    margin-bottom: 1rem;
}

/* Quick facts */
.about-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0;
}

.about-fact {
    text-align: center;
    padding: 1.2rem;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.25);
}

.about-fact-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.about-fact-value {
    font-weight: 700;
    font-size: 1rem;
}

/* EPK download */
.epk-download {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--sky-deep);
}

.epk-download h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    letter-spacing: 4px;
    color: var(--white);
    margin-bottom: 1rem;
}

.epk-download p {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

.btn-epk {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,140,66,0.3);
}

.btn-epk:hover {
    background: var(--orange-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,140,66,0.5);
}

/* Production Stills */
.stills-section {
    background: var(--sky);
    padding: 3rem 2rem;
    text-align: center;
}

.stills-section h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    letter-spacing: 4px;
    color: var(--white);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--orange);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.stills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.stills-grid img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* Cast grid */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.cast-card {
    text-align: center;
    padding: 1.2rem 0.8rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.15);
    transition: all 0.3s;
}

.cast-card:hover {
    background: rgba(255,255,255,0.22);
    border-color: var(--orange);
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.cast-card:nth-child(even):hover {
    transform: translateY(-8px) rotate(-1deg);
}

/* Staggered cast card entrance */
.cast-grid.visible .cast-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}
.cast-grid.visible .cast-card:nth-child(1) { animation-delay: 0.05s; }
.cast-grid.visible .cast-card:nth-child(2) { animation-delay: 0.1s; }
.cast-grid.visible .cast-card:nth-child(3) { animation-delay: 0.15s; }
.cast-grid.visible .cast-card:nth-child(4) { animation-delay: 0.2s; }
.cast-grid.visible .cast-card:nth-child(5) { animation-delay: 0.25s; }
.cast-grid.visible .cast-card:nth-child(6) { animation-delay: 0.3s; }
.cast-grid.visible .cast-card:nth-child(7) { animation-delay: 0.35s; }
.cast-grid.visible .cast-card:nth-child(8) { animation-delay: 0.4s; }
.cast-grid.visible .cast-card:nth-child(9) { animation-delay: 0.45s; }
.cast-grid.visible .cast-card:nth-child(10) { animation-delay: 0.5s; }

.cast-card h3 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.cast-card .role {
    color: var(--dark);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.cast-photo {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    position: relative;
}

.cast-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-bio {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85) 30%);
    color: #fff;
    padding: 3rem 0.8rem 0.8rem;
    font-size: 0.78rem;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cast-card:hover .cast-bio {
    opacity: 1;
}

/* Crew grid */
.crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem 2rem;
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 0 2rem;
}

.crew-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    gap: 1rem;
}

.crew-item .crew-role { color: var(--text-dark); font-weight: 700; white-space: nowrap; }
.crew-item .crew-name { color: #1a1a1a; text-align: right; }

/* ---- PRESS PAGE ---- */
.press-grid {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.press-card {
    display: block;
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    border-left: 4px solid var(--orange);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.press-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateX(5px);
}

.press-source {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.press-date {
    font-size: 0.8rem;
    color: var(--text-soft);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.press-card h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.press-card p {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.press-link {
    color: var(--orange);
    font-weight: 700;
    font-size: 0.85rem;
}

.press-link:hover { color: var(--white); }

/* ---- FOOTER ---- */
.footer {
    background: var(--dark);
    border-top: 4px solid var(--orange);
    padding: 2.5rem 2rem 1.5rem;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--sky);
    margin-bottom: 0.5rem;
}

.footer-col p, .footer-col a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
}

.footer-col a { display: block; }
.footer-col a:hover { color: var(--sky); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.contact-form .form-row {
    display: flex;
    gap: 0.7rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    transition: border-color 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.contact-form select {
    color: rgba(255,255,255,0.4);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    cursor: pointer;
}

.contact-form select option {
    background: var(--dark);
    color: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--sky);
}

.contact-form textarea {
    resize: vertical;
    min-height: 60px;
}

.btn-contact {
    display: inline-block;
    background: var(--sky);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s;
    align-self: center;
}

.btn-contact:hover {
    background: var(--sky-deep);
    transform: translateY(-1px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 55px;
        flex-direction: column;
        background: rgba(77, 184, 196, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem;
        gap: 1.5rem;
    }

    .nav-links.active { left: 0; }
    .hamburger { display: flex; }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-form .form-row {
        flex-direction: column;
    }

    .hero-title {
        font-size: 4rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .cast-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 3rem; }
    .cast-grid { grid-template-columns: 1fr; }
    .about-facts { grid-template-columns: 1fr 1fr; }
}
