/* ============================================================
   ANIMATED VIDEO COMPONENT — FOMO Cinematic Presentation
   7 scenes with dramatic transitions, FOMO narrative
   ============================================================ */

/* VIDEO CONTAINER */
.video-presentation {
    position: absolute;
    inset: 0;
    background: #000;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.video-presentation.playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Play overlay */
.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
    transition: opacity 0.5s ease;
}

.play-overlay svg {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
}

.play-overlay .play-label {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.play-icon-circle {
    animation: float 3s ease-in-out infinite;
}

/* SCENE LAYER */
.scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-align: center;
    z-index: 1;
}

.scene.active {
    opacity: 1;
    transform: scale(1);
    z-index: 5;
}

.scene.exit {
    opacity: 0;
    transform: scale(0.95);
}

/* Scene backgrounds */
.scene-1 {
    background: radial-gradient(ellipse at center, #0f0a1a 0%, #000 100%);
}

.scene-2 {
    background: radial-gradient(ellipse at center, #1a0a0a 0%, #000 100%);
}

.scene-3 {
    background: linear-gradient(90deg, #0a0a0f 50%, #0a1a2a 50%);
}

.scene-4 {
    background: radial-gradient(ellipse at center, #0a1520 0%, #000 100%);
}

.scene-5 {
    background: radial-gradient(ellipse at center, #0f0a20 0%, #000 100%);
}

.scene-6 {
    background: radial-gradient(ellipse at center, #1a0a0a 0%, #000 100%);
}

.scene-7 {
    background: radial-gradient(ellipse at center, #0a152a 0%, #000 100%);
}

/* TYPOGRAPHY within scenes */
.scene .headline {
    font-family: var(--heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
}

.scene.active .headline {
    animation: textReveal 0.8s ease forwards;
}

.scene .subline {
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: var(--text-dim);
    max-width: 440px;
    opacity: 0;
    transform: translateY(15px);
}

.scene.active .subline {
    animation: textReveal 0.8s 0.3s ease forwards;
}

/* Size variants */
.headline.xl {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.headline.lg {
    font-size: clamp(1.3rem, 3.5vw, 2rem);
}

.headline.md {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
}

/* Neon glow text */
.glow {
    color: var(--neon);
    text-shadow: 0 0 30px rgba(var(--neon-rgb), 0.4);
}

.glow-red {
    color: var(--red);
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.glow-green {
    color: var(--green);
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.glow-purple {
    color: var(--purple);
    text-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

/* Shake effect */
.shake {
    display: inline-block;
    animation: none;
}

.scene.active .shake {
    animation: shakeAnim 0.5s 1s ease both;
}

/* Scene-specific elements */
.scene-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.scene-stat {
    text-align: center;
    opacity: 0;
}

.scene.active .scene-stat:nth-child(1) {
    animation: popIn 0.5s 0.5s ease forwards;
}

.scene.active .scene-stat:nth-child(2) {
    animation: popIn 0.5s 0.8s ease forwards;
}

.scene.active .scene-stat:nth-child(3) {
    animation: popIn 0.5s 1.1s ease forwards;
}

.scene-stat .stat-big {
    font-family: var(--heading);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 700;
    display: block;
}

.scene-stat .stat-text {
    font-size: 0.78rem;
    color: var(--text-dim);
    display: block;
    margin-top: 4px;
}

/* Checklist items */
.check-list {
    list-style: none;
    text-align: left;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-list li {
    font-size: clamp(0.88rem, 2vw, 1.05rem);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
}

.check-list .check-icon {
    color: var(--green);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.scene.active .check-list li:nth-child(1) {
    animation: slideRight 0.5s 0.5s ease forwards;
}

.scene.active .check-list li:nth-child(2) {
    animation: slideRight 0.5s 0.8s ease forwards;
}

.scene.active .check-list li:nth-child(3) {
    animation: slideRight 0.5s 1.1s ease forwards;
}

/* CTA in video */
.video-cta-wrap {
    margin-top: 28px;
    opacity: 0;
}

.scene.active .video-cta-wrap {
    animation: popIn 0.6s 0.8s ease forwards;
}

.video-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--neon), var(--purple));
    color: #fff;
    font-family: var(--heading);
    font-weight: 700;
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    text-decoration: none;
    box-shadow: 0 0 40px rgba(var(--neon-rgb), 0.4);
    animation: pulseGlow 2s infinite;
}

/* Progress bar */
.video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon), var(--purple));
    z-index: 15;
    transition: width 0.3s linear;
}

/* Scene indicators */
.scene-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 15;
}

.scene-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.scene-dot.active {
    background: var(--neon);
    width: 20px;
    border-radius: 3px;
}

/* Replay button */
.replay-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 15;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-presentation.playing .replay-btn {
    opacity: 0.6;
}

.replay-btn:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.15);
}

/* ── ANIMATIONS ── */

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shakeAnim {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(var(--neon-rgb), 0.35);
    }

    50% {
        box-shadow: 0 0 50px rgba(var(--neon-rgb), 0.6);
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
    .scene {
        padding: 20px 16px;
    }

    .scene-stats {
        gap: 14px;
    }
}