/**
 * Scroll Animation Styles
 * Animations triggered when elements come into viewport
 */

/* Trust Indicators - Initial hidden state */
.trust-indicator {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: opacity 0.6s ease-out, 
                transform 0.6s ease-out;
}

/* Trust Indicators - Animated in state */
.trust-indicator.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Icon animation within trust indicators */
.trust-indicator.animate-in i {
    animation: iconBounce 0.6s ease-out;
}

/* Icon bounce animation */
@keyframes iconBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Generic scroll animate class for other elements */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, 
                transform 0.8s ease-out;
}

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

/* Fade in from left */
.scroll-animate-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, 
                transform 0.8s ease-out;
}

.scroll-animate-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.scroll-animate-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, 
                transform 0.8s ease-out;
}

.scroll-animate-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Scale animation */
.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, 
                transform 0.8s ease-out;
}

.scroll-animate-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .trust-indicator,
    .scroll-animate,
    .scroll-animate-left,
    .scroll-animate-right,
    .scroll-animate-scale {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .trust-indicator.animate-in i {
        animation: none;
    }
}
