/* ============================================
   ANIMATIONS.CSS - Fade-in & Scroll Animations
   ============================================ */

/* Fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in class for Intersection Observer */
.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.fade-in-on-scroll {
    opacity: 0;
}

.fade-in-on-scroll.in-view {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger effect for multiple items */
.fade-in-on-scroll.in-view:nth-child(1) { animation-delay: 0s; }
.fade-in-on-scroll.in-view:nth-child(2) { animation-delay: 0.1s; }
.fade-in-on-scroll.in-view:nth-child(3) { animation-delay: 0.2s; }
.fade-in-on-scroll.in-view:nth-child(4) { animation-delay: 0.3s; }
.fade-in-on-scroll.in-view:nth-child(5) { animation-delay: 0.4s; }
.fade-in-on-scroll.in-view:nth-child(6) { animation-delay: 0.5s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
