/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

.bounce {
    animation: bounce 0.8s ease infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        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;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Animation triggers on scroll */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hover animations */
.service-card {
    overflow: hidden;
}

.service-card img {
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

.btn:hover::after {
    transform: translateX(0);
}

/* Social icon animations */
.social-icons a {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Menu item animation */
.menu a {
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu a:hover::after, .menu a.active::after {
    width: 70%;
}

/* Form field focus animation */
.form-group input, 
.form-group select, 
.form-group textarea {
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    box-shadow: 0 0 0 2px rgba(226, 88, 34, 0.2);
}

/* Button pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(226, 88, 34, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(226, 88, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(226, 88, 34, 0);
    }
}

.btn-whatsapp {
    animation: pulse 2s infinite;
}

/* Benefit card hover effect */
.benefit-card {
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    transition: transform 0.5s ease;
}

.benefit-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Responsive animations - disable on smaller screens for performance */
@media (prefers-reduced-motion: reduce) {
    .fade-in, .slide-in-left, .slide-in-right, .bounce,
    .reveal, .service-card img, .btn::after, .social-icons a,
    .menu a::after, .form-group input, .form-group select, 
    .form-group textarea, .btn-whatsapp, .benefit-card, .benefit-card i {
        animation: none;
        transition: none;
    }
}

@media (max-width: 768px) {
    /* Simplified animations for mobile */
    .fade-in, .slide-in-left, .slide-in-right {
        animation-duration: 0.5s;
    }
}