/* ============================================================
   njneered.dev — stylesheet
   ============================================================ */

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

:root {
  --bg:    #000000;
  --green: #4ade80;
  --coral: #ff6b5b;
  --pink:  #f9a8d4;
  --text:  #e2e8f0;
  --muted: #94a3b8;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  line-height: 1.7;
  overflow-x: hidden;
}

/* grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,222,128,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,222,128,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

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

/* ── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 222, 128, 0.12);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo::before { content: none; }
.nav-logo-img {
  height: 28px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }

section { position: relative; z-index: 1; }

/* ── HERO ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2.5rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

/* text column: flex-1 but hard-capped so it NEVER crosses into the photo column */
.hero-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.hero-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 2px;
  padding: 3px 10px;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  animation: fadein 0.6s ease both;
  background: rgba(74, 222, 128, 0.05);
}

.prompt-line {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  animation: fadein 0.6s 0.05s ease both;
}
.prompt-line span { color: var(--green); }

.hero-name {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  animation: fadein 0.7s 0.1s ease both;
}

/* greeting + NJ flow inline on the same line, wrapping naturally */
.hero-name {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  animation: fadein 0.7s 0.1s ease both;
  word-break: break-word;
}

.hero-name .accent {
  color: var(--green);
  display: inline;
  white-space: normal;
}

.hero-nj {
  display: inline;
}


.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--green);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  border-radius: 1px;
}

.hero-subtitle {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  animation: fadein 0.7s 0.2s ease both;
}
.hero-subtitle em { color: var(--pink); font-style: normal; }

.hero-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  animation: fadein 0.7s 0.3s ease both;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.3rem;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--green); color: #0a1a0e; font-weight: 700; }
.btn-primary:hover { box-shadow: 0 0 18px rgba(74, 222, 128, 0.4); }

.btn-ghost { background: transparent; color: var(--pink); border: 1.5px solid rgba(196, 181, 253, 0.35); }
.btn-ghost:hover { border-color: var(--pink); box-shadow: 0 0 14px rgba(249, 168, 212, 0.2); }

.btn-strava { background: transparent; color: #fc4c02; border: 1.5px solid rgba(252, 76, 2, 0.35); }
.btn-strava:hover { border-color: #fc4c02; box-shadow: 0 0 14px rgba(252, 76, 2, 0.25); }

.btn-resume { background: transparent; color: #eed024; border: 1.5px solid rgba(238, 208, 36, 0.35); }
.btn-resume:hover { border-color: #eed024; box-shadow: 0 0 14px rgba(238, 208, 36, 0.25); }

/* ── TERMINAL INFO BAR (hero) ──────────────────────────────── */
.terminal-bar {
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 560px;
  animation: fadein 0.7s 0.4s ease both;
}
.t-green  { color: var(--green); }
.t-coral  { color: var(--coral); }
.t-pink   { color: var(--pink);  }
.t-blue   { color: #60a5fa;      }
.t-yellow { color: gold;         }
.terminal-bar div { margin-bottom: 0.3rem; }
.terminal-bar div:last-child { margin-bottom: 0; }

/* ── HERO PHOTO COLUMN ─────────────────────────────────────── */
.hero-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  flex-grow: 0;        /* never grow into the text area */
  width: 240px;        /* fixed width — photo is 220px + some breathing room */
}

.hero-photo-wrap { position: relative; }

.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(74, 222, 128, 0.6);
  outline: 4px solid rgba(74, 222, 128, 0.15);
  outline-offset: 4px;
  filter: grayscale(20%) contrast(1.05);
  display: block;
  transition: filter 0.3s, box-shadow 0.3s, opacity 0.22s ease;
  cursor: pointer;
}
.hero-photo:hover {
  filter: grayscale(0%) contrast(1.1);
  box-shadow: 0 0 30px rgba(74, 222, 128, 0.25);
}

.photo-caption {
  margin-top: 0.4rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--green);
  opacity: 0.7;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.1em;
  display: block;
}

.photo-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 0.5rem;
}

.photo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.photo-dot.active {
  background: var(--green);
  transform: scale(1.3);
}
.photo-dot:hover { background: rgba(74, 222, 128, 0.6); }

/* terminal button lives below the photo */
.term-inline-btn {
  width: 220px;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}
.term-inline-btn .fab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0a1a0e;
  animation: blink 1.4s step-end infinite;
  flex-shrink: 0;
}

/* ── SHARED SECTION STYLES ─────────────────────────────────── */
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

/* min-height reserved so cycling text never causes layout shift */
.section-title {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.95rem, 2.2vw, 1.45rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
  min-height: 3.6em;
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
  overflow: hidden;
}

.st-static { color: var(--text); white-space: pre; }
.st-cycle  { color: var(--pink); }
.st-caret  {
  display: inline-block;
  width: 0.5em;
  height: 1.1em;
  background: var(--pink);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  border-radius: 1px;
  flex-shrink: 0;
}

/* ── TAGS ──────────────────────────────────────────────────── */
.tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid;
}
.tag-green { color: var(--green); border-color: rgba(74,222,128,0.3);  background: rgba(74,222,128,0.06);  }
.tag-coral { color: var(--coral); border-color: rgba(255,107,91,0.3);  background: rgba(255,107,91,0.06);  }
.tag-hpink { color: var(--pink);  border-color: rgba(196,181,253,0.3); background: rgba(196,181,253,0.06); }
.tag-teal  { color: #5eead4;      border-color: rgba(94,234,212,0.3);  background: rgba(94,234,212,0.06);  }
.tag-pink  { color: #f9a8d4;      border-color: rgba(249,168,212,0.3); background: rgba(249,168,212,0.06); }
.tag-gold  { color: #eed024;      border-color: #7e7235;               background: #110f03;                }
.tag-blue  { color: #60a5fa;      border-color: #194e8b;               background: #172636;                }

/* ── ABOUT ─────────────────────────────────────────────────── */
#about {
  padding: 6rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.about-text p { color: var(--muted); margin-bottom: 1rem; font-size: 0.92rem; }
.about-text p em { color: var(--pink); font-style: normal; }

.skills-grid { display: flex; flex-direction: column; gap: 0.85rem; }

.skill-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(74, 222, 128, 0.1);
  border-radius: 4px;
  padding: 0.75rem 1rem;
}

.skill-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* proficiency bars */
.proficiency-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.25rem; }

.prof-row { display: flex; align-items: center; gap: 0.75rem; }

.prof-name {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  width: 95px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.prof-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.prof-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.prof-fill.green { background: linear-gradient(90deg, #4ade80, #86efac); }
.prof-fill.coral { background: linear-gradient(90deg, #ff6b5b, #fca5a5); }
.prof-fill.blue  { background: linear-gradient(90deg, #60a5fa, #93c5fd); }
.prof-fill.pink  { background: linear-gradient(90deg, #f9a8d4, #fde68a); }
.prof-fill.teal  { background: linear-gradient(90deg, #5eead4, #a7f3d0); }

.prof-pct {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--green);
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

/* ── EXPERIENCE ────────────────────────────────────────────── */
#experience {
  padding: 2rem 2.5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.exp-list { display: flex; flex-direction: column; gap: 1rem; }

.exp-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(74, 222, 128, 0.1);
  border-left: 2px solid var(--green);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.25rem;
  transition: border-left-color 0.2s, background 0.2s;
}
.exp-card:hover { background: rgba(74, 222, 128, 0.03); border-left-color: var(--pink); }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.exp-role { font-family: 'Space Mono', monospace; font-size: 0.82rem; font-weight: 700; color: var(--text); }
.exp-date { font-family: 'Space Mono', monospace; font-size: 0.68rem; color: var(--green); white-space: nowrap; opacity: 0.8; }
.exp-org  { font-size: 0.8rem; color: var(--pink); margin-bottom: 0.6rem; }
.exp-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.65; }

/* ── PROJECTS ──────────────────────────────────────────────── */
#projects {
  padding: 2rem 2.5rem 6rem;
  max-width: 1050px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.1rem;
  margin-top: 0.5rem;
}

/* flip card container */
.project-card-outer { perspective: 1000px; height: 420px; }

.project-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s;
  cursor: pointer;
  border-radius: 5px;
}

/* desktop: hover flips */
.project-card-outer:not(.is-touch-outer) .project-card:hover {
  transform: rotateY(180deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* mobile: tap flips */
.project-card.flipped {
  transform: rotateY(180deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  border: 1px solid rgba(74, 222, 128, 0.1);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.2rem;
  overflow: hidden;
}

.card-face-back {
  transform: rotateY(180deg);
  background: rgba(8, 14, 8, 0.97);
  justify-content: space-between;
}

/* accent top bar per card color */
.card-face::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.card-green  .card-face::before { background: var(--green); }
.card-coral  .card-face::before { background: var(--coral); }
.card-pink   .card-face::before { background: var(--pink);  }
.card-teal   .card-face::before { background: #5eead4;      }
.card-yellow .card-face::before { background: gold;         }

/* glow on flip/hover */
.card-green.flipped  .card-face, .card-green:hover  .card-face  { border-color: rgba(74,222,128,0.35);  box-shadow: 0 0 30px rgba(74,222,128,0.1)  inset; }
.card-coral.flipped  .card-face, .card-coral:hover  .card-face  { border-color: rgba(255,107,91,0.35);  box-shadow: 0 0 30px rgba(255,107,91,0.1)  inset; }
.card-pink.flipped   .card-face, .card-pink:hover   .card-face  { border-color: rgba(249,168,212,0.35); box-shadow: 0 0 30px rgba(249,168,212,0.1) inset; }
.card-teal.flipped   .card-face, .card-teal:hover   .card-face  { border-color: rgba(94,234,212,0.35);  box-shadow: 0 0 30px rgba(94,234,212,0.1)  inset; }
.card-yellow.flipped .card-face, .card-yellow:hover .card-face  { border-color: rgba(255,215,0,0.35);   box-shadow: 0 0 30px rgba(255,215,0,0.1)   inset; }

.project-header { display: flex; align-items: center; gap: 0.75rem; }

.project-sigil {
  font-family: 'Space Mono', monospace;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px;
  border: 1px solid;
  flex-shrink: 0;
  font-size: 1rem;
}
.sigil-green  { color: var(--green); border-color: rgba(74,222,128,0.3);  background: rgba(74,222,128,0.08);  }
.sigil-coral  { color: var(--coral); border-color: rgba(255,107,91,0.3);  background: rgba(255,107,91,0.08);  }
.sigil-hpink  { color: var(--pink);  border-color: rgba(196,181,253,0.3); background: rgba(196,181,253,0.08); }
.sigil-teal   { color: #5eead4;      border-color: rgba(94,234,212,0.3);  background: rgba(94,234,212,0.08);  }
.sigil-pink   { color: #f9a8d4;      border-color: rgba(249,168,212,0.3); background: rgba(249,168,212,0.08); }
.sigil-yellow { color: gold;         border-color: rgba(255,215,0,0.3);   background: rgba(255,215,0,0.08);   }

.project-name { font-family: 'Space Mono', monospace; font-size: 0.88rem; font-weight: 700; color: var(--text); }
.project-type { font-size: 0.72rem; color: var(--muted); font-style: italic; }

.project-img {
  width: 100%; height: 110px;
  object-fit: contain;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(74, 222, 128, 0.1);
  padding: 0.4rem;
}
.project-img-contain {
  width: 100%; height: 110px;
  object-fit: contain;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  border: 1px solid rgba(74, 222, 128, 0.1);
}

.project-desc  { font-size: 0.83rem; color: var(--muted); line-height: 1.65; flex: 1; }
.project-stack { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.project-links { display: flex; gap: 0.75rem; }

.proj-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 181, 253, 0.2);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.proj-link:hover { color: var(--green); border-color: var(--green); }

/* back face */
.back-title { font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--green); letter-spacing: 0.1em; opacity: 0.7; margin-bottom: 0.25rem; }
.back-desc  { font-size: 0.82rem; color: var(--text); line-height: 1.7; flex: 1; }
.back-footer { display: flex; flex-direction: column; gap: 0.6rem; }

/* team tag — shows who NJ built the project with */
.team-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  color: var(--text);
  border: 1px solid rgba(226, 232, 240, 0.25);
  background: rgba(226, 232, 240, 0.06);
  border-radius: 2px;
  padding: 2px 8px;
  display: inline-block;
  letter-spacing: 0.04em;
  margin-top: auto;
}

.flip-hint {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  opacity: 0.45;
  text-align: right;
  margin-top: auto;
  padding-top: 0.5rem;
}

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

/* ── TERMINAL MODAL ────────────────────────────────────────── */
#term-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 300;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
#term-overlay.active { display: flex; }

.term-modal {
  background: #080808;
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 10px;
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(74,222,128,0.08), 0 40px 80px rgba(0,0,0,0.6);
  overflow: hidden;
  animation: term-in 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes term-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.term-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(74, 222, 128, 0.1);
  flex-shrink: 0;
}

.t-dot { width: 11px; height: 11px; border-radius: 50%; cursor: pointer; transition: opacity 0.15s; }
.t-dot:hover { opacity: 0.75; }
.t-dot-red    { background: #ff5f56; }
.t-dot-yellow { background: #ffbd2e; }
.t-dot-green  { background: #27c93f; }

.t-win-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  margin-left: 0.5rem;
  letter-spacing: 0.08em;
  flex: 1;
}
.t-win-hint {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  opacity: 0.35;
  letter-spacing: 0.05em;
}

.term-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.4rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 200px;
}
.term-body::-webkit-scrollbar       { width: 4px; }
.term-body::-webkit-scrollbar-track { background: transparent; }
.term-body::-webkit-scrollbar-thumb { background: rgba(74, 222, 128, 0.2); border-radius: 99px; }

.tl { display: flex; gap: 0.5rem; align-items: flex-start; line-height: 1.7; flex-wrap: wrap; }
.tl-prompt { color: var(--green); flex-shrink: 0; white-space: nowrap; }
.tl-out    { color: var(--muted); }
.tl-out a  { color: var(--green); text-decoration: none; border-bottom: 1px solid rgba(74,222,128,0.3); }
.tl-out a:hover { border-color: var(--green); }
.tl-err    { color: var(--coral); }
.tl-warn   { color: gold; }
.tl-cmd    { color: var(--text); }
.tl-hl     { color: var(--pink); }
.tl-dir    { color: #60a5fa;     }
.tl-file   { color: #5eead4;     }

.term-input-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.4rem 1rem;
  flex-shrink: 0;
}

.ti-prompt {
  color: var(--green);
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.t-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  caret-color: var(--green);
}

.term-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-top: 1px solid rgba(74, 222, 128, 0.07);
  flex-shrink: 0;
}

.term-pill {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 2px;
  cursor: pointer;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  user-select: none;
}
.term-pill:hover {
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.06);
}

/* ── CONTACT MODAL ─────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal {
  background: #0a0a0a;
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 8px;
  padding: 2rem;
  width: 90%;
  max-width: 480px;
  position: relative;
}

.modal-title { font-family: 'Space Mono', monospace; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.modal-sub   { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--muted); margin-bottom: 1.5rem; }

.modal-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--green); }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }

.form-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--green);
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.form-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 4px;
  padding: 0.6rem 0.85rem;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  transition: border-color 0.2s;
  resize: none;
}
.form-input:focus { outline: none; border-color: rgba(74, 222, 128, 0.6); }

.form-status { font-family: 'Space Mono', monospace; font-size: 0.72rem; margin-top: 0.75rem; min-height: 1.2rem; }
.form-status.success { color: var(--green); }
.form-status.error   { color: var(--coral); }

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(74, 222, 128, 0.1);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
footer a { color: var(--green); text-decoration: none; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 0.6rem; }
  .nav-links a { font-size: 0.62rem; letter-spacing: 0; }
  nav { padding: 0.75rem 1.2rem; }
  .nav-logo-img { height: 22px; max-width: 120px; }

  #hero, #about, #experience, #projects { padding-left: 1.25rem; padding-right: 1.25rem; }

  .about-grid { grid-template-columns: 1fr; }
  .exp-header { flex-direction: column; gap: 0.25rem; }

  .hero-inner { flex-direction: column-reverse; gap: 2rem; align-items: flex-start; }
  .hero-photo { width: 140px; height: 140px; }
  .hero-photo-col { align-self: center; width: 100%; }
  .term-inline-btn { width: 100%; max-width: 280px; }
  .photo-caption { width: 140px; font-size: 0.55rem; }

  .project-card-outer { height: 460px; }

  .hero-links { gap: 0.5rem; }
  .btn { font-size: 0.68rem; padding: 0.5rem 0.9rem; }

  .term-modal { max-height: 92vh; }
}