/* Micro Animações e Animações CSS */

/* Animação de fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animação de slide up */
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animação de bounce suave */
@keyframes softBounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* Animação de glow */
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 0 20px rgba(37, 211, 102, 0.6); }
    100% { box-shadow: 0 0 5px rgba(37, 211, 102, 0.3); }
}

/* Animação de rotate suave */
@keyframes softRotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}

/* Animação de typewriter para títulos */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* Aplicar animações aos elementos */
.hero h1 {
    animation: fadeIn 1s ease-out, softBounce 2s ease-in-out 1s infinite;
}

.hero p {
    animation: slideUp 1s ease-out 0.3s both;
}

.cta-button {
    animation: fadeIn 1s ease-out 0.6s both;
}

.seo-section {
    animation: slideUp 0.8s ease-out both;
}

.seo-section:nth-child(1) { animation-delay: 0.1s; }
.seo-section:nth-child(2) { animation-delay: 0.2s; }
.seo-section:nth-child(3) { animation-delay: 0.3s; }
.seo-section:nth-child(4) { animation-delay: 0.4s; }
.seo-section:nth-child(5) { animation-delay: 0.5s; }

/* Animação para ícones/emoji nos títulos */
.seo-section h2::after {
    animation: softRotate 4s ease-in-out infinite;
}

/* Hover effects */
.cta-button:hover {
    animation: glow 1s ease-in-out infinite;
}

.categoria li a:hover {
    animation: softBounce 0.6s ease-out;
}

/* Animação de loading para elementos que aparecem no scroll */
.seo-section,
.categoria {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.seo-section.visible,
.categoria.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animação para o mapa do site */
.mapa-site h1 {
    animation: fadeIn 1s ease-out;
}

.categoria {
    animation: slideUp 0.8s ease-out both;
}

.categoria:nth-child(1) { animation-delay: 0.1s; }
.categoria:nth-child(2) { animation-delay: 0.2s; }
.categoria:nth-child(3) { animation-delay: 0.3s; }
.categoria:nth-child(4) { animation-delay: 0.4s; }

/* Efeitos especiais para mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        animation: softBounce 3s ease-in-out infinite;
    }
}

/* Animação de shimmer para botões */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

/* Animação de entrada para o footer */
footer {
    animation: slideUp 1s ease-out;
}

/* Efeitos de foco para acessibilidade */
.cta-button:focus,
.whatsapp-float:focus,
.categoria li a:focus {
    outline: 2px solid #25d366;
    outline-offset: 2px;
    animation: glow 1s ease-in-out infinite;
}
