/* Animations for scroll effects */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    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);
    }
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.animated {
    animation-name: fadeIn;
}

.slide-up.animated {
    animation-name: slideUp;
}

.slide-in-left.animated {
    animation-name: slideInLeft;
}

.slide-in-right.animated {
    animation-name: slideInRight;
}

/* Stagger delays for sequential animations */
.animate-on-scroll.delay-100 {
    animation-delay: 0.1s;
}

.animate-on-scroll.delay-200 {
    animation-delay: 0.2s;
}

.animate-on-scroll.delay-300 {
    animation-delay: 0.3s;
}

.animate-on-scroll.delay-400 {
    animation-delay: 0.4s;
}

.animate-on-scroll.delay-500 {
    animation-delay: 0.5s;
}

/* Pulse animation for CTAs */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse-on-hover:hover {
    animation: pulse 1s infinite;
}