:root {
  --bg: #050b14;
  --panel: #0b1422;
  --panel2: #0e1a2c;
  --line: #1b2a40;
  --text: #eef6ff;
  --muted: #91a4b9;
  --cyan: #16d9ff;
  --blue: #4f7cff;
  --purple: #9a63ff;
  --green: #42e6a4;
  --amber: #ffb84d;
  --error: #ff5e7e;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--cyan);
  color: #050b14;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 1000;
  border-radius: 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 20px;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 20, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-wrap {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #1bdcff;
  border-radius: 10px;
  color: var(--cyan);
  background: #071727;
  box-shadow: 0 0 22px rgba(22, 217, 255, 0.2);
  font-size: 14px;
  overflow: hidden;
}

.brand-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(22, 217, 255, 0.4);
  box-shadow: 0 0 16px rgba(22, 217, 255, 0.25);
  object-fit: cover;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 14px;
  border-radius: 9px;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: #0e1a2a;
}

.nav-cta {
  padding: 9px 16px;
  border: 1px solid #1c6fff;
  border-radius: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #0b3b77, #1638a2);
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(28, 111, 255, 0.35);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  min-height: 650px;
  display: grid;
  align-items: center;
  background: radial-gradient(circle at 80% 30%, rgba(28, 117, 255, 0.18), transparent 35%),
    radial-gradient(circle at 30% 70%, rgba(0, 215, 255, 0.08), transparent 35%);
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
  padding: 85px 0;
}

.eyebrow,
.kicker {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid #16415a;
  border-radius: 999px;
  background: #071725;
}

.pulse {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--cyan);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 5.8vw, 76px);
  letter-spacing: -0.04em;
  margin: 22px 0;
}

h1 span {
  color: var(--cyan);
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 16px;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 30px 0;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #08bfe8, #426cff);
  box-shadow: 0 10px 30px rgba(28, 129, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 35px rgba(28, 129, 255, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  color: #fff;
  background: #0c1625;
  border-color: #26364d;
}

.btn-secondary:hover {
  background: #111e32;
  border-color: #3b4e6b;
  transform: translateY(-2px);
}

.btn.small {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 38px;
}

.hero-stats div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-stats strong {
  font-size: 24px;
  color: var(--cyan);
  font-family: "Space Grotesk", sans-serif;
}

.hero-stats span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Code Window & Chips */
.hero-code {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.code-window {
  width: min(100%, 520px);
  background: #08111d;
  border: 1px solid #1e3955;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 150, 255, 0.08);
  overflow: hidden;
  transform: rotate(1deg);
}

.window-top {
  height: 44px;
  border-bottom: 1px solid #193049;
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 7px;
}

.window-top > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #40546a;
}

.window-top label {
  margin-left: auto;
  color: #6f8399;
  font: 12px monospace;
}

.code-window pre {
  margin: 0;
  padding: 28px 25px;
  overflow: auto;
  color: #c9d8e8;
  font: 13px/1.9 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.kw { color: #d789ff; }
.str { color: #65e6b1; }

.floating-chip {
  position: absolute;
  padding: 9px 13px;
  border: 1px solid #1c6680;
  background: rgba(6, 20, 33, 0.92);
  border-radius: 9px;
  color: #d9f8ff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 0 30px rgba(22, 217, 255, 0.15);
  backdrop-filter: blur(8px);
}

.chip-one { top: 34px; right: 20px; }
.chip-two { bottom: 42px; left: 5px; }
.chip-three { bottom: 10px; right: 55px; }

/* Sections */
.section {
  padding: 90px 0;
}

.section-dark {
  background: #070f1a;
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 38px;
}

.section-head > p {
  max-width: 380px;
  color: var(--muted);
  margin: 0;
}

.kicker {
  display: block;
  margin-bottom: 13px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 26px;
  background: linear-gradient(145deg, #0c1828, #09111d);
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #1d6881;
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #071e2c;
  color: var(--cyan);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 24px;
}

.feature-card p,
.project-body p,
.article-card p,
.video-card p {
  color: var(--muted);
  font-size: 14px;
}

.arrow,
.text-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.split p {
  color: var(--muted);
  max-width: 560px;
  margin: 22px 0 28px;
}

.terminal-card {
  background: #02060b;
  border: 1px solid #173047;
  border-radius: 15px;
  padding: 30px;
  color: #a8bdd0;
  font: 14px/2 ui-monospace, monospace;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.terminal-title {
  color: #50677d;
  margin-bottom: 15px;
}

.prompt { color: var(--cyan); }
.cursor {
  color: var(--cyan);
  animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.path-grid a {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #091321;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, border-color 0.2s;
}

.path-grid a:hover {
  transform: translateY(-2px);
  border-color: #1c6680;
}

.path-grid strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.path-grid span {
  color: var(--muted);
  font-size: 13px;
}

/* Page Hero */
.page-hero {
  padding: 95px 0 65px;
  background: radial-gradient(circle at 75% 30%, rgba(48, 102, 255, 0.17), transparent 38%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(38px, 5.5vw, 62px);
  margin: 10px 0;
}

.page-hero p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

/* Search and Filters */
.search-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  align-items: center;
}

.search {
  width: min(360px, 100%);
  padding: 13px 15px;
  background: #081321;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s;
}

.search:focus {
  border-color: var(--cyan);
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter {
  border: 1px solid var(--line);
  background: #081321;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter:hover {
  color: #fff;
  border-color: #2a4b6c;
}

.filter.active {
  background: #10304c;
  color: #fff;
  border-color: #1d7394;
}

/* Grids & Cards */
.article-grid,
.video-grid,
.tool-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card,
.video-card,
.tool-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: #091321;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.article-card.hidden {
  display: none !important;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #07101c;
  display: none;
}

.empty-state.show {
  display: block;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  color: #72e8ff;
  background: #092536;
  border: 1px solid #13445a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  align-self: flex-start;
  margin-bottom: 12px;
}

.center-action {
  text-align: center;
  margin-top: 35px;
}

.thumb {
  height: 190px;
  margin: -24px -24px 20px;
  border-radius: 14px 14px 0 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.thumb span {
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 800;
}

.thumb b {
  font: 700 24px/1.15 "Space Grotesk", sans-serif;
  max-width: 250px;
}

.thumb-blue { background: linear-gradient(135deg, #06344a, #0e5fa2); }
.thumb-purple { background: linear-gradient(135deg, #1b1647, #7137b8); }
.thumb-cyan { background: linear-gradient(135deg, #063a38, #087e8d); }

/* Developer Tools */
.tool-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.tool-card {
  position: relative;
}

.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tool-card textarea,
.tool-card .tool-input {
  width: 100%;
  background: #050b13;
  color: #cfe3f2;
  border: 1px solid #1c2e42;
  border-radius: 9px;
  padding: 12px;
  font: 12px ui-monospace, monospace;
  outline: none;
  transition: border-color 0.2s;
}

.tool-card textarea {
  min-height: 110px;
  resize: vertical;
  margin: 14px 0 10px;
}

.tool-card .tool-input {
  margin: 8px 0;
  height: 42px;
}

.tool-select {
  background: #050b13;
  color: #cfe3f2;
  border: 1px solid #1c2e42;
  border-radius: 8px;
  padding: 8px 12px;
  font: 12px Inter, sans-serif;
  outline: none;
  cursor: pointer;
}

.tool-card textarea:focus,
.tool-card .tool-input:focus,
.tool-select:focus {
  border-color: var(--cyan);
}

.shadow-preview-box {
  height: 90px;
  background: #091a2d;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin: 14px 0;
  color: #b7d6f5;
  font-size: 13px;
  font-weight: 600;
  transition: box-shadow 0.2s;
}

.color-preview-bar {
  height: 40px;
  border-radius: 8px;
  border: 1px solid #1c2e42;
  margin: 10px 0;
  transition: background 0.15s;
}

.tool-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.tool-output-wrapper {
  position: relative;
  margin-top: 6px;
}

.tool-output {
  min-height: 48px;
  max-height: 280px;
  white-space: pre-wrap;
  word-break: break-all;
  overflow: auto;
  background: #050b13;
  border: 1px solid #1c2e42;
  border-radius: 9px;
  padding: 14px 50px 14px 14px;
  color: #8deaff;
  font: 12px ui-monospace, monospace;
  margin: 0;
}

.tool-output.error {
  color: var(--error);
  border-color: rgba(255, 94, 126, 0.4);
}

.big-output-wrapper {
  position: relative;
  margin: 14px 0;
}

.big-output {
  padding: 16px 50px 16px 16px;
  border: 1px dashed #25435e;
  border-radius: 10px;
  color: #8deaff;
  font: 700 15px ui-monospace, monospace;
  word-break: break-all;
  overflow: auto;
  background: #050c16;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #0f2438;
  border: 1px solid #1f4260;
  color: var(--cyan);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.copy-btn:hover {
  background: #183e60;
  color: #fff;
}

.copy-btn.copied {
  background: #134e3a;
  border-color: #2ae39b;
  color: #65e6b1;
}

/* Projects */
.project-grid {
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #091321;
}

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
}

.project-visual {
  min-height: 260px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #164e71, #07111e 65%);
  font: 800 80px "Space Grotesk", sans-serif;
  color: #2ee5ff;
}

.project-visual.purple {
  background: radial-gradient(circle, #543078, #0b1020 65%);
  color: #d69bff;
}

.project-visual.green {
  background: radial-gradient(circle, #14654e, #07151a 65%);
  color: #62e6ae;
}

.project-body {
  padding: 28px;
}

.project-body h2 {
  font-size: 26px;
  margin: 12px 0;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.stack span {
  font-size: 11px;
  color: #a6bed1;
  border: 1px solid #24394e;
  padding: 5px 8px;
  border-radius: 6px;
}

/* ========================================================
   ENHANCED GRAPHICAL ROADMAPS SECTION
   ======================================================== */

.roadmap-nav-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.roadmap-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: #091321;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
}

.roadmap-pill span.pill-icon {
  font-size: 16px;
}

.roadmap-pill:hover {
  color: #fff;
  border-color: var(--cyan);
  background: #0c1d30;
  transform: translateY(-2px);
}

.roadmap-container {
  display: grid;
  gap: 60px;
}

.roadmap-block {
  background: linear-gradient(180deg, #091322 0%, #060d17 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.roadmap-block:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.roadmap-block.dotnet-theme:before {
  background: linear-gradient(90deg, #4f7cff, #16d9ff);
}

.roadmap-block.fullstack-theme:before {
  background: linear-gradient(90deg, #9a63ff, #16d9ff);
}

.roadmap-block.devops-theme:before {
  background: linear-gradient(90deg, #42e6a4, #16d9ff);
}

.roadmap-block.ai-theme:before {
  background: linear-gradient(90deg, #ffb84d, #ff5e7e);
}

.roadmap-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.roadmap-title-area {
  display: flex;
  gap: 18px;
  align-items: center;
}

.roadmap-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font: 800 20px "Space Grotesk", sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dotnet-theme .roadmap-icon-badge {
  background: linear-gradient(135deg, #103366, #1660b8);
  border: 1px solid #1f74dc;
  color: #72baff;
}

.fullstack-theme .roadmap-icon-badge {
  background: linear-gradient(135deg, #2b1359, #6225bf);
  border: 1px solid #8244df;
  color: #cbb0ff;
}

.devops-theme .roadmap-icon-badge {
  background: linear-gradient(135deg, #093c28, #137750);
  border: 1px solid #1fa771;
  color: #65e6b1;
}

.ai-theme .roadmap-icon-badge {
  background: linear-gradient(135deg, #4a280b, #995513);
  border: 1px solid #d97d26;
  color: #ffc988;
}

.roadmap-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #0a1727;
  border: 1px solid #1c324c;
  color: #9ab4cc;
}

/* Graphical Stepper / Timeline */
.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin: 30px 0;
}

.timeline-phase {
  background: #08111d;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.timeline-phase:hover {
  transform: translateY(-3px);
  border-color: #214d73;
}

.phase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.phase-number {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  background: #0d2238;
  color: var(--cyan);
  border: 1px solid #1b4b73;
}

.phase-timeline-tag {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.timeline-phase h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #fff;
}

.timeline-phase p.phase-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #d1e2f2;
}

.skill-item i {
  color: var(--cyan);
  font-style: normal;
  font-weight: 800;
}

.milestone-box {
  margin-top: auto;
  padding: 12px;
  background: #040911;
  border: 1px dashed #1b344e;
  border-radius: 10px;
}

.milestone-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 4px;
}

.milestone-box p {
  margin: 0;
  font-size: 12px;
  color: #98b0c7;
  line-height: 1.4;
}

/* Tech Matrix */
.roadmap-tech-matrix {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #132438;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.matrix-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.matrix-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.matrix-chip {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #071424;
  border: 1px solid #18334e;
  color: #b7d0e8;
}

/* 404 Page Styling */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.error-content {
  max-width: 580px;
  margin: auto;
}

.error-code {
  font-size: clamp(80px, 14vw, 140px);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, #16d9ff, #4f7cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 24px;
  background: #040912;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
}

.footer-grid a:not(.brand) {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0;
  transition: color 0.15s;
}

.footer-grid a:not(.brand):hover {
  color: var(--cyan);
}

.footer-grid p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

/* ========================================================
   ARTICLE / TUTORIAL DETAIL PAGE STYLES
   ======================================================== */

.article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 80% 20%, rgba(22, 217, 255, 0.08), transparent 40%);
}

.article-header h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.03em;
  margin: 16px 0;
  line-height: 1.2;
}

.article-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 820px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.article-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  padding: 50px 0 80px;
  align-items: start;
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #d1e2f2;
}

.article-body h2 {
  font-size: 26px;
  margin: 45px 0 18px;
  color: #fff;
  letter-spacing: -0.02em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.article-body h3 {
  font-size: 20px;
  margin: 30px 0 14px;
  color: var(--cyan);
}

.article-body p {
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px 20px;
  padding: 0;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body strong {
  color: #fff;
}

.article-body code:not(pre code) {
  background: #0d1e30;
  color: var(--cyan);
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  border: 1px solid #163654;
}

/* Code Card in Articles */
.code-card {
  margin: 28px 0;
  border: 1px solid #1a324a;
  border-radius: 12px;
  overflow: hidden;
  background: #040911;
}

.code-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #081422;
  border-bottom: 1px solid #172c42;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #7994ad;
}

.code-card pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #d1e5f8;
}

/* Callout Boxes */
.callout {
  padding: 20px 24px;
  border-radius: 12px;
  margin: 28px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
}

.callout-icon {
  font-size: 20px;
  line-height: 1;
}

.callout-info {
  background: #061828;
  border: 1px solid #15456b;
  color: #a4d2f5;
}

.callout-tip {
  background: #06201b;
  border: 1px solid #105944;
  color: #92eec8;
}

.callout-warning {
  background: #241808;
  border: 1px solid #6b4c10;
  color: #f7ce86;
}

/* Sidebar / Table of Contents */
.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.toc-card {
  background: #081321;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.toc-card h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-list a {
  font-size: 13px;
  color: #98b0c7;
  transition: color 0.15s;
  display: block;
}

.toc-list a:hover {
  color: var(--cyan);
}

.author-card {
  background: #081321;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-header img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
}

.author-header strong {
  display: block;
  font-size: 15px;
}

.author-header span {
  font-size: 12px;
  color: var(--muted);
}

.author-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Article Navigation */
.article-nav-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.article-nav-card {
  padding: 20px;
  background: #081321;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, border-color 0.2s;
}

.article-nav-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.nav-card-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.article-nav-card strong {
  font-size: 15px;
  color: #fff;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .article-sidebar {
    position: static;
  }
  .article-nav-cards {
    grid-template-columns: 1fr;
  }
}


/* Responsive Media Queries */
@media (max-width: 1024px) {
  .roadmap-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: #07101b;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .nav.open a {
    padding: 13px;
  }
  .menu-btn {
    display: block;
  }
  .nav-cta {
    display: none;
  }
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .hero-code {
    min-height: 340px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-grid,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-head {
    display: block;
  }
  .section-head > p {
    margin-top: 15px;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }
  .nav-wrap {
    height: 66px;
  }
  .hero-grid {
    padding: 60px 0;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-stats {
    gap: 15px;
    flex-wrap: wrap;
  }
  .feature-grid,
  .article-grid,
  .video-grid,
  .tool-grid,
  .project-grid,
  .path-grid,
  .roadmap-timeline {
    grid-template-columns: 1fr;
  }
  .project-card.featured {
    grid-column: auto;
    display: block;
  }
  .project-visual {
    min-height: 210px;
  }
  .search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .search {
    width: 100%;
  }
  .filter-row {
    margin-top: 10px;
  }
  .page-hero {
    padding: 70px 0 45px;
  }
  .section {
    padding: 60px 0;
  }
  .roadmap-block {
    padding: 24px 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .floating-chip {
    display: none;
  }
}
