/* =========================================================
   Interactive Background — Luna Portfolio
   Neon Particles + Aurora + Wire Grid
   ========================================================= */

:root {
  --bg-accent: #a855f7;     /* main purple */
  --bg-accent-2: #7af3c5;   /* mint green */
  --bg-deep: #0b0c1a;       /* base */
  --bg-fade: #101225;
}

/* ===== Layering fix ===== */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0; /* sits above body bg but below content */
  overflow: clip;
  background:
    radial-gradient(circle at 15% 10%, #1c1830 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, #0e2630 0%, transparent 35%),
    radial-gradient(circle at 50% 120%, #120f22, #0b0c1a 60%);
}

/* elevate main content properly */
.card {
  position: relative;
  z-index: 2;
}
.mouse-effect {
  position: fixed;
  z-index: 1;
}

/* ===== Canvas setup ===== */
#bg-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none; /* don’t block clicks */
}

/* ===== Subtle vignette ===== */
#bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
              transparent 60%,
              rgba(0, 0, 0, 0.25) 100%);
  mix-blend-mode: normal;
}

/* ===== Scrollbar smoothing ===== */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #3f3f5a;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bg-accent);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  #bg-canvas {
    opacity: 0.7;
  }
}
