/* ========================================
   EFEITOS DE BACKGROUND MODERNOS
   ======================================== */

/* Efeito de Partículas Flutuantes */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.05));
    border-radius: 50%;
    animation: float 20s infinite linear;
    opacity: 0.6;
}

.particle:nth-child(1) { width: 4px; height: 4px; left: 10%; animation-delay: 0s; animation-duration: 15s; }
.particle:nth-child(2) { width: 6px; height: 6px; left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { width: 3px; height: 3px; left: 30%; animation-delay: 4s; animation-duration: 12s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 40%; animation-delay: 6s; animation-duration: 16s; }
.particle:nth-child(5) { width: 4px; height: 4px; left: 50%; animation-delay: 8s; animation-duration: 14s; }
.particle:nth-child(6) { width: 7px; height: 7px; left: 60%; animation-delay: 10s; animation-duration: 20s; }
.particle:nth-child(7) { width: 3px; height: 3px; left: 70%; animation-delay: 12s; animation-duration: 13s; }
.particle:nth-child(8) { width: 5px; height: 5px; left: 80%; animation-delay: 14s; animation-duration: 17s; }
.particle:nth-child(9) { width: 4px; height: 4px; left: 90%; animation-delay: 16s; animation-duration: 15s; }
.particle:nth-child(10) { width: 6px; height: 6px; left: 95%; animation-delay: 18s; animation-duration: 19s; }

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Efeito de Ondas */
.wave-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: linear-gradient(90deg, 
        rgba(0, 212, 255, 0.03) 0%, 
        rgba(0, 153, 204, 0.05) 25%, 
        rgba(0, 212, 255, 0.03) 50%, 
        rgba(0, 153, 204, 0.05) 75%, 
        rgba(0, 212, 255, 0.03) 100%);
    animation: wave 15s infinite linear;
}

.wave:nth-child(2) {
    animation-delay: -5s;
    opacity: 0.5;
    height: 80px;
}

.wave:nth-child(3) {
    animation-delay: -10s;
    opacity: 0.3;
    height: 60px;
}

@keyframes wave {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Efeito de Grid Dinâmico */
.dynamic-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3;
    background: 
        linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s infinite linear;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Efeito de Luz Pulsante */
.pulsing-light {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -4;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.1;
    }
}

/* Efeito de Partículas Conectadas */
.connected-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.connected-node {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    animation: nodeFloat 25s infinite linear;
}

.connected-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    animation: lineGlow 3s infinite ease-in-out;
}

@keyframes nodeFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

@keyframes lineGlow {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.4;
    }
}

/* Responsividade dos Efeitos */
@media (max-width: 768px) {
    .particle {
        animation-duration: 12s;
    }
    
    .wave {
        height: 60px;
        animation-duration: 10s;
    }
    
    .dynamic-grid {
        background-size: 30px 30px;
    }
    
    .pulsing-light {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .particle {
        animation-duration: 10s;
    }
    
    .wave {
        height: 40px;
        animation-duration: 8s;
    }
    
    .dynamic-grid {
        background-size: 25px 25px;
    }
    
    .pulsing-light {
        width: 150px;
        height: 150px;
    }
}
