/* ═══════════════════════════════════════════════
   PORTFOLIO — Hero Section v2.0
   Typography-forward hero with depth layers
   ═══════════════════════════════════════════════ */

/* ── Hero Container ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero__canvas-container {
  position: absolute;
  inset: 0;
  z-index: var(--z-canvas);
}

.hero__canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ── Breathing Glow ── */
.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(26, 10, 46, 0.5) 0%,
    rgba(200, 169, 110, 0.03) 40%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
  animation: breatheGlow 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breatheGlow {
  0%, 100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

/* ── Hero Content Overlay ── */
.hero__content {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-content);
  text-align: center;
  pointer-events: none;
  user-select: none;
  width: 100%;
  padding: 0 var(--space-8);
}

.hero__name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 0.92;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 0.15em;
  opacity: 0;
  transform: translateY(40px);
}

.hero__name span {
  display: inline-block;
}

.hero__divider {
  width: min(360px, 70vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 169, 110, 0.3),
    transparent
  );
  margin: var(--space-4) auto;
  opacity: 0;
  transform: scaleX(0);
}

.hero__tagline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: var(--space-4);
  opacity: 0;
  transform: translateY(20px);
}

.hero__tagline .dot {
  display: inline-block;
  margin: 0 0.8em;
  color: var(--accent-gold);
  font-size: 0.5em;
  vertical-align: middle;
  opacity: 0.6;
}

/* ── Scroll Indicator ── */
.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
}

.hero__scroll-cue span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
  animation: scrollPulse 2.5s var(--ease-in-out-quad) infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.2;
    transform: scaleY(0.5);
    transform-origin: top;
  }
  50% {
    opacity: 0.8;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* ── Hero Pin Spacer (for GSAP) ── */
.hero-pin-spacer {
  position: relative;
  width: 100%;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
  }

  .hero__glow {
    width: 350px;
    height: 350px;
  }

  .hero__content {
    bottom: 20%;
    padding: 0 var(--space-4);
  }

  .hero__tagline .dot {
    margin: 0 0.4em;
  }
}
