/**
 * Section layouts: hero, about, portfolio, contact, footer.
 * Section-level spacing and background; components handle inner styling.
 */

/* ─── Section shared ──────────────────────────────────────────────── */
section {
  padding: var(--sp-24) var(--sp-8);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ─── Hero (#home) ────────────────────────────────────────────────── */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-h) var(--sp-8) 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  animation: fadeUp 0.8s ease both;
}

.hero-label {
  font-family: "Ubuntu", sans-serif;
  font-size: var(--step--1);
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: var(--sp-4);
  opacity: 0;
  animation: fadeUp 0.6s 0.1s ease forwards;
}

.hero-name {
  font-size: clamp(var(--step-4), 8vw, var(--step-5));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: var(--sp-4);
  opacity: 0;
  animation: fadeUp 0.6s 0.2s ease forwards;
}

.hero-title {
  font-size: var(--step-2);
  font-weight: 400;
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: var(--sp-12);
  opacity: 0;
  animation: fadeUp 0.6s 0.3s ease forwards;
}

.hero-desc {
  max-width: 540px;
  font-size: var(--step-0);
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: var(--sp-12);
  opacity: 0;
  animation: fadeUp 0.6s 0.4s ease forwards;
}

.hero-cta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 0.5s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections that use scroll-in get this class; JS adds .is-visible */
.section-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── About ──────────────────────────────────────────────────────── */
#about {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface);
  z-index: 0;
  pointer-events: none;
}

#about .section-inner {
  position: relative;
  z-index: 1;
}

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

.about-text p {
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}

.about-text {
  max-width: 560px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

/* ─── Portfolio ──────────────────────────────────────────────────── */
#portfolio {
  background: var(--bg);
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}

/* ─── Contact ─────────────────────────────────────────────────────── */
#contact {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

#contact .section-title {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--sp-4);
}

#contact .section-label {
  text-align: center;
}

#contact .divider {
  margin-left: auto;
  margin-right: auto;
}

.contact-sub {
  color: var(--text-soft);
  margin-bottom: var(--sp-8);
  font-size: var(--step-0);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
footer {
  padding: var(--sp-8);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: "Ubuntu", sans-serif;
  font-size: var(--step--1);
  color: var(--muted);
}

.footer-copy span {
  color: var(--accent);
}

.footer-copy.footer-tagline {
  font-size: 0.7rem;
}
