﻿/* ============================================
   BJNFNE — Background: Grid, Particles & Glows
   Designed & developed by DosX
   ============================================ */

/* --- Animated Background --- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

#particles,
#cursorTrail {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#particles {
    z-index: 0;
}
#cursorTrail {
    z-index: 10;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: glowFloat 12s ease-in-out infinite;
    will-change: transform;
    contain: layout style;
}

.bg-glow--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.bg-glow--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan-glow), transparent 70%);
    bottom: 20%;
    left: -100px;
    animation-delay: -4s;
}

.bg-glow--3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(77, 144, 228, 0.15), transparent 70%);
    top: 60%;
    right: -150px;
    animation-delay: -8s;
}

@keyframes glowFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -20px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }
    75% {
        transform: translate(20px, 20px) scale(1.02);
    }
}
