/* =============================================
   ANIMATION STYLES
   Scroll reveals, keyframes, transitions
   ============================================= */

/* ---- Dark theme scroll animations (V1, About) ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for grids */
.problem-card:nth-child(1), .solution-card:nth-child(1), .software-card:nth-child(1), .roadmap-card:nth-child(1), .edge-card:nth-child(1), .model-card:nth-child(1), .team-card:nth-child(1), .stat-item:nth-child(1) { transition-delay: 0s; }
.problem-card:nth-child(2), .solution-card:nth-child(2), .software-card:nth-child(2), .roadmap-card:nth-child(2), .edge-card:nth-child(2), .model-card:nth-child(2), .team-card:nth-child(2), .stat-item:nth-child(2) { transition-delay: 0.1s; }
.problem-card:nth-child(3), .solution-card:nth-child(3), .software-card:nth-child(3), .roadmap-card:nth-child(3), .edge-card:nth-child(3), .model-card:nth-child(3), .team-card:nth-child(3), .stat-item:nth-child(3) { transition-delay: 0.2s; }
.problem-card:nth-child(4), .solution-card:nth-child(4), .software-card:nth-child(4), .roadmap-card:nth-child(4), .edge-card:nth-child(4), .model-card:nth-child(4), .team-card:nth-child(4), .stat-item:nth-child(4) { transition-delay: 0.3s; }

.feature-list li:nth-child(1) { transition-delay: 0s; }
.feature-list li:nth-child(2) { transition-delay: 0.1s; }
.feature-list li:nth-child(3) { transition-delay: 0.15s; }
.feature-list li:nth-child(4) { transition-delay: 0.2s; }
.feature-list li:nth-child(5) { transition-delay: 0.25s; }

.market-stat-row:nth-child(1) { transition-delay: 0s; }
.market-stat-row:nth-child(2) { transition-delay: 0.1s; }
.market-stat-row:nth-child(3) { transition-delay: 0.2s; }

/* ---- Light theme scroll reveal (V4) ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---- Cinematic theme reveal system (V5) ---- */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

[data-reveal="fade-up"] { transform: translateY(40px); }
[data-reveal="fade-left"] { transform: translateX(-60px); }
[data-reveal="fade-right"] { transform: translateX(40px); }
[data-reveal="clip-left"] { clip-path: inset(0 100% 0 0); }
[data-reveal="clip-right"] { clip-path: inset(0 0 0 100%); }

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
    clip-path: inset(0 0 0 0);
}

/* ---- Keyframes ---- */

/* CTA pulse glow (V1) */
@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.1); }
}

/* Hero image entrance (V5) */
@keyframes heroImageIn {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

/* Word slam animation (V5) */
@keyframes wordSlam {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(1.15);
        filter: blur(8px);
    }
    60% {
        opacity: 1;
        transform: translateY(-6px) scale(0.98);
        filter: blur(0px);
    }
    80% {
        transform: translateY(3px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

/* Scroll indicator pulse (V5) */
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
