/* =========================================
   BACKGROUND EFFECTS - TECH MINIMALISTA
   Efeitos de fundo "vivo" com elementos tech
   ========================================= */

/* 1. FUNDO BASE COM GRADIENTE TECH */
body {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 50%, #e8f0f7 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* 2. CAMADA DE EFEITOS ANIMADOS NO FUNDO */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundShift 15s ease-in-out infinite;
}

/* 3. ANIMAÇÃO DO FUNDO */
@keyframes backgroundShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* 4. GRID TECH MINIMALISTA */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, rgba(226, 232, 240, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.3) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: 0 0, 0 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    animation: gridFloat 20s linear infinite;
}

@keyframes gridFloat {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 80px 80px, 80px 80px;
    }
}

/* 5. EFEITO GLOW NOS ELEMENTOS PRINCIPAIS */
.hero,
.section,
.card,
.btn-primary {
    position: relative;
    z-index: 1;
}

/* 6. GLOW AO REDOR DE SEÇÕES */
.hero::before,
.section::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* 7. EFEITO BORDA GLOW NOS CARDS */
.card {
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.1) 0%, 
        transparent 50%, 
        rgba(6, 182, 212, 0.1) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.card:hover::before {
    opacity: 1;
}

/* 8. EFEITO SHINE NOS BOTÕES */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::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.5s ease;
    z-index: 1;
}

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

/* 9. EFEITOS NOS ELEMENTOS COM CLASSE HIGHLIGHT */
.highlight,
.text-highlight {
    position: relative;
}

.highlight::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    opacity: 0.3;
    border-radius: 2px;
}

/* 10. EFEITO FLOAT NOS ELEMENTOS */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.card {
    animation: float 3s ease-in-out infinite;
}

/* 11. EFEITO BORDER GLOW AO HOVER */
.card:hover {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.15);
}

/* 12. EFEITO PULSE NOS ELEMENTOS IMPORTANTES */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* 13. EFEITO TECH NOS INPUTS */
input,
textarea,
select {
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 14. EFEITO GRADIENT TEXT */
.gradient-text {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 15. EFEITO BACKDROP NOS MODAIS/OVERLAYS */
.overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.5);
}

/* 16. ANIMAÇÃO DE ENTRADA */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: slideInUp 0.6s ease-out forwards;
}

/* 17. EFEITO GLOW NOS ÍCONES */
.icon-glow {
    position: relative;
    transition: all 0.3s ease;
}

.icon-glow:hover {
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.4));
}

/* 18. EFEITO RIPPLE NO CLIQUE */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

/* 19. EFEITO PARALLAX NAS SEÇÕES */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 20. EFEITO SKELETON LOADING */
@keyframes skeleton-loading {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    animation: skeleton-loading 2s infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
}

/* 21. RESPONSIVIDADE - DESABILITAR EFEITOS EM MOBILE PARA PERFORMANCE */
@media (max-width: 768px) {
    body::after {
        background-size: 40px 40px;
        opacity: 0.15;
    }
    
    .card {
        animation: none;
    }
    
    @keyframes glowPulse {
        0%, 100% {
            opacity: 0;
        }
        50% {
            opacity: 0.3;
        }
    }
}
