/* ========================================
   HERO SECTION STYLES
======================================== */

.hero {
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition:
    background-color 0.2s ease,
    color 0.18s ease;
}

/* ---- Content ---- */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vh, 4rem) clamp(1rem, 4vw, 3rem);
}

/* ---- Display Name ---- */
.hero-display {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.5vw, 7rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text-color);
  margin: 0 0 2rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Subtitle and Description ---- */
.hero-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 0.0625rem solid var(--border-color);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-subtitle);
  font-weight: 400;
  color: var(--text-color);
  letter-spacing: 0.02em;
  margin: 0;
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.7s ease 0.4s,
    transform 0.7s ease 0.4s;
}

.hero-description {
  max-width: 28rem;
  color: var(--text-color);
  font-size: var(--font-size-secondary);
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.7s ease 0.5s,
    transform 0.7s ease 0.5s;
}

/* ---- Animated State (triggered by JS) ---- */
.hero.is-visible .hero-display {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.hero.is-visible .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.hero.is-visible .hero-description {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Remove old gradient pseudo-element ---- */
.hero::after {
  content: none;
}

/* ---- HCI highlight ---- */
.hero .hci-highlight {
  font-family: "Caveat", cursive;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 1.3em;
  transition: color 0.3s ease;
}

[data-theme="dark"] .hero .hci-highlight {
  color: #60a5fa;
}
