/* ==========================================================================
   sections.css: one clearly labelled block per page section.
   To add a section later (Projects, Experience, Contact), add a new block here.
   ========================================================================== */

/* ---------- HOME: the pond hero ---------- */

.hero {
  position: relative;
  height: 100vh;   /* fallback for older browsers */
  height: 100svh;  /* the visible height on phones, ignoring the address bar */
  min-height: 520px;
  overflow: hidden;
  background: var(--pond-deep);
}

/* The title floats over the water. Taps pass through to the pond underneath. */
.hero__title {
  position: absolute;
  inset: 0;
  z-index: 3; /* the kit puts page content at z-index 3 and above */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--header-h) var(--gutter) 0;
  text-align: center;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(3.2rem, 11vw, 8rem);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(6, 20, 22, 0.55);
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--pink), var(--rose) 45%, var(--lavender));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--pink); /* fallback */
}

.hero__subtitle {
  max-width: 34ch;
  margin: 1.1rem 0 0;
  color: var(--cream);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  line-height: 1.45;
  text-shadow: 0 1px 14px rgba(6, 20, 22, 0.8);
}

/* Calm mode: the pond is switched off and replaced by this still backdrop. */
.hero.is-calm {
  background:
    radial-gradient(ellipse 60% 45% at 25% 30%, rgba(95, 168, 160, 0.35), transparent 70%),
    radial-gradient(ellipse 50% 40% at 78% 70%, rgba(203, 191, 230, 0.22), transparent 70%),
    radial-gradient(ellipse 40% 30% at 60% 25%, rgba(246, 179, 198, 0.16), transparent 70%),
    linear-gradient(180deg, #17403E, var(--pond-darker));
}

/* ---------- ABOUT ---------- */

.section {
  padding: clamp(72px, 12vw, 140px) var(--gutter);
  scroll-margin-top: var(--header-h);
}

.about {
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(203, 191, 230, 0.12), transparent 70%),
    linear-gradient(180deg, var(--pond-darker), var(--pond-deep) 40%);
}

.about__inner {
  max-width: var(--content-w);
  margin: 0 auto;
}

.about__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--sage);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about h2 {
  margin-bottom: 1.6rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.about h2 em {
  color: var(--pink);
}

.about__body {
  max-width: 62ch;
}

.about__body p {
  color: var(--cream);
}

.about__body .lead {
  color: var(--cream);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.6;
}

.about__tags-label {
  margin: 2rem 0 0.7rem;
  color: var(--mist);
  font-size: 0.95rem;
}

/* Space between the closing paragraph and the GitHub button */
.about__body + .button {
  margin-top: 0.8rem;
}

/* ---------- ABOUT: layout with portrait ---------- */

.about__grid {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

/* Phones: portrait first, centred and not too big; text below. */
.portrait {
  order: -1;
  justify-self: center;
  width: min(280px, 72%);
  margin: 0;
}

@media (min-width: 860px) {
  .about__grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  }
  .about__text {
    grid-column: 1;
    grid-row: 1;
  }
  .portrait {
    order: 0;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin-top: 0.4rem;
  }
}

/* Softly rounded portrait with a thin pink border and a gentle glow.
   The lavender ring behind it is purely decorative. */
.portrait {
  position: relative;
  isolation: isolate;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1.5px solid rgba(203, 191, 230, 0.45);
  border-radius: 34px;
  transform: translate(12px, 12px);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 2px solid rgba(246, 179, 198, 0.7);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(6, 20, 22, 0.55), 0 0 40px rgba(246, 179, 198, 0.14);
}
