 .site-bg {
            position: fixed;
            inset: 0;
            background-color: #0e0b08;
            background-image: url('greenbg.png'); /* save the provided image as "bg.png" next to index.html */
            background-repeat: repeat;
            background-size: 64px 64px;
            z-index: -1;
            pointer-events: none;
        }

:root {
  --bg: #0b0e0c;
  --fg: #a6ffb5;
  --muted: #6fae7b;
  --border: rgba(166, 255, 181, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", monospace;
}

.terminal {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 120px;
}

.boot {
  min-height: 60vh;
}

.enter-mobile {
  display: none;
  background: none;
  border: 1px solid var(--accent, #00ff9c);
  color: var(--accent, #00ff9c);
  font-family: monospace;
  padding: 8px 12px;
  margin-top: 12px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .enter-desktop {
    display: none;
  }

  .enter-mobile {
    display: inline-block;
  }
}

pre {
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

#enterHint {
  margin-top: 20px;
  color: var(--muted);
}

#enterHint span {
  color: var(--fg);
}

.hidden {
  display: none;
}

/* PANELS */

.panel {
  border: 1px solid var(--border);
  padding: 24px;
  margin: 60px 0;
  background: rgba(255, 255, 255, 0.01);
}

.panel h3 {
  margin-top: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.entry .primary {
  font-size: 18px;
}

.entry .secondary {
  color: var(--muted);
}

.identity {
  margin-top: 12px;
}

.snapshot ul {
  list-style: none;
  padding: 0;
}

.snapshot li {
  margin-bottom: 8px;
}

.radar-placeholder {
  margin-top: 24px;
  padding: 40px;
  border: 1px dashed var(--border);
  text-align: center;
  color: var(--muted);
}

.files span {
  display: inline-block;
  margin-right: 16px;
  border: 1px solid var(--border);
  padding: 8px 12px;
}

.closing {
  text-align: center;
  color: var(--muted);
}

.radar-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
}

.radar-box {
  flex: 1;
  text-align: center;
}

.radar-box h4 {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--fg-muted);
}

svg {
  width: 260px;
  height: 260px;
  background: rgba(5, 5, 5, 0.04);
  border: 1px solid rgba(12, 12, 12, 0.2);
  border-radius: 10px;
}

.panel.skills {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 60px;
}
/* allow wider layout for the skills panel */
.terminal {
    max-width: 1400px;
}


/* ensure radar labels aren't clipped and charts have breathing room */
.radar-box {
    padding: 18px;
    flex: 0 0 360px;
    min-width: 360px;
    width: 360px;
    height: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: crosshair;
}

.radar-box:hover {
    transform: translateY(-4px);
}

/* make SVGs larger and allow labels/elements to render outside the viewBox */
.radar-box svg,
.radar-box .drawn-radar {
    width: 320px;
    height: 320px;
    display: block;
    margin: 0 auto;
    overflow: visible;      /* important: prevents clipping of labels like "Architecture" */
    box-sizing: content-box;
}

/* give the grid a little extra padding so left/right labels aren't cut by container edges */
.radar-grid {
    padding: 16px 12px 32px;
    gap: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* terminal-skills: 2x3 matrix layout for skill groups */
.terminal-skills {
    margin-top: 24px;
    max-width: 100%;
}

.terminal-skills pre {
    margin: 0;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    align-items: start;
    white-space: pre-wrap; /* preserve line breaks inside groups */
}

/* each skill group becomes a card */
.terminal-skills .skill-group {
    display: block;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    box-shadow: 0 1px 0 rgba(0,0,0,0.25) inset;
    white-space: pre-wrap;
}

/* visually emphasize the first line (group title) */
.terminal-skills .skill-group::first-line {
    color: var(--fg);
    font-weight: 700;
}

/* small responsive fallback: single column on narrow viewports */
@media (max-width: 880px) {
    .terminal-skills pre {
        grid-template-columns: 1fr;
    }
}

/* ===== TERMINAL NAV BAR ===== */

.terminal-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(11, 14, 12, 0.9);
  border-bottom: 1px solid rgba(166, 255, 181, 0.2);
  backdrop-filter: blur(6px);
  z-index: 1000;
  font-family: "JetBrains Mono", monospace;
}

.terminal-nav .prompt {
  color: var(--fg-muted);
  margin-right: 8px;
}

.terminal-nav button {
  background: none;
  border: none;
  color: var(--fg-primary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
}

.terminal-nav button:hover {
  text-decoration: underline;
}

/* Push content down so nav doesn't overlap */
.terminal {
  padding-top: 70px;
}

.documents .doc-group {
  margin-top: 24px;
}

.documents h4 {
  font-size: 13px;
  font-weight: normal;
  color: var(--fg-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.documents .files a {
  display: inline-block;
  margin-right: 16px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(166, 255, 181, 0.3);
  color: var(--fg-primary);
  text-decoration: none;
  font-size: 13px;
}

.documents .files a:hover {
  background: rgba(166, 255, 181, 0.08);
}

.panel.about .primary {
  font-size: 1.05rem;
  color: var(--fg-primary);
  margin-bottom: 10px;
}

.panel.about .secondary {
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 780px;
}

.about-education {
  margin-top: 20px;
}

.about-education .label {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.about-education ul {
  list-style: none;
  padding-left: 0;
}

.about-education li {
  font-size: 0.95rem;
  color: var(--fg-primary);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text {
  max-width: 780px;
}

.about-photo {
  display: flex;
  justify-content: center;
}

.about-photo img {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  border: 1px solid var(--border);
  /* filter: grayscale(100%) contrast(1.1); */
  background: rgba(0, 0, 0, 0.2);
}

.panel.contact {
  margin-bottom: 120px;
}

.contact-intro {
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.contact-email {
  font-family: monospace;
  margin-bottom: 30px;
}

.contact-email span {
  color: var(--muted);
}

.contact-email a {
  color: var(--fg);
  text-decoration: none;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: stretch;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.contact-form textarea {
  height: 100%;
  min-height: 140px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form button {
  grid-column: span 2;
  margin-top: 12px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: monospace;
  cursor: pointer;
}

.contact-form button:hover {
  background: rgba(166, 255, 181, 0.08);
}

/* Mobile fallback */
@media (max-width: 900px) {
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    grid-column: 1;
  }

}

/* ===========================
   MOBILE RESPONSIVE PATCH
   =========================== */

@media (max-width: 900px) {

  /* Global spacing */
  body {
    overflow-x: hidden;
  }

  .terminal {
    padding: 90px 16px 40px;
  }

  .panel {
    padding: 20px;
  }

  /* Terminal Nav */
  .terminal-nav {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }

  .terminal-nav .prompt {
    width: 100%;
  }

  /* About Me */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-photo img {
    max-width: 200px;
  }

  /* Skills Matrix */
  .radar-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .radar-box svg {
    width: 100%;
    height: 260px;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-image {
    height: 140px;
  }

  /* Documents */
  .documents .files a {
    display: block;
    margin-right: 0;
    width: fit-content;
  }

  /* Contact */
  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    grid-column: 1;
  }

}

/* ===========================
   SKILL MATRIX — MOBILE FIX
   Applies to ALL phones
   =========================== */

@media (max-width: 900px) {

  /* Skills panel container */
  .panel.skills {
    padding: 16px;
  }

  .panel.skills h3 {
    margin-bottom: 6px;
  }

  .panel.skills .hint {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }

  /* Radar grid: always vertical on phones */
  .radar-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    align-items: center;
  }

  /* Individual radar card */
  .radar-box {
    width: 100%;
    max-width: 320px;
    padding: 8px;
  }

  .radar-box h4 {
    font-size: 0.85rem;
    margin-bottom: 6px;
    text-align: center;
  }

  /* Radar SVG sizing — THIS is the key fix */
  .radar-box svg {
    width: 100% !important;
    max-width: 260px;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }

  /* Prevent accidental horizontal scroll */
  .panel.skills * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Terminal skills text (optional but recommended) */
  .terminal-skills {
    margin-top: 16px;
  }

  .terminal-skills pre {
    font-size: 0.7rem;
    line-height: 1.4;
    overflow-x: auto;
  }
}

/* ===========================
   ABOUT ME — HIDE PHOTO ON PHONES
   =========================== */

@media (max-width: 480px) {
  .about-photo {
    display: none;
  }
}

/* ===========================
   BOOT SCREEN — MOBILE FONT FIX
   =========================== */

@media (max-width: 768px) {
  .boot {
    padding: 16px;
  }

  #terminalText {
    font-size: 0.95rem;   /* main fix */
    line-height: 1.5;
  }

  #enterHint {
    font-size: 0.85rem;
    margin-top: 12px;
  }
}

/* EXPERIENCE PANEL */
.panel.experience {
  margin-top: 4rem;
}

/* OUTER SOLID FRAME */
.experience-frame {
  border: 1px solid rgba(120, 255, 170, 0.4);
  padding: 2rem;
}

/* INNER DOTTED FRAME (like Skills Matrix) */
.experience-inner {
  border: 1px dashed rgba(120, 255, 170, 0.4);
  padding: 3rem 2rem;
  position: relative;
}

/* MAIN PATH */
.experience-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* CONTINUOUS VERTICAL LINE */
.experience-path::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(120,255,170,0.6),
    rgba(120,255,170,0.15)
  );
  transform: translateX(-50%);
}

/* NODE */
.exp-node {
  position: relative;
  display: flex;
  align-items: center;
}

/* DOT */
.exp-node .dot {
  width: 14px;
  height: 14px;
  background: #7affb2;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(120,255,170,0.8);
}

/* CARD */
.exp-card {
  max-width: 520px;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(120,255,170,0.5);
  border-radius: 12px;
  background: rgba(0,0,0,0.6);
}

/* LEFT / RIGHT POSITIONING */
.exp-node.left {
  justify-content: flex-end;
}

.exp-node.left .exp-card {
  margin-right: calc(50% + 2.5rem);
  text-align: left;
}

.exp-node.right {
  justify-content: flex-start;
}

.exp-node.right .exp-card {
  margin-left: calc(50% + 2.5rem);
  text-align: left;
}

/* TEXT STYLES */
.exp-card h4 {
  margin: 0 0 0.3rem;
  color: #9dffcc;
}

.exp-card .meta {
  font-size: 0.85rem;
  color: rgba(157,255,204,0.7);
}

.exp-card p {
  margin: 0.7rem 0;
  line-height: 1.5;
}

.exp-card .stack {
  font-size: 0.8rem;
  color: rgba(157,255,204,0.6);
}



/* ===========================
   EXPERIENCE — MOBILE FIX (iPhone Safe)
   =========================== */

@media (max-width: 768px) {

  /* Container tightening */
  .panel.experience {
    margin-top: 2rem;
  }

  .experience-frame {
    padding: 1.2rem;
  }

  .experience-inner {
    padding: 1.5rem 1rem;
  }

  /* Kill center timeline logic */
  .experience-path::before {
    left: 8px;
    width: 2px;
    transform: none;
  }

  /* Stack nodes cleanly */
  .experience-path {
    gap: 2.5rem;
  }

  .exp-node {
    padding-left: 2rem;
    align-items: flex-start;
  }

  /* Dot alignment */
  .exp-node .dot {
    left: 8px;
    width: 10px;
    height: 10px;
    box-shadow: 0 0 8px rgba(120,255,170,0.6);
  }

  /* Cards become full-width */
  .exp-card {
    margin: 0 !important;
    width: 100%;
    max-width: none;
    padding: 1rem 1.1rem;
    border-radius: 10px;
  }

  /* Typography scaling */
  .exp-card h4 {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .exp-card .meta {
    font-size: 0.75rem;
  }

  .exp-card p {
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0.5rem 0;
  }

  .exp-card .stack {
    font-size: 0.7rem;
    opacity: 0.8;
  }

  /* Remove left/right logic entirely */
  .exp-node.left,
  .exp-node.right {
    justify-content: flex-start;
  }

}

