/* ============================================
   KARAS FOUNDATION - Animations
   GPU-Accelerated | 60fps | transform + opacity only
   ============================================ */

/* ============ KEYFRAMES ============ */

/* Scroll Wheel Animation */
@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

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

/* Subtle Pulse - transform + opacity only */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.85; }
    100% { transform: scale(1); opacity: 1; }
}

/* Fade In Up */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slide In Left */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============ APPLIED ANIMATIONS ============ */

/* Hero Particles - subtle ambient motion */
.hero-section .hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 194, 71, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(242, 106, 61, 0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Stat Cards - staggered float */
.stat-card {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}
.stat-card:nth-child(2) { animation-delay: 0.5s; }
.stat-card:nth-child(3) { animation-delay: 1s; }
.stat-card:nth-child(4) { animation-delay: 1.5s; }

/* ============ HOVER LIFT UTILITY ============ */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.hover-lift:hover {
    transform: translateY(-6px);
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .stat-card { animation: none; }
    .hero-section .hero-particles { animation: none; }
}
