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

:root {
  --bg: #0C0E0B;
  --bg2: #111310;
  --bg3: #161815;
  --surface: #1C1F1A;
  --border: #2A2E28;
  --green: #39FF6F;
  --green-dim: #1A7A35;
  --green-glow: rgba(57,255,111,0.12);
  --amber: #FFB347;
  --blue: #5BB8FF;
  --red: #FF5555;
  --pink: #FF79C6;
  --purple: #BD93F9;
  --text: #D4D9CF;
  --text-dim: #6B7268;
  --text-faint: #363B33;
  --scanline-alpha: 0.03;
  --reveal-distance: 24px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,var(--scanline-alpha)) 2px,
    rgba(0,0,0,var(--scanline-alpha)) 4px
  );
  pointer-events: none;
  z-index: 9997;
}

.cursor {
  position: fixed;
  width: 4px;
  height: 18px;
  background: var(--green);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 8px var(--green);
}

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

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-logo span { color: var(--text-dim); }

.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background: rgba(12,14,11,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.nav-links a::before { content: '// '; color: var(--text-faint); }
.nav-links a:hover { color: var(--green); }

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--green);
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 3rem;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
  gap: 4rem;
}

/* Grid lines background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57,255,111,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,111,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.terminal-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0;
  width: fit-content;
  min-width: 320px;
}
.dot-r { width:10px;height:10px;border-radius:50%;background:#FF5555; }
.dot-y { width:10px;height:10px;border-radius:50%;background:#FFB347; }
.dot-g { width:10px;height:10px;border-radius:50%;background:#55FF7A; }
.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
}

.terminal-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 2rem;
  min-width: 320px;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.terminal-window::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.4;
}

.cmd-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 2;
  margin-bottom: 0.25rem;
}
.cmd-line .prompt { color: var(--green); }
.cmd-line .cmd   { color: var(--text); }
.cmd-line .output { color: var(--text-dim); display: block; padding-left: 1rem; font-style: italic; }
.cmd-line .val-green { color: var(--green); }
.cmd-line .val-blue  { color: var(--blue); }
.cmd-line .val-amber { color: var(--amber); }
.cmd-line .comment { color: var(--text-faint); }

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.15em;
}
.hero-title .green { color: var(--green); text-shadow: 0 0 40px rgba(57,255,111,0.3); }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border);
}

.hero-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-tagline .hl { color: var(--amber); }

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  transition: all 0.25s;
  cursor: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-green {
  background: var(--green);
  color: var(--bg);
  border: 1px solid var(--green);
}
.btn-green:hover {
  background: transparent;
  color: var(--green);
  box-shadow: 0 0 20px var(--green-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* HERO RIGHT */
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.code-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 2;
  position: relative;
  overflow: hidden;
}
.code-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(57,255,111,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.ln { color: var(--text-faint); user-select: none; padding-right: 1.5rem; display: inline-block; width: 2.5rem; text-align: right; }
.kw  { color: #FF79C6; }
.fn  { color: var(--blue); }
.str { color: var(--amber); }
.num { color: #BD93F9; }
.cmt { color: var(--text-faint); font-style: italic; }
.var { color: var(--green); }
.op  { color: var(--text-dim); }
.cls { color: #FFB86C; }

/* GLOWING LINE */
.glow-line {
  background: linear-gradient(90deg, transparent, var(--green-glow), transparent);
  height: 1px;
  width: 100%;
  margin: 3rem 0;
  position: relative;
}

/* STATS BAR */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-box {
  padding: 2rem;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-box:last-child { border-right: none; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--green);
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(57,255,111,0.3);
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.about-left {
  padding: 5rem 3rem;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 70px;
  height: fit-content;
}

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.section-tag::before { content: '> '; }

.about-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 8rem;
  line-height: 1;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.about-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--text);
  letter-spacing: 0.04em;
}

.about-right {
  padding: 5rem 3rem;
}

.about-bio {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-dim);
  font-weight: 300;
  margin-bottom: 3rem;
}
.about-bio strong { color: var(--text); font-weight: 500; }
.about-bio .code-inline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  color: var(--green);
  background: var(--surface);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.tech-stack {
  margin-bottom: 3rem;
}
.stack-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.stack-title::before { content: '/* '; }
.stack-title::after  { content: ' */'; }
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.stack-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  background: var(--surface);
  transition: all 0.2s;
  cursor: none;
}
.stack-tag:hover { border-color: var(--green); color: var(--green); background: var(--green-glow); }
.stack-tag.hl { border-color: var(--green-dim); color: var(--green); }

/* PROJECTS */
.projects {
  border-top: 1px solid var(--border);
  padding: 5rem 3rem;
  background: var(--bg2);
}
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 2rem;
}
.projects-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text);
}
.projects-title .green { color: var(--green); }

.proj-list { display: flex; flex-direction: column; gap: 1px; }

.proj-item {
  display: grid;
  grid-template-columns: 80px 1fr auto 120px;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: all 0.25s;
  cursor: none;
  position: relative;
  overflow: hidden;
}
.proj-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  margin-top: -0.5rem;
}
.proj-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--green);
  transform: scaleY(0);
  transition: transform 0.25s;
}
.proj-item:hover { border-color: var(--green); background: var(--surface); }
.proj-item:hover::before { transform: scaleY(1); }

.proj-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-faint);
}

.proj-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.2rem;
  transition: color 0.25s;
}
.proj-item:hover .proj-name { color: var(--green); }
.proj-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 300;
  font-family: 'JetBrains Mono', monospace;
}

.proj-tech {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.tech-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: var(--bg3);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.tech-pill.green { color: var(--green); border-color: var(--green-dim); background: var(--green-glow); }
.tech-pill.blue  { color: var(--blue); border-color: rgba(91,184,255,0.25); background: rgba(91,184,255,0.05); }
.tech-pill.amber { color: var(--amber); border-color: rgba(255,179,71,0.25); background: rgba(255,179,71,0.05); }

.proj-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
  transition: color 0.2s;
}
.proj-item:hover .proj-link { color: var(--green); }

.projects-pagination {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.page-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  color: var(--green);
  border-color: var(--green);
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* SERVICES */
.services {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.services-left {
  padding: 5rem 3rem;
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.services-right {
  padding: 5rem 3rem;
  background: var(--bg2);
}

.services-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.services-title .green { color: var(--green); }

.services-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-dim);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.service-cards { display: flex; flex-direction: column; gap: 1px; }
.service-card {
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: var(--bg);
  transition: border-color 0.25s, background 0.25s;
  cursor: none;
}
.service-card:hover { border-color: var(--green); background: var(--surface); }
.svc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.svc-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--green);
  background: var(--green-glow);
  border: 1px solid var(--green-dim);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}
.svc-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.svc-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}

/* CONTACT */
.contact {
  border-top: 1px solid var(--border);
  padding: 7rem 3rem;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57,255,111,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,111,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.contact-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.contact-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0.1em;
  position: relative;
  z-index: 1;
}
.contact-title .green {
  color: var(--green);
  text-shadow: 0 0 60px rgba(57,255,111,0.3);
}

.contact-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}
.contact-sub .prompt { color: var(--green); }

.contact-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--green);
}
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-faint);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--green); }

.reveal-delay-4 { transition-delay: 0.4s; }

/* TYPING ANIMATION */
.typewriter::after {
  content: '|';
  color: var(--green);
  animation: blink 0.9s step-end infinite;
}

/* HAMBURGER */
#hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 640px) {
  #hamburger { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(12,14,11,0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0;
    z-index: 120;
  }
  .nav-links.open {
    display: flex;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.8rem;
  }
  .nav-links a::before { content: '// '; color: var(--text-faint); }
}

@media (max-width: 1024px) {
  nav { padding: 1.25rem 2rem; }
  .nav-status { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 0 2rem;
    padding-top: 5rem;
    gap: 2.5rem;
    min-height: auto;
    padding-bottom: 4rem;
  }
  .hero-right { display: none; }
  .terminal-bar, .terminal-window { min-width: unset; width: 100%; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-box:nth-child(2) { border-right: none; }
  .stat-box:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-box:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

  .about { grid-template-columns: 1fr; }
  .about-left {
    padding: 3rem 2rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    position: static;
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .about-num { font-size: 5rem; margin-bottom: 0; }
  .about-right { padding: 2rem 2rem 3rem; }

  .projects { padding: 4rem 2rem; }
  .proj-item { grid-template-columns: 60px 1fr; gap: 1rem; }
  .proj-tech { display: none; }
  .proj-link { grid-column: 2; }

  .services { grid-template-columns: 1fr; }
  .services-left { padding: 3rem 2rem 2rem; border-right: none; border-bottom: 1px solid var(--border); }
  .services-right { padding: 2rem 2rem 3rem; }

  .contact { padding: 5rem 2rem; }
  footer { flex-direction: column; text-align: center; padding: 2rem; gap: 1rem; }
}

/* =============================================
   RESPONSIVE — MOBILE (max 640px)
   ============================================= */
@media (max-width: 640px) {
  body { cursor: auto; }
  .cursor { display: none; }

  /* NAV */
  nav {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .nav-links a { font-size: 0.65rem; }
  .nav-links a::before { content: ''; }

  /* HERO */
  .hero { padding: 0 1.25rem; padding-top: 4.5rem; padding-bottom: 3rem; gap: 2rem; }

  .terminal-bar { padding: 0.5rem 0.75rem; }
  .dot-r, .dot-y, .dot-g { width: 8px; height: 8px; }
  .terminal-title { font-size: 0.6rem; }

  .terminal-window { padding: 1.25rem; margin-bottom: 2rem; }
  .cmd-line { font-size: 0.72rem; line-height: 1.8; }

  .hero-title { font-size: clamp(3.5rem, 16vw, 5.5rem); }

  .hero-tagline { font-size: 0.75rem; }

  .hero-btns { flex-direction: column; gap: 0.75rem; }
  .btn { justify-content: center; padding: 0.9rem 1.25rem; font-size: 0.75rem; }

  /* STATS */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-box { padding: 1.5rem 1rem; }
  .stat-num { font-size: 2.5rem; }
  .stat-label { font-size: 0.6rem; }

  /* ABOUT */
  .about-left {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.25rem 1.5rem;
    gap: 0.5rem;
  }
  .about-num { font-size: 4rem; }
  .about-heading { font-size: 2rem; }
  .about-right { padding: 1.5rem 1.25rem 2.5rem; }
  .about-bio { font-size: 0.95rem; margin-bottom: 2rem; }

  /* PROJECTS */
  .projects { padding: 3rem 1.25rem; }
  .projects-header { flex-direction: column; align-items: flex-start; margin-bottom: 2rem; gap: 0.5rem; }
  .projects-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .projects-pagination { justify-content: center; flex-wrap: wrap; }

  .proj-item {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.25rem;
    gap: 0.6rem;
    align-items: flex-start;
  }
  .proj-meta,
  .proj-num,
  .proj-info,
  .proj-tech,
  .proj-link {
    grid-column: 1 / -1;
  }
  .proj-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 0.25rem;
  }
  .proj-num { font-size: 0.65rem; }
  .proj-name { font-size: 1.35rem; }
  .proj-desc { font-size: 0.7rem; white-space: normal; overflow: visible; text-overflow: clip; }
  .proj-tech { display: flex; flex-wrap: wrap; justify-content: flex-start; margin-top: 0.25rem; }
  .proj-link { justify-content: flex-start; margin-top: 0.75rem; }

  /* SERVICES */
  .services-left { padding: 2.5rem 1.25rem 1.5rem; }
  .services-right { padding: 1.5rem 1.25rem 2.5rem; }
  .services-title { font-size: clamp(2.5rem, 10vw, 3.5rem); }

  .service-card { padding: 1.25rem; }
  .svc-name { font-size: 1.2rem; }

  /* CONTACT */
  .contact { padding: 4rem 1.25rem; }
  .contact-title { font-size: clamp(3rem, 14vw, 5rem); }
  .contact-sub { font-size: 0.75rem; }
  .contact-btns { flex-direction: column; align-items: center; }

  /* FOOTER */
  footer { padding: 1.5rem 1.25rem; }
  .footer-copy { font-size: 0.6rem; }
  .footer-links { gap: 1rem; }

  /* MISC */
  .section-tag { font-size: 0.65rem; }
  .stack-tag { font-size: 0.65rem; padding: 0.3rem 0.6rem; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (max 380px)
   ============================================= */
@media (max-width: 380px) {
  .nav-links { gap: 0.6rem; }
  .hero-title { font-size: 3rem; }
  .terminal-window { padding: 1rem; }
  .cmd-line { font-size: 0.65rem; }
  .stat-box { padding: 1rem 0.75rem; }
  .stat-num { font-size: 2rem; }
}

/* PROJECT DETAIL */
.nav-breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-breadcrumb a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.nav-breadcrumb a:hover { color: var(--green); }
.nav-breadcrumb .sep { color: var(--text-faint); }
.nav-breadcrumb .current { color: var(--green); }

.nav-back {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: none;
}
.nav-back:hover { border-color: var(--green); color: var(--green); }

.project-hero {
  padding: 7rem 3rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.project-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57,255,111,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,111,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.meta-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  border: 1px solid;
}
.meta-tag.cat   { color: var(--green); border-color: var(--green-dim); background: var(--green-glow); }
.meta-tag.year  { color: var(--text-dim); border-color: var(--border); background: var(--surface); }
.meta-tag.live  { color: var(--amber); border-color: rgba(255,179,71,0.3); background: rgba(255,179,71,0.06); }

.project-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--text);
  position: relative;
  z-index: 1;
  margin-bottom: 0.15em;
}
.project-title .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border);
}
.project-title .green {
  color: var(--green);
  text-shadow: 0 0 60px rgba(57,255,111,0.25);
}

.hero-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 3rem;
  padding: 2.5rem 0 3rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 600px;
}
.hero-desc strong { color: var(--text); font-weight: 500; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

.preview-section {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 3rem;
  display: flex;
  justify-content: center;
}

.browser-frame {
  width: 100%;
  max-width: 960px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.browser-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.b-dot { width: 10px; height: 10px; border-radius: 50%; }
.b-dot.r { background: #FF5555; }
.b-dot.y { background: #FFB347; }
.b-dot.g { background: #55FF7A; }
.browser-url {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
}
.browser-url .protocol { color: var(--green); }

.browser-content {
  background: var(--bg);
  min-height: 380px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.mock-sidebar {
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  background: var(--bg2);
}
.mock-sidebar-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.mock-nav-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mock-nav-item.active { background: var(--green-glow); color: var(--green); border: 1px solid var(--green-dim); }
.mock-nav-icon { width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: 0.6; flex-shrink: 0; }

.mock-main { padding: 1.5rem; }
.mock-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.mock-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--text); letter-spacing: 0.04em; }
.mock-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  background: var(--green);
  color: var(--bg);
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.mock-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
}
.mock-stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: var(--green); letter-spacing: 0.04em; }
.mock-stat-lbl { font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; color: var(--text-dim); margin-top: 0.15rem; }

.mock-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px 4px 0 0;
}
.mock-th { font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; }

.mock-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-top: none;
  align-items: center;
}
.mock-table-row:last-child { border-radius: 0 0 4px 4px; }
.mock-td { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--text-dim); }
.mock-td.name { color: var(--text); }
.mock-badge {
  display: inline-block;
  font-size: 0.5rem;
  padding: 0.15rem 0.4rem;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
}
.mock-badge.success { background: var(--green-glow); color: var(--green); border: 1px solid var(--green-dim); }
.mock-badge.pending { background: rgba(255,179,71,0.08); color: var(--amber); border: 1px solid rgba(255,179,71,0.25); }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.content-main {
  padding: 4rem 3rem;
  border-right: 1px solid var(--border);
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before { content: '//'; color: var(--text-faint); }

.content-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.content-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-dim);
  font-weight: 300;
  margin-bottom: 2rem;
}
.content-body strong { color: var(--text); font-weight: 500; }
.content-body em { color: var(--amber); font-style: normal; }
.inline-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  color: var(--green);
  background: var(--surface);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.challenge-list { margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 1rem; }
.challenge-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.75rem;
  align-items: flex-start;
}
.challenge-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--green);
  background: var(--green-glow);
  border: 1px solid var(--green-dim);
  width: 24px; height: 24px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.challenge-text { font-size: 0.92rem; line-height: 1.75; color: var(--text-dim); font-weight: 300; }
.challenge-text strong { color: var(--text); font-weight: 500; }

.code-snippet {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 2rem 0;
  overflow: hidden;
}
.snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.snippet-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
}
.snippet-filename span { color: var(--green); }
.snippet-lang {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-faint);
  background: var(--bg3);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.snippet-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.9;
  overflow-x: auto;
}
.ln  { color: var(--text-faint); user-select: none; display: inline-block; width: 2rem; text-align: right; padding-right: 1rem; }
.kw  { color: var(--pink); }
.fn  { color: var(--blue); }
.str { color: var(--amber); }
.num { color: var(--purple); }
.cmt { color: var(--text-faint); font-style: italic; }
.var { color: var(--green); }
.op  { color: var(--text-dim); }
.cls { color: #FFB86C; }
.dec { color: var(--purple); }

.content-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}
.result-card:hover { border-color: var(--green-dim); }
.result-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--green);
  letter-spacing: 0.02em;
  text-shadow: 0 0 24px rgba(57,255,111,0.25);
  margin-bottom: 0.25rem;
}
.result-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.content-sidebar {
  padding: 4rem 2rem;
}

.sidebar-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sidebar-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.sidebar-heading::before { content: '/* '; color: var(--text-faint); }
.sidebar-heading::after  { content: ' */'; color: var(--text-faint); }

.stack-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stack-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  transition: all 0.2s;
  cursor: none;
}
.stack-pill:hover { border-color: var(--green); color: var(--green); }
.stack-pill.primary { color: var(--green); border-color: var(--green-dim); background: var(--green-glow); }

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}
.info-row:last-child { border-bottom: none; }
.info-key { color: var(--text-dim); }
.info-val { color: var(--text); }
.info-val.green { color: var(--green); }
.info-val.amber { color: var(--amber); }

.timeline { position: relative; padding-left: 1.25rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item { position: relative; padding-left: 1rem; margin-bottom: 1.25rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.3rem;
  top: 0.4rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-faint);
  margin-bottom: 0.2rem;
}
.timeline-event {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.next-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}
.next-half {
  padding: 3rem;
  transition: background 0.25s;
  cursor: none;
  text-decoration: none;
  display: block;
}
.next-half:hover { background: var(--surface); }
.next-half + .next-half { border-left: 1px solid var(--border); }
.next-dir {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}
.next-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color 0.25s;
}
.next-half:hover .next-name { color: var(--green); }
.next-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
}
.next-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  transition: color 0.25s, transform 0.25s;
}
.next-half:hover .next-arrow { color: var(--green); transform: translateX(4px); }
.next-half:nth-child(2) .next-dir { text-align: right; }
.next-half:nth-child(2) .next-name { text-align: right; }
.next-half:nth-child(2) .next-desc { text-align: right; }
.next-half:nth-child(2) .next-arrow { float: right; }
.next-half:nth-child(2):hover .next-arrow { transform: translateX(-4px); }

@media (max-width: 1024px) {
  .project-hero { padding: 5rem 1.5rem 0; }
  .hero-summary { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 0 2rem; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }

  .preview-section { padding: 1.5rem; }
  .browser-content { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }

  .content-grid { grid-template-columns: 1fr; }
  .content-main { border-right: none; border-bottom: 1px solid var(--border); padding: 3rem 2rem; }
  .content-sidebar { padding: 2rem; }
  .next-project { grid-template-columns: 1fr; }
  .next-half + .next-half { border-left: none; border-top: 1px solid var(--border); }
  .next-half:nth-child(2) .next-dir,
  .next-half:nth-child(2) .next-name,
  .next-half:nth-child(2) .next-desc { text-align: left; }
  .next-half:nth-child(2) .next-arrow { float: none; }
}

@media (max-width: 768px) {
  .nav-breadcrumb { display: none; }
  #hamburger { display: block; }
  .results-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .project-title { font-size: clamp(3rem, 16vw, 5rem); }
  .results-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .next-project { display: flex; flex-direction: column; }
  .next-half { padding: 2rem 1.5rem; }
}
