/**
 * Animation styles for domain - Financial Audit Services
 * All animations are implemented in pure CSS
 */

/* Fade in animation for page elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle floating animation for cards and sections */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Subtle pulse animation for buttons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Background pattern rotation for hero section */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Slide in animation for section content */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to elements */
.hero h1 {
    animation: fadeIn 1s ease forwards;
}

.hero .hero-subtitle {
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.hero .cta-button {
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.about-item, 
.service-card, 
.testimonial-card {
    transition: transform 0.3s ease;
}

.about-item:hover, 
.service-card:hover, 
.testimonial-card:hover {
    animation: float 3s ease-in-out infinite;
}

.cta-button:hover,
.button-primary:hover,
.submit-button:hover {
    animation: pulse 2s infinite;
}

/* Animate section headings */
section h2 {
    position: relative;
    overflow: hidden;
}

section h2:after {
    animation: slideInRight 0.8s ease forwards;
}

/* Service icons subtle rotation on hover */
.service-icon svg {
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon svg {
    transform: rotate(15deg);
}

/* Process steps animation */
.process-step {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.process-step:nth-child(1) {
    animation-delay: 0.1s;
}

.process-step:nth-child(2) {
    animation-delay: 0.3s;
}

.process-step:nth-child(3) {
    animation-delay: 0.5s;
}

.process-step:nth-child(4) {
    animation-delay: 0.7s;
}

/* Form fields focus effect */
.form-group input:focus,
.form-group select:focus {
    transition: all 0.3s ease;
    box-shadow: 0 0 0 3px rgba(30, 61, 89, 0.2);
}

/* Submit button hover effect */
.submit-button {
    position: relative;
    overflow: hidden;
}

.submit-button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.submit-button:hover:after {
    animation: ripple 1s;
}

@keyframes ripple {
    0% {
        transform: scale(0) translate(-50%, -50%);
        opacity: 1;
    }
    100% {
        transform: scale(20) translate(-50%, -50%);
        opacity: 0;
    }
}

/* FAQ question hover effect */
.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(30, 61, 89, 0.05);
}

/* Success icon animation on thank you page */
.success-icon {
    animation: fadeIn 0.5s ease forwards, pulse 2s ease-in-out 0.5s infinite;
}

/* Footer links hover effect */
.footer-column a {
    position: relative;
}

.footer-column a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.footer-column a:hover:after {
    width: 100%;
}
