/* GSAP Animation Styles */

/* Fade in animations */
.fade-in {
    opacity: 0;
}

.fade-in.animated {
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

/* Slide animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
}

.slide-in-left.animated {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
}

.slide-in-right.animated {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease-out;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.slide-in-up.animated {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.slide-in-down {
    opacity: 0;
    transform: translateY(-30px);
}

.slide-in-down.animated {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

/* Scale animations */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
}

.scale-in.animated {
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s ease-out;
}

/* Card hover effects */
.service-card,
.case-study-card,
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.case-study-card:hover,
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Stagger delay helper classes */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

body.animations-ready {
    /* Ready class applied when animations loaded */
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Reveal animation for sections */
.reveal {
    opacity: 0;
}

.reveal.revealed {
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

/* Counter animation */
.counter {
    font-weight: 700;
    font-size: 24px;
}

/* Text stagger animation */
.text-stagger {
    display: inline-block;
}

.text-stagger.char {
    opacity: 0;
    transform: translateY(10px);
}

/* Image reveal */
.img-reveal {
    overflow: hidden;
}

.img-reveal img {
    opacity: 0;
}

.img-reveal.revealed img {
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
