/*
 * PONTE IA - Animações Intensas e Hipnóticas
 * Ondas fluidas, partículas conectadas, glow effects intensos
 */

/* ========================================
   FLOATING WAVES - Ondas Fluidas (DESATIVADAS)
   ======================================== */

.hero::before,
.hero::after {
    display: none !important; /* Sem luz de fundo - apenas preto */
}

@keyframes wave-flow-1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30%, -20%) rotate(90deg) scale(1.2);
        opacity: 0.4;
    }
    50% {
        transform: translate(50%, 10%) rotate(180deg) scale(0.9);
        opacity: 0.2;
    }
    75% {
        transform: translate(20%, 30%) rotate(270deg) scale(1.1);
        opacity: 0.35;
    }
}

@keyframes wave-flow-2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.25;
    }
    33% {
        transform: translate(-30%, 20%) rotate(120deg) scale(1.3);
        opacity: 0.35;
    }
    66% {
        transform: translate(-50%, -10%) rotate(240deg) scale(0.8);
        opacity: 0.2;
    }
}

/* ========================================
   ENERGY LINES - Linhas de Energia
   ======================================== */

.section::before {
    display: none !important; /* Sem linha de energia - fundo preto limpo */
}

@keyframes energy-flow {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        transform: translateX(0);
        opacity: 0.5;
    }
}

/* ========================================
   GLOW PULSE - Pulso de Brilho
   ======================================== */

/* Glow desativado - visual limpo */
.hero-title,
.section-title {
    /* animation: glow-pulse 3s ease-in-out infinite; */
    text-shadow: none;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow: none;
    }
    50% {
        text-shadow: none;
    }
}

/* ========================================
   PARTICLE TRAILS - Rastros de Partículas
   ======================================== */

.floating-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.floating-shape::before,
.floating-shape::after {
    display: none !important; /* Sem blur/glow - fundo preto limpo */
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* ========================================
   MAGNETIC ATTRACTION - Atração Magnética
   ======================================== */

.card-3d {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        var(--color-primary) 0%,
        var(--color-primary-dark) 50%,
        var(--color-primary) 100%
    );
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    animation: border-flow 3s linear infinite;
}

.card-3d:hover::before {
    opacity: 0.5;
}

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

/* ========================================
   ELECTRIC GLOW - Brilho Elétrico
   ======================================== */

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 200px;
    height: 200px;
}

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

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

/* ========================================
   LIQUID MORPH - Morfologia Líquida
   ======================================== */

.solution-card {
    animation: liquid-morph 8s ease-in-out infinite;
}

.solution-card:nth-child(even) {
    animation-delay: 2s;
}

@keyframes liquid-morph {
    0%, 100% {
        border-radius: 16px 24px 16px 24px;
    }
    25% {
        border-radius: 24px 16px 24px 16px;
    }
    50% {
        border-radius: 20px 20px 20px 20px;
    }
    75% {
        border-radius: 16px 24px 16px 24px;
    }
}

/* ========================================
   SHIMMER EFFECT - Efeito Brilho
   ======================================== */

.section-badge {
    position: relative;
    overflow: hidden;
}

.section-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ========================================
   BREATHING GLOW - Respiração de Luz
   ======================================== */

.hero-badge,
.featured-badge,
.team-badge {
    animation: breathing-glow 2s ease-in-out infinite;
}

@keyframes breathing-glow {
    0%, 100% {
        box-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            inset 0 0 5px currentColor;
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 30px currentColor,
            inset 0 0 10px currentColor;
        transform: scale(1.05);
    }
}

/* ========================================
   RIPPLE EFFECT - Efeito Ondulação
   ======================================== */

.stat-item {
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        var(--color-primary-glow) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    animation: ripple 3s ease-out infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* ========================================
   NEON PULSE - Pulso Neon
   ======================================== */

.nav-link.active,
.nav-link:hover {
    animation: neon-pulse 1.5s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        text-shadow: 
            0 0 4px var(--color-primary),
            0 0 8px var(--color-primary);
    }
    50% {
        text-shadow: 
            0 0 8px var(--color-primary),
            0 0 16px var(--color-primary),
            0 0 24px var(--color-primary);
    }
}

/* ========================================
   ENERGY BURST - Explosão de Energia
   ======================================== */

.timeline-icon {
    position: relative;
    animation: energy-burst 3s ease-in-out infinite;
}

@keyframes energy-burst {
    0%, 100% {
        box-shadow: 
            0 0 10px var(--color-primary-glow),
            inset 0 0 10px var(--color-primary-glow);
        transform: scale(1) rotate(0deg);
    }
    50% {
        box-shadow: 
            0 0 30px var(--color-primary-glow),
            0 0 50px var(--color-primary-glow),
            inset 0 0 20px var(--color-primary-glow);
        transform: scale(1.1) rotate(180deg);
    }
}

/* ========================================
   WAVE DISTORTION - Distorção de Onda
   ======================================== */

.manifesto-image img {
    animation: wave-distortion 10s ease-in-out infinite;
}

@keyframes wave-distortion {
    0%, 100% {
        filter: hue-rotate(0deg) brightness(1);
    }
    25% {
        filter: hue-rotate(5deg) brightness(1.1);
    }
    50% {
        filter: hue-rotate(-5deg) brightness(0.9);
    }
    75% {
        filter: hue-rotate(5deg) brightness(1.1);
    }
}

/* ========================================
   GLITCH EFFECT - Efeito Glitch Sutil
   ======================================== */

.text-gradient {
    position: relative;
    animation: subtle-glitch 5s ease-in-out infinite;
}

@keyframes subtle-glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
    98% {
        transform: translate(2px, 2px);
    }
}

/* ========================================
   FLOATING PARTICLES ENHANCEMENT
   ======================================== */

.floating-shape {
    animation: enhanced-float 20s ease-in-out infinite;
    filter: blur(60px) brightness(1.2);
}

.floating-shape.shape-1 {
    animation: enhanced-float-1 18s ease-in-out infinite;
}

.floating-shape.shape-2 {
    animation: enhanced-float-2 22s ease-in-out infinite;
}

.floating-shape.shape-3 {
    animation: enhanced-float-3 20s ease-in-out infinite;
}

.floating-shape.shape-4 {
    animation: enhanced-float-4 24s ease-in-out infinite;
}

@keyframes enhanced-float-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(50px, -80px) scale(1.3) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, 40px) scale(0.8) rotate(180deg);
        opacity: 0.2;
    }
    75% {
        transform: translate(40px, 60px) scale(1.1) rotate(270deg);
        opacity: 0.5;
    }
}

@keyframes enhanced-float-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.2;
    }
    33% {
        transform: translate(-60px, 50px) scale(1.4) rotate(120deg);
        opacity: 0.5;
    }
    66% {
        transform: translate(40px, -40px) scale(0.7) rotate(240deg);
        opacity: 0.3;
    }
}

@keyframes enhanced-float-3 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.25;
    }
    40% {
        transform: translate(70px, 30px) scale(1.2) rotate(144deg);
        opacity: 0.55;
    }
    80% {
        transform: translate(-50px, -50px) scale(0.9) rotate(288deg);
        opacity: 0.35;
    }
}

@keyframes enhanced-float-4 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.2;
    }
    30% {
        transform: translate(-40px, -60px) scale(1.5) rotate(108deg);
        opacity: 0.6;
    }
    60% {
        transform: translate(60px, 20px) scale(0.6) rotate(216deg);
        opacity: 0.25;
    }
    90% {
        transform: translate(-20px, 40px) scale(1.1) rotate(324deg);
        opacity: 0.45;
    }
}

/* ========================================
   RESPONSIVE - Reduzir intensidade no mobile
   ======================================== */

@media (max-width: 768px) {
    .hero::before,
    .hero::after {
        opacity: 0.5;
        filter: blur(40px);
    }
    
    .floating-shape {
        filter: blur(40px) brightness(1);
    }
    
    @keyframes glow-pulse {
        0%, 100% {
            text-shadow: 0 0 5px var(--color-primary-glow);
        }
        50% {
            text-shadow: 0 0 10px var(--color-primary-glow);
        }
    }
}

/* ========================================
   ACCESSIBILITY - Respeitar preferências
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
