/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

/* Base Animation Classes */
.scroll-animate {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.scroll-animate.animated {
    opacity: 1;
}

/* Fade In Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-down {
    opacity: 0;
    transform: translateY(-50px);
}

.fade-in-down.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.fade-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
}

.fade-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Scale Animations */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
}

.scale-in.animated {
    opacity: 1;
    transform: scale(1);
}

.scale-in-center {
    opacity: 0;
    transform: scale(0.5);
}

.scale-in-center.animated {
    opacity: 1;
    transform: scale(1);
}

/* Rotate Animations */
.rotate-in {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
}

.rotate-in.animated {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Flip Animations */
.flip-in-x {
    opacity: 0;
    transform: perspective(1000px) rotateX(-90deg);
}

.flip-in-x.animated {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg);
}

.flip-in-y {
    opacity: 0;
    transform: perspective(1000px) rotateY(-90deg);
}

.flip-in-y.animated {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg);
}

/* Slide Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100%);
}

.slide-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100%);
}

.slide-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Bounce Animations */
.bounce-in {
    opacity: 0;
    transform: scale(0.3);
}

.bounce-in.animated {
    opacity: 1;
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Zoom Animations */
.zoom-in {
    opacity: 0;
    transform: scale(0);
}

.zoom-in.animated {
    opacity: 1;
    animation: zoomIn 0.6s ease-out;
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Blur Animations */
.blur-in {
    opacity: 0;
    filter: blur(10px);
}

.blur-in.animated {
    opacity: 1;
    filter: blur(0);
}

/* Stagger Delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* Duration Variations */
.duration-fast {
    transition-duration: 0.4s !important;
}

.duration-normal {
    transition-duration: 0.8s !important;
}

.duration-slow {
    transition-duration: 1.2s !important;
}

/* Easing Variations */
.ease-in-out {
    transition-timing-function: ease-in-out !important;
}

.ease-bounce {
    transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

.ease-elastic {
    transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Special Effects */
.glow-in {
    opacity: 0;
    box-shadow: 0 0 0 rgba(25, 167, 58, 0);
}

.glow-in.animated {
    opacity: 1;
    animation: glowIn 1s ease-out;
}

@keyframes glowIn {
    0% {
        opacity: 0;
        box-shadow: 0 0 0 rgba(25, 167, 58, 0);
    }
    50% {
        box-shadow: 0 0 30px rgba(25, 167, 58, 0.8);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(25, 167, 58, 0.3);
    }
}

/* Text Animations */
.text-reveal {
    overflow: hidden;
    display: inline-block;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.6s ease-out;
}

.text-reveal.animated span {
    opacity: 1;
    transform: translateY(0);
}

/* Card Hover Enhancement */
.animate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Parallax Elements */
.parallax-element {
    transition: transform 0.5s ease-out;
}

/* Counter Animation */
.counter {
    font-weight: bold;
}

.counter.counting {
    animation: countPulse 0.1s ease-in-out;
}

@keyframes countPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
