@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg: #F9F7F4;
  --bg-card: #FFFFFF;
  --surface: #F2EFE9;
  --border: #E5E0D8;
  --text-primary: #1A1814;
  --text-secondary: #6B6560;
  --text-muted: #A09A93;
  --accent: #2D5A4E;
  --accent-light: #EAF1EF;
  --accent-hover: #1F3F36;
  --tag-bg: #EAF1EF;
  --tag-text: #2D5A4E;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(249, 247, 244, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  transition: all var(--transition) !important;
}
.nav-cta:hover { background: var(--accent) !important; color: #fff !important; }

/* ── LAYOUT ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }

/* ── HERO ── */
#hero {
  padding-top: 120px;
  padding-bottom: 5rem;
  min-height: 90vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--accent); }
.hero-name {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}
.hero-name em { font-style: italic; color: var(--accent); }
.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--sans);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45,90,78,0.25); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--text-primary);
  display: block;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 360px;
}
.hero-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.cert-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0.25rem 0.25rem 0 0;
}
.cert-pill .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero-card-divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.mini-tag {
  display: inline-block;
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 3px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  margin: 0.2rem 0.2rem 0 0;
  font-weight: 400;
}

/* ── SECTION HEADINGS ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.75;
}

/* ── ABOUT ── */
#about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about-text p { color: var(--text-secondary); margin-bottom: 1.25rem; font-weight: 300; line-height: 1.85; }
.about-focus { margin-top: 2rem; }
.focus-item {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.25rem;
}
.focus-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  margin-top: 0.1rem;
}
.focus-title { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.2rem; }
.focus-desc { font-size: 0.83rem; color: var(--text-muted); }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 1px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
  position: absolute; left: -2.375rem; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
}
.timeline-dot.current { background: var(--accent); }
.tl-meta { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.tl-role { font-weight: 500; font-size: 1rem; margin-bottom: 0.15rem; }
.tl-company { font-size: 0.88rem; color: var(--accent); margin-bottom: 0.5rem; }
.tl-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* ── CERTS ── */
#certs { background: var(--surface); }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  transition: all var(--transition);
}
.cert-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--accent); }
.cert-card-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.cert-card-name { font-weight: 500; font-size: 0.88rem; margin-bottom: 0.25rem; }
.cert-card-body { font-size: 0.75rem; color: var(--text-muted); }

.skills-wrap { margin-top: 3rem; }
.skills-group { margin-bottom: 1.75rem; }
.skills-group-label { font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: var(--tag-bg); color: var(--tag-text);
  padding: 0.3rem 0.8rem; border-radius: 3px;
  font-size: 0.78rem; font-weight: 500;
}
.tag.neutral { background: var(--surface); color: var(--text-secondary); }

/* ── BLOG ── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: rgba(45,90,78,0.3); }
.post-tag {
  font-size: 0.72rem; font-weight: 500;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.post-title { font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.post-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.post-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 1rem; }
.post-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* ── CONTACT ── */
#contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: all var(--transition);
  font-size: 0.9rem;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); transform: translateX(4px); }
.contact-link-icon { font-size: 1.2rem; }
.contact-link-label { font-weight: 500; }
.contact-link-sub { font-size: 0.78rem; color: var(--text-muted); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
footer a { color: var(--accent); text-decoration: none; }

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

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links li:not(:last-child) { display: none; }
  .container { padding: 0 1.25rem; }
  section { padding: 3.5rem 0; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  #hero { padding-top: 90px; min-height: auto; }
  .hero-visual { display: none; }
  .hero-stats { gap: 1.5rem; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
}
