/* Mouse Glow Effect - Iluminação suave que segue o cursor */

body {
    position: relative;
    overflow-x: hidden;
}

/* Elemento de iluminação que segue o mouse */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle 650px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.08) 15%,
            rgba(255, 255, 255, 0.04) 35%,
            rgba(255, 255, 255, 0.02) 55%,
            transparent 75%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.mouse-active::before {
    opacity: 1;
}

/* Efeito adicional em cards e elementos interativos */
.project-card-simplified,
.timeline-item,
.tech-badge,
nav a,
button {
    position: relative;
    transition: all 0.3s ease;
}

/* Intensifica o brilho em elementos hover */
.project-card-simplified:hover,
.timeline-item:hover {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2),
        0 0 80px rgba(255, 255, 255, 0.1);
}

/* Efeito de spotlight em seções */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle 450px at var(--section-mouse-x, 50%) var(--section-mouse-y, 50%),
            rgba(255, 255, 255, 0.06) 0%,
            rgba(255, 255, 255, 0.03) 30%,
            transparent 65%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

section:hover::before {
    opacity: 1;
}

/* Garante que o conteúdo fique acima do efeito */
section>* {
    position: relative;
    z-index: 2;
}