/* =========================================================
   SECTIONS — Hero, About, Experience, Skills, Projects
   ========================================================= */

/* ── ── ── ── ── ── ── ── ── ── ──
   HERO
   ── ── ── ── ── ── ── ── ── ── ── */

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

/* Ambient glow orb */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 189, 0, 0.06) 0%, transparent 70%);
  top: 10%;
  right: -10%;
  pointer-events: none;
  animation: float-orb 8s ease-in-out infinite alternate;
}

@keyframes float-orb {
  from { transform: translateY(0px) scale(1); }
  to   { transform: translateY(40px) scale(1.05); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding-block: var(--space-24);
}

.hero__content {}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-label);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--space-6);
}

.hero__eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--secondary);
  opacity: 0.6;
}

.hero__headline {
  font-size: clamp(var(--text-5xl), 6vw, var(--text-8xl));
  font-weight: var(--font-display);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--on-surface);
  margin-bottom: var(--space-8);
  transition: text-shadow 0.3s ease;
}

.hero__headline:hover {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.hero__headline .accent {
  /* Text clip gradient for the accent word */
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter 0.3s ease;
}

.hero__headline:hover .accent {
  filter: drop-shadow(0 0 10px rgba(250, 189, 0, 0.5));
}

.hero__description {
  font-size: var(--text-lg);
  color: var(--on-surface-variant);
  line-height: var(--leading-body);
  max-width: 48ch;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Code-block aesthetic visual */
.hero__code-card {
  background: var(--surface-container-high);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  border: 1px solid rgba(79, 70, 50, 0.15);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: var(--text-sm);
  color: var(--on-surface-variant);
  line-height: 1.8;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 0 60px rgba(250, 189, 0, 0.04);
  position: relative;
}

.hero__code-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(250, 189, 0, 0.15) 0%,
    transparent 40%,
    transparent 60%,
    rgba(137, 208, 237, 0.1) 100%
  );
  z-index: -1;
}

.code-line { display: flex; gap: var(--space-4); }
.code-line .ln { color: var(--outline); user-select: none; min-width: 1.5ch; text-align: right; }
.code-key    { color: var(--secondary); }
.code-value  { color: var(--tertiary); }
.code-string { color: var(--primary); }
.code-op     { color: var(--outline); }

/* Floating stack badges */
.hero__badges {
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__badge {
  background: var(--surface-container-highest);
  border: 1px solid rgba(79, 70, 50, 0.2);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-label);
  letter-spacing: var(--tracking-wide);
  color: var(--on-surface-variant);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: badge-float var(--dur, 4s) ease-in-out infinite alternate;
}

@keyframes badge-float {
  from { transform: translateX(0); }
  to   { transform: translateX(-8px); }
}

/* ── ── ── ── ── ── ── ── ── ── ──
   ABOUT
   ── ── ── ── ── ── ── ── ── ── ── */

.about {
  background: var(--surface-container-low);
  padding-block: var(--space-24);
  background-image: var(--gradient-section);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-16);
  align-items: start;
}

.about__sticky {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
}

.about__avatar-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--surface-container-high);
}

.about__avatar-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(28, 27, 27, 0.9) 100%
  );
}

.about__avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.9);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface-container-high) 0%, var(--surface-container-highest) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  user-select: none;
}

.about__content {}

.about__lead {
  font-size: var(--text-2xl);
  font-weight: var(--font-subhead);
  color: var(--on-surface);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  margin-bottom: var(--space-6);
}

.about__lead .highlight {
  color: var(--primary);
}

.about__body {
  font-size: var(--text-base);
  color: var(--on-surface-variant);
  line-height: var(--leading-body);
  margin-bottom: var(--space-8);
}

.about__stack-heading {
  font-size: var(--text-xs);
  font-weight: var(--font-label);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--space-4);
}

.about__stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(79, 70, 50, 0.15);
}

.stat-item {}

.stat-item__number {
  font-size: var(--text-4xl);
  font-weight: var(--font-display);
  letter-spacing: var(--tracking-tight);
  color: var(--on-surface);
  line-height: 1;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__label {
  font-size: var(--text-sm);
  color: var(--on-surface-variant);
  margin-top: var(--space-1);
}

/* ── ── ── ── ── ── ── ── ── ── ──
   EXPERIENCE
   ── ── ── ── ── ── ── ── ── ── ── */

.experience {
  background: var(--surface);
  padding-block: var(--space-24);
}

.experience__inner {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: var(--space-16);
}

.experience__header {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
  align-self: start;
}

/* ── ── ── ── ── ── ── ── ── ── ──
   SKILLS
   ── ── ── ── ── ── ── ── ── ── ── */

.skills {
  background: var(--surface-container-low);
  padding-block: var(--space-24);
}

.skills__header {
  margin-bottom: var(--space-12);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* ── ── ── ── ── ── ── ── ── ── ──
   PROJECTS
   ── ── ── ── ── ── ── ── ── ── ── */

.projects {
  background: var(--surface);
  padding-block: clamp(1.5rem, 3vh, 3rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.projects::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-section);
  pointer-events: none;
}

.projects__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 1vw, 1rem);
}

.projects__grid .card:first-child {
  grid-row: auto;
}

.projects__grid .card:first-child .card__image-wrap {
  aspect-ratio: 16 / 9;
  max-height: clamp(12vh, 20vh, 25vh);
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  user-select: none;
}

.card-image--gold {
  background: linear-gradient(135deg,
    var(--surface-container-highest) 0%,
    rgba(250, 189, 0, 0.08) 50%,
    var(--surface-container-high) 100%);
  font-size: 4rem;
}

.card-image--teal {
  background: linear-gradient(135deg,
    var(--surface-container-high) 0%,
    rgba(137, 208, 237, 0.08) 100%);
}

.card-image--blue {
  background: linear-gradient(135deg,
    rgba(0, 98, 123, 0.15) 0%,
    var(--surface-container-high) 100%);
}
