/* =========================
   GLOBAL BACKGROUND SYSTEM
   ========================= */
:root {
  --base-bg: #060606;
  --bg-accent1: #0f172a; /* subtle blue tone */
  --bg-accent2: #111827;
  --glow: #a855f7;
}

/* BODY BACKDROP */
html {
  background: radial-gradient(1600px 800px at 50% 0%, var(--bg-accent1), transparent 70%),
              radial-gradient(1400px 900px at 50% 100%, var(--bg-accent2), transparent 70%),
              var(--base-bg);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}

/* Smooth section flow */
section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Add a faint inner fade top/bottom so transitions feel continuous */
section::before,
section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: -1;
}

section::before {
  top: 0;
  background: linear-gradient(to top, transparent, rgba(0,0,0,0.45));
}
section::after {
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.45));
}

/* =========================
   ELECTRIC SHINE OVERLAY
   ========================= */
.shine-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, var(--glow) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: electric-shine 6s infinite linear;
  opacity: .5;
  filter: brightness(.4);
}

@keyframes electric-shine {
  0% {
    background-position: 100% 0;
    opacity: 0;
  }
  50% {
    background-position: 50% 0;
    opacity: 1;
  }
  100% {
    background-position: 0 0;
    opacity: 0;
  }
}

/* Optional: a slow background shift for depth */
@keyframes subtle-shift {
  0% { background-position: 50% 0%; }
  50% { background-position: 51% 100%; }
  100% { background-position: 50% 0%; }
}

html {
  animation: subtle-shift 60s ease-in-out infinite alternate;
}
