html{
  background-color: #111827;
}

:root {
  --bg-main: #0b0f14;
  --bg-panel: rgba(255, 255, 255, 0.05);
  --bg-panel-border: rgba(255, 255, 255, 0.12);

  --text-primary: #e6edf3;
  --text-secondary: #9ba3af;

  --accent: #6eaae2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  background: radial-gradient(
    circle at top left,
    #111827,
    var(--bg-main)
  );
  color: var(--text-primary);
  line-height: 1.6;
  background-size: 200% 200%;
  animation: bgShift 20s ease infinite;
  padding-top: 4.5rem;
}


.navbar {
  position: fixed;
  top: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  background: rgba(15, 20, 30, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: none;
  border-radius: 999px;

  padding: 0.7rem 1.2rem;
}


.nav-list {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text-secondary);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: color 0.25s ease, background 0.25s ease;
  text-align: center;
}

.nav-list a:hover {
  color: var(--text-primary);
}

.nav-list a.active {
  color: var(--accent);
}

.nav-list a:active,
.nav-list a:focus,
.nav-list a:focus-visible {
  background: transparent;
}


.navbar a:focus:not(:focus-visible) {
  outline: none;
  background: none;
}
.navbar a:focus-visible {
  outline: 2px solid rgba(127, 178, 255, 0.6);
  outline-offset: 2px;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem;
}


section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-panel);
  border: none;
  border-radius: 14px;
  backdrop-filter: blur(10px);

  animation: fadeUp 0.8s ease forwards;
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

h1::before {
  content: "> ";
  color: var(--accent);
}

h2 {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.5rem;
}


.hero {
  border-left: 3px solid var(--accent);
  padding-left: 2.5rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  animation: lineGrow 0.8s ease-out forwards;
}

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

.hero h3::after {
  content: "_";
  margin-left: 4px;
  animation: blink 1.2s steps(1) infinite;
}

.purpose,
.context {
  opacity: 0;
  transform: translateY(16px);
  animation: sectionReveal 0.9s ease-out forwards;
}

.context {
  animation-delay: 0.15s;
}

@keyframes sectionReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.purpose li {
  opacity: 0;
  transform: translateX(-6px);
  animation: listReveal 0.6s ease-out forwards;
}

.purpose li:nth-child(1) { animation-delay: 0.1s; }
.purpose li:nth-child(2) { animation-delay: 0.2s; }
.purpose li:nth-child(3) { animation-delay: 0.3s; }
.purpose li:nth-child(4) { animation-delay: 0.4s; }

@keyframes listReveal {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.purpose,
.context {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.purpose:hover,
.context:hover {
  transform: translateY(-3px);
}

.purpose,
.context {
  position: relative;
}

.purpose::before,
.context::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  animation: accentGrow 0.8s ease-out forwards;
}

.context::before {
  animation-delay: 0.2s;
}

@keyframes accentGrow {
  to {
    height: 100%;
  }
}

.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--bg-panel-border);
}


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


@keyframes lineGrow {
  to {
    height: 100%;
  }
}

@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.lab-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.lab-header {
  margin-bottom: 3rem;
  padding-left: 2.5rem;
  border-left: 3px solid var(--accent);
}

.lab-header h1 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.lab-header h1::before {
  content: "> ";
  color: var(--accent);
}

.lab-header p {
  color: var(--text-secondary);
}


.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .lab-grid {
    grid-template-columns: 1fr;
  }
}


.lab-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--bg-panel-border);
  border-radius: 14px;
  padding: 1.8rem;
  backdrop-filter: blur(10px);

  opacity: 0;
  animation: cardReveal 0.8s ease-out forwards;
  transition: transform 0.3s ease;
}

.lab-card:nth-child(1) { animation-delay: 0.1s; }
.lab-card:nth-child(2) { animation-delay: 0.2s; }
.lab-card:nth-child(3) { animation-delay: 0.3s; }
.lab-card:nth-child(4) { animation-delay: 0.4s; }

.lab-card:hover {
  transform: translateY(-4px);
}

.lab-card h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.lab-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.lab-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(79, 156, 255, 0.15);
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}