:root {
  --bg: #07090d;
  --sidebar: rgba(12, 16, 23, 0.92);
  --panel: rgba(19, 25, 35, 0.78);
  --panel-strong: #161d29;
  --ink: #f7fbff;
  --muted: #a6b1c2;
  --soft: #6e7d93;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #4d8cff;
  --cyan: #48d7c8;
  --green: #58d68d;
  --amber: #f4bd5a;
  --red: #ff6f8d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(77, 140, 255, 0.24), transparent 28%),
    radial-gradient(circle at 72% 4%, rgba(72, 215, 200, 0.16), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(244, 189, 90, 0.12), transparent 32%),
    linear-gradient(135deg, #0b1020, #050608 58%, #101827);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

#field {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.38;
  pointer-events: none;
}

.menu-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
  display: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--panel-strong);
  font-weight: 800;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.profile-block {
  display: flex;
  gap: 14px;
  align-items: center;
}

.avatar-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.online-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 17px;
  height: 17px;
  border: 3px solid var(--sidebar);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(88, 214, 141, 0.1);
}

.profile-block h1 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.15;
}

.profile-block p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a,
.sidebar-actions a,
.primary-action,
.secondary-action,
.repo-tabs button,
.question-list button {
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.side-nav a {
  padding: 11px 13px;
  color: var(--muted);
  font-weight: 800;
}

.side-nav a:hover,
.side-nav a.active,
.repo-tabs button.active,
.question-list button.active {
  color: #dff8ff;
  border-color: rgba(77, 140, 255, 0.45);
  background: rgba(77, 140, 255, 0.16);
}

.sidebar-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(72, 215, 200, 0.12), rgba(77, 140, 255, 0.1));
}

.sidebar-card span,
.eyebrow,
.section-title span,
.feature-project > span,
.answer-card > span,
.footer-screen span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font: 800 0.76rem/1.3 "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.sidebar-card strong {
  display: block;
  font-size: 1rem;
}

.sidebar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sidebar-actions a {
  padding: 10px;
  text-align: center;
  color: var(--ink);
  background: var(--panel-strong);
  font-weight: 900;
  font-size: 0.9rem;
}

.sidebar-actions a:first-child {
  color: #061014;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.app-shell {
  min-height: 100vh;
  margin-left: 320px;
}

.screen {
  padding: clamp(54px, 7vw, 92px) clamp(24px, 5vw, 76px);
  scroll-margin-top: 12px;
}

.hero-screen {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.58fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.hero-copy h2,
.section-title h2,
.footer-screen h2 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2.35rem, 5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 16px;
  font-weight: 900;
}

.primary-action {
  color: #061014;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.secondary-action {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-card,
.snapshot-grid article,
.timeline article,
.feature-project,
.project-list article,
.research-grid article,
.repo-card,
.answer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: 18px;
}

.hero-card-top {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 16px;
}

.hero-card-top img {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
}

.hero-card-top div {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: blur(14px);
}

.hero-card-top span,
.stat-grid span,
.project-metrics span,
.repo-meta span,
.timeline time {
  color: var(--soft);
  font: 800 0.76rem/1.3 "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.hero-card-top strong {
  display: block;
  margin-top: 4px;
  font-size: 1.18rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.stat-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.stat-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.75rem;
}

.compact-screen {
  padding-top: 0;
}

.section-title {
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: clamp(2rem, 3.8vw, 4rem);
}

.snapshot-grid,
.research-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.snapshot-grid article,
.research-grid article {
  min-height: 240px;
  padding: 22px;
}

.snapshot-grid article span {
  color: var(--amber);
  font: 900 2rem/1 "JetBrains Mono", monospace;
}

h3 {
  margin: 12px 0 10px;
  font-size: 1.22rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
}

.chips,
.repo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chips span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  font-weight: 800;
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  gap: 16px;
}

.feature-project {
  min-height: 510px;
  padding: clamp(24px, 4vw, 44px);
}

.feature-project h3 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 0.98;
}

.feature-project p {
  max-width: 760px;
  font-size: 1.06rem;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.project-metrics div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.project-metrics strong {
  display: block;
  color: var(--cyan);
  font: 900 1.6rem/1 "JetBrains Mono", monospace;
}

.feature-project a,
.footer-links a {
  display: inline-flex;
  padding: 11px 14px;
  border: 1px solid rgba(72, 215, 200, 0.35);
  border-radius: 14px;
  color: var(--cyan);
  font-weight: 900;
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-list article {
  padding: 20px;
}

.project-list span {
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.github-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.live-badge {
  color: var(--green);
  font-weight: 900;
}

.repo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.repo-tabs button,
.question-list button {
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 900;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.repo-card {
  display: block;
  min-height: 260px;
  padding: 20px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.repo-card:hover,
.primary-action:hover,
.secondary-action:hover,
.sidebar-actions a:hover,
.feature-project a:hover,
.footer-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(72, 215, 200, 0.5);
}

.repo-card h3 {
  overflow-wrap: anywhere;
}

.repo-score {
  color: var(--amber);
  font: 900 0.8rem/1 "JetBrains Mono", monospace;
}

.interview-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
}

.question-list {
  display: grid;
  gap: 10px;
}

.question-list button {
  text-align: left;
}

.answer-card {
  min-height: 360px;
  padding: clamp(24px, 4vw, 42px);
}

.answer-card h3 {
  font-size: clamp(1.8rem, 3.4vw, 3.6rem);
  line-height: 1;
}

.footer-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  border-top: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 220ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .app-shell {
    margin-left: 0;
  }

  .screen {
    padding-top: 76px;
  }
}

@media (max-width: 940px) {
  .hero-screen,
  .project-showcase,
  .interview-layout,
  .footer-screen {
    grid-template-columns: 1fr;
  }

  .snapshot-grid,
  .research-grid,
  .repo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .screen {
    padding-inline: 16px;
  }

  .hero-copy h2,
  .section-title h2 {
    font-size: clamp(2.2rem, 12vw, 3.8rem);
  }

  .snapshot-grid,
  .research-grid,
  .repo-grid,
  .timeline article,
  .project-metrics,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: min(320px, 88vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
