/* ============================================================
   DESIGN TOKENS — Light Theme
   ============================================================ */
:root {
  --accent:       #ec3a3a;
  --accent-light: #f16363;
  --accent-dark:  #a33030;
  --bg:           #f8f9fc;
  --bg-2:         #ffffff;
  --bg-3:         #f1f3f9;
  --border:       #e2e6f0;
  --text:         #1a1a2e;
  --text-muted:   #5a5a7a;
  --text-faint:   #9090ae;
  --green:        #16a34a;
  --amber:        #d97706;
  --rose:         #e11d48;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Outfit', 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.14);

  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; display: block; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-3); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p  { color: var(--text-muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.15rem; color: var(--text); }
.mono { font-family: var(--font-mono); font-size: .85em; }
code {
  font-family: var(--font-mono);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: .875em;
  color: var(--accent-dark);
}
pre {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
pre code { background: none; border: none; padding: 0; color: var(--text); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 6rem 0; }
.section--sm { padding: 4rem 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
}
.nav__logo span { color: var(--accent-light); }
.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: var(--text); }
.nav__links a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
  margin-top: 2px;
}
.nav__cta {
  background: var(--accent);
  color: #fff !important;
  padding: .45rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: .85rem !important;
  transition: background var(--transition) !important;
}
.nav__cta:hover { background: var(--accent-dark) !important; color: #fff !important; }
.nav__cta.active::after { display: none !important; }


.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(79,70,229,.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(99,102,241,.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(79,70,229,.15);
  border: 1px solid rgba(79,70,229,.3);
  color: var(--accent-light);
  padding: .35rem .9rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero__title { margin-bottom: 1rem; }
.hero__title .highlight {
  background: linear-gradient(135deg, var(--accent-light), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__pronunciation {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: -0.25rem;
  margin-bottom: 0.25rem;
}

.hero__title .sub_highlight {
  background: linear-gradient(135deg, var(--accent-light), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero__stats {
  display: flex;
  gap: 2.5rem;
}
.hero__stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  display: block;
}
.hero__stat-label { font-size: .8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; }

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero__card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 340px;
  box-shadow: var(--shadow-lg);
  position: relative;
  margin: 0 auto;
}
.hero__card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(79,70,229,.15), transparent 60%);
  z-index: -1;
}
.avatar-wrap {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 0 30px rgba(79,70,229,.4);
  overflow: hidden;
}
.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__card h3 { font-size: 1.15rem; color: var(--text); margin-bottom: .2rem; }
.hero__card .role { color: var(--accent); font-size: .85rem; margin-bottom: 1rem; }
.hero__skills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.hero__chart {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: .5rem;
}
.chart-bar-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
}
.chart-bar-row:last-child { margin-bottom: 0; }
.chart-label { font-size: .75rem; color: var(--text-muted); width: 70px; flex-shrink: 0; }
.chart-track { flex: 1; height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.chart-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform-origin: left;
  animation: barGrow 1s ease forwards;
  transform: scaleX(0);
}
@keyframes barGrow { to { transform: scaleX(1); } }
.chart-pct { font-size: .75rem; color: var(--text-faint); width: 32px; text-align: right; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79,70,229,.4);
}
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost {
  background: rgba(0,0,0,.04);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(0,0,0,.08); color: var(--text); }
.btn--sm { padding: .45rem 1rem; font-size: .85rem; }

/* ============================================================
   TAGS / CHIPS
   ============================================================ */
.tag {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.tag--accent { background: rgba(79,70,229,.10); color: #4338ca; border: 1px solid rgba(79,70,229,.25); }
.tag--green  { background: rgba(22,163,74,.10);  color: #15803d; border: 1px solid rgba(22,163,74,.25); }
.tag--amber  { background: rgba(217,119,6,.10);  color: #b45309; border: 1px solid rgba(217,119,6,.25); }
.tag--rose   { background: rgba(225,29,72,.10);  color: #be123c; border: 1px solid rgba(225,29,72,.25); }
.tag--muted  { background: var(--bg-3); color: var(--text-muted); border: 1px solid var(--border); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: rgba(79,70,229,.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card__title { font-size: 1.05rem; color: var(--text); margin-bottom: .4rem; }
.card__meta { font-size: .8rem; color: var(--text-faint); margin-bottom: .75rem; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { margin-bottom: 3.5rem; }
.section-header .eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section-header h2 { color: var(--text); margin-bottom: .75rem; }
.section-header p { max-width: 560px; }

/* ============================================================
   RESUME / TIMELINE
   ============================================================ */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.timeline { position: relative; }
.timeline__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 2rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.timeline__items { position: relative; }
.timeline__items::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline__item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
}
.timeline__dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-2);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
  transition: background var(--transition);
}
.timeline__item:hover .timeline__dot { background: var(--accent); }
.timeline__date {
  font-size: .78rem;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: .3rem;
}
.timeline__role { font-weight: 700; color: var(--text); font-size: 1rem; }
.timeline__company {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.timeline__desc { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.skill-item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .875rem 1rem;
}
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.skill-name { font-size: .875rem; font-weight: 600; color: var(--text); }

.skill-level { font-size: .75rem; color: var(--text-faint); font-family: var(--font-mono); }
.skill-bar { height: 4px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.skill-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s ease;
}
.skill-fill.animated { transform: scaleX(1); }

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  border-color: rgba(79,70,229,.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-card__header {
  padding: 1.5rem 1.5rem .75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.project-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.project-card__links { display: flex; gap: .5rem; }
.project-card__links a {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.project-card__links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.project-card__body { padding: 0 1.5rem 1.5rem; flex: 1; }
.project-card__title { font-size: 1rem; color: var(--text); margin-bottom: .4rem; }
.project-card__desc { font-size: .875rem; color: var(--text-muted); margin-bottom: 1rem; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.project-card__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
}
.project-card__stat { font-size: .78rem; color: var(--text-faint); }
.project-card__stat strong { color: var(--accent-dark); }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.blog-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  border-color: rgba(79,70,229,.3);
  transform: translateY(-4px);
  color: inherit;
}
.blog-card__banner {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.blog-card__banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--bg-2));
}
.blog-card__body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta { font-size: .78rem; color: var(--text-faint); margin-bottom: .6rem; font-family: var(--font-mono); }
.blog-card__title { font-size: 1.05rem; color: var(--text); margin-bottom: .6rem; line-height: 1.4; }
.blog-card__excerpt { font-size: .875rem; color: var(--text-muted); flex: 1; margin-bottom: 1rem; }
.blog-card__footer { display: flex; align-items: center; justify-content: space-between; }
.blog-card__read { font-size: .8rem; color: var(--accent); font-weight: 600; }

/* ============================================================
   AWARDS
   ============================================================ */
.awards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.award-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.award-card:hover { border-color: rgba(245,158,11,.4); transform: translateY(-3px); }
.award-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--amber), transparent);
}
.award-card__emoji { font-size: 2rem; margin-bottom: .75rem; }
.award-card__name { font-size: 1rem; color: var(--text); font-weight: 700; margin-bottom: .25rem; }
.award-card__org { font-size: .8rem; color: var(--accent); margin-bottom: .75rem; font-weight: 600; }
.award-card__desc { font-size: .85rem; color: var(--text-muted); }
.award-card__year {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: .75rem;
  font-family: var(--font-mono);
  color: var(--text-faint);
}

/* ============================================================
   CONTACT / CTA STRIP
   ============================================================ */
.cta-strip {
  background: linear-gradient(135deg, #eef2ff 0%, #f8f9fc 50%, #eff6ff 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(79,70,229,.06), transparent);
  pointer-events: none;
}
.cta-strip h2 { color: var(--text); margin-bottom: 1rem; }
.cta-strip p { margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-strip .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.5rem;
}
.footer__links a { color: var(--text-muted); font-size: .875rem; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { font-size: .8rem; color: var(--text-faint); }
.footer__socials { display: flex; justify-content: center; gap: .75rem; margin-bottom: 1.5rem; }
.footer__social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .9rem;
  transition: var(--transition);
}
.footer__social:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   BLOG POST
   ============================================================ */
.post-hero {
  padding: 8rem 2rem 4rem;
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.post-hero__meta { font-size: .85rem; color: var(--text-faint); font-family: var(--font-mono); margin-bottom: 1.5rem; }
.post-hero__meta span { color: var(--text-muted); }
.post-hero h1 { color: var(--text); margin-bottom: 1.25rem; }
.post-hero__excerpt { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; }
.post-content { padding: 4rem 0; }
.post-content h2 { color: var(--text); margin: 2.5rem 0 1rem; }
.post-content h3 { color: var(--text); margin: 2rem 0 .75rem; }
.post-content p { margin-bottom: 1.25rem; color: var(--text-muted); }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; color: var(--text-muted); }
.post-content li { margin-bottom: .4rem; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.post-content a { color: var(--accent); border-bottom: 1px solid rgba(79,70,229,.25); }
.post-content a:hover { border-color: var(--accent); }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.post-nav a {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: block;
  transition: var(--transition);
  color: var(--text-muted);
}
.post-nav a:hover { border-color: var(--accent); color: var(--text); }
.post-nav__dir { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: .25rem; }
.post-nav__title { font-weight: 600; color: var(--text); font-size: .95rem; }

/* ============================================================
   PAGE HERO (non-index pages)
   ============================================================ */
.page-hero {
  padding: 8rem 2rem 4rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { color: var(--text); margin-bottom: .75rem; }
.page-hero p { font-size: 1.05rem; max-width: 580px; }

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-tab {
  padding: .4rem 1rem;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: var(--transition);
}
.filter-tab:hover { border-color: var(--accent-light); color: var(--accent-light); }
.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.color-accent { color: var(--accent); }
.color-green  { color: var(--green); }
.color-amber  { color: var(--amber); }

/* Gradient backgrounds for icons */
.bg-accent  { background: rgba(79,70,229,.12); }
.bg-green   { background: rgba(22,163,74,.12); }
.bg-amber   { background: rgba(217,119,6,.12); }
.bg-rose    { background: rgba(225,29,72,.12); }
.bg-purple  { background: rgba(126,34,206,.12); }
.bg-cyan    { background: rgba(6,182,212,.12); }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============================================================
   SECTION SPECIFIC GRIDS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.resume-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { margin: 0 auto; }
  .section-header { text-align: center; }
  .section-header p { margin-left: auto; margin-right: auto; }
  
  .about-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 85vw);
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    margin-right: -2rem; /* Bleed to the edge of the container */
    padding-right: 2rem;
    scrollbar-width: none; /* Firefox */
  }
  .about-grid::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }
  .about-grid > .card {
    scroll-snap-align: start;
  }

  .resume-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .resume-skills-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 600px) {
  .container, .container--narrow { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .hero__stats { gap: 1.5rem; }
  .post-nav { grid-template-columns: 1fr; }
  .projects-grid, .blog-grid, .awards-grid { grid-template-columns: 1fr; }
}

/* Mobile nav open state */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(248,249,252,.97);
  backdrop-filter: blur(12px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__mobile-menu a:hover { color: var(--text); }
.nav__mobile-close {
  position: absolute;
  top: 1.25rem; right: 1.75rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }
