/* ========================================
   Animações e Microinterações
   ======================================== */

/* Animação de Pulse para emojis */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.emoji-pulse {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

/* Animação de Bounce para emojis */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.emoji-bounce {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

/* Animação de Shake para emojis */
@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.emoji-shake:hover {
    animation: shake 0.5s ease-in-out;
}

/* Animação de Float para WhatsApp */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.whatsapp-float {
    animation: float 3s ease-in-out infinite;
}

/* Animação sutil de entrada para cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-block {
    animation: fadeInUp 0.6s ease-out;
}

.service-block:nth-child(1) {
    animation-delay: 0.1s;
}

.service-block:nth-child(2) {
    animation-delay: 0.2s;
}

.service-block:nth-child(3) {
    animation-delay: 0.3s;
}

.service-block:nth-child(4) {
    animation-delay: 0.4s;
}

.service-block:nth-child(5) {
    animation-delay: 0.5s;
}

.service-block:nth-child(6) {
    animation-delay: 0.6s;
}

/* Animação do Hero */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: heroFadeIn 0.8s ease-out;
}

/* Animação dos botões CTA */
.cta-primary,
.cta-secondary,
.cta-tertiary,
.btn-whatsapp {
    position: relative;
    overflow: hidden;
}

.cta-primary::before,
.cta-secondary::before,
.cta-tertiary::before,
.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-primary:hover::before,
.cta-secondary:hover::before,
.cta-tertiary:hover::before,
.btn-whatsapp:hover::before {
    width: 300px;
    height: 300px;
}

/* Animação suave para links */
a {
    transition: all 0.3s ease;
}

/* Animação de gradiente */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Scroll suave para elementos que entram na tela */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Efeito de glow nos títulos */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(79, 195, 247, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(79, 195, 247, 0.8);
    }
}

.service-title:hover {
    animation: glow 2s ease-in-out;
}

/* Animação de carregamento suave (sem pop-ups ou fade-in intrusivos) */
@keyframes subtleAppear {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: subtleAppear 0.3s ease-in;
}

/* Efeito hover nos cards do sitemap */
.sitemap-list li a {
    position: relative;
}

.sitemap-list li a::after {
    content: '→';
    position: absolute;
    right: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.sitemap-list li a:hover::after {
    opacity: 1;
    right: 15px;
}

/* Animação de destaque para texto forte */
strong {
    position: relative;
    transition: all 0.3s ease;
}

strong:hover {
    color: var(--cor-azul-claro);
}

/* Efeito de ondulação no botão WhatsApp flutuante */
@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7),
                    0 0 0 10px rgba(37, 211, 102, 0.7),
                    0 0 0 20px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.7),
                    0 0 0 20px rgba(37, 211, 102, 0.7),
                    0 0 0 30px rgba(37, 211, 102, 0);
    }
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

/* Transições suaves para mudanças de estado */
* {
    transition-property: background-color, color, transform, box-shadow, opacity;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Desabilitar animações para usuários com preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

