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

:root {
  --accent: #2AABE2;
  --accent-dark: #1a8fc4;
  --sidebar-w: 200px;
  --section-x: 64px;
  --section-y: 60px;
  --dark: #1a1a1a;
  --text: #333333;
  --muted: #888;
  --light: #f5f5f5;
  --border: #e8e8e8;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background: #e9e9e9;
  color: var(--text);
  font-size: 15px;
  line-height: 1.75;
  display: flex;
  min-height: 100vh;
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--white);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 0 24px;
  border-right: 1px solid var(--border);
  z-index: 100;
  overflow-y: auto;
}

.sidebar-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
  border: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  margin-bottom: 12px;
}

.sidebar-name {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  line-height: 1.3;
  padding: 0 16px;
  margin-bottom: 6px;
}

.sidebar-role {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 0 14px;
  line-height: 1.4;
  margin-bottom: 28px;
}

.sidebar-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.sidebar-toggle span:not(.sr-only) {
  width: 16px;
  height: 2px;
  background: var(--dark);
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

nav { width: 100%; flex: 1; }

nav a {
  display: block;
  padding: 11px 24px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  letter-spacing: 0.2px;
}

nav a:hover, nav a.active {
  color: var(--dark);
  border-left-color: var(--accent);
  background: rgba(42, 171, 226, 0.04);
}

.sidebar-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding: 0 16px;
}

.sidebar-socials a {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #666;
  font-size: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}
.sidebar-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ─── MAIN ─── */
.main { margin-left: var(--sidebar-w); flex: 1; background: var(--white); min-height: 100vh; }

.section { padding: var(--section-y) var(--section-x); border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }
.section-muted { background: #fafafa; }
.section-contact-header {
  padding-top: 22px;
  padding-bottom: 0;
  border-bottom: none;
}

.section-contact-header .section-title {
  margin-bottom: 22px;
}

.section-eyebrow { font-size: 12px; color: var(--muted); font-style: italic; margin-bottom: 6px; letter-spacing: 0.3px; }

.section-title,
.resume-col-title,
.skill-group-title,
.contact-form-title {
  font-family: 'Lora', serif;
  font-size: 28px; font-weight: 700; color: var(--dark);
  margin-bottom: 36px; padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ─── HERO ─── */
#about {
  position: relative;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: 520px;
  background: radial-gradient(circle at 62% 22%, rgba(255,255,255,0.98) 0%, rgba(247,247,247,0.96) 42%, rgba(237,237,237,0.98) 100%);
  overflow: hidden;
  isolation: isolate;
}

#about::after {
  content: '';
  position: absolute;
  top: -12%;
  bottom: -12%;
  right: 14%;
  width: 28%;
  background: rgba(216, 216, 216, 0.92);
  transform: skewX(-37deg);
  border-radius: 36px;
  z-index: 0;
}

.about-photo {
  position: relative;
  background: transparent;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.about-photo-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-photo-img {
  position: relative;
  width: min(88%, 520px);
  height: auto;
  max-height: 500px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  z-index: 1;
}

.about-content {
  padding: 68px 56px 68px 76px;
  display: flex; flex-direction: column; justify-content: center;
  background: transparent;
  position: relative;
  z-index: 1;
}

.about-eyebrow {
  font-size: 12px; color: #8f8f8f; font-style: italic;
  text-transform: uppercase; letter-spacing: 2.4px; margin-bottom: 10px;
}

.about-name {
  font-family: 'Lora', serif;
  font-size: 58px; font-weight: 700; color: var(--dark);
  line-height: 1.02; margin-bottom: 26px;
}

.about-bio {
  max-width: 700px;
  font-size: 16px;
  color: #555;
  line-height: 1.95;
  margin-bottom: 14px;
}

.about-cta { display: flex; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-block; padding: 10px 24px;
  border: 2px solid var(--dark); color: var(--dark);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px; font-weight: 700; text-decoration: none;
  letter-spacing: 0.5px; transition: background 0.2s, color 0.2s; cursor: pointer;
}
.btn:hover { background: var(--dark); color: white; }
.btn-accent { border-color: var(--accent); color: var(--accent); }
.btn-accent:hover { background: var(--accent); color: white; }

/* ─── STATS ─── */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

.stat-box { background: white; padding: 28px 20px; text-align: center; }

.stat-num {
  font-family: 'Lora', serif;
  font-size: 36px; font-weight: 700; color: var(--dark);
  line-height: 1; margin-bottom: 6px;
}

.stat-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }

/* ─── SERVICES ─── */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 60px; }

.service-item { display: flex; gap: 18px; align-items: flex-start; }

.service-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 32px; height: 32px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.service-name { font-family: 'Lora', serif; font-size: 17px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.service-desc { font-size: 14px; color: #666; line-height: 1.75; }

/* ─── RESUME TWO-COL ─── */
.resume-grid { display: grid; grid-template-columns: 1fr 320px; gap: 0 56px; }

.exec-summary {
  margin-bottom: 28px;
  padding: 22px 26px;
  background: #fafafa;
  border: 1px solid var(--border);
}

.exec-summary-title,
.impact-block-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.exec-summary-text {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.impact-block {
  margin-bottom: 34px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.impact-item {
  padding: 18px 18px 16px;
  background: #fafafa;
  border: 1px solid var(--border);
}

.impact-value {
  font-family: 'Lora', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 8px;
}

.impact-label {
  font-size: 12.5px;
  color: #666;
  line-height: 1.65;
}

.resume-col-title,
.skill-group-title { font-size: 20px; margin-bottom: 24px; padding-bottom: 8px; }

.contact-form-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #555;
}

.timeline { margin-bottom: 44px; }

.timeline-item {
  display: grid;
  grid-template-columns: 130px 18px 1fr;
  margin-bottom: 28px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 139px; top: 18px; bottom: -28px;
  width: 1px; background: var(--border);
}

.timeline-meta { text-align: right; padding-right: 16px; padding-top: 1px; }
.timeline-date { font-size: 12.5px; font-weight: 700; color: var(--dark); display: block; }
.timeline-org { font-size: 11.5px; color: var(--muted); display: block; margin-top: 2px; }

.timeline-dot {
  width: 14px; height: 14px;
  border: 2px solid var(--accent); border-radius: 50%;
  background: white; flex-shrink: 0; margin-top: 3px;
  position: relative; z-index: 1;
}

.timeline-body { padding-left: 18px; }
.timeline-title { font-family: 'Lora', serif; font-size: 17px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.timeline-desc { font-size: 14px; color: #666; line-height: 1.75; }

.timeline-note {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

.timeline-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }

.cert-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 30px;
}

.cert-item {
  padding: 12px 16px;
  background: #fafafa;
  border: 1px solid var(--border);
}

.cert-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.6;
}

.cert-abbr {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--muted);
}

.t-tag { font-size: 10.5px; background: #f0f0f0; color: #555; padding: 2px 9px; border-radius: 20px; }
.t-tag.ai { background: rgba(42, 171, 226, 0.1); color: var(--accent-dark); }

/* ─── SKILLS ─── */
.skill-group { margin-bottom: 30px; }
.skill-bar-item { margin-bottom: 13px; }
.skill-bar-header { display: flex; justify-content: space-between; margin-bottom: 5px; }
.skill-bar-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.skill-bar-pct { font-size: 13px; color: var(--muted); }
.skill-bar-track { height: 5px; background: #ebebeb; border-radius: 3px; overflow: hidden; }
.skill-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.skill-95 { --target-width: 95%; }
.skill-92 { --target-width: 92%; }
.skill-90 { --target-width: 90%; }
.skill-88 { --target-width: 88%; }
.skill-80 { --target-width: 80%; }
.skill-75 { --target-width: 75%; }
.skill-bar-fill.is-animated { width: var(--target-width, 0%); }

/* ─── AI CALLOUT ─── */
.ai-block {
  background: #f8fcff;
  border: 1px solid rgba(42,171,226,0.2);
  border-left: 4px solid var(--accent);
  padding: 28px 32px; margin-bottom: 44px;
  border-radius: 0 2px 2px 0;
}

.ai-block-title { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); font-weight: 700; margin-bottom: 16px; }

.ai-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.ai-list li { font-size: 14px; color: #444; padding-left: 16px; position: relative; line-height: 1.65; }
.ai-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ─── ACHIEVEMENTS ─── */
.achieve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }

.achieve-item { display: flex; gap: 16px; align-items: flex-start; }

.achieve-icon {
  width: 36px; height: 36px;
  background: rgba(42,171,226,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--accent); font-size: 16px; margin-top: 2px;
}

.achieve-title { font-family: 'Lora', serif; font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 5px; }
.achieve-desc { font-size: 14px; color: #666; line-height: 1.75; }

/* ─── KNOWLEDGE TAGS ─── */
.know-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.know-tag { font-size: 13px; padding: 5px 14px; border: 1px solid var(--border); color: #555; border-radius: 20px; transition: border-color 0.2s, color 0.2s; }
.know-tag:hover { border-color: var(--accent); color: var(--accent); }
.know-tag.ai { border-color: rgba(42,171,226,0.4); color: var(--accent-dark); background: rgba(42,171,226,0.05); }

/* ─── CONTACT FORM ─── */
.contact-form-wrap {
  padding: 18px var(--section-x) var(--section-y);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 12px; font-weight: 700; color: #555;
  text-transform: uppercase; letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px; color: var(--dark);
  border: 1px solid var(--border);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
  background: #fafafa;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: white;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  margin-top: 8px;
  display: flex; align-items: center; gap: 16px;
}

.form-status {
  font-size: 14px;
  display: none;
}
.form-status.success { color: #2a9060; display: block; }
.form-status.error { color: #c0392b; display: block; }

/* ─── PUBLICATION FEATURE (with cover image) ─── */
.pub-feature {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 8px 0 16px;
}
.pub-feature + .pub-feature { margin-top: 28px; }
.pub-feature-img {
  width: 180px;
  min-width: 180px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  object-fit: cover;
}
.pub-feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.pub-feature-meta {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.pub-feature-title {
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
}
.pub-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.pub-feature-link::after { content: "->"; font-size: 13px; }
.pub-feature-link:hover { text-decoration: underline; }

.contact-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--light);
  border: 1px solid var(--border);
  margin: 0 var(--section-x) 10px;
}

.contact-cell {
  padding: 24px 28px; border-right: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
}
.contact-cell:last-child { border-right: none; }

.contact-icon {
  width: 46px; height: 46px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(42,171,226,0.35);
}
.contact-icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: #fff;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.contact-icon.icon-linkedin svg {
  fill: #fff; stroke: none;
}
.contact-icon.icon-location svg {
  fill: #fff; stroke: none;
}
.contact-icon.icon-location circle { fill: var(--accent); }
.contact-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.contact-value { font-size: 15px; font-weight: 600; color: var(--dark); }
.contact-value a { color: var(--dark); text-decoration: none; }
.contact-value a:hover { color: var(--accent); }

@media (max-width: 980px) {
  body {
    display: block;
    background: linear-gradient(180deg, #f4f4f4 0, #ececec 220px, #e9e9e9 100%);
  }

  .sidebar {
    position: relative;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 16px 16px 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: visible;
  }

  .sidebar-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .sidebar-brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .sidebar-avatar {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
  }

  .sidebar-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar-name {
    padding: 0;
    margin-bottom: 2px;
    font-size: 17px;
    text-align: left;
  }

  .sidebar-role {
    margin-bottom: 0;
    padding: 0;
    text-align: left;
    font-size: 12px;
  }

  .sidebar-toggle { display: inline-flex; }

  nav {
    display: none;
    width: 100%;
    flex: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .sidebar.nav-open nav { display: block; }

  nav a {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 10px 0;
  }

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

  nav a:hover, nav a.active {
    border-left-color: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.04);
    background: transparent;
    color: var(--accent-dark);
  }

  .sidebar-socials {
    display: none;
    width: 100%;
    justify-content: flex-start;
    margin-top: 14px;
    padding: 12px 0 0;
    border-top: 1px solid var(--border);
  }

  .sidebar.nav-open .sidebar-socials { display: flex; }
  .main { margin-left: 0; margin-top: 16px; }
  #about, .services-grid, .resume-grid, .achieve-grid, .form-grid, .contact-strip { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .ai-list { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 110px 18px 1fr; }
  .timeline-item:not(:last-child)::after { left: 119px; }
  .contact-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .contact-cell:last-child { border-bottom: none; }
  .about-content { order: 1; padding: 42px 32px 24px; }
  .about-photo { order: 2; min-height: 420px; }
  .about-photo-stage { min-height: 420px; }
  .about-photo-img { width: min(84%, 420px); max-height: 400px; }
  .about-name { font-size: 44px; }
}

@media (max-width: 640px) {
  :root {
    --section-x: 24px;
    --section-y: 40px;
  }

  .sidebar {
    margin: 12px 12px 0;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .sidebar-avatar {
    width: 50px;
    height: 50px;
  }

  .sidebar-name { font-size: 15px; }
  .sidebar-role { font-size: 11px; }
  .main { margin-top: 12px; }
  .section-contact-header {
    padding-top: 18px;
    padding-bottom: 0;
  }
  .section-contact-header .section-title { margin-bottom: 18px; }
  .about-content { padding: 34px 24px 20px; }
  .about-photo { min-height: 340px; }
  .about-photo-stage { min-height: 340px; }
  .about-photo-img { width: min(88%, 340px); max-height: 340px; }
  .about-name { font-size: 36px; }
  .exec-summary {
    margin-bottom: 22px;
    padding: 18px 20px;
  }
  .impact-block { margin-bottom: 28px; }
  .impact-grid { grid-template-columns: 1fr; gap: 10px; }
  .impact-item { padding: 16px 16px 14px; }
  .impact-value { font-size: 24px; }
  .impact-label { font-size: 12px; }
  .cert-item { padding: 11px 14px; }
  .about-cta {
    width: 100%;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .about-cta .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 14px;
    text-align: center;
  }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-box { padding: 22px 14px; }
  .stat-num { font-size: 30px; }
  .stat-label { font-size: 11px; letter-spacing: 1.2px; }
  .contact-strip { margin-bottom: 10px; }
  .contact-form-wrap { padding-top: 14px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-item:not(:last-child)::after { display: none; }
  .timeline-meta, .timeline-body { padding: 0; text-align: left; }
  .timeline-dot { display: none; }
  .pub-feature { flex-direction: column; }
  .pub-feature-img { width: 100%; min-width: 0; }
}
