/* ===== Full-screen hero under fixed header ===== */
.wave-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: grid;
  grid-template-rows: var(--header-h) 1fr auto; /* header spacer, centered content, indicator */
  overflow: hidden;
  isolation: isolate;
  /* Darker gradient base */
  background: linear-gradient(to bottom, #050d0f, #07151a, #0a1e22, #0c2a30);
  text-align: center;
}

/* Content truly centered in row 2 */
.wave-hero .container {
  position: relative;
  z-index: 3;
}
.hero-center {
  grid-row: 2;
  place-self: center; /* center both axes inside row 2 */
  display: grid;
  gap: 12px;
}

/* Title (cyan→magenta, glow) */
.site-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-size: clamp(36px, 6vw, 72px);
  background: linear-gradient(to right, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroGlow 6s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% {
    filter: drop-shadow(0 0 1px #b3cfff);
  }
  100% {
    filter: drop-shadow(0 0 12px #ffffff);
  }
}

.site-subtitle {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

/* ===== Background layers (darker overlays + fades) ===== */
.wave-bg,
.wave-overlay,
.wave-overlay-gradient {
  position: absolute;
  inset: 0;
}
.wave-bg {
  z-index: 0;
  filter: blur(0.8px) brightness(1);
  animation: bgPulse 6s ease-in-out infinite alternate;
}
.wave-overlay {
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
  animation: overlayPulse 6s ease-in-out infinite alternate;
}
.wave-overlay-gradient {
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 13, 15, 0.95), transparent 22%),
    /* top fade into header */
      linear-gradient(to top, rgba(12, 42, 48, 0.9), transparent 28%); /* bottom fade into next section */
}

/* Wave rows (large like original, with deeper shadow for contrast) */
.wave-row {
  position: absolute;
  left: 25%;
  transform: translateX(-50%);
  white-space: nowrap;
  letter-spacing: 2px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  opacity: 0.85;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.8), 0 0 2px rgba(255, 255, 255, 0.08);
  mix-blend-mode: overlay;
  will-change: transform, color;
}

/* ===== Professional scroll indicator (centered) ===== */
.scroll-indicator {
  grid-row: 3;
  justify-self: center; /* center horizontally */
  margin-bottom: 40px; /* raised for visibility */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 4;
  text-decoration: none;
}
.scroll-indicator .chevron {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
  opacity: 0;
  animation: chevronFade 1.8s infinite;
}
.scroll-indicator .chevron:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes chevronFade {
  0% {
    opacity: 0;
    transform: translateY(-4px) rotate(45deg);
  }
  40% {
    opacity: 1;
    transform: translateY(0) rotate(45deg);
  }
  100% {
    opacity: 0;
    transform: translateY(6px) rotate(45deg);
  }
}

/* Background animations */
@keyframes bgPulse {
  0% {
    filter: blur(0.8px) brightness(1.15);
  }
  100% {
    filter: blur(1.1px) brightness(0.65);
  }
}
@keyframes overlayPulse {
  0% {
    background: rgba(0, 0, 0, 0.55);
  }
  100% {
    background: rgba(0, 0, 0, 0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave-bg,
  .wave-overlay,
  .site-title,
  .scroll-indicator .chevron {
    animation: none !important;
  }
}
