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

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

:root {
  --ink: #0f1a14;
  --ink-mid: #3a4a40;
  --ink-muted: #7a8c82;
  --paper: #f5f2eb;
  --paper-dark: #ebe7de;
  --accent: #1a5c38;
  --accent-light: #2e7d52;
  --accent-pale: #e8f0eb;
  --rule: #c8c2b4;
  --white: #ffffff;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* PAGE WRAPPER */
.page-content {
  padding-top: 60px;
  min-height: calc(100vh - 60px);
}

/* SECTION BASE */
section, .page-hero {
  padding: 80px 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 17px;
  color: var(--ink-mid);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

/* HERO (inner pages) */
.page-hero {
  background: var(--ink);
  padding: 80px 2rem 70px;
}

.page-hero .section-label { color: #6dbf8f; }
.page-hero .section-label::before { background: #6dbf8f; }
.page-hero .section-title { color: var(--white); }
.page-hero .section-intro { color: #a0b8a8; margin-bottom: 0; }

/* CTA BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn:hover { background: var(--accent-light); }
.btn::after { content: ' →'; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-mid);
}
.btn-outline:hover { background: var(--paper-dark); }
.btn-outline::after { content: ' →'; }

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  transition: background 0.2s;
}

.service-card:hover { background: var(--accent-pale); }

.service-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--rule);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.service-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-desc {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* EXPERIENCE */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.exp-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 80px;
}

.stat-block {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}

.stat-num {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 400;
  line-height: 1.4;
}

.exp-list { display: flex; flex-direction: column; }

.exp-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.exp-item:first-child { border-top: 1px solid var(--rule); }

.exp-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.exp-client {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.exp-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-pale);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 2px;
}

.exp-desc {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* CREDENTIALS */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #2a3a30;
  border: 1px solid #2a3a30;
  border-radius: 4px;
  overflow: hidden;
}

.cert-item {
  background: #162018;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: background 0.2s;
}

.cert-item:hover { background: #1e2d21; }

.cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
  margin-top: 8px;
}

.cert-name {
  font-size: 14px;
  color: #d4e8da;
  line-height: 1.5;
  font-weight: 400;
}

.cert-year {
  font-size: 12px;
  color: #6dbf8f;
  font-weight: 500;
  margin-top: 2px;
}

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

.about-body p {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-body p strong { color: var(--ink); font-weight: 500; }

.tech-stack {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.75rem;
  position: sticky;
  top: 80px;
}

.tech-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.tech-group { margin-bottom: 1.25rem; }

.tech-group-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tech-tag {
  font-size: 12px;
  color: var(--ink-mid);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 3px 10px;
  border-radius: 2px;
}

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

.contact-detail { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item { display: flex; gap: 1rem; align-items: flex-start; }

.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-pale);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.contact-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.contact-value { font-size: 15px; color: var(--ink); }
.contact-value a { color: var(--accent); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

input, textarea, select {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }

.form-submit {
  background: var(--accent);
  color: var(--white);
  border: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.form-submit:hover { background: var(--accent-light); }

/* CREDENTIAL CARDS (hero) */
.credential-card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.2s;
}

.credential-card:hover { border-color: var(--accent); }
.credential-card:first-child { border-radius: 4px 4px 0 0; }
.credential-card:last-child { border-radius: 0 0 4px 4px; }

.cred-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-pale);
  border-radius: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.cred-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.cred-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

/* FOOTER */
footer {
  background: var(--ink);
  padding: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 16px;
  color: #6dbf8f;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: #5a6e60;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: #6dbf8f; }

.footer-copy { font-size: 13px; color: #5a6e60; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate { animation: fadeUp 0.6s ease both; }
.animate-d1 { animation-delay: 0.1s; }
.animate-d2 { animation-delay: 0.2s; }
.animate-d3 { animation-delay: 0.3s; }
.animate-d4 { animation-delay: 0.4s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-stats { position: static; flex-direction: row; flex-wrap: wrap; }
  .about-grid { grid-template-columns: 1fr; }
  .tech-stack { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 12px; }
}
