/* === ANIMAÇÕES E MICRO-INTERAÇÕES === */

/* Animação de entrada suave (sem fade in no carregamento) */
.content-section,
.hero-content,
.map-section {
    animation: none; /* Sem animações de entrada */
}

/* Hover nas seções de conteúdo */
.content-section {
    position: relative;
    overflow: hidden;
}

.content-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(14, 165, 233, 0.05), 
        transparent
    );
    transition: left 0.5s ease;
}

.content-section:hover::after {
    left: 100%;
}

/* Animação de pulso para CTAs */
.cta-section {
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.2);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 20px 5px rgba(14, 165, 233, 0.1);
    }
}

/* Animação de ondulação ao clicar */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Animação de brilho nos links */
.footer-section a,
.sitemap-section a {
    position: relative;
}

.footer-section a::after,
.sitemap-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cor-destaque), var(--cor-primaria));
    transition: width 0.3s ease;
}

.footer-section a:hover::after,
.sitemap-section a:hover::after {
    width: 100%;
}

/* Animação de shake suave para emojis ao passar o mouse */
.emoji-item:hover {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    75% { transform: translateX(5px) rotate(5deg); }
}

/* Animação de gradiente no header */
header {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animação de destaque ao focar em inputs (se houver formulários) */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Animação de loading para o mapa */
.map-container {
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(14, 165, 233, 0.1) 25%, 
        rgba(56, 189, 248, 0.2) 50%, 
        rgba(14, 165, 233, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: loadingShimmer 1.5s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

@keyframes loadingShimmer {
    0% { 
        opacity: 1;
        background-position: -200% 0;
    }
    100% { 
        opacity: 0;
        background-position: 200% 0;
    }
}

/* Animação de contagem para números (se aplicável) */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animação de bounce suave para scroll */
@keyframes bounceScroll {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Microanimação para ícones */
.icon-animate {
    display: inline-block;
    transition: transform 0.3s ease;
}

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

/* Efeito de digitação para títulos importantes (opcional) */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Animação de fade suave para transições de seção */
.content-section {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.content-section.hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* Animações especiais para os botões da hero */
.hero-btn {
    position: relative;
}

.hero-btn::after {
    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 ease, height 0.6s ease;
}

.hero-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Animação de entrada dos botões */
.hero-ctas {
    animation: slideInUpButtons 1s ease-out 0.5s both;
}

@keyframes slideInUpButtons {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação de brilho nos ícones dos botões */
.btn-icon {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.hero-btn:hover .btn-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1));
}

/* Efeito de texto brilhante */
.btn-text {
    position: relative;
    overflow: hidden;
}

.btn-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.hero-btn:hover .btn-text::after {
    left: 100%;
}

/* Animação de glow pulsante */
.hero-btn-primary {
    animation: glow-green 2s ease-in-out infinite alternate;
}

.hero-btn-urgent {
    animation: glow-red 2s ease-in-out infinite alternate;
}

.hero-btn-fast {
    animation: glow-orange 2s ease-in-out infinite alternate;
}

@keyframes glow-green {
    from { box-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }
    to { box-shadow: 0 0 30px rgba(16, 185, 129, 0.8), 0 0 40px rgba(16, 185, 129, 0.4); }
}

@keyframes glow-red {
    from { box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }
    to { box-shadow: 0 0 30px rgba(239, 68, 68, 0.8), 0 0 40px rgba(239, 68, 68, 0.4); }
}

@keyframes glow-orange {
    from { box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
    to { box-shadow: 0 0 30px rgba(245, 158, 11, 0.8), 0 0 40px rgba(245, 158, 11, 0.4); }
}

/* Efeito parallax suave no hero */
.hero {
    position: relative;
}

@media (prefers-reduced-motion: no-preference) {
    .hero::before {
        animation: moveBackground 20s linear infinite;
    }
}

/* Desabilitar animações para usuários que preferem */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Animação de pulso para notificações (se aplicável) */
@keyframes notificationPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animação de surgimento gradual para listas */
.content-section ul li {
    animation: slideInLeft 0.5s ease forwards;
    opacity: 0;
}

.content-section ul li:nth-child(1) { animation-delay: 0.1s; }
.content-section ul li:nth-child(2) { animation-delay: 0.2s; }
.content-section ul li:nth-child(3) { animation-delay: 0.3s; }
.content-section ul li:nth-child(4) { animation-delay: 0.4s; }
.content-section ul li:nth-child(5) { animation-delay: 0.5s; }

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

/* Efeito de hover 3D nos cartões */
.content-section {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.content-section:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-5px);
}

/* Animação de borda gradiente */
@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.content-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--cor-primaria), var(--cor-destaque), var(--cor-primaria));
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.content-section:hover::before {
    opacity: 0.2;
}

