/*!
 * PD2V AI Hub — scene background styles
 * --------------------------------------
 * Shared CSS for the animated canvas (see scene-bg.js).
 * The canvas is fixed behind all content. A soft gradient overlay
 * keeps the UI readable.
 */

.scene-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#aiHubBgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: .85;
}
/* Soft readability overlay (cyan/magenta corners + vertical darken). */
.scene-bg-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(0,212,255,.10), transparent 38%),
    radial-gradient(circle at 85% 20%, rgba(255,45,138,.10), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(139,92,246,.08), transparent 55%),
    linear-gradient(180deg, rgba(4,7,15,.10) 0%, rgba(4,7,15,.28) 100%);
}

/* All direct children of body that hold UI should stack above bg. */
body > header,
body > main,
body > footer,
body > nav {
  position: relative;
  z-index: 1;
}

/* Accessibility — hide the whole canvas for users who opt out. */
@media (prefers-reduced-motion: reduce) {
  #aiHubBgCanvas { display: none !important; }
  .scene-bg-wrap::after {
    background:
      radial-gradient(circle at 15% 15%, rgba(0,212,255,.14), transparent 40%),
      radial-gradient(circle at 85% 20%, rgba(255,45,138,.14), transparent 45%),
      radial-gradient(circle at 50% 90%, rgba(139,92,246,.12), transparent 55%);
  }
}
