:root {
  --bg: #020617;
  --bg-elevated: rgba(15, 23, 42, 0.9);
  --bg-soft: #020617;
  --border-subtle: rgba(148, 163, 184, 0.2);
  --fg: #e5e7eb;
  --fg-soft: #9ca3af;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.2);
  --danger: #f97373;
  --success: #4ade80;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
}

[data-theme="light"] {
  --bg: #f9fafb;
  --bg-elevated: #ffffff;
  --bg-soft: #e5e7eb;
  --border-subtle: rgba(15, 23, 42, 0.12);
  --fg: #020617;
  --fg-soft: #4b5563;
  --accent: #0f766e;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --danger: #b91c1c;
  --success: #15803d;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html[data-theme="dark"] body {
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
}

html[data-theme="light"] .glass::before {
  opacity: 0.2; /* softer glow in light mode */
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Top shell / nav */

.top-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  backdrop-filter: blur(18px);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

.brand-pill {
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(
    circle at top left,
    rgba(34, 211, 238, 0.2),
    transparent
  );
}

.brand-sub {
  color: var(--fg-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--fg-soft);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  color: var(--fg);
  border-color: var(--border-subtle);
  background: rgba(15, 23, 42, 0.7);
}

.nav-link.active {
  color: #0f172a;
  background: var(--accent);
  border-color: var(--accent);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.1s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 0 12px var(--accent-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px var(--accent-soft);
}

.btn-outline {
  border-color: var(--border-subtle);
}

.btn-ghost {
  border-color: transparent;
  background: rgba(15, 23, 42, 0.8);
}

.btn:hover {
  text-decoration: none;
}

.full-width {
  width: 100%;
}

.icon-button {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.7);
  color: var(--fg);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
}

/* Layouts */

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.page-shell {
  padding: 1.5rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Glass cards */

.glass {
  background: var(--bg-elevated);
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.2rem;
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, var(--accent-soft), transparent 55%);
  opacity: 0.45;
  pointer-events: none;
}

/* Sidebar specifics */

.avatar-card {
  text-align: center;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at top,
    rgba(34, 211, 238, 0.35),
    transparent
  );
}

.sidebar-name {
  margin: 0;
  font-size: 1.1rem;
}

.sidebar-role {
  margin: 0.25rem 0 0.75rem;
  color: var(--fg-soft);
  font-size: 0.9rem;
}

.sidebar-meta {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
}

.sidebar-meta li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--fg-soft);
}

.sidebar-meta .label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: var(--fg-soft);
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-block {
  font-size: 0.85rem;
}

.sidebar-title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

/* Lists */

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill-list li {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
}

.pill-list.smaller li {
  font-size: 0.7rem;
}

/* Sections */

.section {
  margin-bottom: 2rem;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-header h1,
.section-header h2 {
  margin: 0 0 0.25rem;
}

.section-header p {
  margin: 0;
  color: var(--fg-soft);
  max-width: 40rem;
}

/* Hero */

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy .badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.hero-subtitle {
  margin: 0 0 1.2rem;
  color: var(--fg-soft);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hero-meta {
  display: grid;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--fg-soft);
}

.meta-item .meta-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

/* Terminal */

.hero-terminal {
  font-family: "JetBrains Mono", monospace;
  padding: 0;
  width: 380px;
}

.hero-terminal::before {
  display: none;
}

.hero-terminal .terminal-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7)
  );
}

.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--fg-soft);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot.red {
  background: #ef4444;
}

.dot.amber {
  background: #f97316;
}

.dot.green {
  background: #22c55e;
}

/* Terminal core */

.terminal-body {
  padding: 0.8rem 1rem 1rem;
  font-size: 0.78rem;
  color: var(--accent);
  overflow-x: hidden;
  width: 100%;
}

.terminal-output {
  max-height: 280px; /* scrollable height */
  overflow-y: auto;
  padding-right: 4px;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Custom scrollbar to match theme */
.terminal-output::-webkit-scrollbar {
  width: 6px;
}

.terminal-output::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 10px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
  background: var(--accent-soft);
}

.terminal-line {
  font-family: "JetBrains Mono", monospace;
  white-space: pre-wrap;
}

.terminal-cmd {
  color: var(--accent);
}

.terminal-boot {
  color: var(--fg-soft);
}

.terminal-hint {
  color: var(--fg-soft);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  margin-top: 0.4rem;
}

.terminal-prompt {
  white-space: nowrap;
}

#terminal-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  padding: 0.1rem 0;
  outline: none;
}

#terminal-input::placeholder {
  color: var(--fg-soft);
  opacity: 0.7;
}

/* Grids */

.section-grid .grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
}

.card h3 {
  margin-top: 0;
}

.tag-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.75rem;
}

.tag-list li {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
}

.tag-list.inline li {
  display: inline-flex;
}

/* Stats */

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  text-align: left;
}

.stat-number {
  display: block;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-soft);
}

/* About page helpers */

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.check-list,
.bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

.check-list li::before {
  content: "▸";
  color: var(--accent);
  margin-right: 0.4rem;
  font-size: 0.8rem;
}

.bullet-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.4rem;
}

.check-list li,
.bullet-list li {
  margin-bottom: 0.3rem;
}

/* Skills */

.skills-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Timeline */

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.4rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 0.16rem;
  top: 0.4rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--bg);
}

.timeline-meta {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.timeline-role {
  display: block;
  font-weight: 500;
}

.timeline-org {
  color: var(--fg-soft);
}

.timeline-dates {
  display: block;
  color: var(--fg-soft);
  font-size: 0.75rem;
}

/* Projects grid */

.projects-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card p {
  font-size: 0.9rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.project-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

.badge-red {
  background: rgba(248, 113, 113, 0.18);
  border-color: var(--danger);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.18);
  border-color: #3b82f6;
}

.badge-green {
  background: rgba(74, 222, 128, 0.18);
  border-color: var(--success);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.project-links {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.link-muted {
  color: var(--fg-soft);
}

/* Contact */

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.contact-list .label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: var(--fg-soft);
}

.hint {
  font-size: 0.8rem;
  color: var(--fg-soft);
  margin-top: 0.6rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
}

.form-row label {
  font-weight: 500;
}

.form-row input,
.form-row textarea {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.85);
  color: var(--fg);
  padding: 0.5rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.form-status {
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* Footer */

.footer {
  margin-top: auto;
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--fg-soft);
  border-top: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.96);
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.2rem;
  flex-direction: column;
  gap: 0.18rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.nav-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.nav-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.nav-open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.no-scroll {
  overflow: hidden;
}

/* Evidence blocks (projects) */

.evidence-toggle {
  margin-top: 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.9);
  color: var(--fg-soft);
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.18s ease, color 0.18s ease, transform 0.1s ease;
}

.evidence-toggle:hover {
  background: rgba(15, 23, 42, 1);
  color: var(--fg);
  transform: translateY(-1px);
}

.project-evidence {
  margin-top: 0.9rem;
  padding: 0.9rem 0.9rem 0.7rem;
  border-radius: 14px;
  border: 1px dashed var(--border-subtle);
  background: rgba(15, 23, 42, 0.85);
  display: none;
}

.evidence-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.evidence-tab {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.9);
  color: var(--fg-soft);
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.evidence-tab.active {
  background: var(--accent);
  color: #0f172a;
  border-color: var(--accent);
}

.evidence-panel {
  display: none;
}

.evidence-panel.active {
  display: block;
}

.evidence-caption {
  font-size: 0.8rem;
  color: var(--fg-soft);
  margin: 0 0 0.6rem;
}

.project-screenshots {
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.shot-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--accent-soft);
}

/* Image modal */

.img-modal {
  display: none;
  position: fixed;
  z-index: 5000;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  padding: 1rem;
  overflow: auto;
  text-align: center;
}

.img-modal-content {
  margin: auto;
  display: block;
  max-width: 80vw;   /* never wider than viewport */
  max-height: 90vh;  /* never taller than viewport */
  width: auto;
  height: auto;
  border-radius: 10px;
}


.img-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}

#imgCaption {
  text-align: center;
  color: #ccc;
  margin-top: 10px;
  font-size: 14px;
}

/* THM card tweak */

.thm-card .thm-badge-terminal {
  margin-top: 0.5rem;
}

/* Responsive */

@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    order: 1;
  }

  .content {
    order: 2;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-grid .grid-3,
  .stats-grid,
  .skills-grid,
  .two-column,
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-terminal {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .top-shell {
    padding-inline: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 3rem 1rem auto;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .nav.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* === Boot / Loading Screen ======================================= */

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at top, #020617 0, #000 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-screen.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-panel {
  width: 340px;
  max-width: 90%;
  padding: 1.3rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
  font-family: "JetBrains Mono", monospace;
  color: #e5e7eb;
}

.loader-title {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  color: #22d3ee;
}

.loader-log {
  min-height: 90px;
  max-height: 140px;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.loader-log-line {
  white-space: nowrap;
}

.loader-bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #22d3ee,
    #38bdf8,
    #22d3ee
  );
  transition: width 0.35s ease;
}

.loader-hint {
  margin: 0.55rem 0 0;
  font-size: 0.7rem;
  color: #9ca3af;
}

/* Keep loader reasonably consistent in light mode */
[data-theme="light"] .loader-panel {
  background: #020617;
  border-color: rgba(148, 163, 184, 0.5);
}


/* === Light-mode visual tweaks ======================================= */

[data-theme="light"] body {
  background: #f3f4f6; /* slightly softer than pure white */
}

/* Glass cards remain white but with softer halo */
[data-theme="light"] .glass {
  background: #ffffff;
}

/* Pills / tags – remove the almost-black background in light mode */
[data-theme="light"] .pill-list li,
[data-theme="light"] .tag-list li {
  background: rgba(15, 23, 42, 0.06);  /* light grey chip */
  color: #111827;
}

/* THM badge wrapper – align with light card background */
[data-theme="light"] .thm-badge-terminal {
  background: #f9fafb;
}

/* Evidence + toggles (Projects page) */
[data-theme="light"] .evidence-toggle {
  background: #ffffff;
  color: #374151;
}

[data-theme="light"] .project-evidence {
  background: #f9fafb;
}

/* Inputs / textareas – move away from dark navy in light mode */
[data-theme="light"] .form-row input,
[data-theme="light"] .form-row textarea {
  background: #ffffff;
  color: #111827;
}

/* Mobile nav popover in light mode */
[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.96);
}

/* === FIX: Terminal always dark in light mode ====================== */

[data-theme="light"] .hero-terminal {
  background: #0a0f1f !important;
}

[data-theme="light"] .hero-terminal .terminal-header {
  background: linear-gradient(
    to right,
    #0d1224,
    #0a0f1f
  ) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .terminal-body {
  background: #0a0f1f !important;
  color: #22d3ee !important;
}

[data-theme="light"] .terminal-output {
  background: #0a0f1f !important;
  color: #22d3ee !important;
}

/* Prevent <pre> from defaulting to white background in light mode */
[data-theme="light"] .terminal-output pre,
[data-theme="light"] .terminal-line {
  background: transparent !important;
  color: #22d3ee !important;
}

/* Cursor row */
[data-theme="light"] .terminal-input-row {
  background: #0a0f1f !important;
  color: #22d3ee !important;
}

[data-theme="light"] #terminal-input {
  background: transparent !important;
  color: #22d3ee !important;
}

/* Hint / boot text inside terminal */
[data-theme="light"] .terminal-hint,
[data-theme="light"] .terminal-boot {
  color: #94a3b8 !important;
}

/* Scrollbar */
[data-theme="light"] .terminal-output::-webkit-scrollbar-thumb {
  background: #334155 !important;
}
