:root {
  --page-bg: #ffffff;
  --nav-text: #111111;
  --hero-top: #013b33;
  --hero-bottom: #045f54;
  --hero-text: #f3faf8;
  --hero-muted: rgba(243, 250, 248, 0.87);
  --line: rgba(255, 255, 255, 0.14);
  --surface: rgba(13, 28, 24, 0.18);
  --surface-strong: rgba(23, 39, 34, 0.34);
  --btn: #253246;
  --btn-border: rgba(255, 255, 255, 0.14);
  --section-bg: #f5f7f8;
  --card: #ffffff;
  --card-border: #e5eaeb;
  --text: #10221c;
  --muted: #5b6c66;
}

body.dark-mode {
  --page-bg: #0b1513;
  --nav-text: #edf6f3;
  --hero-top: #062b25;
  --hero-bottom: #0c433a;
  --hero-text: #f3faf8;
  --hero-muted: rgba(243, 250, 248, 0.86);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --btn: #30405a;
  --section-bg: #101b19;
  --card: #13201d;
  --card-border: #1f312d;
  --text: #eff6f3;
  --muted: #afc0ba;
}

html { scroll-behavior: smooth; }
body { background: var(--page-bg); color: var(--text); }
body .site-header {
  border-top: 0;
  border-bottom: 1px solid #e6ecea;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
body.dark-mode .site-header { background: #0f1917; border-bottom-color: #20302c; }
.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.site-title, .site-title:visited {
  color: var(--nav-text) !important;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.site-nav { position: static; border: 0; background: transparent; justify-self: center; }
.site-nav .page-link {
  color: var(--nav-text) !important;
  font-size: 0.98rem;
  font-weight: 700;
  margin-right: 24px;
}
.site-nav .page-link:last-child { margin-right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button {
  width: 38px; height: 38px; border: 0; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; background: transparent; color: var(--nav-text); cursor: pointer;
}
.icon-button svg { width: 23px; height: 23px; }
.page-content { padding: 0; }
.hero-stage {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--hero-top) 0%, #01463d 45%, var(--hero-bottom) 100%);
}
.hero-stage::before, .hero-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero-stage::after {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.06) 0 9%, transparent 9% 100%),
    linear-gradient(195deg, rgba(255,255,255,0.045) 0 12%, transparent 12% 100%),
    linear-gradient(25deg, rgba(255,255,255,0.03) 0 11%, transparent 11% 100%),
    linear-gradient(330deg, rgba(0,0,0,0.10) 0 16%, transparent 16% 100%);
  mix-blend-mode: screen; opacity: 0.9;
}
.subpage-shell {
  position: relative; z-index: 1; min-height: calc(100vh - 86px);
  padding: 88px 76px 110px;
}
.subpage-grid {
  display: grid; grid-template-columns: 310px 1fr; gap: 70px; align-items: start;
}
.profile-column { text-align: center; color: var(--hero-text); }
.profile-photo-wrap { position: relative; width: 196px; height: 196px; margin: 0 auto 20px; }
.profile-photo {
  width: 196px; height: 196px; border-radius: 999px; box-shadow: 0 0 0 5px rgba(49, 57, 93, 0.72);
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.2), transparent 32%), linear-gradient(145deg, #4f7c53 0%, #173a2f 30%, #0b1816 100%);
  position: relative; overflow: hidden;
}
.photo-badge {
  position: absolute; right: -2px; bottom: 6px; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; background: #061513; border: 2px solid rgba(255,255,255,0.16); color: #ffffff; font-size: 1.15rem;
}
.profile-name-main { margin: 0; font-size: 1.1rem; font-weight: 800; line-height: 1.1; color: var(--hero-text); }
.profile-name-alt { margin: 6px 0 14px; font-size: 3rem; line-height: 1; font-weight: 900; color: #ffffff; text-shadow: 0 3px 0 rgba(0,0,0,0.18); }
.profile-role { margin: 0 0 2px; font-size: 1.12rem; line-height: 1.2; font-weight: 800; color: var(--hero-text); }
.profile-org { margin: 0 0 18px; font-size: 0.98rem; color: var(--hero-text); }
.social-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.social-icon {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--hero-text); text-decoration: none; font-weight: 800; font-size: 1.15rem;
}
.content-column { color: var(--hero-text); }
.hero-section-title {
  margin: 0 0 22px; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.02; color: var(--hero-text); letter-spacing: -0.04em;
}
.about-text, .section-text {
  max-width: 930px; margin: 0 0 26px; color: var(--hero-muted); font-size: 1rem; line-height: 1.7;
}
.cv-button {
  display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 34px; padding: 14px 22px;
  border-radius: 12px; text-decoration: none; color: var(--hero-text); background: var(--btn); border: 1px solid var(--btn-border); font-weight: 700;
}
.cv-button-icon svg { width: 18px; height: 18px; }
.subpage-card, .subpage-list {
  max-width: 1200px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 30px; backdrop-filter: blur(3px);
}
.subpage-card h2, .subpage-list h2 {
  color: var(--hero-text); font-size: 1.3rem; margin: 0 0 14px;
}
.subpage-card p, .subpage-list li, .subpage-list a {
  color: var(--hero-muted); line-height: 1.8; font-size: 1rem;
}
.subpage-list ul { margin: 0; padding-left: 22px; }
.subpage-stack { display: grid; gap: 22px; }
.section-kicker {
  display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.09);
  color: var(--hero-text); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
}
.text-link { color: #d7f7ef; text-decoration: underline; }
@media (max-width: 1100px) {
  .subpage-grid { grid-template-columns: 1fr; gap: 48px; }
  .profile-column { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 820px) {
  .header-inner { grid-template-columns: 1fr; padding: 16px 0; gap: 14px; }
  .site-nav { justify-self: start; display: block; white-space: normal; }
  .site-nav .page-link { display: inline-block; margin: 0 14px 8px 0; font-size: 1rem; }
  .subpage-shell { padding: 52px 24px 72px; }
}

/* --- Homepage layout alignment fix --- */
.hero-shell {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 86px);
  padding: 88px 76px 110px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 70px;
  align-items: start;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 930px;
}

.meta-block-title {
  margin: 0 0 14px;
  color: var(--hero-text);
  font-size: 1.15rem;
  font-weight: 800;
}

.bullet-list {
  margin: 0;
  padding-left: 24px;
  color: var(--hero-muted);
}

.bullet-list li {
  margin: 0 0 10px;
  line-height: 1.65;
}

.education-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.education-list li {
  margin: 0 0 18px;
  color: var(--hero-muted);
  line-height: 1.5;
}

.education-list strong {
  display: block;
  color: var(--hero-text);
  font-weight: 800;
}

.education-list span {
  display: block;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.social-links a,
.social-links span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-meta-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .profile-column {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .hero-shell {
    padding: 52px 24px 72px;
  }
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.profile-photo::before,
.profile-photo::after {
  display: none;
}


.tool-group {
  margin: 0 0 16px;
  max-width: 320px;
}

.tool-group:last-child {
  margin-bottom: 0;
}

.tool-group strong {
  display: block;
  margin-bottom: 4px;
  color: var(--hero-text);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

.tool-group p {
  margin: 0;
  color: var(--hero-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  word-break: break-word;
}


/* ===== CLEAN WHITE NAVBAR (GREEN TEXT) ===== */

.site-title,
.site-title:visited {
  color: #0f4d45 !important;
  font-size: 1.3rem;
  font-weight: 800;
}

.site-nav {
  position: static;
  border: 0;
  background: transparent;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  white-space: nowrap;
}

.site-nav .page-link {
  color: #0f4d45 !important;
  font-size: 1.1rem;
  font-weight: 700;
  margin-right: 0;
  padding: 6px 0;
  transition: all 0.2s ease;
}

.site-nav .page-link:hover {
  color: #0b3f39 !important;
  transform: translateY(-1px);
}

.icon-button {
  color: #0f4d45;
  background: rgba(15, 77, 69, 0.08);
}

.icon-button:hover {
  background: rgba(15, 77, 69, 0.15);
}

.header-inner {
  min-height: 82px;
}


/* ===== FIX CV BUTTON (WHITE TEXT + PREMIUM) ===== */
.cv-button,
.cv-button:visited,
.cv-button:hover,
.cv-button:active {
  color: #ffffff !important;
}

.cv-button {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.cv-button:hover {
  background: rgba(255,255,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 20px rgba(0,255,200,0.15);
}

.cv-button svg {
  color: #ffffff !important;
  stroke: currentColor;
}


/* ===== AI DOCS FLOW TIMELINE ===== */
.flow-steps {
  position: relative;
  margin-top: 18px;
  padding-left: 34px;
}

.flow-steps::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.flow-step {
  position: relative;
  margin-bottom: 34px;
}

.flow-step:last-child {
  margin-bottom: 0;
}

.flow-step::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.flow-step h3 {
  margin: 0 0 12px;
  color: var(--hero-text);
  font-size: 1.05rem;
  line-height: 1.4;
}

.flow-step > ul {
  margin: 0;
  padding-left: 22px;
}

.flow-step > ul > li {
  margin-bottom: 8px;
}

.flow-step ul ul {
  margin-top: 8px;
  padding-left: 22px;
}
