:root {
  --bg: #0d1117;
  --surface: #121926;
  --surface-soft: #1a2333;
  --surface-alt: #f3f6fb;
  --text: #e8edf7;
  --text-dark: #162033;
  --muted: #a8b3c9;
  --accent: #2aa1ff;
  --accent-2: #00c289;
  --border: #28344a;
  --shadow: 0 12px 30px rgba(8, 13, 24, 0.28);
  --radius-lg: 18px;
  --radius-md: 12px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 15% -10%,
      rgba(42, 161, 255, 0.2),
      transparent 34%
    ),
    radial-gradient(
      circle at 90% -20%,
      rgba(0, 194, 137, 0.18),
      transparent 32%
    ),
    var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #ffffff;
  color: #111111;
  padding: 0.8rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
}

.section-rail {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 105;
  display: grid;
  gap: 0.45rem;
}

.section-rail a {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #5278a8;
  background: rgba(13, 28, 46, 0.8);
  display: inline-block;
}

.section-rail a.is-active {
  background: #2aa1ff;
  box-shadow: 0 0 0 3px rgba(42, 161, 255, 0.22);
}

.contact-quickbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 108;
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem;
  border-radius: 999px;
  border: 1px solid #304a6e;
  background: rgba(10, 18, 30, 0.9);
  transition: transform 0.3s ease;
}

.contact-quickbar.is-visible {
  transform: translate(-50%, 0.75rem);
}

.contact-quickbar a {
  color: #d8e8fb;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.contact-quickbar a:hover,
.contact-quickbar a:focus-visible {
  background: rgba(42, 161, 255, 0.2);
}

.site-header {
  min-height: 100vh;
}

.nav {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 1rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0.6rem;
  z-index: 100;
  background: rgba(11, 16, 26, 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 0.65rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #08101d;
  display: grid;
  place-items: center;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
}

.brand-text {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #f7faff;
  display: block;
  margin: 5px auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.54rem 0.75rem;
  border-radius: 10px;
  font-size: 0.92rem;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: #ffffff;
  background: rgba(42, 161, 255, 0.2);
}

.section-shell {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 5.4rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 92px);
  padding-top: 3.6rem;
  padding-bottom: 4.2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  color: var(--accent-2);
  margin: 0 0 0.8rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(2.05rem, 4vw, 3.5rem);
  line-height: 1.2;
}

.hero-copy {
  margin: 1rem 0 1.2rem;
  color: var(--muted);
  max-width: 62ch;
}

.tech-ribbon {
  border-left: 3px solid var(--accent);
  margin: 0;
  padding: 0.25rem 0 0.25rem 0.9rem;
  color: #d7e4f5;
}

.hero-cta-row {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.65rem 0.92rem;
  font-size: 0.92rem;
  font-weight: 600;
  transition: 0.25s ease;
}

.btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.btn-primary {
  color: #08111d;
  background: linear-gradient(130deg, #33a6ff, #6fd7ff);
}

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

.btn-secondary {
  color: #f0f7ff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-ghost {
  color: #dce7f7;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.code-panel {
  background: linear-gradient(165deg, #111827, #0f1724);
  border: 1px solid #2a3a52;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #2a3a52;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.panel-header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.panel-header span:nth-child(1) {
  background: #ff6363;
}

.panel-header span:nth-child(2) {
  background: #ffc857;
}

.panel-header span:nth-child(3) {
  background: #67d86f;
}

.panel-header p {
  margin: 0 0 0 0.5rem;
  color: #9fb3cf;
  font-size: 0.85rem;
}

.panel-lines {
  padding: 1rem;
}

.panel-lines p {
  margin: 0.38rem 0;
  color: #c5d6ef;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(8px);
  animation: lineIn 0.55s ease forwards;
}

.panel-lines p:nth-child(1) {
  animation-delay: 0.2s;
}
.panel-lines p:nth-child(2) {
  animation-delay: 0.35s;
}
.panel-lines p:nth-child(3) {
  animation-delay: 0.5s;
}
.panel-lines p:nth-child(4) {
  animation-delay: 0.65s;
}
.panel-lines p:nth-child(5) {
  animation-delay: 0.8s;
}
.panel-lines p:nth-child(6) {
  animation-delay: 0.95s;
}

.line-no {
  color: #5d779d;
  margin-right: 0.75rem;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.flow-strip div {
  text-align: center;
  padding: 0.65rem 0.55rem;
  border: 1px solid #304567;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.flow-strip div::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.45rem;
  width: 0.7rem;
  height: 1px;
  background: #5d7598;
}

.flow-strip div:last-child::after {
  display: none;
}

.section-title-wrap {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

h2 {
  font-family: "Sora", "Segoe UI", sans-serif;
  margin: 0;
  font-size: clamp(1.52rem, 2.4vw, 2.2rem);
  line-height: 1.25;
}

.section-subtitle {
  margin-top: 0.7rem;
  color: #5c6982;
}

.highlights {
  background: var(--surface-alt);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  margin-top: 2.2rem;
}

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

.highlight-card {
  padding: 1.2rem;
  border: 1px solid #d7dfed;
  border-radius: var(--radius-md);
  background: #ffffff;
}

.highlight-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.highlight-card p {
  margin: 0;
  color: #39475f;
}

.about {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.6rem;
  align-items: start;
}

.about-media img {
  border-radius: 14px;
  border: 1px solid #2b3750;
  box-shadow: var(--shadow);
}

.about-copy p {
  color: #c4d3e8;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.about-pills span {
  border: 1px solid #2c4368;
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
  color: #c7daf2;
  font-size: 0.86rem;
}

.experience {
  background: #0e141f;
  border-radius: var(--radius-lg);
}

.timeline {
  border-left: 2px solid #2b3d56;
  margin-left: 0.35rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 1rem;
}

.timeline-item {
  border: 1px solid #2a364a;
  border-radius: var(--radius-md);
  background: #121c2c;
  overflow: hidden;
}

.timeline-item.featured {
  border-color: #2aa1ff;
  box-shadow: 0 0 0 1px rgba(42, 161, 255, 0.2);
}

.timeline-head {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
}

.timeline-head:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}

.timeline-role {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 600;
}

.timeline-company,
.timeline-duration {
  color: #aac0de;
  font-size: 0.92rem;
}

.timeline-body {
  padding: 0 1.1rem 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.timeline-item.is-open .timeline-body {
  max-height: 1000px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.tag-row span {
  border: 1px solid #3d5a84;
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  font-size: 0.78rem;
  color: #d2e2f7;
}

.timeline-body ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #cbddf5;
}

.impact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
}

.impact-chips span {
  border: 1px solid #38567d;
  color: #cce1fc;
  background: rgba(42, 161, 255, 0.08);
  border-radius: 999px;
  font-size: 0.76rem;
  padding: 0.2rem 0.48rem;
}

.project-shell {
  background: linear-gradient(155deg, #f8fbff, #e8f1fb);
  color: #1a2740;
  border: 1px solid #cfdef0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  display: grid;
  gap: 1.4rem;
}

.project-intro p {
  margin-top: 0.5rem;
  color: #3c4d6a;
}

.project .tag-row span {
  color: #1f3150;
  border-color: #90aed7;
}

.architecture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.arch-card {
  border: 1px solid #bfd1eb;
  border-radius: var(--radius-md);
  padding: 1rem;
  background: #ffffff;
}

.arch-card h4 {
  margin: 0 0 0.65rem;
  font-size: 0.96rem;
}

.arch-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
}

.arch-flow div {
  border: 1px solid #acc5e8;
  border-radius: 10px;
  padding: 0.42rem 0.58rem;
  background: #f6faff;
  font-size: 0.84rem;
}

.arch-flow div.is-pulse {
  border-color: #2aa1ff;
  box-shadow: 0 0 0 2px rgba(42, 161, 255, 0.18);
}

.arch-flow .arrow {
  color: #4b6b96;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-card {
  border: 1px solid #bfd2ec;
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 0.88rem;
}

.feature-card h4 {
  margin: 0 0 0.34rem;
  font-size: 0.98rem;
}

.feature-card p {
  margin: 0;
  color: #415673;
}

.skills {
  background: var(--surface-alt);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.skill-cluster {
  border: 1px solid #d7e2f1;
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 1rem;
}

.skill-cluster h3 {
  margin: 0 0 0.4rem;
  font-size: 1.03rem;
}

.skill-cluster p {
  margin: 0;
  color: #41516a;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.72rem;
}

.principles p {
  margin: 0;
  border: 1px solid #2f4668;
  border-radius: 10px;
  padding: 0.75rem;
  background: #121d2f;
  color: #c9dcf4;
}

.certifications {
  background: #0e141f;
  border-radius: var(--radius-lg);
}

.cert-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.cert-filter {
  border: 1px solid #35547d;
  border-radius: 999px;
  background: transparent;
  color: #b9cde8;
  padding: 0.35rem 0.68rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.cert-filter:hover,
.cert-filter:focus-visible,
.cert-filter.is-active {
  color: #edf6ff;
  border-color: #2aa1ff;
  background: rgba(42, 161, 255, 0.18);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.cert-card {
  border: 1px solid #2b3950;
  border-radius: 12px;
  overflow: hidden;
  background: #121c2c;
  display: flex;
  flex-direction: column;
}

.cert-preview {
  background: #0d1523;
  display: grid;
  place-items: center;
  min-height: 180px;
  max-height: 210px;
  border-bottom: 1px solid #2b3950;
  overflow: hidden;
}

.cert-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-preview a {
  color: #9fd0ff;
  text-decoration: none;
  border: 1px solid #37557c;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.86rem;
}

.cert-preview-trigger {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #9fd0ff;
  cursor: pointer;
  padding: 0;
}

.cert-preview-trigger:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}

.cert-content {
  padding: 0.78rem;
  display: grid;
  gap: 0.28rem;
  align-content: start;
}

.cert-content h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #e3edfb;
}

.cert-content p {
  margin: 0;
  color: #9fb2ce;
  font-size: 0.84rem;
  word-break: break-word;
}

.cert-content .cert-open {
  margin-top: 0.62rem;
  display: inline-block;
  color: #7ec2ff;
  text-decoration: none;
  font-size: 0.84rem;
}

.edu-card {
  border: 1px solid #304666;
  border-radius: var(--radius-md);
  padding: 1rem;
  max-width: 620px;
  background: #121d2f;
}

.edu-card h3,
.edu-card p {
  margin: 0.2rem 0;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.repo-card {
  border: 1px solid #2b3a52;
  border-radius: var(--radius-md);
  padding: 1rem;
  text-decoration: none;
  background: #121b2a;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.repo-card:hover,
.repo-card:focus-visible {
  border-color: #4f84c2;
  transform: translateY(-3px);
}

.repo-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.repo-card p {
  margin: 0;
  color: #afc2de;
}

.github-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.contact-card {
  border: 1px solid #2b3c57;
  border-radius: var(--radius-md);
  max-width: 720px;
  background: #121b2b;
  padding: 1rem;
}

.contact-card p {
  margin: 0.45rem 0;
}

.contact-card a {
  color: #8fccff;
}

.site-footer {
  border-top: 1px solid #243248;
  margin-top: 2rem;
  padding: 1.2rem;
  text-align: center;
  color: #93a8c5;
}

.home-fab {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 110;
  padding: 0.62rem 0.84rem;
  border-radius: 999px;
  border: 1px solid #4f84c2;
  background: rgba(12, 22, 37, 0.9);
  color: #deebfb;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(2, 8, 18, 0.4);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease;
}

.home-fab:hover,
.home-fab:focus-visible {
  background: rgba(42, 161, 255, 0.24);
}

.home-fab:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 8, 16, 0.86);
  z-index: 120;
  padding: 1rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-stage {
  width: min(94vw, 980px);
  max-height: 88vh;
  border: 1px solid #2e4467;
  border-radius: 14px;
  background: #0f1a2a;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.lightbox-stage img {
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-stage iframe {
  width: min(94vw, 980px);
  height: 82vh;
  border: 0;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid #36567f;
  background: rgba(12, 22, 37, 0.92);
  color: #d9e8fc;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.35rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.3rem;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(42, 161, 255, 0.3);
}

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .highlights-grid,
  .skills-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .about {
    grid-template-columns: 1fr;
  }

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

  .about-media img {
    width: min(100%, 280px);
  }

  .architecture-grid,
  .principles,
  .repo-grid {
    grid-template-columns: 1fr;
  }
}

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

  .nav {
    border-radius: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin-top: 0.4rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .hero-cta-row {
    gap: 0.55rem;
  }

  .flow-strip {
    grid-template-columns: 1fr 1fr;
  }

  .about-media img {
    width: min(100%, 240px);
  }

  .section-rail {
    right: 0.45rem;
  }

  .contact-quickbar {
    width: calc(100% - 1.4rem);
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: min(var(--max), calc(100% - 1.4rem));
    padding: 3.8rem 0;
  }

  .highlights-grid,
  .skills-grid,
  .feature-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .about-media img {
    width: min(100%, 220px);
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .home-fab {
    right: 0.65rem;
    bottom: 0.9rem;
    padding: 0.56rem 0.72rem;
    font-size: 0.8rem;
  }

  .section-rail {
    display: none;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
  }

  .timeline {
    margin-left: 0;
    padding-left: 0.85rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }

  .contact-quickbar,
  .home-fab,
  .section-rail a,
  .lightbox-close,
  .lightbox-nav {
    transition: none;
  }
}

/* Legacy compatibility for existing secondary pages. */
.navbar {
  background: #0f1726;
  padding: 0.6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.navbar a {
  color: #d4e2f4;
  text-decoration: none;
  padding: 0.4rem 0.58rem;
  border-radius: 8px;
}

.navbar a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.navbar .icon {
  margin-left: auto;
  display: none;
}

@media (max-width: 820px) {
  .navbar a:not(.icon) {
    display: none;
  }

  .navbar .icon {
    display: inline-block;
  }

  .navbar.responsive a {
    display: block;
    width: 100%;
  }
}
