/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Element-specific Animations */
.hero-content h1 {
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-content p {
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-buttons {
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-image {
    animation: fadeIn 1s ease forwards, slideInRight 0.8s ease forwards;
    animation-delay: 0.4s;
}

.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.service-card:nth-child(5) {
    transition-delay: 0.5s;
}

.service-card:nth-child(6) {
    transition-delay: 0.6s;
}

.about-image {
    animation: slideInLeft 0.8s ease forwards;
}

.about-content {
    animation: slideInRight 0.8s ease forwards;
}

.testimonial-card:nth-child(1) {
    transition-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
    transition-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    transition-delay: 0.3s;
}

.cta {
    animation: fadeIn 0.8s ease forwards;
}

.contact-content {
    animation: slideInLeft 0.8s ease forwards;
}

.contact-form {
    animation: slideInRight 0.8s ease forwards;
}