/* ===== NEON SNOW CONTAINER ===== */
.neon-snow-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    perspective: 800px;
    overflow: hidden;
}

/* ===== INDIVIDUAL SNOW PARTICLE ===== */
.neon-snow-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
    animation: neonSnowFall linear infinite;
}

/* Core glow layer */
.neon-snow-particle::before {
    content: '';
    position: absolute;
    inset: -50%;
    border-radius: 50%;
    background: inherit;
    filter: blur(6px);
    opacity: 0.7;
    z-index: -1;
}

/* Outer bloom */
.neon-snow-particle::after {
    content: '';
    position: absolute;
    inset: -100%;
    border-radius: 50%;
    background: inherit;
    filter: blur(18px);
    opacity: 0.3;
    z-index: -2;
}

/* ===== SIZE VARIANTS ===== */
.neon-snow-particle.size-xs {
    width: 3px;
    height: 3px;
}
.neon-snow-particle.size-xs::before { filter: blur(3px); opacity: 0.5; }
.neon-snow-particle.size-xs::after { filter: blur(8px); opacity: 0.2; }

.neon-snow-particle.size-sm {
    width: 5px;
    height: 5px;
}
.neon-snow-particle.size-sm::before { filter: blur(4px); opacity: 0.6; }
.neon-snow-particle.size-sm::after { filter: blur(12px); opacity: 0.25; }

.neon-snow-particle.size-md {
    width: 8px;
    height: 8px;
}

.neon-snow-particle.size-lg {
    width: 12px;
    height: 12px;
}
.neon-snow-particle.size-lg::before { filter: blur(8px); opacity: 0.8; }
.neon-snow-particle.size-lg::after { filter: blur(22px); opacity: 0.35; }

.neon-snow-particle.size-xl {
    width: 16px;
    height: 16px;
}
.neon-snow-particle.size-xl::before { filter: blur(10px); opacity: 0.85; }
.neon-snow-particle.size-xl::after { filter: blur(28px); opacity: 0.4; }

/* ===== NEON COLOR VARIANTS ===== */
.neon-snow-particle.color-cyan {
    background: radial-gradient(circle, #67e8f9 0%, #22d3ee 40%, rgba(34, 211, 238, 0) 70%);
    box-shadow: 0 0 6px 2px rgba(34, 211, 238, 0.6), 0 0 20px 4px rgba(34, 211, 238, 0.3);
}

.neon-snow-particle.color-indigo {
    background: radial-gradient(circle, #a5b4fc 0%, #818cf8 40%, rgba(129, 140, 248, 0) 70%);
    box-shadow: 0 0 6px 2px rgba(129, 140, 248, 0.6), 0 0 20px 4px rgba(129, 140, 248, 0.3);
}

.neon-snow-particle.color-green {
    background: radial-gradient(circle, #86efac 0%, #4ade80 40%, rgba(74, 222, 128, 0) 70%);
    box-shadow: 0 0 6px 2px rgba(74, 222, 128, 0.6), 0 0 20px 4px rgba(74, 222, 128, 0.3);
}

.neon-snow-particle.color-blue {
    background: radial-gradient(circle, #93c5fd 0%, #60a5fa 40%, rgba(96, 165, 250, 0) 70%);
    box-shadow: 0 0 6px 2px rgba(96, 165, 250, 0.6), 0 0 20px 4px rgba(96, 165, 250, 0.3);
}

.neon-snow-particle.color-purple {
    background: radial-gradient(circle, #c4b5fd 0%, #a78bfa 40%, rgba(167, 139, 250, 0) 70%);
    box-shadow: 0 0 6px 2px rgba(167, 139, 250, 0.6), 0 0 20px 4px rgba(167, 139, 250, 0.3);
}

.neon-snow-particle.color-white {
    background: radial-gradient(circle, #ffffff 0%, #e2e8f0 40%, rgba(226, 232, 240, 0) 70%);
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.5), 0 0 20px 4px rgba(255, 255, 255, 0.2);
}

/* ===== DEPTH LAYERS (3D) ===== */
.neon-snow-particle.depth-near {
    filter: blur(0px);
    z-index: 3;
}

.neon-snow-particle.depth-mid {
    filter: blur(0.5px);
    z-index: 2;
}

.neon-snow-particle.depth-far {
    filter: blur(1.5px);
    opacity: 0.6;
    z-index: 1;
}

/* ===== FALL KEYFRAMES ===== */
@keyframes neonSnowFall {
    0% {
        transform: translateY(-5vh) translateX(0px) translateZ(0px) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(105vh) translateX(var(--drift-x, 30px)) translateZ(var(--drift-z, -20px)) rotate(var(--spin, 180deg));
        opacity: 0;
    }
}

/* ===== SWAY ANIMATION ===== */
.neon-snow-particle.sway-1 {
    animation: neonSnowFall var(--fall-duration, 8s) linear infinite,
               neonSway1 3s ease-in-out infinite;
}

.neon-snow-particle.sway-2 {
    animation: neonSnowFall var(--fall-duration, 10s) linear infinite,
               neonSway2 4s ease-in-out infinite;
}

.neon-snow-particle.sway-3 {
    animation: neonSnowFall var(--fall-duration, 12s) linear infinite,
               neonSway3 5s ease-in-out infinite;
}

@keyframes neonSway1 {
    0%, 100% { margin-left: 0px; }
    50% { margin-left: 25px; }
}

@keyframes neonSway2 {
    0%, 100% { margin-left: 0px; }
    33% { margin-left: -20px; }
    66% { margin-left: 15px; }
}

@keyframes neonSway3 {
    0%, 100% { margin-left: 0px; }
    25% { margin-left: 18px; }
    75% { margin-left: -22px; }
}

/* ===== PULSE GLOW ANIMATION ===== */
.neon-snow-particle.pulse {
    animation: neonSnowFall var(--fall-duration, 8s) linear infinite,
               neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        filter: blur(0px) brightness(1);
        box-shadow: 0 0 6px 2px var(--glow-color, rgba(34, 211, 238, 0.5));
    }
    50% {
        filter: blur(0px) brightness(1.5);
        box-shadow: 0 0 12px 4px var(--glow-color, rgba(34, 211, 238, 0.8)),
                    0 0 30px 8px var(--glow-color, rgba(34, 211, 238, 0.4));
    }
}

/* ===== AMBIENT GLOW BLOBS (background atmosphere) ===== */
.neon-ambient-blob {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.08;
    animation: ambientDrift 20s ease-in-out infinite alternate;
}

.neon-ambient-blob.blob-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -100px;
    background: radial-gradient(circle, #6366f1, transparent);
    animation-duration: 22s;
}

.neon-ambient-blob.blob-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -80px;
    background: radial-gradient(circle, #22d3ee, transparent);
    animation-duration: 18s;
    animation-delay: -5s;
}

.neon-ambient-blob.blob-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 50%;
    background: radial-gradient(circle, #4ade80, transparent);
    animation-duration: 25s;
    animation-delay: -10s;
}

@keyframes ambientDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -20px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
    100% {
        transform: translate(10px, -10px) scale(1.05);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .neon-snow-particle.size-lg,
    .neon-snow-particle.size-xl {
        display: none;
    }
}
