:root {
  --bg: #f6f4ef;
  --bg-alt: #efece5;
  --card: #fffdf8;
  --text: #131414;
  --muted: #4b5655;
  --accent: #0d8f83;
  --accent-2: #eb6f39;
  --line: #d7d4ca;
  --shadow: 0 18px 40px rgba(18, 34, 31, 0.1);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(13, 143, 131, 0.2), transparent 45%),
    radial-gradient(circle at 100% 15%, rgba(235, 111, 57, 0.16), transparent 40%),
    linear-gradient(150deg, var(--bg) 0%, var(--bg-alt) 100%);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  min-height: 100vh;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(rgba(19, 20, 20, 0.12) 0.45px, transparent 0.45px);
  background-size: 4px 4px;
}

.site-header {
  position: sticky;
  top: 14px;
  width: min(1100px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}

.logo span {
  color: var(--accent-2);
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.25s ease;
}

nav a:hover {
  color: var(--text);
}

main {
  width: min(1100px, calc(100% - 28px));
  margin: 36px auto 72px;
}

section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  margin-top: 24px;
  padding: clamp(22px, 4vw, 48px);
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255, 253, 248, 0.74);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -16px;
  background-image: url("assets/images/cover-photo.jpeg");
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  transform: scale(1.08);
  opacity: 0.42;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 253, 248, 0.82), rgba(255, 252, 247, 0.66));
  z-index: -1;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-portrait-wrap {
  margin: 0;
  border-radius: 16px;
  padding: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #fffef9, #f3f0e8);
}

.hero-portrait {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.06;
  margin: 10px 0 14px;
  max-width: 16ch;
}

.hero-text {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 20px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #0a7168);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 143, 131, 0.26);
}

.btn.ghost {
  border-color: var(--line);
  color: var(--text);
  background: #fffcf6;
}

.stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(160deg, #fffcf5, #f8f4ea);
}

.stats h2 {
  margin: 0;
  font-size: 1.8rem;
  font-family: "Fraunces", serif;
}

.stats p,
.about p,
.contact p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-head h2,
.about h2 {
  font-family: "Fraunces", serif;
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
}

.project-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fffdf8;
}

.project-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.project-card p {
  color: var(--muted);
  line-height: 1.5;
  min-height: 72px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.project-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-links a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.skill-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  padding: 10px 12px;
  background: #fffcf7;
}

.certifications .skill-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.certifications .skill-list li {
  border-radius: 12px;
  text-align: left;
}

.contact {
  text-align: center;
}

footer {
  text-align: center;
  padding: 0 14px 32px;
  color: var(--muted);
}

.section-reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.7s ease forwards;
}

.section-reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.section-reveal:nth-child(3) {
  animation-delay: 0.16s;
}

.section-reveal:nth-child(4) {
  animation-delay: 0.24s;
}

.section-reveal:nth-child(5) {
  animation-delay: 0.32s;
}

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

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-portrait-wrap {
    max-width: 340px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .certifications .skill-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    margin-top: 10px;
    border-radius: var(--radius);
    flex-direction: column;
    gap: 10px;
  }

  nav {
    width: 100%;
    justify-content: space-around;
    gap: 10px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .skill-list {
    grid-template-columns: 1fr;
  }

}
