@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=JetBrains+Mono:wght@400;600&display=swap");

:root {
  --bg-0: #0f1119;
  --bg-1: #171b2a;
  --bg-2: #20273b;
  --text: #f4f7ff;
  --text-dim: #c4ccd9;
  --line: #2f3a59;
  --line-soft: #2a324d;
  --brand: #ffb347;
  --brand-strong: #ff9825;
  --accent: #58d5c9;
  --accent-2: #7cb7ff;
  --danger: #ff7b8a;
  --ok: #87f4a6;
  --glass: rgba(25, 30, 47, 0.68);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.33);
}

html[data-theme="light"] {
  --bg-0: #f5f7fb;
  --bg-1: #eaf0f8;
  --bg-2: #dde7f4;
  --text: #111827;
  --text-dim: #334155;
  --line: #bfd0e8;
  --line-soft: #d3deef;
  --brand: #c07a1b;
  --brand-strong: #a85f10;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --danger: #be123c;
  --ok: #15803d;
  --glass: rgba(246, 250, 255, 0.82);
  --shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  background:
    radial-gradient(circle at 85% 0%, #34280f 0%, transparent 36%),
    radial-gradient(circle at 8% 20%, #133347 0%, transparent 42%),
    linear-gradient(155deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 85% 0%, rgba(192, 122, 27, 0.12) 0%, transparent 36%),
    radial-gradient(circle at 8% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 42%),
    linear-gradient(155deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(#fff 0.6px, transparent 0.6px);
  background-size: 4px 4px;
}

.global-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(16, 20, 33, 0.84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.page-rail {
  width: min(1060px, 92vw);
  margin: 10px auto 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-rail-link {
  text-decoration: none;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.78rem;
  background: rgba(124, 183, 255, 0.07);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.page-rail-link:hover,
.page-rail-link.active {
  color: var(--brand);
  border-color: rgba(255, 179, 71, 0.7);
  background: rgba(255, 179, 71, 0.12);
}

.nav-container,
.hero,
main,
footer {
  width: min(1060px, 92vw);
  margin: 0 auto;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
}

.nav-logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.nav-link.external {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.45rem;
  cursor: pointer;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: rgba(124, 183, 255, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero {
  padding: 70px 0 34px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 16px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.25), transparent 68%);
  filter: blur(3px);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(124, 183, 255, 0.15), transparent 70%);
  filter: blur(2px);
  pointer-events: none;
}

.welcome-line {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(2.2rem, 6vw, 3.9rem);
  line-height: 1.04;
  background: linear-gradient(135deg, var(--text) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

h3 {
  margin: 0 0 8px;
}

.lead,
p,
li {
  color: var(--text-dim);
  line-height: 1.62;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.command-hint {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.btn,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn {
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #251700;
  border: 1px solid rgba(255, 186, 96, 0.65);
  box-shadow: 0 10px 24px rgba(255, 152, 37, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.panel,
.project-item,
.project-card,
.tech-category,
.skill-category,
.flagship-item,
.philosophy-card,
.stat-card,
.log-entry.large {
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.panel,
.project-item {
  padding: 20px;
  margin-bottom: 18px;
}

.identity ul,
.features-list,
.highlights-list,
.outcomes-list,
.about-list,
.project-highlights,
.achievements-list,
.development-list,
.projects-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.identity li,
.features-list li,
.highlights-list li,
.outcomes-list li,
.about-list li,
.project-highlights li,
.achievements-list li,
.development-list li,
.projects-list li {
  position: relative;
  padding: 7px 0 7px 20px;
}

.identity li::before,
.features-list li::before,
.highlights-list li::before,
.outcomes-list li::before,
.about-list li::before,
.projects-list li::before {
  content: "▸";
  color: var(--accent);
  position: absolute;
  left: 0;
}

.project-highlights li::before,
.achievements-list li::before,
.development-list li::before {
  content: "★";
  color: var(--brand);
  position: absolute;
  left: 0;
}

.projects-grid,
.tech-grid,
.skills-grid,
.tech-breakdown,
.stats-grid,
.flagship-list {
  display: grid;
  gap: 14px;
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 14px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: rgba(124, 183, 255, 0.08);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: rgba(255, 179, 71, 0.72);
  color: var(--brand);
  background: rgba(255, 179, 71, 0.14);
}

.project-card {
  padding: 16px;
  transition: transform 0.24s, border-color 0.24s;
  cursor: pointer;
}

.project-card:hover,
.project-item:hover,
.tech-category:hover,
.skill-category:hover,
.philosophy-card:hover,
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 179, 71, 0.72);
  box-shadow: 0 16px 40px rgba(255, 179, 71, 0.15);
}

.badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge.public { background: rgba(88, 213, 201, 0.16); color: var(--accent); }
.badge.private { background: rgba(255, 123, 138, 0.17); color: var(--danger); }
.badge.academic { background: rgba(124, 183, 255, 0.16); color: var(--accent-2); }
.badge.learning { background: rgba(255, 179, 71, 0.16); color: var(--brand); }

.tags,
.tech-tags,
.project-links,
.project-links-section,
.project-meta,
.cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span,
.tech-tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--accent-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(124, 183, 255, 0.12);
}

.card-cta {
  margin-top: 12px;
  color: var(--brand);
  font-weight: 600;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.focus-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.focus-card {
  background: rgba(124, 183, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.quick-actions-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-action {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line-soft);
  background: rgba(88, 213, 201, 0.06);
  border-radius: 12px;
  padding: 14px;
  transition: transform 0.2s, border-color 0.2s;
}

.quick-action:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 213, 201, 0.75);
}

.projects-controls {
  display: grid;
  gap: 10px;
}

.search-label {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.project-search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(124, 183, 255, 0.08);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.project-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 213, 201, 0.2);
}

.project-search-input::placeholder {
  color: #9ba7c2;
}

.results-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--accent);
}

.searchable-project.is-hidden {
  display: none;
}

.featured-intro,
.supporting-intro {
  color: var(--text-dim);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.featured-intro {
  margin-bottom: 20px;
}

.supporting-note {
  color: var(--text-dim);
  margin-top: 14px;
  font-size: 0.9rem;
}

.supporting-links {
  margin-top: 12px;
}

.profile-snapshot {
  margin-top: 8px;
}

.snapshot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.snapshot-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--accent-2);
  background: rgba(124, 183, 255, 0.08);
}

.log-entry {
  border-left: 3px solid var(--accent);
  padding: 5px 0 5px 12px;
}

.log-entry .date {
  display: block;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.88rem;
}

.log-entry .status,
.status-active {
  color: var(--ok);
  font-size: 0.84rem;
}

.log-entry.large {
  padding: 16px;
  border-left: 3px solid var(--brand);
}

.log-entry.large .tags {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-size: 0.82rem;
}

.tech-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.skills-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tech-breakdown { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.flagship-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.tech-group,
.tech-category,
.skill-category,
.flagship-item,
.philosophy-card,
.stat-card,
.cv-education {
  padding: 14px;
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  color: var(--brand);
  margin-bottom: 4px;
}

.page-header {
  text-align: center;
  padding: 44px 0 26px;
}

.project-page,
.cv-page,
.about-page,
.logs-page {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 22px 0;
}

.cv-page {
  display: grid;
  gap: 20px;
}

.cv-sheet {
  background: rgba(13, 18, 30, 0.88);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.cv-headline {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 12px;
}

.cv-role {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.cv-headline h1 {
  margin: 6px 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.cv-title {
  margin: 0;
}

.cv-two-col {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 16px;
}

.cv-sidebar,
.cv-main-col {
  display: grid;
  gap: 12px;
  align-content: start;
}

.cv-block {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px;
  background: rgba(124, 183, 255, 0.05);
}

.cv-block h2 {
  margin-bottom: 10px;
}

.cv-plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cv-project-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cv-project-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 179, 71, 0.05);
}

.cv-footer-note {
  text-align: center;
}

.proof-line {
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 0.92rem;
  line-height: 1.5;
}

.metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.metrics-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(88, 213, 201, 0.08);
}

.metrics-row strong {
  color: var(--brand);
}

.journey-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.journey-steps li {
  color: var(--text-dim);
}

.impact-summary {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px;
  background: rgba(88, 213, 201, 0.08);
  margin-bottom: 14px;
}

.impact-summary h2 {
  margin-bottom: 10px;
}

.impact-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
}

.impact-metrics li {
  position: relative;
  padding: 6px 0 6px 18px;
  color: var(--text-dim);
}

.impact-metrics li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.footer-cta {
  margin: 0 auto 12px;
  width: min(860px, 100%);
}

.footer-cta p {
  margin: 0 0 10px;
  color: var(--text-dim);
}

.outcome-badge {
  margin: 6px 0 0;
  border: 1px solid rgba(88, 213, 201, 0.45);
  border-radius: 10px;
  padding: 7px 10px;
  background: rgba(88, 213, 201, 0.12);
  color: var(--accent);
  font-size: 0.83rem;
}

.decision-block {
  border-color: rgba(255, 179, 71, 0.45);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.decision-grid > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 179, 71, 0.06);
}

.decision-grid h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--brand);
}

.decision-grid p {
  margin: 0;
  font-size: 0.86rem;
}

.floating-dock {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1100;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 20, 33, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.floating-dock a,
.floating-dock button {
  border: 1px solid var(--line);
  background: rgba(124, 183, 255, 0.08);
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  cursor: pointer;
}

.floating-dock a:hover,
.floating-dock button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1200;
  background: linear-gradient(90deg, var(--accent), var(--brand));
}

.command-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 9, 16, 0.76);
  z-index: 1300;
}

.command-overlay.active {
  display: flex;
}

.command-panel {
  width: min(560px, 92vw);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111624;
  padding: 16px;
}

.command-panel h3 {
  color: var(--brand);
}

.command-list {
  display: grid;
  gap: 8px;
}

.command-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-dim);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.command-item kbd {
  font-family: "JetBrains Mono", monospace;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--accent);
}

.project-section,
.cv-section,
.about-section,
.cv-project {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.project-switcher {
  margin: 0 0 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  background: rgba(124, 183, 255, 0.07);
}

.project-switcher-top,
.project-switcher-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-switcher-top {
  margin-bottom: 10px;
}

.project-switcher-nav,
.project-chip {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(88, 213, 201, 0.05);
  transition: border-color 0.2s, color 0.2s;
}

.project-switcher-nav:hover,
.project-chip:hover,
.project-chip.active {
  color: var(--accent);
  border-color: rgba(88, 213, 201, 0.7);
}

.project-section:last-child,
.cv-section:last-child,
.about-section:last-child,
.cv-project:last-child {
  border-bottom: none;
}

.back-link,
.link-arrow,
footer a,
.cv-contact a,
.about-section a {
  color: var(--accent-2);
  text-decoration: none;
}

.back-link:hover,
.link-arrow:hover,
footer a:hover,
.cv-contact a:hover,
.about-section a:hover {
  color: var(--brand);
}

.terminal pre {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #111624;
  color: #b5ffe8;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.89rem;
  line-height: 1.66;
  overflow: auto;
}

.terminal-output {
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #111624;
  color: #b5ffe8;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.62;
  min-height: 140px;
  max-height: 260px;
  overflow: auto;
}

.terminal-output p {
  margin: 0 0 6px;
}

.terminal-output span {
  color: #60a5fa;
}

.view-all-projects,
.view-all-logs {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.btn-link {
  background: rgba(88, 213, 201, 0.18);
  border: 1px solid rgba(88, 213, 201, 0.5);
  color: var(--accent);
  padding: 7px 12px;
  font-size: 0.9rem;
}

.btn-link:hover {
  background: rgba(255, 179, 71, 0.2);
  border-color: rgba(255, 179, 71, 0.7);
  color: var(--brand);
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.logs-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.log-section-divider {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.reveal {
  animation: reveal 0.6s ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 58px;
    right: 4vw;
    left: 4vw;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(16, 20, 33, 0.97);
  }

  .nav-links.active {
    display: flex;
  }

  .cta-row {
    flex-direction: column;
  }

  .metrics-row {
    flex-direction: column;
  }

  .btn,
  .btn-link {
    width: 100%;
  }

  .cv-two-col {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
  }

  .floating-dock {
    left: 10px;
    right: 10px;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 12px;
  }
}

@media (max-width: 560px) {
  .hero,
  main,
  footer,
  .project-page,
  .cv-page,
  .about-page,
  .logs-page,
  .nav-container {
    width: 94vw;
  }

  .page-rail {
    width: 94vw;
  }

  h1 {
    font-size: 1.95rem;
  }

  .page-header {
    padding-top: 30px;
  }
}

@media print {
  .global-nav,
  footer,
  .noise,
  .floating-dock,
  .scroll-progress,
  .command-overlay {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .cv-page {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .cv-sheet {
    box-shadow: none;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    color: #111;
    page-break-after: always;
  }

  .cv-sheet-second {
    page-break-after: auto;
  }

  .cv-sheet h1,
  .cv-sheet h2,
  .cv-sheet h3,
  .cv-sheet p,
  .cv-sheet li,
  .cv-sheet a {
    color: #111 !important;
  }
}
