@font-face {
  font-family: 'Inter';
  font-weight: 400;
  src: url('fonts/Inter-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  src: url('fonts/Inter-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  src: url('fonts/Inter-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-weight: 700;
  src: url('fonts/Inter-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 600;
  src: url('fonts/Poppins-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 700;
  src: url('fonts/Poppins-700.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 800;
  src: url('fonts/Poppins-800.ttf') format('truetype');
}

:root {
  --navy: #101b30;
  --navy-2: #16233d;
  --teal: #17b0a3;
  --teal-dark: #0e8b81;
  --ink: #1c2536;
  --gray: #55617a;
  --gray-light: #8792a6;
  --line: #e4e8ef;
  --paper: #ffffff;
  --sidebar-text: #c6cee0;
  --sidebar-text-dim: #8d99b5;
}

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

a { color: inherit; text-decoration: none; }

html, body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  font-size: 9.3pt;
  line-height: 1.45;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 210mm;
  height: 297mm;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  page-break-after: always;
}
.page:last-child { page-break-after: auto; }

.body-row {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* ---------- BANNER (page 1 header) ---------- */
.banner { display: flex; flex-direction: column; flex-shrink: 0; }
.banner-row { display: flex; height: 32mm; }
.banner-photo {
  width: 68mm;
  flex-shrink: 0;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-photo img {
  width: 25mm;
  height: 25mm;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.14);
}
.banner-info {
  flex: 1;
  background: linear-gradient(115deg, #13293f 0%, #124a4a 65%, #0e5b56 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 11mm 0 9mm;
  color: #fff;
}
.banner-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 21pt;
  letter-spacing: 0.2px;
  color: #ffffff;
}
.banner-title {
  margin-top: 5px;
  font-size: 9.3pt;
  font-weight: 500;
  color: #d7f3ef;
}
.banner-address {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-size: 8pt;
  color: #bfe9e3;
}
.banner-address b { color: #ffffff; font-weight: 600; }
.banner-accent { height: 3px; background: var(--teal); flex-shrink: 0; }

/* ---------- SIDEBAR ---------- */
.sidebar {
  width: 68mm;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--sidebar-text);
  padding: 11mm 8mm 10mm 10mm;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.sidebar--center { justify-content: center; }

.name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 18.5pt;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: 0.2px;
}

.title-tag {
  margin-top: 5px;
  font-size: 8pt;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--teal);
}

.avail-pill {
  display: inline-block;
  margin-top: 8px;
  font-size: 6.6pt;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #0e8b81;
  background: rgba(23, 176, 163, 0.16);
  border: 0.75px solid rgba(23, 176, 163, 0.45);
  border-radius: 20px;
  padding: 3px 9px;
}
.avail-pill { color: #6fe6da; }

.side-sec { margin-top: 0; }

.side-h {
  font-family: 'Poppins', sans-serif;
  font-size: 8.1pt;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  gap: 6px;
}
.side-h::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--teal);
  display: inline-block;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  font-size: 8.2pt;
  color: var(--sidebar-text);
  word-break: break-word;
}
.contact-ico {
  width: 15px;
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9pt;
  flex-shrink: 0;
}

.skill-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  font-size: 8.1pt;
  color: var(--sidebar-text);
  line-height: 1.3;
}
.skill-line::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.skill-group { margin-bottom: 7px; }
.skill-group-title {
  font-size: 7.1pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6fe6da;
  margin-bottom: 4px;
}
.chip-wrap { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  font-size: 7.4pt;
  font-weight: 500;
  color: var(--sidebar-text);
  background: rgba(255,255,255,0.07);
  border: 0.75px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 3.5px 9px;
  line-height: 1.3;
}
.chip-ai {
  color: #eaf2ff;
  background: linear-gradient(135deg, #2f6fed 0%, #1c4fc2 100%);
  border: none;
  font-weight: 600;
  padding: 4px 10px;
}

.edu-item { margin-bottom: 6px; }
.edu-degree { font-size: 8.2pt; font-weight: 600; color: #ffffff; line-height: 1.3; }
.edu-school { font-size: 7.6pt; color: var(--sidebar-text-dim); margin-top: 1px; }
.edu-meta { font-size: 7.3pt; color: var(--teal); margin-top: 1px; font-weight: 600; }

.strength-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 7.8pt;
  color: var(--sidebar-text);
  margin-bottom: 4px;
}
.strength-item::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  font-size: 7.5pt;
  margin-top: 0.5px;
}

.lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7.9pt;
  margin-bottom: 4px;
}
.lang-name { color: var(--sidebar-text); font-weight: 500; }
.lang-level { color: var(--sidebar-text-dim); font-size: 7pt; }

/* ---------- MAIN ---------- */
.main {
  flex: 1;
  padding: 11mm 11mm 10mm 9mm;
  background: #ffffff;
}

.sec { margin-bottom: 11px; }

.sec-h {
  font-family: 'Poppins', sans-serif;
  font-size: 10.3pt;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 1.6px solid var(--teal);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.sec-h .num {
  color: var(--teal);
  font-size: 8.5pt;
}

.summary-text {
  font-size: 8.9pt;
  color: var(--gray);
  line-height: 1.55;
  text-align: justify;
}
.summary-text b, .summary-text strong { color: var(--ink); font-weight: 600; }

/* stat bar */
.stat-bar {
  display: flex;
  margin-top: 9px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.stat {
  flex: 1;
  text-align: center;
  padding: 7px 4px;
  background: #f6f9fb;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 13pt;
  font-weight: 700;
  color: var(--navy);
}
.stat-label {
  font-size: 6.4pt;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  margin-top: 1px;
}

/* achievements */
.ach-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ach-card {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 9px;
  background: #fafcfd;
}
.ach-ico {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(23,176,163,0.12);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10pt;
  flex-shrink: 0;
}
.ach-text { font-size: 8pt; color: var(--gray); line-height: 1.4; }
.ach-text b { color: var(--ink); font-weight: 600; }

/* AI capability callout */
.ai-box {
  margin-top: 10px;
  background: linear-gradient(135deg, #0f2a3f 0%, #123a45 60%, #0e4a48 100%);
  border-radius: 7px;
  padding: 9px 12px;
  color: #eaf7f5;
}
.ai-box-h {
  font-family: 'Poppins', sans-serif;
  font-size: 8.3pt;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #6fe6da;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.ai-list { display: flex; flex-direction: column; gap: 3px; }
.ai-list li {
  list-style: none;
  font-size: 8.1pt;
  color: #dcecea;
  padding-left: 12px;
  position: relative;
  line-height: 1.4;
}
.ai-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #6fe6da;
  font-size: 8pt;
}

/* experience */
.exp-item { margin-bottom: 10px; position: relative; padding-left: 14px; border-left: 2px solid var(--line); }
.exp-item:last-child { margin-bottom: 0; }
.exp-item::before {
  content: '';
  position: absolute;
  left: -4.5px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
}
.exp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.exp-role { font-size: 9.6pt; font-weight: 700; color: var(--navy); }
.exp-co { font-weight: 500; color: var(--teal-dark); }
.exp-date {
  font-size: 7.4pt;
  font-weight: 600;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.exp-bullets { margin-top: 4px; }
.exp-bullets li {
  list-style: none;
  font-size: 8.4pt;
  color: var(--gray);
  padding-left: 11px;
  position: relative;
  margin-bottom: 2.5px;
  line-height: 1.42;
}
.exp-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* open source cards (main column) */
.oss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.oss-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #fafcfd;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.oss-card-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(23,176,163,0.12);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5pt;
  flex-shrink: 0;
  margin-top: 1px;
}
.oss-body { flex: 1; }
.oss-title { font-size: 9.1pt; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.oss-title .role { font-weight: 500; color: var(--gray); font-size: 7.9pt; }
.oss-desc { font-size: 8pt; color: var(--gray); line-height: 1.42; }
.oss-link { font-size: 7.6pt; color: var(--teal-dark); font-weight: 600; margin-top: 3px; display: inline-block; }

/* projects page 2 */
.proj-cat { margin-bottom: 13px; }
.proj-cat-h {
  font-size: 8.1pt;
  font-weight: 700;
  color: #ffffff;
  background: var(--navy);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.proj-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; }
.proj-row {
  font-size: 8.1pt;
  color: var(--gray);
  padding: 4px 0 6px;
  border-bottom: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.4;
}
.proj-row b { color: var(--ink); font-weight: 600; }
.proj-row .proj-url { color: var(--teal-dark); font-size: 7.3pt; white-space: nowrap; font-weight: 500; }

.tag-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 8pt;
  font-weight: 500;
  color: var(--navy);
  background: #eef6f5;
  border: 1px solid #d6ece9;
  border-radius: 20px;
  padding: 5px 12px;
}

.tag-group { margin-bottom: 11px; }
.tag-group:last-child { margin-bottom: 0; }
.tag-group-h {
  font-size: 7.4pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--teal-dark);
  margin-bottom: 6px;
}

/* flagship spotlight (page 2 main) */
.flag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.flag-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: linear-gradient(160deg, #fafcfd 0%, #f2f8f7 100%);
}
.flag-card .flag-name { font-size: 9pt; font-weight: 700; color: var(--navy); }
.flag-card .flag-name a { color: var(--teal-dark); font-size: 7.4pt; font-weight: 600; float: right; }
.flag-card .flag-desc { font-size: 7.9pt; color: var(--gray); line-height: 1.42; margin-top: 3px; }
.flag-note {
  margin-top: 10px;
  font-size: 8pt;
  color: var(--teal-dark);
  font-weight: 600;
  text-align: center;
  background: rgba(23,176,163,0.08);
  border: 1px dashed rgba(23,176,163,0.35);
  border-radius: 6px;
  padding: 7px;
}

.footer-note {
  position: absolute;
  bottom: 7mm;
  left: 68mm;
  right: 11mm;
  font-size: 6.8pt;
  color: var(--gray-light);
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 5px;
}
.footer-note a { color: var(--gray-light); }

/* ---------- PAGE 3: portfolio index (sidebar + directory list) ---------- */
.snap-badge {
  text-align: center;
  padding: 4px 0 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.snap-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26mm;
  height: 26mm;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(111,230,218,0.22) 0%, rgba(111,230,218,0.06) 55%, transparent 75%);
  border: 1.6px solid rgba(111,230,218,0.5);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 22pt;
  line-height: 1;
  color: #ffffff;
}
.snap-label {
  font-size: 7.6pt;
  color: var(--sidebar-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-top: 8px;
}
.plist-cat {
  font-size: 7.9pt;
  font-weight: 700;
  color: #ffffff;
  background: var(--navy);
  display: inline-block;
  padding: 3.5px 11px;
  border-radius: 3px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 12px 0 5px;
}
.plist-cat:first-child { margin-top: 0; }
.plist-cat .cnt { color: #6fe6da; font-weight: 500; }
.plist-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 3.5px 0;
  border-bottom: 1px dotted var(--line);
}
.plist-row:last-child { border-bottom: none; }
.plist-text { flex: 1; min-width: 0; font-size: 7.9pt; line-height: 1.4; }
.plist-name { font-weight: 700; color: var(--navy); }
.plist-desc { color: var(--gray); }
.plist-link { font-size: 6.9pt; color: var(--teal-dark); font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.plist-sep { color: var(--gray-light); font-size: 6.9pt; margin: 0 2px; }
.pf-header-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 12.5pt;
}
.pf-header-name span { color: #6fe6da; font-weight: 500; font-size: 9pt; }
.pf-header-tag {
  font-size: 8.3pt;
  color: #bfe9e3;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.pf-main {
  flex: 1;
  padding: 9mm 11mm 10mm;
}
.pf-cat { margin-bottom: 11px; }
.pf-cat-h {
  font-size: 8.6pt;
  font-weight: 700;
  color: #ffffff;
  background: var(--navy);
  display: inline-block;
  padding: 3.5px 11px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.pf-cat-h .cnt { color: #6fe6da; font-weight: 500; }
.pf-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
}
.pf-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  background: linear-gradient(160deg, #fafcfd 0%, #f2f8f7 100%);
  line-height: 1.38;
}
.pf-card .pf-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
}
.pf-card .pf-name { font-size: 8.3pt; font-weight: 700; color: var(--navy); }
.pf-card .pf-link { font-size: 7pt; color: var(--teal-dark); font-weight: 600; white-space: nowrap; }
.pf-card .pf-sep { color: var(--gray-light); font-size: 7pt; }
.pf-card .pf-desc { font-size: 7.5pt; color: var(--gray); margin-top: 2px; }
