/* Animation Keyframes */

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

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

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

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

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

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

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.animate-on-scroll.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-on-scroll.fade-in-up {
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.animate-on-scroll.fade-in-down {
    transform: translateY(-30px);
    animation: fadeInDown 0.6s ease forwards;
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-50px);
    animation: slideInLeft 0.6s ease forwards;
}

.animate-on-scroll.slide-in-right {
    transform: translateX(50px);
    animation: slideInRight 0.6s ease forwards;
}

.animate-on-scroll.scale-in {
    transform: scale(0.9);
    animation: scaleIn 0.6s ease forwards;
}

/* Stagger Animation Delays */
.animate-on-scroll[data-delay="0"] {
    animation-delay: 0s;
}

.animate-on-scroll[data-delay="1"] {
    animation-delay: 0.1s;
}

.animate-on-scroll[data-delay="2"] {
    animation-delay: 0.2s;
}

.animate-on-scroll[data-delay="3"] {
    animation-delay: 0.3s;
}

.animate-on-scroll[data-delay="4"] {
    animation-delay: 0.4s;
}

.animate-on-scroll[data-delay="5"] {
    animation-delay: 0.5s;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}
