/* ============================================================
   HERO — "I'm Bevan [portrait], a Full-Stack Developer & Founder"
   ============================================================ */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  padding-bottom: var(--space-24);
  background-color: var(--color-bg);
}

.hero__inner {
  width: 100%;
  text-align: center;
}

/* ---- Headline block ---- */
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.25vw, 5.25rem);
  font-weight: var(--weight-regular);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--color-text-primary);
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) 0.3s forwards;
  /* Allow the inline capsule to flow naturally */
  display: block;
}

/* The text wrapper that holds the inline flow:
   "I'm [capsule portrait], full stack…" */
.hero__text-flow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.14em;
  white-space: nowrap;
}

/* ---- Portrait capsule (inline) ---- */
.hero__portrait-capsule {
  display: block;
  height: 96px;
  width: 96px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  /* Use the pre-cropped, sharpened head asset to avoid blurry browser scaling. */
  background-image: url('../assets/images/portrait-face-sharp.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-highlight),
              0 4px 12px rgba(17, 17, 17, 0.1);
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-out);
  cursor: default;
  flex-shrink: 0;
}




.hero__portrait-capsule:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 0 0 3px var(--color-highlight),
              0 8px 20px rgba(17, 17, 17, 0.12);
}

/* img tag removed — portrait is background-image on the capsule */


/* ---- Sub-headline ---- */
.hero__sub {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.25vw, 5.25rem);
  font-weight: var(--weight-regular);
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--color-text-secondary);
}

/* ---- Supporting statement ---- */
.hero__description {
  max-width: 42rem;
  margin-top: var(--space-6);
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(0.95rem, 1.35vw, 1.125rem);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) 0.45s forwards;
}

/* ---- Contact and social links ---- */
.hero__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: var(--space-8);
  opacity: 0;
  transform: translateY(12px);
  animation: fadeSlideUp var(--duration-slow) var(--ease-out) 0.55s forwards;
}

.hero__contact-link {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(251, 250, 247, 0.88);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.04);
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.hero__contact-link:hover {
  border-color: rgba(17, 17, 17, 0.22);
  background: var(--color-surface);
  color: var(--color-text-primary);
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.08);
  transform: translateY(-2px);
}

.hero__contact-link:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 3px;
}

.hero__contact-link--email {
  width: auto;
  flex-basis: auto;
  gap: 0.5rem;
  padding-right: 0.875rem;
  border-radius: 999px;
}

.hero__contact-label {
  font-size: 0.75rem;
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.hero__contact-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
  font-size: 0.875rem;
  font-weight: var(--weight-medium);
  line-height: 1;
}

.hero__contact-icon--x {
  font-size: 0.75rem;
}

.hero__contact-icon--linkedin {
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.04em;
}



/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

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

/* ---- Responsive ---- */
@media (max-width: 1199px) {
  .hero__portrait-capsule {
    height: 80px;
    width: 80px;
  }
}

@media (max-width: 899px) {
  .hero__portrait-capsule {
    height: 64px;
    width: 64px;
  }
}

@media (max-width: 768px) {
  .hero__contacts {
    gap: 0.5rem;
  }
}

@media (max-width: 420px) {
  .hero__contacts {
    flex-direction: row;
  }
}
