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

:root {
  --bg:         #000000;
  --bg-1:       #080808;
  --bg-2:       #0f0f0f;
  --bg-3:       #161616;
  --bg-4:       #1e1e1e;
  --border:     #1e1e1e;
  --border-2:   #2a2a2a;

  --text:       #e0e0e0;
  --text-dim:   #787878;
  --text-faint: #383838;

  --acc:        #ffffff;
  --acc-dim:    #cccccc;
  --acc-faint:  #3a3a3a;

  /* Security / bug bounty theme accents */
  --h1-green:   #3ddc84;   /* HackerOne green-ish */
  --h1-orange:  #f57c00;   /* severity warm */
  --t-green:    #4caf50;
  --t-red:      #ef5350;
  --t-yellow:   #ffd54f;
  --t-blue:     #82aaff;
  --t-cyan:     #80cbc4;
  --t-magenta:  #ce93d8;

  --font-mono:  'JetBrains Mono', 'Courier New', monospace;
  --font-sans:  'Inter', system-ui, sans-serif;

  --nav-h:      56px;
  --section-pad: 8rem 2rem;
  --max-w:      940px;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* =============================================
   OVERLAYS
   ============================================= */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.035) 2px,
    rgba(0,0,0,0.035) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
}

/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: border-color 0.3s;
}

#navbar.scrolled { border-bottom-color: var(--border-2); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.nav-logo {
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo .prompt-symbol { color: var(--text-dim); margin-right: 4px; }
.nav-logo .logo-text     { color: var(--acc); font-weight: 700; letter-spacing: -0.02em; }

.nav-links { list-style: none; display: flex; gap: 0; }

.nav-link {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 12px;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover, .nav-link.active { color: var(--acc); }

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0.8rem; right: 0.8rem;
  height: 1px;
  background: var(--acc);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(0,0,0,0.98);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transform: translateY(-110%);
  transition: transform 0.35s var(--ease-out);
  z-index: 999;
}

.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; }

.mob-link {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 13px;
  padding: 0.85rem 2rem;
  display: block;
  transition: color 0.2s;
  border-left: 2px solid transparent;
}

.mob-link:hover { color: var(--acc); border-left-color: var(--acc); }

/* =============================================
   SECTIONS — COMMON
   ============================================= */
.section {
  min-height: 100vh;
  padding: var(--section-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-header {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 2rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sec-prompt { color: var(--text-faint); }
.sec-cmd    { color: var(--text); }

/* =============================================
   CURSOR
   ============================================= */
.cursor-blink {
  animation: blink 1.1s step-start infinite;
  color: var(--acc);
  font-size: 0.9em;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* =============================================
   SHARED HELPERS
   ============================================= */
.t-dim     { color: var(--text-dim); }
.t-key     { color: var(--t-cyan); }
.t-acc     { color: var(--acc); font-weight: 600; }
.t-comment { color: var(--text-faint); font-size: 12px; font-style: italic; }
.t-link    {
  color: var(--t-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(130,170,255,0.3);
  transition: border-color 0.2s;
}
.t-link:hover { border-color: var(--t-blue); }

/* =============================================
   HOME SECTION
   ============================================= */
.section--home {
  position: relative;
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 4rem;
  gap: 2.5rem;
}

/* H1 floating badge */
.h1-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-2);
  background: var(--bg-1);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-size: 11px;
  color: var(--text-dim);
  width: fit-content;
  animation: fade-up 0.6s var(--ease-out) both;
}

.h1-badge svg { color: var(--h1-green); width: 10px; height: 10px; }

/* Terminal Window */
.terminal-window {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 28px 70px rgba(0,0,0,0.85);
  animation: fade-up 0.7s 0.1s var(--ease-out) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.terminal-titlebar {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
  user-select: none;
}

.terminal-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green  { background: #28c840; }

.terminal-title {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0 auto;
  letter-spacing: 0.02em;
}

.terminal-body {
  padding: 1.5rem;
  font-size: 13px;
  line-height: 1.7;
}

.terminal-line {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.t-prompt { color: var(--h1-green); font-weight: 700; }
.t-sep    { color: var(--text-dim); }
.t-path   { color: var(--t-blue); }
.t-dollar { color: var(--text-dim); margin: 0 4px; }
.t-cmd    { color: var(--text); }

.terminal-output {
  padding: 0.3rem 0 0.85rem 0;
  color: var(--text-dim);
  font-size: 13px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.terminal-output.visible { opacity: 1; transform: translateY(0); }

/* Stats row */
.stats-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-right: 1px solid var(--border);
  flex: 1;
  min-width: 90px;
}

.stat-box:last-child { border-right: none; }

.stat-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--acc);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 10px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CTA */
.home-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: fade-up 0.7s 0.35s var(--ease-out) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
  background: none;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--acc);
  color: var(--bg);
  border-color: var(--acc);
}
.btn--primary:hover { background: var(--acc-dim); border-color: var(--acc-dim); }

.btn--ghost {
  color: var(--text);
  border-color: var(--border-2);
}
.btn--ghost:hover { border-color: var(--text-dim); color: var(--acc); }

.btn--h1 {
  color: var(--h1-green);
  border-color: rgba(61,220,132,0.3);
  background: rgba(61,220,132,0.06);
}
.btn--h1:hover {
  background: rgba(61,220,132,0.1);
  border-color: var(--h1-green);
}

.btn--full { width: 100%; justify-content: center; }

/* Scroll hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fade-up 0.7s 0.6s var(--ease-out) both;
}

.scroll-arrow {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, var(--text-faint), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: type 0.6s steps(22) forwards;
}

@keyframes type { to { width: 100%; } }

/* =============================================
   ABOUT SECTION
   ============================================= */
.section--about { gap: 2.5rem; justify-content: flex-start; padding-top: calc(var(--nav-h) + 4rem); }

.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Avatar */
.avatar-frame {
  border: 1px solid var(--border);
  background: var(--bg-1);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.avatar-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.avatar-img:hover { filter: grayscale(0%); }

.avatar-ascii {
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-dim);
  white-space: pre;
  text-align: center;
  font-family: var(--font-mono);
  padding: 0.75rem;
}

.avatar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--h1-green);
  flex-shrink: 0;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(61, 220, 132, 0); }
}

.avatar-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.av-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s, background 0.2s;
  border-bottom: 1px solid var(--border);
}

.av-link:last-child { border-bottom: none; }
.av-link:hover { color: var(--acc); background: var(--bg-2); }
.av-link svg { flex-shrink: 0; }

/* About content */
.about-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

.about-handle {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.about-tagline {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.about-bio p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.85;
  margin-bottom: 0.85rem;
  font-family: var(--font-sans);
}

.about-bio strong { color: var(--text); font-weight: 600; }

/* Spec grid */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.spec-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-1);
  transition: border-color 0.2s, background 0.2s;
}

.spec-item:hover {
  border-color: var(--border-2);
  background: var(--bg-2);
}

.spec-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

.spec-item strong { font-size: 12px; color: var(--text); display: block; margin-bottom: 2px; }
.spec-item p { font-size: 11px; color: var(--text-dim); font-family: var(--font-sans); line-height: 1.5; }

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  padding: 0.75rem 0;
}

.skill-dir  { color: var(--t-blue); font-size: 12px; }
.skill-file { color: var(--text); font-size: 12px; }

/* =============================================
   TIMELINE
   ============================================= */
.timeline {
  margin-top: 1.75rem;
  border-left: 1px solid var(--border);
  padding-left: 1.5rem;
}

.timeline-heading {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.t-hash { color: var(--text-faint); margin-right: 0.3rem; }

.timeline-items { display: flex; flex-direction: column; gap: 1.5rem; }

.timeline-item {
  display: flex;
  gap: 1rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 0.45rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border-2);
  border: 1px solid var(--text-faint);
}

.tl-year {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  padding-top: 1px;
  min-width: 36px;
}

.tl-content strong {
  font-size: 12.5px;
  color: var(--text);
  display: block;
  margin-bottom: 0.15rem;
}

.tl-content p {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-sans);
  line-height: 1.6;
}


  justify-content: flex-start;
  padding-top: calc(var(--nav-h) + 4rem);
  gap: 0;
}


/* Programs table */
.prog-table-wrap {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.prog-table-header {
  display: grid;
  grid-template-columns: 1fr 110px 90px 80px 80px;
  gap: 0;
  padding: 0.6rem 1rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.prog-row {
  display: grid;
  grid-template-columns: 1fr 110px 90px 80px 80px;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: default;
}

.prog-row:last-child { border-bottom: none; }
.prog-row:hover      { background: var(--bg-1); }

a.prog-row { cursor: pointer; }

.prog-row--highlight {
  background: rgba(61,220,132,0.03);
  border-left: 2px solid var(--h1-green);
}

.prog-row--highlight:hover { background: rgba(61,220,132,0.06); }

.prog-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prog-avatar {
  width: 34px; height: 34px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.prog-avatar--state { background: rgba(61,220,132,0.08); }
.prog-avatar--lock  { background: var(--bg-3); font-size: 0.9rem; }

.prog-title  { font-size: 12.5px; color: var(--text); font-weight: 500; }
.prog-handle { font-size: 10px; color: var(--text-faint); margin-top: 1px; }

.v-valid  { color: var(--h1-green); font-weight: 600; }
.v-total  { color: var(--text-dim); }

.prog-rep  { font-size: 12px; color: var(--text); font-weight: 500; }

.prog-rank { font-size: 11px; color: var(--text-dim); }
.rank-top  { color: var(--t-yellow); }

.prog-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid;
  text-transform: lowercase;
  width: fit-content;
}

.badge-public  { color: var(--h1-green); border-color: rgba(61,220,132,0.35); background: rgba(61,220,132,0.07); }
.badge-private { color: var(--text-faint); border-color: var(--border-2); background: var(--bg-2); }

/* Testimonial */
.testimonial-section { margin-top: 1rem; }

.testimonial-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--h1-green);
  border-radius: 4px;
  background: var(--bg-1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.testimonial-org {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.org-icon { font-size: 1.3rem; }

.testimonial-org strong {
  font-size: 13px;
  color: var(--text);
  display: block;
}

.org-handle {
  font-size: 11px;
  color: var(--text-dim);
}

.testimonial-label { font-size: 11px; }

.testimonial-text {
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-style: italic;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.test-badge {
  font-size: 11px;
  color: var(--h1-green);
  border: 1px solid rgba(61,220,132,0.35);
  background: rgba(61,220,132,0.07);
  padding: 2px 8px;
  border-radius: 10px;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.section--contact {
  justify-content: flex-start;
  padding-top: calc(var(--nav-h) + 4rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 1.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-dim);
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  font-size: 13px;
}

.contact-link:hover {
  color: var(--acc);
  border-color: var(--border);
  background: var(--bg-1);
}

.cl-icon { width: 18px; height: 18px; flex-shrink: 0; display: flex; align-items: center; }
.cl-icon svg { width: 100%; height: 100%; }
.cl-label { color: var(--text-faint); min-width: 80px; font-size: 11px; }

/* Disclosure box */
.disclosure-box {
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.disclosure-header {
  padding: 0.5rem 1rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.disclosure-body {
  padding: 0.85rem 1rem;
  background: var(--bg-1);
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-sans);
  line-height: 1.7;
}

/* Form */
.form-header  { margin-bottom: 1.25rem; font-size: 12px; color: var(--text-dim); }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.f-prompt { color: var(--text-faint); }

.form-input {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input::placeholder { color: var(--text-faint); }

.form-input:focus {
  border-color: var(--acc-faint);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.04);
}

.form-input.error { border-color: var(--t-red); }

.form-textarea { resize: vertical; min-height: 110px; }

.form-error  { font-size: 11px; color: var(--t-red); min-height: 14px; }
.form-status { font-size: 12px; min-height: 20px; color: var(--h1-green); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  flex-wrap: wrap;
}

.footer-prompt { color: var(--text-faint); }
.footer-text   { color: var(--text-dim); }
.footer-acc    { color: var(--h1-green); }

.footer-copy {
  font-size: 11px;
  color: var(--text-faint);
}

.footer-copy a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-copy a:hover { color: var(--acc); }

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: none; }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar        { width: 5px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

::selection { background: rgba(61,220,132,0.2); color: var(--acc); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 800px) {
  :root { --section-pad: 5rem 1.25rem; --max-w: 100%; }

  .nav-links   { display: none; }
  .hamburger   { display: flex; }

  .about-grid  { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .spec-grid   { grid-template-columns: 1fr; }

  .prog-table-header,
  .prog-row {
    grid-template-columns: 1fr 80px 60px;
  }

  .prog-table-header span:nth-child(4),
  .prog-table-header span:nth-child(5),
  .prog-row .prog-rank,
  .prog-row .prog-badge { display: none; }

  .stats-row { flex-direction: column; }
  .stat-box  { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-box:last-child { border-bottom: none; }

  .hof-summary { flex-wrap: wrap; }

  .terminal-body { padding: 1rem; font-size: 12px; }

  .home-cta { flex-direction: column; }
  .btn      { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .about-name  { font-size: 1.3rem; }
  .hof-summary { flex-direction: column; }
  .hof-divider { width: 100%; height: 1px; }
}

/* =============================================
   BLOG SECTION
   ============================================= */
.section--blog {
  justify-content: flex-start;
  padding-top: calc(var(--nav-h) + 4rem);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.blog-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
}

.blog-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 11px;
}

.blog-tag {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  text-transform: lowercase;
  font-weight: 500;
}

.tag--idor {
  color: var(--h1-orange);
  border: 1px solid rgba(245, 124, 0, 0.35);
  background: rgba(245, 124, 0, 0.07);
}

.tag--auth {
  color: var(--t-cyan);
  border: 1px solid rgba(128, 203, 196, 0.35);
  background: rgba(128, 203, 196, 0.07);
}

.tag--recon {
  color: var(--t-blue);
  border: 1px solid rgba(130, 170, 255, 0.35);
  background: rgba(130, 170, 255, 0.07);
}

.blog-date {
  color: var(--text-faint);
}

.blog-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--acc);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
  color: var(--h1-green);
}

.blog-card-excerpt {
  font-size: 12.5px;
  color: var(--text-dim);
  font-family: var(--font-sans);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-card-action {
  font-size: 11px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.action-prompt {
  color: var(--h1-green);
}

.action-cmd {
  color: var(--text-dim);
  transition: color 0.2s;
}

.blog-card:hover .action-cmd {
  color: var(--text);
}

/* =============================================
   BLOG MODAL
   ============================================= */
.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
  padding: 1.5rem;
}

.blog-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.blog-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.blog-modal-window {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 4rem);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95);
  z-index: 2;
  transform: translateY(15px);
  transition: transform 0.3s var(--ease-out);
}

.blog-modal.open .blog-modal-window {
  transform: translateY(0);
}

.blog-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
}

.modal-cmd-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.blog-modal-content {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  flex: 1;
}

.blog-modal-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Modal Content Typography */
.blog-modal-content h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--acc);
  margin: 1.75rem 0 0.75rem 0;
  border-bottom: 1px dashed var(--border-2);
  padding-bottom: 0.25rem;
}

.blog-modal-content h2:first-of-type {
  margin-top: 0;
}

.blog-modal-content p {
  font-size: 13.5px;
  color: var(--text-dim);
  font-family: var(--font-sans);
  margin-bottom: 0.85rem;
  line-height: 1.75;
}

.blog-modal-content strong {
  color: var(--text);
}

.blog-modal-content ul, 
.blog-modal-content ol {
  margin-left: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 13.5px;
}

.blog-modal-content li {
  margin-bottom: 0.4rem;
}

.blog-modal-content code {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 12px;
  color: var(--h1-green);
  font-family: var(--font-mono);
}

.modal-terminal-log {
  background: #030303;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  white-space: pre-wrap;
  overflow-x: auto;
  margin: 1.25rem 0;
  line-height: 1.6;
  border-left: 3px solid var(--h1-green);
}

.blog-modal-footer {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.btn--small {
  padding: 0.4rem 0.85rem;
  font-size: 11.5px;
}

/* Hover effect on red close dot */
#modal-close-dot {
  cursor: pointer;
}
#modal-close-dot:hover {
  background: #ff4336;
}
