*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --yellow: #f5d94e;
  --yellow-light: #fef9ec;
  --yellow-border: #f0dfa0;
  --yellow-text: #8a6c2a;
  --yellow-dark: #b5934a;
  --cream: #fdfcf9;
  --cream-2: #f7f4ee;
  --border: #ece8e1;
  --text-dark: #1a1a1a;
  --text-mid: #2a2a2a;
  --text-muted: #6b6660;
  --text-light: #9a9590;
  --black: #1a1a1a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--text-dark);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-mid);
  border-radius: 2px;
  transition: all 0.3s;
}

/* MOBILE MENU */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}

.mobile-nav a:last-child { border-bottom: none; }

/* HERO */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
  min-height: 90vh;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 1.25rem;
}

.hero-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.hero-heading em {
  font-style: italic;
  color: var(--yellow-dark);
}

.hero-sub {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 2rem;
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.25rem;
}

.cert-pill {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: 20px;
  background: var(--yellow-light);
  color: var(--yellow-text);
  border: 1px solid var(--yellow-border);
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-dark {
  background: var(--text-dark);
  color: var(--cream);
  border: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid #c8c4bc;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--text-dark);
  border: none;
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 1px solid #3a3a3a;
}

/* HERO IMAGE */
.hero-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.photo-frame {
  width: 320px;
  height: 380px;
  border-radius: 14px;
  background: var(--yellow);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.photo-frame img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.photo-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: var(--cream);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
  line-height: 1.4;
}

.photo-badge small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 1px;
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* SECTIONS */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 0.6rem;
}

.section-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 3rem;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-body { color: var(--text-muted); line-height: 1.85; }
.about-body p + p { margin-top: 1.1rem; }

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

.stat-card {
  background: var(--yellow-light);
  border: 1px solid var(--yellow-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: var(--yellow-text);
  line-height: 1.4;
}

/* PORTFOLIO */
.portfolio-bg {
  background: var(--cream-2);
  padding: 5rem 0;
}

.portfolio-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.p-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.p-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}

.p-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.thumb-green { background: #e8f4e0; }
.thumb-blue  { background: #e0edf7; }
.thumb-peach { background: #faeae2; }

.p-body { padding: 1.25rem 1.25rem 1.5rem; }

.p-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 7px;
}

.p-title {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.p-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.p-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--text-dark);
  padding-bottom: 1px;
  text-decoration: none;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.skill-group {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.skill-group-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.skill-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.skill-list li {
  font-size: 13px;
  color: #4a4642;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

/* CONTACT */
.contact-bg {
  background: var(--black);
  padding: 6rem 2.5rem;
  text-align: center;
}

.contact-inner { max-width: 520px; margin: 0 auto; }

.contact-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.contact-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.contact-sub {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.contact-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* FOOTER */
footer {
  background: var(--black);
  border-top: 1px solid #242424;
  padding: 1.4rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p { font-size: 12px; color: #4a4642; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 3rem 2rem 0;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .cert-row { justify-content: center; }
  .hero-btns { justify-content: center; }
  .hero-photo-wrap { order: -1; justify-content: center; }

  .photo-frame {
    width: 260px;
    height: 300px;
    border-radius: 12px 12px 0 0;
  }

  .photo-frame img { width: 220px; height: 220px; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .portfolio-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .skills-grid { grid-template-columns: 1fr 1fr; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  nav { padding: 1rem 1.25rem; }
  section { padding: 3.5rem 1.25rem; }
  .portfolio-inner { padding: 0 1.25rem; }
  .portfolio-bg { padding: 3.5rem 0; }
  .contact-bg { padding: 4rem 1.25rem; }
  footer { padding: 1.25rem; flex-direction: column; gap: 6px; text-align: center; }
  .skills-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 2.5rem 1.25rem 0; }
}