/* ═══════════════════════════════════════════════════════════════════════════════
   INTERACTIVE BACKGROUND BOXES RIPPLE EFFECT
   Aceternity-style Interactive Grid Boxes with Kinetic Ripple Waves & Gold Glow
   ═══════════════════════════════════════════════════════════════════════════════ */

.bg-boxes-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  background-color: #08080a;
  /* Soft fade at the very bottom and top to blend seamlessly into page flow */
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 60%, transparent 100%);
}

.bg-boxes-grid {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  display: grid;
  pointer-events: auto;
  user-select: none;
  cursor: pointer;
}

/* Individual Grid Box Cell (Matches reference Image 1 & 2) */
.bg-box-cell {
  position: relative;
  box-sizing: border-box;
  background-color: #0b0b0d;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Direct Hover Effect */
.bg-box-cell:hover {
  background-color: rgba(245, 203, 66, 0.22) !important;
  border-color: rgba(245, 203, 66, 0.65) !important;
  box-shadow: inset 0 0 16px rgba(245, 203, 66, 0.28),
              0 0 24px rgba(245, 203, 66, 0.35) !important;
  transition: background-color 0.05s ease, border-color 0.05s ease, box-shadow 0.05s ease !important;
  z-index: 2;
}

/* Proximity / Neighbor Mouse Trail Glow */
.bg-box-cell.neighbor-glow {
  background-color: rgba(245, 203, 66, 0.09) !important;
  border-color: rgba(245, 203, 66, 0.30) !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* Ripple Wave Animation (Triggered by click or ambient wave) */
.bg-box-cell.rippling {
  animation: cellRippleWave 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 3;
}

@keyframes cellRippleWave {
  0% {
    background-color: #0b0b0d;
    border-color: rgba(255, 255, 255, 0.075);
    box-shadow: none;
  }
  30% {
    background-color: rgba(245, 203, 66, 0.32);
    border-color: rgba(255, 246, 214, 0.90);
    box-shadow: inset 0 0 20px rgba(245, 203, 66, 0.45),
                0 0 32px rgba(245, 203, 66, 0.50);
  }
  100% {
    background-color: #0b0b0d;
    border-color: rgba(255, 255, 255, 0.075);
    box-shadow: none;
  }
}

/* Subtle Top Spotlight Integration */
.bg-boxes-radial-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle 800px at 50% 20%, rgba(245, 203, 66, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 2;
}
