/* ============================================================
   EpiphanyMade — Aurora Hero Background
   Layer stack (bottom → top):
     z-2  .hero__photo      — dashboard photo, 0.35 opacity
     z-3  .hero__teal-wash  — static teal glow, lighter at center
     z-4  .aurora           — animated blobs on top
     z-5  .hero__accents    — floating dots
     z-6  .hero__grain      — film grain
     z-7  .hero__scroll-indicator
     z-8  .hero__content    — text + CTAs
   ============================================================ */

.aurora {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
}

/* Each layer covers the ENTIRE hero + 100px bleed on all sides.
   background-size: 300% 300% means the gradient pattern tiles
   at 3× — the background-position animation then moves that
   large tile, creating smooth full-coverage drift. */

.aurora__layer--1 {
  position: absolute;
  inset: -100px;
  background:
    radial-gradient(ellipse 600px 300px at 20% 50%, rgba(6, 182, 212, 0.85), transparent),
    radial-gradient(ellipse 500px 400px at 80% 30%, rgba(34, 211, 238, 0.70), transparent),
    radial-gradient(ellipse 400px 300px at 60% 80%, rgba(6, 182, 212, 0.55), transparent);
  background-size: 300% 300%;
  animation: aurora-move-1 20s ease-in-out infinite alternate;
  filter: blur(60px);
  opacity: 0.65;
}

.aurora__layer--2 {
  position: absolute;
  inset: -100px;
  background:
    radial-gradient(ellipse 400px 500px at 70% 60%, rgba(6, 182, 212, 0.75), transparent),
    radial-gradient(ellipse 500px 300px at 25% 40%, rgba(8, 145, 178, 0.60), transparent);
  background-size: 300% 300%;
  animation: aurora-move-2 26s ease-in-out infinite alternate;
  filter: blur(70px);
  opacity: 0.60;
}

.aurora__layer--3 {
  position: absolute;
  inset: -100px;
  background:
    radial-gradient(ellipse 350px 250px at 50% 50%, rgba(132, 204, 22, 0.30), transparent),
    radial-gradient(ellipse 300px 400px at 30% 70%, rgba(6, 182, 212, 0.50), transparent);
  background-size: 350% 350%;
  animation: aurora-move-3 18s ease-in-out infinite alternate;
  filter: blur(65px);
  opacity: 0.55;
}

/* ----------------------------------------------------------
   AURORA KEYFRAMES — background-position drift
   ---------------------------------------------------------- */

@keyframes aurora-move-1 {
  0%   { background-position: 0% 0%; }
  25%  { background-position: 100% 25%; }
  50%  { background-position: 50% 100%; }
  75%  { background-position: 0% 75%; }
  100% { background-position: 100% 0%; }
}

@keyframes aurora-move-2 {
  0%   { background-position: 100% 100%; }
  33%  { background-position: 0% 25%; }
  66%  { background-position: 75% 0%; }
  100% { background-position: 25% 100%; }
}

@keyframes aurora-move-3 {
  0%   { background-position: 25% 100%; }
  50%  { background-position: 100% 0%; }
  100% { background-position: 0% 75%; }
}

/* ----------------------------------------------------------
   FLOATING HERO ACCENTS
   ---------------------------------------------------------- */

.hero__accents {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.hero__accent {
  position: absolute;
  border-radius: 50%;
}

.hero__accent--1 {
  width: 6px; height: 6px;
  background: rgba(6, 182, 212, 0.6);
  top: 22%; left: 12%;
  animation: float-drift 9s ease-in-out infinite;
}

.hero__accent--2 {
  width: 4px; height: 4px;
  background: rgba(132, 204, 22, 0.5);
  top: 65%; right: 18%;
  animation: float-drift 12s ease-in-out infinite reverse;
}

.hero__accent--3 {
  width: 8px; height: 8px;
  border: 1.5px solid rgba(8, 145, 178, 0.4);
  background: transparent;
  top: 38%; right: 8%;
  border-radius: 50%;
  animation: float-drift 15s ease-in-out infinite;
}

.hero__accent--4 {
  width: 5px; height: 5px;
  background: rgba(255, 255, 255, 0.15);
  top: 75%; left: 25%;
  animation: float-drift 10s ease-in-out infinite;
  animation-delay: -4s;
}

/* ----------------------------------------------------------
   HERO SCROLL INDICATOR
   ---------------------------------------------------------- */

.hero__scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.hero__scroll-indicator:hover {
  opacity: 1;
}

.hero__scroll-indicator svg {
  display: block;
}

/* ----------------------------------------------------------
   GRAIN TEXTURE OVERLAY
   ---------------------------------------------------------- */

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 6;
  background-image: url("assets/grain.svg");
  background-repeat: repeat;
  opacity: 0.3;
  pointer-events: none;
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 768px) {
  .aurora__layer--3 {
    display: none;
  }

  .hero__accent--3,
  .hero__accent--4 {
    display: none;
  }
}

/* ----------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .aurora__layer--1,
  .aurora__layer--2,
  .aurora__layer--3 {
    animation: none;
  }

  .hero__accent {
    display: none;
  }

  .hero__scroll-indicator {
    animation: none;
  }
}
