/* CSS Animations */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide up animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for CTAs */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Background gradient animation */
@keyframes gradientBg {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Apply animations to elements */

/* Hero section animations */
.hero-content h1 {
    animation: slideUp 0.8s ease-out forwards;
}

.hero-content p {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-content .cta-button {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-image img {
    animation: fadeIn 1.2s ease-out 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Section animations */
.section-header {
    animation: slideUp 0.8s ease-out forwards;
}

/* Service cards animation */
.service-card {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.services-grid .service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.services-grid .service-card:nth-child(2) {
    animation-delay: 0.3s;
}

.services-grid .service-card:nth-child(3) {
    animation-delay: 0.5s;
}

/* CTA button hover pulse */
.cta-button:hover {
    animation: pulse 1.5s infinite;
}

/* Feature icon animation */
.feature-icon {
    animation: bounce 2s infinite;
}

/* Form submit button animation */
.submit-button:hover {
    animation: pulse 1.5s infinite;
}

/* Testimonial fade-in animation (in addition to slider) */
.testimonial-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Contact info animations */
.info-item {
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.contact-info .info-item:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-info .info-item:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-info .info-item:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-info .info-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* Thank you page animations */
.thank-you-icon {
    animation: bounce 2s infinite;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}