/* Animations.css - Micro-animações para o site Desentupidora Rápido */

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animações de hover */
@keyframes scaleHover {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Aplicando animações de entrada */
.hero-content {
    animation: fadeInUp 1s ease-out;
}


/* Animações para elementos do cabeçalho */
.logo::before {
    animation: pulse 2s infinite ease-in-out;
}

.logo::after {
    animation: bounce 2s infinite ease-in-out 0.5s;
}

/* Animações para botões */
.hero-cta {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta:hover {
    animation: scaleHover 0.3s ease-out;
}

.whatsapp-cta {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-cta:hover {
    animation: scaleHover 0.3s ease-out;
}

/* Animação do botão WhatsApp flutuante */
.whatsapp-float {
    animation: whatsapp-float 3s ease-in-out infinite;
}

@keyframes whatsapp-float {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    }
    50% {
        transform: translateY(-5px);
        box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    }
}


/* Animação para elementos do rodapé */
.footer-section {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

/* Animações para links */
a {
    transition: all 0.3s ease;
}

.footer-section a:hover {
    animation: colorPulse 0.5s ease-out;
}

@keyframes colorPulse {
    0% { color: #cccccc; }
    50% { color: #dc3545; }
    100% { color: #cccccc; }
}


/* Micro-animações para ícones */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

/* Utilitários de animação */
.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-slide-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Animação de carregamento (não usada pois deve carregar rápido) */
@keyframes loading {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Performance optimizations */
.hero-cta,
.whatsapp-float,
.footer-section {
    will-change: transform;
}

/* Reduced motion para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
