/* ============================================
   DESENTUPIDORA EXATA - PREMIUM ANIMATIONS
   Sophisticated & Performance-Optimized
   ============================================ */

/* ===== KEYFRAME DEFINITIONS ===== */

/* Fade Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleInBounce {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        opacity: 1;
        transform: scale(1.1);
    }
    80% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Float Animation - Premium */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-25px) rotate(2deg);
    }
}

@keyframes floatSoft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Pulse Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(0, 212, 255, 0.3),
            0 0 0 0 rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 12px 48px rgba(0, 212, 255, 0.4),
            0 0 0 12px rgba(0, 212, 255, 0);
    }
}

@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Gradient Shift */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Border Gradient Animation */
@keyframes borderGradient {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Text Shine */
@keyframes textShine {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Particle Float */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0) translateX(20px);
    }
    75% {
        transform: translateY(20px) translateX(10px);
    }
}

/* Shadow Pulse */
@keyframes shadowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.2);
    }
}

/* Glow Effects */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.4), 0 0 80px rgba(0, 212, 255, 0.2);
    }
}

@keyframes glowAccent {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 53, 0.4), 0 0 80px rgba(255, 107, 53, 0.2);
    }
}

/* Slide Animations */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Rotate */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-15deg) scale(0.85);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Bounce */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Wiggle */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

/* Badge Pulse */
@keyframes pulseBadge {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
    }
}

/* WhatsApp Pulse */
@keyframes whatsappPulse {
    0%, 100% { 
        box-shadow: 
            0 8px 32px rgba(37, 211, 102, 0.4),
            0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% { 
        box-shadow: 
            0 8px 32px rgba(37, 211, 102, 0.4),
            0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ===== ANIMATION CLASSES ===== */

/* Fade Classes */
.animate-fadeIn {
    animation: fadeIn 0.7s ease-out both;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease-out both;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out both;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out both;
}

/* Scale Classes */
.animate-scaleIn {
    animation: scaleIn 0.6s ease-out both;
}

.animate-scaleInBounce {
    animation: scaleInBounce 0.8s ease-out both;
}

/* Float Classes */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-floatSoft {
    animation: floatSoft 3.5s ease-in-out infinite;
}

/* Pulse Classes */
.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-pulseGlow {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

/* Other Classes */
.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.animate-wiggle {
    animation: wiggle 1s ease-in-out infinite;
}

.animate-glow {
    animation: glow 3s ease-in-out infinite;
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }
.delay-1000 { animation-delay: 1000ms; }
.delay-1200 { animation-delay: 1200ms; }
.delay-1500 { animation-delay: 1500ms; }

/* ===== ELEMENT ANIMATIONS ===== */

/* Header - Sem animação de entrada */
.header {
    /* Animação removida */
}

.logo h1 {
    /* Animação removida */
}

/* Hero Section - Sem animações de entrada */
.hero-content::before {
    animation: pulseBadge 2s ease-in-out infinite;
}

.hero-title {
    animation: textShine 8s linear infinite;
}

.hero-description {
    /* Animação removida */
}

.hero-ctas {
    /* Animação removida */
}

.hero-ctas .cta-primary {
    /* Animação removida */
}

.hero-ctas .cta-secondary {
    /* Animação removida */
}

.hero-ctas .cta-tertiary {
    /* Animação removida */
}

/* Hero Emojis - Apenas animação de flutuação */
.hero-emoji {
    animation: float 4s ease-in-out infinite;
}

.hero-emoji:nth-child(1) {
    animation-delay: 0s;
}

.hero-emoji:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-emoji:nth-child(3) {
    animation-delay: 1s;
}

/* WhatsApp Float - Apenas animação de pulso */
.whatsapp-link {
    animation: whatsappPulse 2s ease-in-out infinite;
}

/* ===== SCROLL-TRIGGERED ANIMATIONS - DESABILITADAS ===== */

/* SEO Sections - Visíveis imediatamente */
.seo-section {
    opacity: 1;
    transform: translateY(0);
    transition: 
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.seo-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.seo-section h2 {
    opacity: 1;
    transform: translateY(0);
}

.seo-section.visible h2 {
    opacity: 1;
    transform: translateY(0);
}

.seo-section p {
    opacity: 1;
}

.seo-section.visible p {
    opacity: 1;
}

.cta-content {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: all 0.3s ease;
}

.seo-section.visible .cta-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Footer - Visível imediatamente */
.footer-section {
    opacity: 1;
    transform: translateY(0);
}

.footer-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-section:nth-child(1) { transition-delay: 0s; }
.footer-section:nth-child(2) { transition-delay: 0s; }
.footer-section:nth-child(3) { transition-delay: 0s; }
.footer-section:nth-child(4) { transition-delay: 0s; }

/* Map Section - Visível imediatamente */
.gmb-section h2 {
    /* Animação removida */
}

.map-container {
    /* Animação removida */
}

/* ===== SITEMAP ANIMATIONS - DESABILITADAS ===== */

.sitemap-link {
    opacity: 1;
    transform: translateY(0);
    transition: 
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.seo-section.visible .sitemap-link {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger effect removido */
.seo-section.visible .sitemap-link:nth-child(1) { transition-delay: 0s; }
.seo-section.visible .sitemap-link:nth-child(2) { transition-delay: 0s; }
.seo-section.visible .sitemap-link:nth-child(3) { transition-delay: 0s; }
.seo-section.visible .sitemap-link:nth-child(4) { transition-delay: 0s; }
.seo-section.visible .sitemap-link:nth-child(5) { transition-delay: 0s; }
.seo-section.visible .sitemap-link:nth-child(6) { transition-delay: 0s; }
.seo-section.visible .sitemap-link:nth-child(7) { transition-delay: 0s; }
.seo-section.visible .sitemap-link:nth-child(8) { transition-delay: 0s; }
.seo-section.visible .sitemap-link:nth-child(9) { transition-delay: 0s; }
.seo-section.visible .sitemap-link:nth-child(10) { transition-delay: 0s; }

/* ===== HOVER ANIMATIONS ===== */

/* Button Shine Effect */
.cta-primary::before,
.cta-secondary::before,
.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.cta-primary:hover::before,
.cta-secondary:hover::before,
.cta-content:hover::before {
    left: 100%;
}

/* Link Hover Effect */
.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Sitemap Link Top Border */
.sitemap-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sitemap-link:hover::before {
    transform: scaleX(1);
}

/* ===== LOADING STATES ===== */

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 212, 255, 0.1),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 0%,
        var(--bg-card-hover) 50%,
        var(--bg-card) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
    border-radius: var(--radius-md);
}

/* ===== DATA ATTRIBUTES FOR JS - DESABILITADOS ===== */

[data-animate] {
    opacity: 1;
    transform: translateY(0);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade"] {
    transform: none;
}

[data-animate="slide-left"] {
    transform: translateX(0);
}

[data-animate="slide-right"] {
    transform: translateX(0);
}

[data-animate="scale"] {
    transform: scale(1);
}

[data-animate="scale"].is-visible {
    transform: scale(1);
}

/* ===== ACCESSIBILITY - REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-emoji,
    .whatsapp-link,
    .header,
    .hero-title,
    .hero-content::before,
    .seo-section::before,
    .footer::before {
        animation: none !important;
    }

    .seo-section,
    .footer-section,
    .sitemap-link {
        opacity: 1 !important;
        transform: none !important;
    }

    .seo-section h2,
    .seo-section p,
    .cta-content {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== MOBILE OPTIMIZATIONS ===== */

@media (max-width: 767px) {
    /* Animações desabilitadas no mobile */
    .hero-title,
    .hero-description,
    .hero-ctas {
        /* Sem animação */
    }

    .hero-emoji {
        animation: floatSoft 4s ease-in-out infinite;
    }

    .seo-section {
        /* Sem transição */
    }

    /* Sem delays de animação */
    .hero-ctas .cta-primary { animation-delay: 0s; }
    .hero-ctas .cta-secondary { animation-delay: 0s; }
    .hero-ctas .cta-tertiary { animation-delay: 0s; }

    .hero-emoji:nth-child(1) { animation-delay: 0s; }
    .hero-emoji:nth-child(2) { animation-delay: 0.5s; }
    .hero-emoji:nth-child(3) { animation-delay: 1s; }
}
