/* Animation Utilities */

/* 
   Base class for all scroll animations.
   Start state: hidden and slightly shifted down.
*/
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

/* 
   State when element enters viewport.
   Added via JS IntersectionObserver.
*/
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 
   Staggered delays for groups of elements (like cards) 
*/
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* 
   Different animation types (Optional overrides) 
*/
.animate-on-scroll.fade-in {
    transform: translateY(0);
    /* No movement, just fade */
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-30px);
}

.animate-on-scroll.slide-in-right {
    transform: translateX(30px);
}

.animate-on-scroll.slide-in-left.is-visible,
.animate-on-scroll.slide-in-right.is-visible {
    transform: translateX(0);
}