/* Micro Animações e Efeitos Visuais */

/* 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);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Aplicar animações de entrada */
.main-header {
    animation: fadeInDown 0.8s ease-out;
}

.hero {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.seo-section {
    animation: fadeInUp 0.8s ease-out both;
}

.seo-section:nth-child(1) { animation-delay: 0.3s; }
.seo-section:nth-child(2) { animation-delay: 0.4s; }
.seo-section:nth-child(3) { animation-delay: 0.5s; }
.seo-section:nth-child(4) { animation-delay: 0.6s; }
.seo-section:nth-child(5) { animation-delay: 0.7s; }
.seo-section:nth-child(6) { animation-delay: 0.8s; }

.maps-section {
    animation: scaleIn 0.8s ease-out 0.5s both;
}

.main-footer {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Animações Hover */
.btn-whatsapp-hero:hover {
    animation: pulse 0.6s ease-in-out;
}

.btn-whatsapp-content:hover {
    animation: bounce 0.6s ease-in-out;
}

/* Efeitos de Hover para Cards */
.seo-section:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.seo-section {
    transition: all 0.3s ease;
}

/* Animação para Emojis Flutuantes */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-8px) rotate(2deg);
    }
    66% {
        transform: translateY(-4px) rotate(-2deg);
    }
}

.emoji-float {
    animation: gentleFloat 4s ease-in-out infinite;
}

.emoji-float:nth-child(1) {
    animation-delay: 0s;
}

.emoji-float:nth-child(2) {
    animation-delay: 1.3s;
}

.emoji-float:nth-child(3) {
    animation-delay: 2.6s;
}

/* Animação para Botão WhatsApp */
@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    }
}

.whatsapp-float a {
    animation: gentlePulse 3s ease-in-out infinite;
}

/* Animação para Ícone do WhatsApp */
@keyframes gentleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.whatsapp-icon-large {
    animation: gentleBounce 2s ease-in-out infinite;
}

/* Efeitos de Gradiente Animado */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.main-header {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.hero {
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

.btn-whatsapp-hero,
.btn-whatsapp-content,
.whatsapp-float a {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Efeitos de Texto */
@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.6), 0 0 30px rgba(102, 126, 234, 0.4);
    }
}

.seo-section h2:hover {
    animation: textGlow 1s ease-in-out;
}

/* Animação de Loading para Imagens (futuro) */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Efeitos de Foco para Acessibilidade */
@media (prefers-reduced-motion: no-preference) {
    .seo-section:focus-within {
        animation: gentlePulse 0.5s ease-in-out;
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }

    .btn-whatsapp-hero:focus,
    .btn-whatsapp-content:focus,
    .whatsapp-float a:focus {
        animation: bounce 0.5s ease-in-out;
        outline: 2px solid #fff;
        outline-offset: 2px;
    }
}

/* Animações de Scroll (Intersection Observer) */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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);
    }
}

/* Classes para animações de scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.scroll-animate-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Efeitos de Parallax Suave */
@keyframes parallaxFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.parallax-element {
    animation: parallaxFloat 6s ease-in-out infinite;
}

/* Animação para Elementos Interativos */
.interactive-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-element:hover {
    transform: scale(1.02);
}

.interactive-element:active {
    transform: scale(0.98);
}

/* Ripple Effect para Botões */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::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, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Animações de Sucesso/Confirmação */
@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.success-animation {
    animation: successPulse 0.6s ease-out;
}

/* Micro-interações para Formulários (futuro) */
@keyframes inputFocus {
    0% {
        border-color: #ddd;
    }
    100% {
        border-color: #667eea;
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
    }
}

.input-focus {
    transition: all 0.3s ease;
}

.input-focus:focus {
    animation: inputFocus 0.3s ease-out;
}

/* Animação de Fade para Transições de Página */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}