/* Base background effect */
.background-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}

.background-effect canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
}

/* Animated gradient overlay */
.background-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        transparent 30%,
        rgba(0,85,221,0.1) 70%,
        transparent 100%
    );
    animation: rotateGradient 30s linear infinite;
}

/* Scanlines effect */
.background-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,85,221,0.03) 3px,
        transparent 4px
    );
    pointer-events: none;
}

/* WebGL Canvas styling */
.background-effect canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

/* Additional overlay gradient */
.background-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.4) 40%,
        rgba(0,85,221,0.1) 80%,
        rgba(0,85,221,0.2) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Animations */
@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Additional ambient light effect */
.ambient-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0,85,221,0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}