/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
}

.scroll-animate.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.scroll-animate.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.scroll-animate.fade-in {
    opacity: 0;
    transform: translateY(0);
}

.scroll-animate.scale-up {
    opacity: 0;
    transform: scale(0.9);
}

/* Active state when element is in view */
.scroll-animate.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Staggered animation delays */
.scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.scroll-animate:nth-child(4) { transition-delay: 0.4s; }
.scroll-animate:nth-child(5) { transition-delay: 0.5s; }
.scroll-animate:nth-child(6) { transition-delay: 0.6s; }

/* Parallax effect for hero sections */
.parallax {
    position: relative;
    overflow: hidden;
}

.parallax::before {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Smooth reveal for images */
.reveal-image {
    overflow: hidden;
    position: relative;
}

.reveal-image img {
    transform: scale(1.2);
    transition: transform 1s ease;
}

.reveal-image.active img {
    transform: scale(1);
}

/* Pulse effect for stat numbers */
.stat-card.active .stat-number {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Counter animation for numbers */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.counter {
    animation: countUp 0.8s ease;
}
