/* /css/hero-animation.css */

/* Ensure the hero section acts as the positioning anchor */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #08070F; /* Fallback & background color */
}

/* Strict positioning: fixed behind content, non-interactive */
#hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Force GPU layer promotion for the container */
  transform: translateZ(0);
  will-change: transform;
}

/* Ensure canvas stretches cleanly without scrollbars */
#hero-bg canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
  opacity: 0.5;
}