/* ─────────────────────────────────────────────────────────────
   0xsr.com — Design System
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:        #06090f;
  --bg2:       #0b0f1a;
  --bg3:       #0e1422;
  --surface:   #111827;
  --surface2:  #161e2e;
  --border:    #1a2540;
  --border2:   #243356;
  --text:      #cdd6f4;
  --muted:     #6b7a99;
  --dim:       #94a3b8;
  --accent:    #00d9ff;
  --accent-lo: #00d9ff18;
  --accent-md: #00d9ff35;
  --purple:    #7c3aed;
  --purple-lo: #7c3aed18;
  --green:     #00ff9f;
  --green-lo:  #00ff9f15;
  --red:       #ff4d6d;
  --red-lo:    #ff4d6d15;
  --yellow:    #fbbf24;
  --mono:      'JetBrains Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;
  --sans:      'Inter', system-ui, -apple-system, sans-serif;
  --nav-h:     64px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 0 40px rgba(0,217,255,0.04);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Grid dot background ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, #1a2540 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* ─── Ambient glow blobs ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, #7c3aed0a 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 80%, #00d9ff07 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Typography ─── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
p { color: var(--dim); }
code, pre { font-family: var(--mono); }

/* ─── Selection ─── */
::selection { background: var(--accent-md); color: var(--text); }

/* ─── Utility ─── */
.relative { position: relative; }
.z1 { position: relative; z-index: 1; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; z-index: 1; }
.section-sm { padding: 64px 0; position: relative; z-index: 1; }

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.accent2 { color: var(--purple); }
.green { color: var(--green); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }

.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }

/* ─── Section label ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}
.btn-primary:hover {
  background: #22e4ff;
  box-shadow: 0 0 24px var(--accent-md);
  opacity: 1;
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border2);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-lo);
  opacity: 1;
}
.btn-ghost {
  background: var(--surface);
  color: var(--dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border2);
  opacity: 1;
}
.btn svg { width: 15px; height: 15px; }

/* ─── Tags / badges ─── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .4px;
}
.tag-blue   { background: var(--accent-lo); color: var(--accent); border: 1px solid var(--accent-md); }
.tag-purple { background: var(--purple-lo); color: #a78bfa; border: 1px solid #7c3aed30; }
.tag-green  { background: var(--green-lo);  color: var(--green);  border: 1px solid #00ff9f30; }
.tag-red    { background: var(--red-lo);    color: var(--red);    border: 1px solid #ff4d6d30; }
.tag-yellow { background: #fbbf2415;        color: var(--yellow); border: 1px solid #fbbf2430; }
.tag-gray   { background: var(--surface);   color: var(--muted);  border: 1px solid var(--border); }

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card.glow:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-lo), var(--shadow);
}

/* ─────────────────────────── NAVIGATION ─────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
#nav.scrolled {
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 40px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-logo:hover { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all .2s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-lo);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all .2s;
  text-decoration: none;
}
.nav-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-lo);
  opacity: 1;
}
.nav-icon svg { width: 17px; height: 17px; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dim);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────── HERO ─────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.hero-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-label::before {
  content: '//';
  opacity: .5;
}

.hero-name {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 16px;
  position: relative;
}

/* Glitch effect */
.glitch { position: relative; display: inline-block; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: #fff;
}
.glitch::before {
  animation: glitch-top 4s infinite linear;
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 30%);
  color: var(--accent);
  transform: translateX(0);
}
.glitch::after {
  animation: glitch-bot 4s infinite linear;
  clip-path: polygon(0 70%, 100% 70%, 100% 100%, 0 100%);
  color: var(--red);
  transform: translateX(0);
}
@keyframes glitch-top {
  0%,88%,100%{opacity:0;transform:translateX(0)}
  89%{opacity:.7;transform:translateX(-3px) skewX(-4deg)}
  92%{opacity:.7;transform:translateX(3px)}
  95%{opacity:0;transform:translateX(0)}
}
@keyframes glitch-bot {
  0%,82%,100%{opacity:0;transform:translateX(0)}
  83%{opacity:.6;transform:translateX(3px) skewX(3deg)}
  87%{opacity:.6;transform:translateX(-2px)}
  90%{opacity:0;transform:translateX(0)}
}

.hero-typed {
  font-family: var(--mono);
  font-size: clamp(14px, 2vw, 18px);
  color: var(--accent);
  margin-bottom: 24px;
  min-height: 28px;
}
.hero-typed .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-bio {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}
.stat-item { text-align: left; }
.stat-num {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

/* Terminal window */
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,217,255,0.06), 0 20px 60px rgba(0,0,0,0.4);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c841; }
.terminal-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}
.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
}
.t-prompt { color: var(--green); }
.t-cmd    { color: var(--text); }
.t-out    { color: var(--muted); }
.t-ok     { color: var(--accent); }
.t-path   { color: var(--purple); }
.t-str    { color: var(--yellow); }
.t-line   { display: block; }

/* ─────────────────────────── ABOUT ─────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.about-avatar {
  aspect-ratio: 1;
  max-width: 300px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 2px solid var(--border2);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 4px var(--accent-lo), 0 24px 48px rgba(0,0,0,.5);
}
.about-avatar-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}
.about-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-lo) 0%, var(--purple-lo) 100%);
  z-index: 0;
}
.about-cert-strip {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.about-text h2 { color: #fff; margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.fact-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 4px;
}
.fact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ─────────────────────────── SKILLS ─────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all .25s;
}
.skill-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
}
.skill-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.skill-card h3 {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ─────────────────────────── CERTIFICATIONS ─────────────────────────── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 700px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.cert-oscp::before { background: linear-gradient(90deg, var(--red), var(--accent)); }
.cert-cpts::before { background: linear-gradient(90deg, var(--purple), var(--accent)); }
.cert-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cert-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.cert-oscp .cert-badge { background: var(--red-lo); color: var(--red); border: 1px solid #ff4d6d25; }
.cert-cpts .cert-badge { background: var(--purple-lo); color: #a78bfa; border: 1px solid #7c3aed25; }
.cert-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.cert-full { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-family: var(--mono); }
.cert-issuer { font-size: 12px; color: var(--dim); }

/* ─────────────────────────── RESEARCH / TOOLS ─────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.tool-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 28px var(--accent-lo);
  transform: translateY(-3px);
}
.tool-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: .04;
}
.tool-card:nth-child(1)::after { background: var(--red); }
.tool-card:nth-child(2)::after { background: var(--purple); }
.tool-card:nth-child(3)::after { background: var(--accent); }

.tool-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.tool-name { font-size: 18px; font-weight: 700; color: #fff; }
.tool-version { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.tool-desc { font-size: 14px; color: var(--dim); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.tool-links { display: flex; gap: 8px; margin-top: auto; }

/* ─────────────────────────── BLOG CARDS ─────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all .25s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  opacity: 1;
}
.blog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.blog-card-tags { display: flex; gap: 6px; }
.blog-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.blog-card h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.35;
  transition: color .2s;
}
.blog-card:hover h3 { color: var(--accent); }
.blog-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.blog-read {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}
.blog-read::after { content: '→'; transition: transform .2s; }
.blog-card:hover .blog-read::after { transform: translateX(4px); }

/* ─────────────────────────── FEATURED BLOG CARD ─────────────────────────── */
.blog-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.blog-featured-left {
  background: linear-gradient(135deg, var(--accent-lo) 0%, var(--purple-lo) 100%);
  border-right: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.blog-featured-right { padding: 32px; }
.featured-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.featured-num {
  font-family: var(--mono);
  font-size: 80px;
  font-weight: 800;
  color: #fff;
  opacity: .08;
  line-height: 1;
  margin-top: auto;
}

/* ─────────────────────────── BLOG POST PAGE ─────────────────────────── */
.post-hero {
  padding: 120px 0 60px;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.post-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 800px;
}
.post-subtitle {
  font-size: 18px;
  color: var(--dim);
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-lo);
  border: 1px solid var(--accent-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.author-name { font-size: 14px; font-weight: 600; color: var(--text); }
.author-date { font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* Post body */
.post-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0 80px;
  position: relative;
  z-index: 1;
}
.post-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.toc-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 2px; }
.toc-list a {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 5px;
  display: block;
  border-left: 2px solid transparent;
  transition: all .15s;
}
.toc-list a:hover,
.toc-list a.active {
  color: var(--accent);
  background: var(--accent-lo);
  border-left-color: var(--accent);
  opacity: 1;
}

/* Prose */
.prose { max-width: 760px; }
.prose h2 {
  font-size: 26px;
  color: #fff;
  margin: 48px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h3 {
  font-size: 19px;
  color: var(--text);
  margin: 32px 0 12px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h4 {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin: 24px 0 8px;
}
.prose p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; color: var(--dim); }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 16px; }
.prose li { font-size: 15px; color: var(--dim); line-height: 1.75; margin-bottom: 5px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: 12.5px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-md); }
.prose a:hover { text-decoration-color: var(--accent); opacity: 1; }

/* Code blocks in prose */
.code-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.code-lang { color: var(--accent); font-weight: 600; }
.code-block pre {
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: var(--text);
}

/* Alert boxes in prose */
.callout {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.65;
}
.callout-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.callout-detect { background: #00d9ff0a; border: 1px solid #00d9ff25; }
.callout-tip    { background: #00ff9f0a; border: 1px solid #00ff9f25; }
.callout-warn   { background: #fbbf240a; border: 1px solid #fbbf2425; }
.callout-danger { background: #ff4d6d0a; border: 1px solid #ff4d6d25; }
.callout-detect .callout-icon { color: var(--accent); }
.callout-tip    .callout-icon { color: var(--green); }
.callout-warn   .callout-icon { color: var(--yellow); }
.callout-danger .callout-icon { color: var(--red); }
.callout p { margin: 0; font-size: 14px; color: var(--dim); }

/* Technique pill row */
.mitre-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

/* ─────────────────────────── BLOG INDEX ─────────────────────────── */
.blog-index-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding: 60px 0 80px;
  position: relative;
  z-index: 1;
}
.blog-list { display: flex; flex-direction: column; gap: 16px; }
.blog-list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .25s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-list-card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow);
  transform: translateX(4px);
  opacity: 1;
}
.blog-list-card h3 { font-size: 18px; color: #fff; margin: 10px 0 8px; line-height: 1.3; }
.blog-list-card:hover h3 { color: var(--accent); }
.blog-list-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.widget-title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ─────────────────────────── CONTACT / FOOTER ─────────────────────────── */
#contact {
  border-top: 1px solid var(--border);
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  transition: all .2s;
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-lo);
  transform: translateX(4px);
  opacity: 1;
}
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.social-label { font-family: var(--mono); font-size: 13px; }
.social-handle { margin-left: auto; font-size: 12px; color: var(--muted); font-family: var(--mono); }

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.footer-logo span { color: var(--accent); }
.footer-copy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* ─────────────────────────── 404 ─────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.error-code {
  font-family: var(--mono);
  font-size: clamp(80px, 15vw, 150px);
  font-weight: 800;
  color: var(--border2);
  line-height: 1;
  margin-bottom: 24px;
}

/* ─────────────────────────── ANIMATIONS ─────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.stagger.visible > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:.05s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:.15s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:.25s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:.35s; }
.stagger.visible > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:.45s; }
.stagger.visible > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay:.55s; }

/* Glow pulse */
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 16px var(--accent-lo); }
  50%      { box-shadow: 0 0 32px var(--accent-md); }
}
.glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }

/* ─────────────────────────── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner      { grid-template-columns: 1fr; gap: 40px; }
  .about-grid      { grid-template-columns: 1fr; gap: 40px; }
  .about-avatar    { max-width: 200px; }
  .skills-grid     { grid-template-columns: repeat(2, 1fr); }
  .tools-grid      { grid-template-columns: repeat(2, 1fr); }
  .blog-index-grid { grid-template-columns: 1fr; }
  .post-layout     { grid-template-columns: 1fr; }
  .post-toc        { display: none; }
  .contact-inner   { grid-template-columns: 1fr; gap: 40px; }
  .certs-grid      { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .skills-grid  { grid-template-columns: 1fr; }
  .tools-grid   { grid-template-columns: 1fr; }
  .blog-grid    { grid-template-columns: 1fr; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-left { display: none; }
  .hero-stats   { gap: 20px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(6, 9, 15, 0.97);
  backdrop-filter: blur(16px);
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--dim);
  padding: 14px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all .2s;
}
.mobile-nav a:hover { color: var(--accent); background: var(--accent-lo); opacity: 1; }
