/* CSS Animations */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide up animation */
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Gradient animation for hero section */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Pulse animation for buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 245, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 245, 255, 0);
    }
}

/* Apply animations to elements */
.hero {
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
}

.hero-content {
    animation: fadeIn 1.5s ease-out;
}

.hero h1, .hero p {
    animation: slideUp 1s ease-out;
}

.hero .btn {
    animation: pulse 2s infinite;
}

.service-card, .testimonial-card, .blog-post {
    animation: fadeIn 1s ease-out;
}

section h2 {
    animation: slideUp 0.8s ease-out;
}

.about-image img {
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Section reveal animation (applied via PHP) */
.section-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth transition for links */
a, button {
    transition: all 0.3s ease;
}

/* Form elements animation */
.form-group input, .form-group select {
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    box-shadow: 0 0 0 2px rgba(0, 245, 255, 0.3);
    outline: none;
}

/* Menu item hover effect */
.main-menu a::after {
    transition: width 0.3s ease;
}
