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

:root {
  --dark:      #0F172A;
  --dark2:     #1E293B;
  --dark3:     #334155;
  --blue:      #3B82F6;
  --blue-d:    #1D4ED8;
  --blue-l:    #93C5FD;
  --cyan:      #22D3EE;
  --green:     #4ADE80;
  --green-d:   #16A34A;
  --amber:     #FBBF24;
  --purple:    #A78BFA;
  --purple-d:  #7C3AED;
  --white:     #FFFFFF;
  --gray-50:   #F8FAFC;
  --gray-100:  #F1F5F9;
  --gray-200:  #E2E8F0;
  --gray-300:  #CBD5E1;
  --gray-500:  #64748B;
  --gray-700:  #374151;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max: 1140px;
  --r: 12px;
  --r-sm: 8px;
  --sh: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --sh-lg: 0 20px 48px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --sh-blue: 0 8px 32px rgba(59,130,246,.25);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--gray-50); }

/* ── Typography helpers ──────────────────────────────────────── */
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.s-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -.5px;
  margin-bottom: 12px;
}
.s-sub {
  font-size: .95rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,.08); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--blue); text-decoration: none; }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color .15s;
}
.nav-links a:hover { color: var(--dark); text-decoration: none; }
.btn-hire {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--blue);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: all .2s;
  margin-left: auto;
  flex-shrink: 0;
}
.btn-hire:hover { background: var(--blue-d); text-decoration: none; transform: translateY(-1px); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 4px rgba(59,130,246,.3); }
.btn-primary:hover { background: var(--blue-d); box-shadow: var(--sh-blue); transform: translateY(-1px); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: var(--dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
/* Radial gradient mesh background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 5% 50%, rgba(59,130,246,.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 15%, rgba(34,211,238,.09) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(167,139,250,.08) 0%, transparent 55%);
  pointer-events: none;
}
/* Subtle dot grid */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.hero-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Available badge */
.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.25);
  color: #4ADE80;
  font-size: .78rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.pulse-dot {
  width: 7px; height: 7px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.85)} }

/* Hero name */
.hero-name {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -3px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #FFFFFF 0%, #BAE6FD 45%, #93C5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-role {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: var(--blue-l);
  font-weight: 500;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.role-sep { color: var(--dark3); }
.hero-bio {
  font-size: .975rem;
  color: #94A3B8;
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #fff; text-decoration: none; }

/* CV download button — green accent on dark hero */
.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  background: transparent;
  color: #4ADE80;
  border: 1px solid rgba(74,222,128,.4);
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-cv:hover { background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.65); color: #4ADE80; text-decoration: none; transform: translateY(-1px); }

/* Hero stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  width: fit-content;
  overflow: hidden;
}
.hs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
}
.hs-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
}
.hs-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}
.hs-lbl {
  font-size: .66rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .07em;
  line-height: 1.4;
}

/* Hero photo */
.hero-photo-col {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-frame {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #3B82F6, #22D3EE, #4ADE80);
  animation: glow 4s ease-in-out infinite alternate;
  flex-shrink: 0;
}
@keyframes glow {
  from { box-shadow: 0 0 40px rgba(59,130,246,.3), 0 0 80px rgba(34,211,238,.1); }
  to   { box-shadow: 0 0 80px rgba(59,130,246,.5), 0 0 160px rgba(34,211,238,.2); }
}
.photo {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--dark);
  display: block;
}
.photo-fallback {
  display: none;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--dark2);
  border: 3px solid var(--dark);
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 900;
  color: var(--blue-l);
  letter-spacing: -4px;
}
/* Floating context badges */
.float-card {
  position: absolute;
  background: rgba(30,41,59,.96);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.float-card-1 { bottom: 18px; left: -44px; animation: float1 4s ease-in-out infinite; }
.float-card-2 { top: 36px; right: -44px; animation: float2 4s ease-in-out infinite 1.2s; }
.fc-icon { font-size: 1.1rem; }
@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ── Reveal animation ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal .6s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

/* ── Expertise / Pillars ─────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  padding: 32px 28px;
  transition: all .25s;
}
.pillar:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); border-color: var(--gray-300); }
.pillar-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.pi-blue  { background: rgba(59,130,246,.1);  color: var(--blue); }
.pi-cyan  { background: rgba(34,211,238,.1);  color: #0891B2; }
.pi-green { background: rgba(74,222,128,.1);  color: var(--green-d); }
.pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.pillar-list { list-style: none; margin-bottom: 20px; }
.pillar-list li {
  font-size: .875rem;
  color: var(--gray-500);
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.5;
}
.pillar-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: .75rem;
  top: 5px;
}
.pillar-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.pb-blue  { background: rgba(59,130,246,.1);  color: var(--blue); }
.pb-cyan  { background: rgba(34,211,238,.1);  color: #0891B2; }
.pb-green { background: rgba(74,222,128,.1);  color: var(--green-d); }

/* ── Skills (tag fallbacks, kept for reference) ──────────────── */
.leg { font-weight: 600; }
.leg-expert   { color: #1D4ED8; }
.leg-advanced { color: #15803D; }
.leg-mid      { color: #C2410C; }

/* ── Skills table ────────────────────────────────────────────── */
.skills-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.skill-cat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  overflow: hidden;
}
.skill-cat-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dark);
}
.cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-blue   { background: var(--blue); }
.dot-cyan   { background: #22D3EE; }
.dot-green  { background: #4ADE80; }
.dot-purple { background: #A78BFA; }
.skill-tbl { width: 100%; border-collapse: collapse; }
.skill-tbl tr { border-bottom: 1px solid var(--gray-100); transition: background .15s; }
.skill-tbl tr:last-child { border-bottom: none; }
.skill-tbl tr:hover { background: var(--gray-50); }
.skill-tbl td { padding: 10px 14px; vertical-align: middle; }
.si-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--bg, #F3F4F6);
  flex-shrink: 0;
}
.si-text {
  font-size: .6rem;
  font-weight: 800;
  color: var(--tc, #374151);
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0;
}
.sn { font-size: .875rem; font-weight: 500; color: var(--dark); width: 100%; padding-left: 4px; }
.lv {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
}
.lv-e { background: #EFF6FF; color: #1D4ED8; }
.lv-a { background: #F0FDF4; color: #15803D; }
.lv-m { background: #FFF7ED; color: #C2410C; }

/* ── Skill list (text-based, no icons) ───────────────────────── */
.skill-list {
  list-style: none;
  padding: 6px 20px 10px;
}
.skill-list li {
  font-size: .875rem;
  color: var(--dark);
  padding: 9px 12px 9px 18px;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  line-height: 1.5;
  border-radius: 6px;
  transition: background .15s, transform .15s;
  cursor: default;
}
.skill-list li:last-child { border-bottom: none; }
.skill-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: .75rem;
  top: 10px;
  transition: transform .15s;
}
.skill-list li:hover {
  background: rgba(59,130,246,.06);
  transform: translateX(6px);
}
.skill-list li:hover::before {
  transform: translateX(2px);
}

/* ── Projects ────────────────────────────────────────────────── */
.projects-hd {
  margin-bottom: 28px;
}
.proj-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
}
.btn-gh-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: #24292F;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.btn-gh-cta:hover { background: #1c2127; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.25); color: #fff; text-decoration: none; }
.gh-badge {
  background: var(--blue);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 100px;
  margin-left: 2px;
}
.btn-viewall {
  display: inline-flex;
  align-items: center;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--gray-200);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-viewall:hover { border-color: var(--blue); background: rgba(59,130,246,.04); text-decoration: none; }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.proj-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all .25s;
}
/* Colored top accent bar */
.proj-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ac, var(--blue));
}
.proj-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); border-color: var(--gray-300); }
.proj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.proj-num {
  font-size: .72rem;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: .05em;
}
.proj-gh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all .15s;
  text-decoration: none;
}
.proj-gh:hover { color: var(--dark); border-color: var(--gray-400); text-decoration: none; }
.proj-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}
.proj-impact {
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.4;
}
.proj-desc {
  font-size: .855rem;
  color: var(--gray-500);
  line-height: 1.65;
  flex: 1;
}
.ptags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.ptag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .73rem;
  font-weight: 600;
}
.pt-blue   { background: #EFF6FF; color: #1D4ED8; }
.pt-green  { background: #F0FDF4; color: #15803D; }
.pt-purple { background: #F5F3FF; color: #6D28D9; }
.pt-orange { background: #FFF7ED; color: #C2410C; }
.pt-red    { background: #FFF1F2; color: #BE123C; }

/* All projects expand */
.all-proj { margin-top: 4px; }
.all-proj-toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  padding: 8px 0;
}
.all-proj-toggle::-webkit-details-marker { display: none; }
.all-proj-toggle::before { content: '▶'; font-size: .6rem; transition: transform .2s; }
details[open] .all-proj-toggle::before { transform: rotate(90deg); }
.all-proj-wrap { margin-top: 12px; overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--r); }
.all-proj-table { width: 100%; border-collapse: collapse; font-size: .855rem; }
.all-proj-table th { background: var(--gray-50); padding: 10px 16px; text-align: left; font-weight: 600; color: var(--gray-500); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--gray-200); }
.all-proj-table td { padding: 10px 16px; border-bottom: 1px solid var(--gray-200); color: var(--gray-500); vertical-align: middle; }
.all-proj-table tr:last-child td { border-bottom: none; }
.all-proj-table tr:hover td { background: var(--gray-50); }
.all-proj-table td:first-child { font-weight: 800; color: var(--blue); width: 40px; }
.all-proj-table td:nth-child(2) { font-weight: 500; color: var(--dark); white-space: nowrap; }
.all-proj-table a { color: var(--blue); font-weight: 700; }

/* ── Study grid 8 ────────────────────────────────────────────── */
.study-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sc8 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  text-decoration: none;
  transition: all .2s;
}
.sc8:hover { border-color: var(--blue); box-shadow: var(--sh); transform: translateY(-3px); text-decoration: none; }
.sc8-top { display: flex; align-items: center; justify-content: space-between; }
.sc8-arr { font-size: .9rem; color: var(--gray-300); transition: color .15s; }
.sc8:hover .sc8-arr { color: var(--blue); }
.sc8-title { font-size: .9rem; font-weight: 700; color: var(--dark); line-height: 1.3; }
.sc8-desc  { font-size: .78rem; color: var(--gray-500); line-height: 1.55; flex: 1; }
.sc8-tags  { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.sc8-tags span {
  font-size: .68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--gray-100);
  color: var(--gray-500);
}

/* ── Continuous Learning ─────────────────────────────────────── */
.lflow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 40px 0;
  overflow-x: auto;
}
.lf-step {
  flex: 1;
  min-width: 150px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  padding: 24px 16px;
  transition: all .2s;
}
.lf-step:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.lf-outcome { background: linear-gradient(135deg, #F0FDF4, #EFF6FF); }
.lf-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 14px;
}
.lf-arr {
  font-size: 1.3rem;
  color: var(--gray-300);
  padding: 0 8px;
  align-self: center;
  flex-shrink: 0;
}
.lf-name { font-size: .9rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.lf-desc  { font-size: .77rem; color: var(--gray-500); line-height: 1.5; }
.ltopics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0;
}
.lt {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  padding: 24px;
  transition: all .2s;
}
.lt:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.lt-bar { width: 36px; height: 4px; border-radius: 2px; margin-bottom: 14px; }
.lt h3 { font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.lt p  { font-size: .855rem; color: var(--gray-500); line-height: 1.6; }

/* ── Profile dark section ────────────────────────────────────── */
.profile-dark { background: var(--dark); }
.eyebrow-light { color: #60A5FA; }
.s-title-light { color: #fff; }
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.creds-list { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.cred { display: flex; gap: 12px; align-items: flex-start; }
.cred-icon { font-size: 1.05rem; flex-shrink: 0; margin-top: 2px; }
.cred-lbl {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #475569;
  margin-bottom: 2px;
}
.cred-val { font-size: .9rem; color: #CBD5E1; font-weight: 500; }
.cred-green { color: #4ADE80 !important; font-weight: 600; }
.visa-note {
  font-size: .78rem;
  color: #475569;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  line-height: 1.6;
}

/* Journal cards (inside dark section) */
.profile-journal { display: flex; flex-direction: column; gap: 16px; }
.jcard {
  display: block;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  padding: 26px 28px;
  text-decoration: none;
  transition: all .2s;
}
.jcard-primary { background: linear-gradient(135deg, rgba(37,99,235,.28), rgba(59,130,246,.14)); border-color: rgba(59,130,246,.3); }
.jcard:hover { background: rgba(255,255,255,.06); text-decoration: none; transform: translateY(-2px); }
.jcard-plat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #60A5FA; display: block; margin-bottom: 10px; }
.jcard-plat-gh { color: #94A3B8; }
.jcard h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.jcard p { font-size: .855rem; color: #94A3B8; line-height: 1.65; margin-bottom: 14px; }
.jcard-link { font-size: .85rem; font-weight: 600; color: #60A5FA; }

/* ── Connect ─────────────────────────────────────────────────── */
.connect-hd {
  text-align: center;
  margin-bottom: 48px;
}
.connect-hd .s-title { margin: 0 auto 10px; }
.connect-hd .s-sub   { margin: 0 auto 28px; }
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  text-decoration: none;
  text-align: center;
  transition: all .2s;
}
.social-card:hover { border-color: var(--blue); box-shadow: var(--sh); transform: translateY(-3px); text-decoration: none; }
.sc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900;
}
.sc-linkedin { background: #0A66C2; color: #fff; font-size: 1.1rem; font-style: italic; font-weight: 800; }
.sc-github   { background: #24292F; color: #fff; }
.sc-cv-card  { background: #16A34A; color: #fff; font-size: .8rem; font-weight: 900; letter-spacing: .03em; }
.sc-email    { background: #EA4335; color: #fff; font-size: 1.1rem; }
.sc-name     { font-size: .9rem; font-weight: 600; color: var(--dark); }
.sc-handle   { font-size: .73rem; color: var(--gray-500); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: var(--dark); padding: 24px 0; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: #475569;
}
.footer-inner a { color: #475569; transition: color .15s; }
.footer-inner a:hover { color: #94A3B8; text-decoration: none; }

/* ── Hero tagline ────────────────────────────────────────────── */
.hero-tagline {
  font-size: 1rem;
  color: #BAE6FD;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.55;
  max-width: 520px;
}

/* ── Impact grid ─────────────────────────────────────────────── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.impact-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  padding: 28px 24px;
  border-top: 3px solid var(--blue);
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.impact-card:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.impact-cat {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
}
.impact-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.impact-text {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
}

/* ── PyPI badge ──────────────────────────────────────────────── */
.pypi-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: #1D4ED8;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: .03em;
}

/* ── Cert badge ──────────────────────────────────────────────── */
.cert-badge {
  display: inline-block;
  padding: 1px 8px;
  background: #FEF9C3;
  color: #92400E;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Project links ───────────────────────────────────────────── */
.proj-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.proj-links a {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: all .15s;
}
.proj-links a:hover {
  background: rgba(59,130,246,.05);
  border-color: var(--blue);
  text-decoration: none;
}

/* ── Knowledge management line ───────────────────────────────── */
.km-line {
  font-size: .95rem;
  color: var(--gray-500);
  line-height: 1.7;
  padding: 18px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--blue);
  border-radius: var(--r);
}
.km-link {
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}
.km-link:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .study-grid-8 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .skills-cats { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; gap: 40px; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo-col { order: -1; }
  .photo-frame { width: 200px; height: 200px; }
  .float-card { display: none; }
  .hero-stats { flex-wrap: wrap; width: 100%; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .section { padding: 64px 0; }
  .proj-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .hero { padding: 80px 0 48px; min-height: 100svh; }
  .hero-name { letter-spacing: -2px; }
  .proj-title-row { flex-direction: column; align-items: flex-start; }
  .impact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hs { padding: 16px; }
  .hs-num { font-size: 1.5rem; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .study-grid-8 { grid-template-columns: 1fr; }
}
