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

/* === TOKENS === */
:root {
  --bg: #FAFAF8;
  --bg-alt: #F2F0EC;
  --bg-dark: #111111;
  --bg-mid: #1E1E1E;
  --ink: #111111;
  --ink-mid: #3A3A3A;
  --ink-light: #6B6B6B;
  --accent: #8B2635;
  --accent-light: #B03045;
  --rule: #E2DED8;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --max: 1060px;
  --narrow: 720px;
}

/* === BASE === */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { color: var(--ink-mid); margin-bottom: 1rem; max-width: 66ch; }
strong { color: var(--ink); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--sans); letter-spacing: 0.02em; }

/* === LAYOUT === */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 1.5rem; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); }
.section-mid { background: var(--bg-mid); }
hr.rule { border: none; border-top: 1px solid var(--rule); margin: 3rem 0; }

/* === NAV === */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.nav-logo { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); font-weight: 700; }
.nav-logo span { color: var(--accent); }
.nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; align-items: center; }
.nav-links a { font-size: 0.85rem; color: var(--ink-mid); font-weight: 500; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-cta { background: var(--accent) !important; color: #fff !important; padding: 0.4rem 1.1rem; border-radius: 4px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--accent-light) !important; text-decoration: none !important; }

/* === HERO === */
#hero {
  background: var(--bg-dark);
  padding: 6rem 1.5rem 5rem;
  border-bottom: 3px solid var(--accent);
}
.hero-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
#hero h1 { color: #FAFAF8; }
.hero-name-line { display: block; }
.hero-title { display: block; font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: var(--accent); font-weight: 400; margin-top: 0.5rem; font-style: italic; }
.hero-tagline { font-size: 1.1rem; color: rgba(250,250,248,0.8); margin: 1.5rem 0 2rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.stat-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-number { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: #FAFAF8; line-height: 1; display: block; }
.stat-label { font-size: 0.75rem; color: rgba(250,250,248,0.55); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.4rem; display: block; }

/* === BUTTONS === */
.btn { display: inline-block; padding: 0.75rem 1.75rem; border-radius: 4px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); text-decoration: none; color: #fff; }
.btn-ghost { border: 1.5px solid rgba(250,250,248,0.3); color: #FAFAF8; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); padding: 0.55rem 1.25rem; font-size: 0.88rem; border-radius: 4px; font-weight: 600; }
.btn-outline:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* === PROOF BAR === */
.proof-bar {
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: center; align-items: center;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.proof-bar .sep { opacity: 0.45; }

/* === SECTION HEADERS === */
.section-header { margin-bottom: 3rem; }
.section-eyebrow { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); font-weight: 600; display: block; margin-bottom: 0.75rem; font-family: var(--sans); }
.section-header p { font-size: 1.05rem; color: var(--ink-mid); }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr 340px; gap: 4rem; align-items: start; max-width: var(--max); margin: 0 auto; }
.about-text p { max-width: 100%; }
.about-panel { background: var(--bg-dark); border-radius: 8px; padding: 2rem; }
.about-panel h3 { color: var(--accent); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--sans); margin-bottom: 0.75rem; margin-top: 1.5rem; }
.about-panel h3:first-child { margin-top: 0; }
.about-panel ul { list-style: none; }
.about-panel li { font-size: 0.88rem; color: rgba(250,250,248,0.7); padding: 0.3rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.about-panel li:last-child { border-bottom: none; }

/* === CREDENTIALS === */
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; max-width: var(--max); margin-left: auto; margin-right: auto; }
.cred-card { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 6px; padding: 1.75rem; }
.cred-card h3 { font-size: 1rem; font-family: var(--sans); font-weight: 700; color: var(--ink); margin-bottom: 1rem; letter-spacing: 0; }
.cred-card ul { list-style: none; }
.cred-card li { font-size: 0.88rem; color: var(--ink-mid); padding: 0.3rem 0 0.3rem 1rem; border-bottom: 1px solid var(--rule); position: relative; }
.cred-card li:last-child { border-bottom: none; }
.cred-card li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

.courses-block { max-width: var(--max); margin: 3rem auto 0; }
.courses-block h3 { font-size: 1rem; font-family: var(--sans); font-weight: 700; margin-bottom: 1.25rem; }
.course-domains { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.domain-tag { background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 3px; font-size: 0.8rem; color: var(--ink-mid); padding: 0.3rem 0.75rem; }

/* === EXPERIENCE === */
.experience-list { max-width: var(--max); margin: 0 auto; }
.exp-item { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--rule); }
.exp-item:last-child { border-bottom: none; }
.exp-meta { text-align: right; }
.exp-date { font-size: 0.8rem; color: var(--ink-light); font-weight: 600; letter-spacing: 0.03em; display: block; }
.exp-company { font-size: 0.88rem; color: var(--accent); font-weight: 600; display: block; margin-top: 0.35rem; }
.exp-location { font-size: 0.78rem; color: var(--ink-light); display: block; margin-top: 0.2rem; }
.exp-body h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.exp-body p { font-size: 0.92rem; margin-bottom: 0.5rem; max-width: 100%; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.exp-tag { font-size: 0.75rem; background: var(--bg-alt); color: var(--ink-mid); padding: 0.2rem 0.65rem; border-radius: 3px; border: 1px solid var(--rule); }

/* === SKILLS === */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: var(--max); margin: 0 auto; }
.skill-card { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 1.5rem; }
.skill-card h3 { font-size: 0.95rem; font-family: var(--sans); font-weight: 700; margin-bottom: 0.6rem; color: var(--ink); }
.skill-card p { font-size: 0.88rem; color: var(--ink-mid); margin: 0; max-width: 100%; }

/* === TESTIMONIALS === */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; max-width: var(--max); margin: 0 auto; }
.t-card { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 2rem; position: relative; }
.t-card::before { content: "\201C"; font-family: var(--serif); font-size: 4rem; color: var(--accent); opacity: 0.15; position: absolute; top: 0.5rem; left: 1rem; line-height: 1; }
.t-card p { font-size: 0.95rem; color: var(--ink-mid); font-style: italic; line-height: 1.75; margin-bottom: 1.25rem; max-width: 100%; }
.t-source { font-size: 0.8rem; color: var(--ink-light); font-weight: 600; }

/* === EDUCATION === */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: var(--max); margin: 0 auto; }
.edu-card { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 6px; padding: 1.5rem; }
.edu-card h3 { font-size: 1rem; font-family: var(--sans); font-weight: 700; margin-bottom: 0.25rem; }
.edu-card .edu-school { font-size: 0.88rem; color: var(--accent); font-weight: 600; display: block; }
.edu-card .edu-year { font-size: 0.8rem; color: var(--ink-light); display: block; margin-top: 0.2rem; }

/* === FAQ === */
.faq-list { max-width: var(--narrow); margin: 0 auto; }
.faq-list dt { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin: 2.5rem 0 0.5rem; padding-left: 1rem; border-left: 3px solid var(--accent); }
.faq-list dd { font-size: 0.95rem; color: var(--ink-mid); line-height: 1.75; }

/* === CTA === */
#contact { padding: 6rem 1.5rem; }
#contact h2 { color: #FAFAF8; }
#contact p { color: rgba(250,250,248,0.7); max-width: 52ch; margin: 0 auto 2rem; }
.cta-inner { text-align: center; max-width: var(--narrow); margin: 0 auto; }
.cta-location { font-size: 0.82rem; color: rgba(250,250,248,0.4); margin-top: 1.5rem; letter-spacing: 0.05em; }

/* === FOOTER === */
.site-footer { background: #0A0A0A; border-top: 1px solid rgba(255,255,255,0.06); padding: 2.5rem 1.5rem; text-align: center; }
.footer-inner p { font-size: 0.8rem; color: rgba(250,250,248,0.4); margin-bottom: 0.75rem; max-width: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; margin-bottom: 1rem; }
.footer-links a { font-size: 0.82rem; color: rgba(250,250,248,0.45); }
.footer-links a:hover { color: var(--accent); text-decoration: none; }

/* === RESPONSIVE === */
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .exp-meta { text-align: left; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  section { padding: 3.5rem 1rem; }
}

/* === COURSES SECTION === */
.courses-section-full { max-width: var(--max); margin: 0 auto; }
.courses-intro { margin-bottom: 2.5rem; }
.courses-intro p { font-size: 1.05rem; }

.course-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.course-cat-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.5rem;
}
.course-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.course-cat-header h3 {
  font-size: 0.9rem;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.course-count {
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-family: var(--sans);
  min-width: 28px;
  text-align: center;
}
.course-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}
.course-list::-webkit-scrollbar { width: 4px; }
.course-list::-webkit-scrollbar-track { background: var(--bg-alt); }
.course-list::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 2px; }
.course-list li {
  font-size: 0.82rem;
  color: var(--ink-mid);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.4;
}
.course-list li:last-child { border-bottom: none; }
.course-link {
  color: var(--ink-mid);
  text-decoration: none;
  display: block;
  transition: color 0.15s;
}
.course-link:hover { color: var(--accent); text-decoration: none; }
.courses-linkedin-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--ink-mid);
}
.courses-linkedin-note a { font-weight: 600; }
