/* =========================================
   1. RESET & BASE STYLES
   ========================================= */

html {
    height: 100vh; 
    width: 100%;
    scroll-snap-type: y mandatory; 
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto; 
    overflow: hidden; 
    background-color: #000;
    color: #fff;
    font-family: 'Inter', sans-serif; 
    font-weight: 700;
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
.text-center { text-align: center; }
.text-white { color: #ffffff; }
.dark-text { color: #333; }
.z-top { position: relative; z-index: 10; }

.main-title {
    font-family: 'Sriracha', cursive;
    font-size: 4.5rem; 
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.subtitle {
    font-size: 46px;
    margin-bottom: 30px;
}

.description {
    font-size: 30px; 
    margin: 0 auto;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: #FFF;
    text-align: center;
    font-style: normal;
    line-height: normal;
    margin-bottom: 20px;
}

.caption {
    font-size: 48px;
    color: #bbb;
    line-height: 1.6;
}

.divider {
    height: 1px;
    width: 100px;
    background: rgba(255,255,255,0.3);
    margin: 0 auto 20px auto;
}

/* =========================================
   3. LAYOUT STRUCTURE
   ========================================= */
.full-screen-section {
    width: 100%;
    height: 100vh; 
    overflow: hidden; 
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #000;
    scroll-snap-align: start;
    scroll-snap-stop: always; 
}

.full-screen-section h2, 
.full-screen-section p {
    margin-top: 0;
}

/* =========================================
   4. SECTION: HERO (Video BG)
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 100dvh; 
    overflow: hidden; 
    padding: 0; 
    background: #000;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    object-position: center center;
    z-index: 0;
}

.overlay-dark {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 1;
}

/* =========================================
   5. SECTION: TV (Retro)
   ========================================= */
.tv-heading {
    font-family: 'Sriracha', cursive !important;
    font-size: 80px !important;
    margin-top: 20px;
    margin-bottom: 20px;
}

.tv-section .caption {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 24px;
}

.tv-container {
    position: relative;
    height: 60vh; 
    width: auto;
    aspect-ratio: 4/3; 
    max-width: 90vw; 
    margin: 0 auto 20px auto; 
    z-index: 5;
}

.tv-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 120%; height: 120%; background: rgba(255,255,255,0.15);
    filter: blur(80px); border-radius: 50%; z-index: -1;
}

.tv-frame {
    position: relative; width: 100%; height: auto; display: block;
    z-index: 10; pointer-events: none;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.tv-screen {
    position: absolute; top: 13%; left: 20%; width: 62%; height: 45%;
    z-index: 5; background: #000; overflow: hidden;
    border-radius: 2% 2% 2% 2% / 10% 10% 10% 10%;
}

.tv-screen video { width: 100%; height: 100%; object-fit: fill; }

/* =========================================
   6. SECTION: MOBILE
   ========================================= */

.mobile-section {
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

.mobile-section h2 {
    position: relative;
    top: 80px; 
}

.phone-container-landscape {
    position: relative;
    height: 80vh; 
    width: auto; 
    aspect-ratio: 16/9; 
    max-width: 110vw; 
    margin: 0 auto 10px auto !important;
    z-index: 10;
}

.mobile-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 110%; height: 110%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(40px); z-index: -1;
}

.phone-frame-img {
    width: 100%;
    height: 100%; 
    object-fit: contain; 
    display: block;
    position: relative;
    z-index: 10; pointer-events: none;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.8));
}

.phone-screen-content {
    position: absolute; top: 27%; bottom: 27%; left: 22.6%; right: 22%;
    background-color: #000; overflow: hidden; border-radius: 35px; z-index: 5;
}

.phone-screen-content .mobile-video {
    width: 100%;
    height: 100%;
    object-fit: fill; 
}

/* Controls */
.video-controls {
    position: absolute;
    bottom: 20px;       
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;          
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;        
}

.phone-screen-content:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.control-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

/* =========================================
   7. UI COMPONENTS
   ========================================= */
.share-container { 
    position: relative;
    bottom: 80px; 
    z-index: 20; 
}

.big-share-btn {
    background-color: #1a1a1a; color: #fff; border: 1px solid #333;
    padding: 12px 60px; font-size: 1.2rem; 
    border-radius: 50px; cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center; transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.big-share-btn:hover {
    background-color: #333; transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255,255,255,0.1); border-color: #fff;
}

.popup-overlay {
    position: fixed; bottom: 10px; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 100;
    display: none; justify-content: center; align-items: center; padding: 20px;
}
.popup-overlay.show { display: flex; animation: fadeIn 0.3s ease; }

.popup-box {
    background: #fff; color: #333; width: 100%; max-width: 870px;
    border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid #333; text-align: center;
}
.popup-header.warning-header {
    background: #000080; color: #fff; padding: 8px 15px; font-weight: bold;
    display: flex; justify-content: space-between;
}
.close-popup { cursor: pointer; }
.popup-body { padding: 30px 20px; }
.warning-icon {
    font-size: 4rem; color: #ff0000; border: 4px solid #ff0000;
    width: 80px; height: 80px; line-height: 70px; border-radius: 50%;
    margin: 0 auto 20px auto; font-weight: bold;
}
.popup-body h3 { color: #333; font-size: 1.4rem; margin: 0; }
.popup-footer { padding: 15px; background: #f0f0f0; border-top: 1px solid #ccc; }
.ok-btn {
    padding: 8px 30px; border: 2px solid #333; background: #ddd;
    cursor: pointer; font-weight: bold; transition: 0.2s;
}
.ok-btn:hover { background: #ccc; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   8. SECTION: SILHOUETTE & LOCKED
   ========================================= */
.silhouette-section { background: #000; }
.silhouette-bg {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    max-height: 80vh; opacity: 0.4; z-index: 0; filter: blur(2px);
}
.big-question { font-size: 3.5rem; margin-bottom: 20px; }
.section-locked { display: none !important; }

.silhouette-img {
    position: absolute;
    top: -150px;       
    left: 50%;
    transform: translateX(-50%); 
    width: auto;      
    z-index: 1;       
    opacity: 0.8;     
    pointer-events: none; 
}

.content-container.z-top {
    z-index: 10;
}

/* =========================================
   9. MEDIA QUERIES (Responsive)
   ========================================= */
@media (max-width: 768px) {
    .main-title { font-size: 3rem; }
    
    .tv-container { width: 95vw; height: auto; aspect-ratio: auto; }
    .tv-heading { font-size: 3rem; }
    .tv-caption { font-size: 1rem; }
    
    .phone-container-landscape { 
        width: 95vw; 
        height: auto; 
        aspect-ratio: 16/9; 
    }
    
    .section-title { font-size: 1.2rem; }
    .big-question { font-size: 2.5rem; }
}

/* =========================================
   SECTION 4: THE REVEAL (Parallax Animation)
   ========================================= */

/* 1. Set the scroll area height (taller = slower animation) */
#reveal-trigger {
    height: 300vh; /* 300% of viewport height */
    padding: 0;
    display: block; /* Important for sticky to work */
}

/* 2. The container that stays fixed on screen */
.sticky-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 3. The initial text (Questions) */
#initialText {
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 10;
    margin-bottom: 50px;
}

#initialText .big-question {
    color: #FFF;
    text-align: center;
    font-size: 100px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

#initialText .caption {
    color: #FFF;
    text-align: center;   
    font-size: 35px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* 4. Wrapper for the images */
.animation-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; /* Allows scrolling through images */
    z-index: 5;
}

/* 5. Shared styles for both images (Shadow & Real) */
.reveal-img {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5); 
    width: auto;
    max-height: 80vh;
    transition: opacity 0.1s linear; 
}

/* Specific state: Real Person (Hidden initially) */
.real-state {
    opacity: 0;
    z-index: 6;
}

/* Specific state: Shadow (Visible initially) */
.shadow-state { 
    opacity: 1; 
    z-index: 5;
    filter: brightness(0.7) blur(1px); /* Dark and slightly blurry */
}

/* Clean up old unused classes if necessary */
.silhouette-img { display: none; } /* Hide the old static image */