/*
 * ============================================================
 * css/hero.css — Hero Section
 * ============================================================
 * Responsible for:
 *   - #hero section layout (min-height: 100vh, flex column)
 *   - .hero-orb animated gradient background orbs
 *   - .hero-bg-text large decorative background text
 *   - .hero-content, .hero-eyebrow, .hero-eyebrow-line
 *   - .hero-name clip-path reveal animation + .revealed state
 *   - .hero-name span accent colour
 *   - .hero-tagline fade-in animation + .revealed state
 *   - .hero-bottom layout + .revealed state
 *   - .hero-github CTA button
 *   - .scroll-indicator and .scroll-line pulse animation
 *   - @keyframes orbFloat1, orbFloat2, scrollPulse
 * ============================================================
 */

/* ═══════════════════════════════════════════════════════
   8. HERO SECTION
═══════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 2rem 6rem;
  position: relative;
  overflow: hidden;
}

/* Animated gradient orbs — atmospheric background */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,213,163,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: orbFloat1 14s ease-in-out infinite alternate;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196,168,130,0.08) 0%, transparent 70%);
  bottom: 100px;
  left: -80px;
  animation: orbFloat2 18s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 60px) scale(1.1); }
}

@keyframes orbFloat2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -40px) scale(1.15); }
}

/* Large background text */
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 22rem);
  color: rgba(255,255,255,0.02);
  letter-spacing: -0.02em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: 0.92;
  letter-spacing: 0.01em;

  /* Clip-path reveal animation — triggered by .revealed class */
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s var(--ease-out-expo);
}

.hero-name.revealed {
  clip-path: inset(0 0% 0 0);
}

.hero-name span {
  color: var(--accent);
}

.hero-tagline {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 480px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.8s, transform 0.8s var(--ease-out-expo) 0.8s;
}

.hero-tagline.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 3rem;
  opacity: 0;
  transition: opacity 0.8s ease 1.1s;
}

.hero-bottom.revealed { opacity: 1; }

.hero-github {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
  transition: color var(--duration-fast) ease,
              border-color var(--duration-fast) ease;
}

.hero-github:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-name { clip-path: none; opacity: 1; } /* Simplify on mobile */
}
