/* Scroll Animations CSS */

/* Base classes - Elements start hidden */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fade in animation */
.fade-in {
    transform: translateY(30px);
}

.fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Slide up animation */
.slide-up {
    transform: translateY(50px);
}

.slide-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Slide left animation */
.slide-left {
    transform: translateX(-50px);
}

.slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Slide right animation */
.slide-right {
    transform: translateX(50px);
}

.slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up animation */
.scale-up {
    transform: scale(0.8);
}

.scale-up.animated {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for multiple elements */
.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

.animate-delay-5 {
    transition-delay: 0.5s;
}

.animate-delay-6 {
    transition-delay: 0.6s;
}

/* Special animations for specific elements */
.service-item.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out 0.1s;
}

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

/* Image animations */
.img-animate {
    transition: all 0.8s ease-out;
}

.img-animate.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Button hover enhancements */
.btn.animate-on-scroll.animated {
    transition: all 0.8s ease-out, background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

/* Carousel animation */
.carousel-animate {
    transform: scale(0.95);
    opacity: 0.7;
}

.carousel-animate.animated {
    opacity: 1;
    transform: scale(1);
}

/* Mobile-specific animation adjustments */
@media (max-width: 991.98px) {
    .animate-on-scroll {
        transition-duration: 0.6s; /* Shorter animations on mobile */
    }
    
    /* Reduce transform distances on mobile for better performance */
    .slide-up {
        transform: translateY(30px);
    }
    
    .slide-left {
        transform: translateX(-30px);
    }
    
    .slide-right {
        transform: translateX(30px);
    }
    
    .fade-in {
        transform: translateY(20px);
    }
    
    .scale-up {
        transform: scale(0.9);
    }
    
    /* Reduce delays on mobile */
    .animate-delay-1 { transition-delay: 0.05s; }
    .animate-delay-2 { transition-delay: 0.1s; }
    .animate-delay-3 { transition-delay: 0.15s; }
    .animate-delay-4 { transition-delay: 0.2s; }
    .animate-delay-5 { transition-delay: 0.25s; }
    .animate-delay-6 { transition-delay: 0.3s; }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .service-item.animate-on-scroll,
    .img-animate,
    .btn.animate-on-scroll,
    .carousel-animate {
        transition: opacity 0.3s ease;
        transform: none !important;
    }
    
    .animate-delay-1,
    .animate-delay-2,
    .animate-delay-3,
    .animate-delay-4,
    .animate-delay-5,
    .animate-delay-6 {
        transition-delay: 0s;
    }
} 