/* ═══════════════════════════════════════════
   kshitij.info — Blue-Black Tech Theme
   Fixed: gaps, mobile responsive
═══════════════════════════════════════════ */

:root {
  --bg:       #05070f;
  --bg2:      #080c18;
  --bg3:      #0d1220;
  --bg4:      #111828;
  --blue:     #4f8ef7;
  --blue2:    #3a7aed;
  --blue3:    #2563eb;
  --bdim:     rgba(79,142,247,0.10);
  --bglow:    rgba(79,142,247,0.18);
  --cyan:     #38bdf8;
  --cdim:     rgba(56,189,248,0.08);
  --tx:       #e8eaf2;
  --tx2:      #8b90a8;
  --tx3:      #464c6a;
  --bd:       rgba(79,142,247,0.10);
  --bd2:      rgba(79,142,247,0.22);
  --bd3:      rgba(255,255,255,0.05);
  --glass:    rgba(255,255,255,0.03);
  --serif:    'Instrument Serif', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
  --mono:     'JetBrains Mono', monospace;
  --r:  5px;
  --rl: 10px;
  --rx: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(79,142,247,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(56,189,248,0.05) 0%, transparent 50%);
}
a { color: inherit; text-decoration: none; }
strong { color: var(--tx); font-weight: 500; }
em { font-family: var(--serif); font-style: italic; }

/* ─── NAV ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(5,7,15,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--bd);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 12px; color: var(--tx3); letter-spacing: .07em;
}
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 13px; color: var(--tx3); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--tx); }
.nav-resume {
  font-size: 13px; font-weight: 500;
  padding: 7px 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue3));
  color: #fff; border-radius: var(--r);
  box-shadow: 0 0 16px rgba(79,142,247,0.3);
  transition: box-shadow .2s, transform .15s;
  white-space: nowrap;
}
.nav-resume:hover { box-shadow: 0 0 28px rgba(79,142,247,0.5); transform: translateY(-1px); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--tx2); border-radius: 2px; transition: all .2s; }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed;
  top: 56px; left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--bd);
  z-index: 99; flex-direction: column; padding: 12px 24px 20px; gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 15px; color: var(--tx2); padding: 12px 0;
  border-bottom: 1px solid var(--bd); transition: color .2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--tx); }

/* ─── LAYOUT ─── */
.container { max-width: 1020px; margin: 0 auto; padding: 0 40px; }
main { padding-top: 56px; position: relative; z-index: 1; }

/* ─── SECTIONS — reduced padding ─── */
section { padding: 64px 0; border-bottom: 1px solid var(--bd); }
section:last-child { border-bottom: none; }
.section-label {
  font-family: var(--mono); font-size: 11px;
  color: var(--blue); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif); font-size: 36px; font-weight: 400;
  color: var(--tx); line-height: 1.15; margin-bottom: 44px; letter-spacing: -.01em;
}

/* ─── HERO — no min-height, tight padding ─── */
#hero { padding: 48px 0 56px; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 400px;
  gap: 56px; align-items: center; width: 100%;
}

/* Status */
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px;
  color: var(--cyan); background: var(--cdim);
  border: 1px solid rgba(56,189,248,0.2);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 20px; width: fit-content;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* Name */
.hero-name {
  font-family: var(--serif);
  font-size: clamp(52px, 6.5vw, 82px);
  font-weight: 400; line-height: 0.95;
  letter-spacing: -.02em; color: var(--tx);
  margin-bottom: 0; cursor: default;
  transition: text-shadow .4s, color .4s; display: block;
}
.hero-name:hover {
  text-shadow: 0 0 40px rgba(79,142,247,0.65), 0 0 80px rgba(79,142,247,0.3);
  color: #fff;
}
.hero-name em {
  font-family: var(--serif); font-style: italic;
  color: var(--blue); display: block;
  transition: color .4s, text-shadow .4s;
}
.hero-name:hover em {
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(56,189,248,0.8), 0 0 60px rgba(56,189,248,0.35);
}

/* Role line */
.hero-role {
  font-family: var(--mono); font-size: 11px;
  color: var(--tx3); letter-spacing: .03em;
  margin: 12px 0 18px; line-height: 1.6;
}
.hero-role .pipe { color: var(--blue); opacity: 0.5; margin: 0 5px; }

.hero-bio { font-size: 15px; color: var(--tx2); max-width: 520px; line-height: 1.8; margin-bottom: 28px; }
.hero-bio strong { color: var(--tx); }

/* Buttons */
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 22px;
  background: linear-gradient(135deg, var(--blue), var(--blue3));
  color: #fff; font-size: 13px; font-weight: 500; border-radius: var(--r);
  box-shadow: 0 0 20px rgba(79,142,247,0.3); transition: box-shadow .2s, transform .15s;
}
.btn-primary:hover { box-shadow: 0 0 32px rgba(79,142,247,0.55); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 22px;
  background: var(--bdim); color: var(--blue); font-size: 13px; font-weight: 500;
  border: 1px solid rgba(79,142,247,0.28); border-radius: var(--r);
  transition: background .2s, box-shadow .2s;
}
.btn-secondary:hover { background: var(--bglow); box-shadow: 0 0 14px rgba(79,142,247,0.2); }
.btn-ghost {
  display: inline-flex; align-items: center; padding: 11px 18px;
  background: var(--glass); color: var(--tx3); font-size: 13px;
  border: 1px solid var(--bd3); border-radius: var(--r);
  backdrop-filter: blur(8px); transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--tx); border-color: var(--bd2); }

/* Stats card */
.stats-card {
  background: linear-gradient(145deg, rgba(13,18,32,0.95), rgba(8,12,24,0.98));
  border: 1px solid var(--bd2);
  border-radius: var(--rx);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  grid-template-rows: 1fr 1px 1fr;
  gap: 0;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.07);
}
.stats-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,142,247,0.5), transparent);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 132px;
  padding: 18px 16px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 46px;
  color: var(--blue);
  line-height: 0.95;
  letter-spacing: -.03em;
  text-shadow: 0 0 20px rgba(79,142,247,0.4);
}
.stat-plus {
  font-size: 0.5em;
  vertical-align: super;
}
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tx3);
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-top: 10px;
  line-height: 1.5;
  display: block;
  white-space: nowrap;
}
.stat-divider { background: rgba(79,142,247,0.12); }

/* Tech stack */
.tech-stack {
  background: linear-gradient(145deg, rgba(13,18,32,0.9), rgba(8,12,24,0.95));
  border: 1px solid var(--bd); border-radius: var(--rx); padding: 16px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.stack-label { font-family: var(--mono); font-size: 10px; color: var(--tx3); letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.stag {
  font-size: 11px; padding: 3px 9px; border-radius: 3px;
  background: rgba(79,142,247,0.07); color: var(--tx2);
  border: 1px solid rgba(79,142,247,0.15); font-family: var(--mono);
}

/* ─── ABOUT ─── */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 52px; align-items: start; }
.about-text h2 { font-family: var(--serif); font-size: 38px; font-weight: 400; color: var(--tx); line-height: 1.15; margin-bottom: 24px; letter-spacing: -.01em; }
.about-text p { font-size: 15px; color: var(--tx2); line-height: 1.85; margin-bottom: 16px; }
.about-text p strong { color: var(--tx); }
.about-sidebar { display: flex; flex-direction: column; gap: 14px; }
.info-block {
  background: linear-gradient(145deg, rgba(13,18,32,0.9), rgba(8,12,24,0.95));
  border: 1px solid var(--bd); border-radius: var(--rl); padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); transition: border-color .2s;
}
.info-block:hover { border-color: var(--bd2); }
.info-title { font-family: var(--mono); font-size: 10px; color: var(--blue); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.info-list li { font-size: 13px; color: var(--tx2); padding-left: 14px; position: relative; line-height: 1.55; }
.info-list li::before { content: '›'; position: absolute; left: 0; color: var(--blue); }
.edu-degree { font-size: 13px; color: var(--tx); font-weight: 500; margin-bottom: 3px; }
.edu-school { font-size: 12px; color: var(--tx2); margin-bottom: 3px; }
.edu-meta { font-family: var(--mono); font-size: 11px; color: var(--tx3); }
.tools-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tag { font-size: 11px; padding: 3px 9px; border-radius: 3px; background: rgba(79,142,247,0.06); color: var(--tx2); border: 1px solid rgba(79,142,247,0.14); font-family: var(--mono); }

/* ─── EXPERIENCE ─── */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 0; width: 1px; background: linear-gradient(180deg, var(--blue2), transparent); }
.timeline-item { display: flex; gap: 28px; padding-bottom: 44px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 5px; position: relative; z-index: 1; box-shadow: 0 0 0 3px var(--bg), 0 0 14px rgba(79,142,247,0.6); }
.timeline-dot--past { background: var(--bg3); border: 1px solid var(--bd2); box-shadow: 0 0 0 3px var(--bg); }
.timeline-content { flex: 1; }
.job-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.job-role { font-size: 17px; font-weight: 500; color: var(--tx); margin-bottom: 3px; }
.job-org { font-family: var(--mono); font-size: 12px; color: var(--blue); }
.job-right { text-align: right; flex-shrink: 0; }
.job-badge { display: inline-block; font-family: var(--mono); font-size: 9px; color: var(--cyan); background: var(--cdim); border: 1px solid rgba(56,189,248,0.2); padding: 2px 8px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.job-date { font-family: var(--mono); font-size: 11px; color: var(--tx3); }
.job-bullets { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.job-bullets li { font-size: 13px; color: var(--tx2); line-height: 1.7; padding-left: 16px; position: relative; }
.job-bullets li::before { content: '→'; position: absolute; left: 0; color: var(--blue); font-size: 11px; top: 3px; }
.job-bullets li strong { color: var(--tx); }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.jtag { font-size: 10px; padding: 2px 8px; border-radius: 3px; background: var(--bdim); color: var(--blue); border: 1px solid rgba(79,142,247,0.2); font-family: var(--mono); }

/* ─── PROJECTS ─── */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.project-card {
  background: linear-gradient(145deg, rgba(13,18,32,0.95), rgba(8,12,24,0.98));
  border: 1px solid var(--bd); border-radius: var(--rx); padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .25s, transform .2s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,142,247,0.3), transparent);
  opacity: 0; transition: opacity .25s;
}
.project-card:hover { border-color: var(--bd2); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 24px rgba(79,142,247,0.08); }
.project-card:hover::before { opacity: 1; }
.project-card--featured { border-color: rgba(79,142,247,0.22); }
.project-card--featured:hover { border-color: rgba(79,142,247,0.45); box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(79,142,247,0.12); }
.project-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.project-num { font-family: var(--mono); font-size: 10px; color: var(--tx3); }
.project-link { font-size: 14px; color: var(--tx3); transition: color .2s; }
.project-card:hover .project-link { color: var(--blue); }
.project-title { font-family: var(--serif); font-size: 19px; font-weight: 400; color: var(--tx); line-height: 1.3; }
.project-desc { font-size: 12px; color: var(--tx2); line-height: 1.75; flex: 1; }
.project-desc strong { color: var(--tx); }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.project-tags span { font-family: var(--mono); font-size: 9px; padding: 2px 7px; border-radius: 3px; background: rgba(79,142,247,0.06); color: var(--tx3); border: 1px solid rgba(79,142,247,0.12); }
.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  margin-bottom: 4px;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue3));
  border: 1px solid rgba(79,142,247,0.25);
  box-shadow: 0 0 16px rgba(79,142,247,0.18);
  transition: transform .18s ease, box-shadow .2s ease, opacity .2s ease;
}

.project-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(79,142,247,0.3);
}

.project-cta--ghost {
  background: rgba(79,142,247,0.06);
  color: var(--blue);
  border: 1px solid rgba(79,142,247,0.18);
  box-shadow: none;
}

.project-cta--ghost:hover {
  background: rgba(79,142,247,0.12);
  box-shadow: 0 0 14px rgba(79,142,247,0.12);
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(79,142,247,0.10), transparent 35%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.project-card:hover::after {
  opacity: 1;
}

.project-card:hover .project-title {
  color: #ffffff;
}

.project-card:hover .project-desc {
  color: var(--tx);
}
.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 6px;
  align-items: center;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  font-weight: 500;
  transition: all .2s ease;
}

.project-cta--live {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue3));
  border: 1px solid rgba(79,142,247,0.28);
  box-shadow: 0 0 18px rgba(79,142,247,0.22);
}

.project-cta--live:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(79,142,247,0.38);
}

.project-cta--ghost {
  background: transparent;
  color: var(--tx2);
  border: 1px solid var(--bd);
  box-shadow: none;
}

.project-cta--ghost:hover {
  color: var(--blue);
  border-color: var(--bd2);
  background: rgba(79,142,247,0.06);
}

.live-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
  position: relative;
  flex-shrink: 0;
}

.live-badge::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.55);
  animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* glow only when hovering live demo */
.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 35%, rgba(79,142,247,0.14), transparent 38%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.project-card:has(.project-cta--live:hover)::after {
  opacity: 1;
}

/* ─── WRITING ─── */
.posts-list { display: flex; flex-direction: column; margin-bottom: 20px; }
.post-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--bd); transition: padding-left .15s; }
.post-row:first-child { border-top: 1px solid var(--bd); }
.post-row:hover { padding-left: 8px; }
.post-row:hover .post-row-title { color: var(--tx); }
.post-row:hover .post-row-arrow { color: var(--blue); transform: translateX(4px); }
.post-row-left { display: flex; flex-direction: column; gap: 5px; }
.post-row-title { font-size: 14px; color: var(--tx2); transition: color .2s; line-height: 1.4; }
.post-row-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.post-row-tags span { font-family: var(--mono); font-size: 9px; color: var(--tx3); background: rgba(79,142,247,0.05); padding: 1px 6px; border-radius: 3px; border: 1px solid var(--bd); }
.post-row-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.post-row-right time { font-family: var(--mono); font-size: 11px; color: var(--tx3); }
.post-row-arrow { font-size: 14px; color: var(--tx3); transition: color .2s, transform .2s; }

/* View more */
.view-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--blue); background: var(--bdim);
  border: 1px solid rgba(79,142,247,0.28);
  padding: 10px 22px; border-radius: var(--r);
  transition: background .2s, box-shadow .2s, transform .15s;
  margin-top: 4px;
}
.view-more:hover { background: var(--bglow); box-shadow: 0 0 20px rgba(79,142,247,0.2); transform: translateY(-1px); }
.view-more svg { width: 13px; height: 13px; stroke: var(--blue); fill: none; stroke-width: 2; transition: transform .2s; }
.view-more:hover svg { transform: translateX(3px); }
/* ─── NOTES PAGE ─── */
.notes-page {
  padding: 92px 0 64px;
  min-height: calc(100vh - 56px);
}

.notes-intro {
  font-size: 14px;
  color: var(--tx2);
  line-height: 1.8;
  max-width: 720px;
  margin-top: -20px;
  margin-bottom: 28px;
}

.notes-list-page {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--bd);
}

.note-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--bd);
  transition: padding-left .18s ease, border-color .2s ease;
}

.note-row:hover {
  padding-left: 8px;
  border-color: var(--bd2);
}

.note-row-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.note-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tx3);
}

.note-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--tx);
  line-height: 1.45;
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.note-tags span {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--tx3);
  background: rgba(79,142,247,0.05);
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--bd);
}

.note-arrow {
  font-size: 16px;
  color: var(--tx3);
  flex-shrink: 0;
  transition: transform .2s ease, color .2s ease;
  margin-top: 2px;
}

.note-row:hover .note-arrow {
  color: var(--blue);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .notes-page {
    padding: 76px 0 48px;
  }

  .notes-intro {
    margin-top: -12px;
    margin-bottom: 22px;
    font-size: 13px;
  }

  .note-row {
    padding: 16px 0;
  }

  .note-title {
    font-size: 15px;
  }
}


/* ─── CONTACT ─── */
.contact-wrap {
  background: linear-gradient(145deg, rgba(13,18,32,0.96), rgba(8,12,24,0.98));
  border: 1px solid var(--bd2); border-radius: 20px; padding: 48px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}
.contact-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,142,247,0.45), transparent);
}
.contact-wrap::after {
  content: ''; position: absolute; top: -80px; right: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(79,142,247,0.06) 0%, transparent 70%); pointer-events: none;
}
.contact-top { margin-bottom: 28px; position: relative; z-index: 1; }
.contact-heading { font-family: var(--serif); font-size: 40px; font-weight: 400; color: var(--tx); line-height: 1.1; margin-bottom: 10px; letter-spacing: -.01em; }
.contact-heading em { color: var(--blue); }
.contact-sub { font-size: 14px; color: var(--tx2); line-height: 1.75; max-width: 520px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.contact-link {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: rgba(79,142,247,0.04); border: 1px solid var(--bd); border-radius: var(--rx);
  transition: all .2s; box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.contact-link:hover { border-color: rgba(79,142,247,0.38); background: var(--bdim); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 18px rgba(79,142,247,0.1); }
.contact-icon { width: 38px; height: 38px; border-radius: var(--rl); display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.2); transition: background .2s, box-shadow .2s; }
.contact-icon svg { width: 16px; height: 16px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-link:hover .contact-icon { background: rgba(79,142,247,0.18); box-shadow: 0 0 14px rgba(79,142,247,0.25); }
.contact-info { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: hidden; }
.contact-label { font-family: var(--mono); font-size: 9px; color: var(--tx3); letter-spacing: .06em; text-transform: uppercase; }
.contact-value { font-size: 12px; color: var(--tx2); transition: color .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-link:hover .contact-value { color: var(--blue); }
.contact-arrow { font-size: 14px; color: var(--tx3); transition: color .2s, transform .2s; margin-left: auto; flex-shrink: 0; }
.contact-link:hover .contact-arrow { color: var(--blue); transform: translateX(3px); }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--bd); padding: 24px 0; position: relative; z-index: 1; }
.footer-inner { max-width: 1020px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.footer-name { font-size: 13px; color: var(--tx3); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-family: var(--mono); font-size: 11px; color: var(--tx3); transition: color .2s; }
.footer-links a:hover { color: var(--tx2); }
.footer-copy { font-family: var(--mono); font-size: 11px; color: var(--tx3); }

/* ─── POST PAGE ─── */
.post-main { padding-top: 56px; }
.post-container { max-width: 720px; margin: 0 auto; padding: 52px 40px 80px; }
.post-back { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--tx3); margin-bottom: 36px; transition: color .2s; }
.post-back:hover { color: var(--blue); }
.post-header { margin-bottom: 40px; }
.post-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.post-meta time { font-family: var(--mono); font-size: 12px; color: var(--tx3); }
.post-tag { font-family: var(--mono); font-size: 10px; color: var(--blue); background: var(--bdim); border: 1px solid rgba(79,142,247,0.2); padding: 2px 8px; border-radius: 3px; }
.post-header h1 { font-family: var(--serif); font-size: 36px; font-weight: 400; color: var(--tx); line-height: 1.2; letter-spacing: -.01em; }
.post-body { font-size: 15px; color: var(--tx2); line-height: 1.9; }
.post-body h2 { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--tx); margin: 40px 0 16px; }
.post-body h3 { font-size: 17px; font-weight: 500; color: var(--tx); margin: 28px 0 12px; }
.post-body p { margin-bottom: 18px; }
.post-body strong { color: var(--tx); font-weight: 500; }
.post-body a { color: var(--blue); border-bottom: 1px solid rgba(79,142,247,0.3); }
.post-body a:hover { border-bottom-color: var(--blue); }
.post-body ul, .post-body ol { margin: 0 0 18px 20px; }
.post-body li { margin-bottom: 6px; }
.post-body code { font-family: var(--mono); font-size: 13px; background: var(--bg3); color: var(--blue); padding: 2px 6px; border-radius: 3px; border: 1px solid var(--bd); }
.post-body pre { background: var(--bg2); border: 1px solid var(--bd); border-radius: var(--rl); padding: 20px 22px; overflow-x: auto; margin-bottom: 22px; }
.post-body pre code { background: none; border: none; padding: 0; color: var(--tx2); }
.post-body blockquote { border-left: 2px solid var(--blue); padding: 4px 0 4px 18px; margin: 24px 0; color: var(--tx3); font-style: italic; }
.post-body img { border-radius: var(--rl); border: 1px solid var(--bd); margin: 24px 0; max-width: 100%; }
.post-body hr { border: none; border-top: 1px solid var(--bd); margin: 40px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 13px; }
.post-body th, .post-body td { border: 1px solid var(--bd); padding: 10px 14px; text-align: left; }
.post-body th { background: var(--bg2); color: var(--tx); font-weight: 500; }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */

/* Tablet */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; }
  .stats-card { grid-template-columns: 1fr 1px 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-wrap { padding: 36px 28px; }
  .contact-heading { font-size: 32px; }
}

/* Mobile */
@media (max-width: 768px) {
  #nav { padding: 0 20px; height: 52px; }
  .nav-links, .nav-resume { display: none; }
  .nav-burger { display: flex; }
  .mobile-nav { top: 52px; }
  .container { padding: 0 20px; }
  main { padding-top: 52px; }
  section { padding: 48px 0; }
  .section-title { font-size: 28px; margin-bottom: 32px; }
  #hero { padding: 36px 0 44px; }
  .hero-name { font-size: 48px; }
  .hero-role { font-size: 10px; }
  .hero-bio { font-size: 14px; }
  .hero-actions { gap: 8px; }
  .btn-primary, .btn-secondary, .btn-ghost { padding: 9px 16px; font-size: 12px; }
  .about-text h2 { font-size: 30px; }
  .projects-grid { grid-template-columns: 1fr; }
  .job-header { flex-direction: column; gap: 6px; }
  .job-right { text-align: left; }
  .contact-wrap { padding: 28px 22px; border-radius: 14px; }
  .contact-heading { font-size: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .post-container { padding: 36px 20px 60px; }
  .post-header h1 { font-size: 28px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-name { font-size: 40px; }
  .hero-role { font-size: 9px; letter-spacing: .01em; }

  .stats-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
    padding: 18px;
  }

  .stat {
    min-height: auto;
    padding: 18px 8px;
  }

  .stat-num {
    font-size: 38px;
  }

  .stat-label {
    font-size: 9px;
    white-space: normal;
    letter-spacing: .08em;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-secondary, .btn-ghost { width: 100%; justify-content: center; }
  .contact-link { padding: 12px 14px; }
  .contact-icon { width: 34px; height: 34px; }
  .section-title { font-size: 26px; }
}
