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

/* Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes scrollLine {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

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

/* Animation Utilities */
.animate-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-scale-in {
    opacity: 0;
    animation: scaleIn 0.8s ease forwards;
}

/* Stagger delays */
[data-delay="100"] { animation-delay: 0.1s; }
[data-delay="200"] { animation-delay: 0.2s; }
[data-delay="300"] { animation-delay: 0.3s; }
[data-delay="400"] { animation-delay: 0.4s; }
[data-delay="500"] { animation-delay: 0.5s; }
[data-delay="600"] { animation-delay: 0.6s; }

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.animate-on-scroll[data-delay="50"].is-visible { transition-delay: 0.05s; }
.animate-on-scroll[data-delay="100"].is-visible { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="150"].is-visible { transition-delay: 0.15s; }
.animate-on-scroll[data-delay="200"].is-visible { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="250"].is-visible { transition-delay: 0.25s; }
.animate-on-scroll[data-delay="300"].is-visible { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="350"].is-visible { transition-delay: 0.35s; }
.animate-on-scroll[data-delay="400"].is-visible { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="450"].is-visible { transition-delay: 0.45s; }
.animate-on-scroll[data-delay="500"].is-visible { transition-delay: 0.5s; }
.animate-on-scroll[data-delay="550"].is-visible { transition-delay: 0.55s; }
.animate-on-scroll[data-delay="600"].is-visible { transition-delay: 0.6s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
    
    .animate-fade-up {
        opacity: 1;
    }
}