/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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);
    }
}

/* Animation Classes */
.fade-in {
    --animation-delay: 0s;
    animation: fadeIn 0.8s ease-out var(--animation-delay) both;
}

.fade-in-delay {
    --animation-delay: 0.2s;
}

.fade-in-delay-2 {
    --animation-delay: 0.4s;
}

.slide-in {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll-triggered slide animations */
.slide-in-section {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-section.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right-section {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right-section.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in-section,
    .slide-in-section,
    .slide-in-right-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}