/* ============================================================
   HERO SECTION — Clean Minimal Bento Layout
   Theme-aware · Sans-serif · Bento Grid · Negative Space
   ============================================================ */

/* ── Theme Tokens ────────────────────────────────────────── */
[data-theme="dark"] .hero {
  --hero-text: #f5f5f7;
  --hero-muted: #888;
  --hero-dim: #555;
  --hero-border: rgba(255,255,255,0.08);
  --hero-card-bg: #111;
  --hero-card-border: rgba(255,255,255,0.06);
  --hero-badge-bg: var(--accent-dim);
  --hero-badge-border: var(--accent-dim);
  --hero-badge-dot: var(--accent);
}

[data-theme="light"] .hero {
  --hero-text: #111;
  --hero-muted: #666;
  --hero-dim: #999;
  --hero-border: rgba(0,0,0,0.06);
  --hero-card-bg: #fff;
  --hero-card-border: rgba(0,0,0,0.06);
  --hero-badge-bg: var(--accent-dim);
  --hero-badge-border: var(--accent-dim);
  --hero-badge-dot: var(--accent);
}

/* ── Hero Layout ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--hero-text);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) clamp(1.5rem, 5vw, 6rem) 2rem;
  overflow: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

.hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

/* ── LEFT: Content ───────────────────────────────────────── */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Availability Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--hero-badge-bg);
  border: 1px solid var(--hero-badge-border);
  width: fit-content;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hero-badge-dot);
  animation: hero-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--hero-badge-dot);
}

@keyframes hero-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-badge-text {
  font-family: 'Figtree', var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hero-badge-dot);
}

/* Headline */
.hero-headline {
  font-family: 'Inter', var(--font-sans);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--hero-text);
  margin-bottom: 1.5rem;
}

.hero-headline-line {
  display: block;
  overflow: hidden;
}

.hero-headline-inner {
  display: block;
  transform: translateY(105%);
  will-change: transform;
}

.hero-headline em {
  font-style: normal;
  color: var(--hero-muted);
  font-weight: 700;
}

/* Word cycling — refined inline style */
.hero-cycling {
  display: inline-block;
  position: relative;
  color: var(--hero-text);
  padding-bottom: 2px;
  border-bottom: 3px solid var(--hero-text);
  cursor: default;
  transition: color 0.3s, border-color 0.3s;
}

.hero-cycling:hover {
  color: var(--hero-muted);
  border-color: var(--hero-muted);
}

/* Subtitle */
.hero-subtitle {
  font-family: 'Figtree', var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: var(--hero-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

/* CTA Button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--hero-text);
  color: var(--bg);
  font-family: 'Figtree', var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  width: fit-content;
  transition: all 0.4s var(--ease-out);
  opacity: 0;
  transform: translateY(15px);
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.hero-cta svg {
  transition: transform 0.3s var(--ease-out);
}
.hero-cta:hover svg {
  transform: translateX(3px);
}

/* ── RIGHT: Bento Grid ───────────────────────────────────── */
.hero-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 14px;
  opacity: 0;
  transform: translateY(30px);
}

.bento-card {
  background: var(--hero-card-bg);
  border: 1px solid var(--hero-card-border);
  border-radius: 20px;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
  position: relative;
}

.bento-card:hover {
  border-color: var(--hero-border);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Profile Card — spans full width */
.bento-profile {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.bento-avatar {
  width: clamp(56px, 8vw, 72px);
  height: clamp(56px, 8vw, 72px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--hero-card-border);
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.5s;
  flex-shrink: 0;
}

.bento-profile:hover .bento-avatar {
  filter: grayscale(0%) contrast(1);
}

.bento-profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bento-profile-name {
  font-family: 'Geist', var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bento-profile-role {
  font-family: 'Figtree', var(--font-sans);
  font-size: 0.8rem;
  color: var(--hero-muted);
  font-weight: 400;
}

.bento-profile-location {
  font-family: 'Figtree', var(--font-sans);
  font-size: 0.72rem;
  color: var(--hero-dim);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Stat Cards */
.bento-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.bento-stat-value {
  font-family: 'Geist', var(--font-sans);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}

.bento-stat-label {
  font-family: 'Figtree', var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--hero-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Clock Card */
.bento-clock-value {
  font-family: 'Geist', var(--font-sans);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bento-clock-label {
  font-family: 'Figtree', var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--hero-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Tech Stack Card — spans full width */
.bento-stack {
  grid-column: 1 / -1;
}

.bento-stack-label {
  font-family: 'Figtree', var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--hero-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.bento-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-stack-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--hero-badge-bg);
  border: 1px solid var(--hero-card-border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--hero-muted);
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-out);
}

.bento-stack-tag:hover {
  color: var(--hero-text);
  border-color: var(--hero-border);
  background: var(--surface-hover);
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.hero-scroll-text {
  font-family: 'Figtree', var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--hero-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-scroll-line {
  width: 1px;
  height: 30px;
  background: var(--hero-dim);
  animation: hero-scroll-pulse 2s ease-in-out infinite;
}

@keyframes hero-scroll-pulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.001% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-headline {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
  }

  .hero-bento {
    max-width: 500px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 5rem;
  }

  .hero-headline {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }

  .hero-bento {
    grid-template-columns: 1fr;
  }

  .bento-profile {
    grid-column: auto;
  }

  .bento-stack {
    grid-column: auto;
  }

  .hero-scroll {
    display: none;
  }
}
