/* 
* Additional CSS for interactive elements
* Author: Manus
* Version: 1.0
*/

/* Animation classes */
.section-animated {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-animated .fade-in-up {
    opacity: 0;
}

.section-visible .fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse effect for CTA buttons */
.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 112, 26, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(225, 112, 26, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(225, 112, 26, 0);
    }
}

/* Ripple effect for navigation */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link.active {
    color: var(--accent-color-2);
    border-bottom: 2px solid var(--accent-color-2);
}

.nav-ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(225, 112, 26, 0.3);
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    animation: ripple 0.6s linear;
    transform: scale(0);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Service icon animation */
.service-icon i {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-icon i {
    transform: scale(1.2) rotate(10deg);
}

/* Counter animation */
.counter-number {
    position: relative;
    display: inline-block;
}

.counter-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.counter-card:hover .counter-number::after {
    transform: scaleX(1);
}

/* CTA section variables for parallax */
.cta-section {
    --before-offset: -50px;
    --after-offset: -80px;
}

.cta-section::before {
    top: var(--before-offset);
}

.cta-section::after {
    bottom: var(--after-offset);
}

/* Testimonial hover effect */
.testimonial-card {
    transition: var(--hover-transition);
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-card:hover .author-avatar {
    background-color: var(--accent-color-2);
    transform: scale(1.1);
}

.author-avatar {
    transition: var(--hover-transition);
}

/* Footer interactive elements */
.footer-links a {
    position: relative;
    display: inline-block;
    padding: 2px 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.social-links a {
    transition: var(--hover-transition);
}

.social-links a:hover {
    background-color: var(--accent-color-2);
    transform: translateY(-5px) rotate(5deg);
}
