* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

:root {
  --color-bg: #05020a;
  --color-bg-secondary: #110a19;
  --color-grid: rgba(0, 255, 204, 0.15);
  --color-accent: #00ffc6;
  --color-accent-alt: #ff71ef;
  --color-text: #f8f7ff;
  --color-muted: rgba(248, 247, 255, 0.72);
  --color-button-glow: rgba(0, 255, 198, 0.4);
  --color-border: rgba(0, 255, 198, 0.6);
  --color-card: rgba(15, 10, 25, 0.75);
  --shadow-neon: 0 0 12px rgba(0, 255, 198, 0.55);
  --shadow-soft: 0 30px 80px rgba(2, 0, 42, 0.45);
  --font-display: "Press Start 2P", system-ui;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --layout-max: 1100px;
  --transition-base: 200ms ease-in-out;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-text);
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 113, 239, 0.25),
      transparent 55%
    ),
    radial-gradient(circle at 80% 10%, rgba(0, 255, 198, 0.28), transparent 50%),
    linear-gradient(140deg, #04010f 0%, #090222 45%, #120246 100%);
  position: relative;
  overflow-x: hidden;
}

body.boot-active {
  overflow: hidden;
}

.boot-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: radial-gradient(
      circle at 15% 20%,
      rgba(0, 255, 198, 0.12),
      transparent 60%
    ),
    radial-gradient(
      circle at 85% 25%,
      rgba(255, 113, 239, 0.12),
      transparent 55%
    ),
    linear-gradient(160deg, #01000c 0%, #020022 40%, #04003d 100%);
  color: rgba(178, 255, 255, 0.9);
  font-family: "Press Start 2P", monospace;
  letter-spacing: 1.6px;
  z-index: 9999;
  transition: opacity 480ms ease-in-out, visibility 480ms ease-in-out;
}

.boot-screen--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-screen__frame {
  position: relative;
  width: min(860px, 92vw);
  max-height: 88vh;
  border: 1px solid rgba(0, 255, 198, 0.45);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 255, 198, 0.25), 0 0 120px rgba(19, 0, 80, 0.6);
  background: rgba(4, 1, 24, 0.85);
}

.boot-screen__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 113, 239, 0.35);
  border-radius: 18px;
  opacity: 0.35;
  pointer-events: none;
}

.boot-screen__glow {
  position: absolute;
  inset: -25% -40% 40% -40%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 198, 0.18) 0%,
    transparent 65%
  );
  opacity: 0.9;
  filter: blur(12px);
}

.boot-screen__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 32px 28px;
  background: linear-gradient(
    180deg,
    rgba(6, 0, 32, 0.92) 0%,
    rgba(4, 0, 22, 0.85) 100%
  );
  border: 1px solid rgba(0, 255, 198, 0.25);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.55);
}

.boot-screen__header,
.boot-screen__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.boot-screen__badge {
  color: rgba(128, 255, 234, 0.95);
  letter-spacing: 3px;
}

.boot-screen__uptime {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.7);
}

.boot-screen__divider {
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 198, 0),
    rgba(0, 255, 198, 0.55),
    rgba(255, 113, 239, 0)
  );
  box-shadow: 0 0 8px rgba(0, 255, 198, 0.45);
}

.boot-screen__output {
  flex: 1;
  min-height: 220px;
  max-height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
  color: rgba(168, 255, 246, 0.9);
  font-size: 0.7rem;
  line-height: 1.6;
  text-transform: uppercase;
}

.boot-screen__line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
}

.boot-screen__prompt {
  color: rgba(255, 113, 239, 0.9);
  letter-spacing: 2px;
  min-width: 64px;
}

.boot-screen__text {
  flex: 1;
  color: rgba(158, 255, 232, 0.9);
}

.boot-screen__status {
  color: rgba(0, 255, 198, 0.85);
  letter-spacing: 2px;
}

.boot-screen__cursor {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  animation: bootCursorBlink 900ms steps(2, start) infinite;
}

.boot-screen__cursor.is-off {
  opacity: 0.2;
}

.boot-screen__scan {
  position: absolute;
  inset: -30% -60%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(0, 0, 0, 0) 90%
  );
  mix-blend-mode: screen;
  opacity: 0.4;
  animation: bootScan 4.2s linear infinite;
}

@keyframes bootCursorBlink {
  50% {
    opacity: 0;
  }
}

@keyframes bootScan {
  0% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(50%);
    opacity: 0.25;
  }
  100% {
    transform: translateY(150%);
    opacity: 0.4;
  }
}

@media (max-width: 680px) {
  .boot-screen {
    padding: 40px 12px;
  }

  .boot-screen__inner {
    padding: 28px 20px 24px;
  }

  .boot-screen__header,
  .boot-screen__footer {
    font-size: 0.52rem;
  }

  .boot-screen__prompt {
    min-width: 48px;
    font-size: 0.55rem;
  }

  .boot-screen__output {
    font-size: 0.6rem;
    gap: 10px;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 24px 24px;
  mix-blend-mode: screen;
  opacity: 0.35;
  pointer-events: none;
  z-index: -2;
}

.crt-theme {
  position: relative;
}

.scanline-overlay,
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

.scanline-overlay {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  opacity: 0.4;
}

.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23noise)' opacity='0.12'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
  opacity: 0.35;
  animation: noiseShift 420ms steps(2) infinite;
}

@keyframes noiseShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-5%, 3%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.site-header {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    120deg,
    rgba(4, 0, 32, 0.85) 0%,
    rgba(8, 0, 24, 0.55) 100%
  );
  border: 1px solid rgba(0, 255, 198, 0.15);
  box-shadow: var(--shadow-soft);
}

.logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 4px;
  color: var(--color-accent);
  text-shadow: 0 0 12px rgba(0, 255, 198, 0.5);
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--color-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
  transition: color var(--transition-base);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-accent) 0%,
    var(--color-accent-alt) 100%
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.toggle-mode {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 2px;
  background: transparent;
  color: var(--color-accent-alt);
  border: 1px solid var(--color-border);
  padding: 10px 18px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base), color var(--transition-base);
}

.toggle-mode:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
  color: var(--color-text);
}

main {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 40px 24px 120px;
}

.hero {
  margin-top: 40px;
  margin-bottom: 120px;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero__content {
  position: relative;
}

.hero__eyebrow {
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: var(--color-accent-alt);
  background: rgba(255, 113, 239, 0.12);
  padding: 12px 16px;
  border: 1px solid rgba(255, 113, 239, 0.4);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 3px;
  margin: 0 0 20px;
  text-shadow: 0 0 14px rgba(0, 255, 198, 0.5);
}

.hero__subtitle {
  font-size: 1.4rem;
  margin: 0 0 16px;
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(0, 255, 198, 0.35);
  min-height: 1.6em;
}

.hero__blurb {
  line-height: 1.6;
  max-width: 460px;
  color: var(--color-muted);
  margin-bottom: 36px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero__chips--primary {
  margin-bottom: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 113, 239, 0.35);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--color-accent-alt);
  background: rgba(255, 113, 239, 0.08);
  box-shadow: 0 0 12px rgba(255, 113, 239, 0.25);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.chip--pulse {
  animation: chipPulse 1.8s ease-in-out;
}

.chip--solid {
  border: 1px solid rgba(0, 255, 198, 0.55);
  background: linear-gradient(
    120deg,
    rgba(0, 255, 198, 0.35),
    rgba(255, 113, 239, 0.3)
  );
  color: var(--color-text);
  box-shadow: 0 0 18px rgba(0, 255, 198, 0.35),
    0 0 16px rgba(255, 113, 239, 0.2);
}

.chip--highlight {
  position: relative;
  border-color: rgba(255, 255, 137, 0.7);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 137, 0.6) 0%,
    rgba(255, 140, 255, 0.55) 50%,
    rgba(128, 255, 234, 0.5) 100%
  );
  color: #12010f;
  text-shadow: 0 0 10px rgba(255, 255, 137, 0.6);
  box-shadow: 0 0 24px rgba(255, 255, 137, 0.55),
    0 0 30px rgba(128, 255, 234, 0.45);
}

.chip--highlight::before {
  content: "*";
  font-size: 0.85rem;
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 12px rgba(255, 255, 137, 0.8);
}

@keyframes chipPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(255, 113, 239, 0.25);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 24px rgba(0, 255, 198, 0.45);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(255, 113, 239, 0.25);
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base), background var(--transition-base);
}

.btn--primary {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 198, 0.85) 0%,
    rgba(0, 143, 255, 0.75) 100%
  );
  box-shadow: 0 0 20px var(--color-button-glow);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(0, 255, 198, 0.6);
}

.btn--ghost {
  background: rgba(255, 113, 239, 0.08);
  color: var(--color-accent-alt);
}

.btn--ghost:hover {
  background: rgba(255, 113, 239, 0.18);
  transform: translateY(-2px);
}

.hero__terminal {
  position: relative;
}

.terminal {
  background: rgba(3, 0, 23, 0.9);
  border: 1px solid rgba(0, 255, 198, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 255, 198, 0.4);
  border-radius: 12px;
  overflow: hidden;
}

.terminal__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 198, 0.15) 0%,
    rgba(255, 113, 239, 0.12) 100%
  );
  border-bottom: 1px solid rgba(0, 255, 198, 0.3);
}

.terminal__title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 2px;
}

.led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.led--red {
  background-color: #ff5f73;
}
.led--amber {
  background-color: #ffcf6b;
}
.led--green {
  background-color: #00ff9d;
}

.terminal__body {
  font-family: "Press Start 2P", monospace;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  padding: 28px;
  color: rgba(0, 255, 198, 0.9);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: radial-gradient(
      circle at top,
      rgba(0, 255, 198, 0.08),
      transparent 55%
    ),
    #030015;
}

.terminal__status {
  color: var(--color-accent-alt);
}

.terminal__cursor {
  animation: cursorBlink 750ms steps(2, start) infinite;
}

@keyframes cursorBlink {
  50% {
    opacity: 0;
  }
}

.section {
  margin-bottom: 110px;
}

.section__header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section__subtitle {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 5px;
  color: var(--color-accent);
  border: 1px solid rgba(0, 255, 198, 0.2);
  padding: 8px 14px;
}

.section--about {
  background: linear-gradient(
    135deg,
    rgba(17, 10, 25, 0.7) 0%,
    rgba(7, 2, 22, 0.75) 100%
  );
  padding: 60px;
  border: 1px solid rgba(0, 255, 198, 0.15);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.about__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.about__lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-text);
  border-left: 4px solid var(--color-accent);
  padding-left: 24px;
}

.about__details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.about__details li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(0, 255, 198, 0.2);
  padding-bottom: 10px;
}

.about__details .label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 2px;
}

.about__details .value {
  font-size: 1.1rem;
  color: var(--color-accent);
}

.about__story {
  display: grid;
  gap: 18px;
  color: var(--color-muted);
  line-height: 1.8;
}

.about__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.about__list li {
  position: relative;
  padding-left: 28px;
}

.about__list li::before {
  content: ">_";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--color-accent);
}

.section--projects .projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.projects__grid--live {
  margin-top: 36px;
}

.projects__grid.projects__grid--live {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section--experience {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25),
    rgba(0, 255, 198, 0.07)
  );
  border: 1px solid rgba(0, 255, 198, 0.18);
  border-radius: 24px;
  padding: 60px;
  box-shadow: var(--shadow-soft);
}

.experience__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.xp-card {
  background: rgba(6, 0, 34, 0.8);
  border: 1px solid rgba(0, 255, 198, 0.22);
  border-radius: 18px;
  padding: 32px;
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.xp-card::after {
  content: "";
  position: absolute;
  inset: -50% -50% 60% -50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 198, 0.12) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
}

.xp-card:hover::after {
  opacity: 1;
}

.xp-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
  letter-spacing: 2px;
}

.xp-card__meta {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin: 0;
}

.xp-card__body {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.xp-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: var(--color-muted);
}

.xp-card__list li {
  position: relative;
  padding-left: 22px;
}

.xp-card__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--color-accent-alt);
}

.experience__timeline {
  position: relative;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 198, 0.2) 0%,
    rgba(255, 113, 239, 0.35) 100%
  );
  opacity: 0.6;
}

.timeline__item {
  position: relative;
}

.timeline__content {
  background: rgba(10, 0, 38, 0.8);
  border: 1px solid rgba(255, 113, 239, 0.25);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.timeline__content h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--color-accent-alt);
}

.timeline__content p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.card {
  background: var(--color-card);
  border: 1px solid rgba(0, 255, 198, 0.25);
  border-radius: 16px;
  padding: 32px;
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.card::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto;
  height: 150%;
  background: conic-gradient(
    from 120deg,
    transparent,
    rgba(0, 255, 198, 0.1),
    transparent 70%
  );
  transform: rotate(5deg);
  transition: opacity var(--transition-base);
  opacity: 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-neon);
}

.card:hover::before {
  opacity: 1;
}

.card__tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--color-accent);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
}

.card__body {
  color: var(--color-muted);
  line-height: 1.7;
}

.card__meta {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;

  .card--live {
    border-color: rgba(255, 113, 239, 0.4);
    background: rgba(22, 0, 32, 0.75);
  }

  .card--live .card__tag {
    color: var(--color-accent-alt);
  }
  letter-spacing: 2px;
  margin-top: 12px;
  color: var(--color-accent);
}

.card__link {
  color: var(--color-accent-alt);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 2px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.section--skills {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2),
    rgba(0, 255, 198, 0.05)
  );
  border: 1px solid rgba(0, 255, 198, 0.12);
  border-radius: 24px;
  padding: 60px;
}

.skills__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.skills__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.skills__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--color-muted);
}

.skills__list li::before {
  content: "■";
  color: var(--color-accent);
  margin-right: 10px;
}

.section--contact {
  background: linear-gradient(
    135deg,
    rgba(255, 113, 239, 0.12),
    rgba(0, 255, 198, 0.1)
  );
  border: 1px solid rgba(255, 113, 239, 0.3);
  border-radius: 24px;
  padding: 60px;
  box-shadow: var(--shadow-soft);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.contact__copy {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer {
  max-width: var(--layout-max);
  margin: 0 auto 80px;
  padding: 40px 24px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

.footer__social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.footer__social a {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--color-accent);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid rgba(0, 255, 198, 0.25);
  border-radius: 999px;
  background: rgba(0, 255, 198, 0.08);
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.footer__social a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
}

.footer__marquee {
  overflow: hidden;
  border-top: 1px solid rgba(0, 255, 198, 0.2);
  border-bottom: 1px solid rgba(0, 255, 198, 0.2);
  margin-bottom: 24px;
  padding: 12px 0;
  position: relative;
}

.footer__marquee span {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 4px;
  margin-right: 60px;
  animation: marquee 12s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.footer__copy {
  font-size: 0.9rem;
  letter-spacing: 2px;
}

body.theme-alt {
  --color-bg: #120326;
  --color-bg-secondary: #1d032d;
  --color-accent: #fffb89;
  --color-accent-alt: #80ffea;
  --color-text: #fff9f9;
  --color-muted: rgba(255, 255, 255, 0.7);
  --color-border: rgba(255, 251, 137, 0.35);
  --color-card: rgba(40, 0, 48, 0.7);
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 251, 137, 0.28),
      transparent 55%
    ),
    radial-gradient(
      circle at 75% 15%,
      rgba(128, 255, 234, 0.25),
      transparent 50%
    ),
    linear-gradient(140deg, #220019 0%, #2a0139 45%, #32034a 100%);
  transition: background 400ms ease;
}

body.theme-alt .site-header,
body.theme-alt .section--about,
body.theme-alt .section--skills,
body.theme-alt .section--contact {
  transition: background 400ms ease;
}

body.theme-alt .logo,
body.theme-alt .hero__subtitle,
body.theme-alt .section__subtitle {
  color: var(--color-accent);
}

body.theme-alt .btn--primary {
  background: linear-gradient(
    135deg,
    rgba(255, 251, 137, 0.85) 0%,
    rgba(255, 143, 9, 0.7) 100%
  );
  box-shadow: 0 0 20px rgba(255, 251, 137, 0.4);
}

body.theme-alt .btn--ghost {
  background: rgba(128, 255, 234, 0.12);
  color: #80ffea;
}

body.theme-alt .card__link {
  color: #80ffea;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .hero__grid,
  .section--projects .projects__grid,
  .experience__grid,
  .skills__columns,
  .contact__grid,
  .about__grid {
    grid-template-columns: 1fr;
  }

  .hero__terminal {
    order: -1;
  }

  .section--about,
  .section--experience,
  .section--skills,
  .section--contact {
    padding: 40px 28px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .timeline::before {
    display: none;
  }

  .timeline__item {
    padding-left: 0;
    padding-top: 0;
  }
}

@media (max-width: 620px) {
  main {
    padding: 32px 16px 80px;
  }

  .site-header {
    padding: 16px;
    flex-direction: column;
    gap: 14px;
  }

  .logo {
    font-size: 0.7rem;
    letter-spacing: 3px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 0.8rem;
  }

  .toggle-mode {
    font-size: 0.65rem;
    padding: 8px 14px;
  }

  .hero {
    margin-top: 20px;
    margin-bottom: 60px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__grid {
    gap: 28px;
  }

  .hero__content {
    text-align: center;
  }

  .hero__blurb {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__eyebrow {
    font-size: 0.6rem;
    letter-spacing: 2px;
    padding: 10px 12px;
  }

  .hero__title {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__blurb {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero__chips,
  .hero__chips--primary {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 24px;
  }

  .chip {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.56rem;
    letter-spacing: 1.4px;
  }

  .chip--highlight::before {
    margin-right: 5px;
    font-size: 0.7rem;
  }

  .terminal {
    max-width: 100%;
  }

  .terminal__header {
    padding: 12px;
  }

  .terminal__title {
    font-size: 0.6rem;
  }

  .terminal__body {
    font-size: 0.5rem;
    letter-spacing: 1px;
    padding: 20px 16px;
    min-height: 160px;
    gap: 10px;
  }

  /* Ensure hero content (chips + terminal) centers on narrow viewports */
  .hero__grid {
    justify-items: center;
  }

  .hero__terminal,
  .hero__content {
    width: 100%;
  }

  .hero__terminal {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* cap chips container so wide chips don't visually push to one side */
  .hero__chips,
  .hero__chips--primary {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
  }

  .section {
    margin-bottom: 60px;
  }

  .section__title {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .section__subtitle {
    font-size: 0.65rem;
    letter-spacing: 3px;
    padding: 6px 10px;
  }

  .section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .about__grid {
    gap: 28px;
  }

  .section--about,
  .section--experience,
  .section--skills,
  .section--contact {
    padding: 32px 20px;
  }

  .about__lead {
    font-size: 1rem;
    padding-left: 16px;
  }

  .about__details {
    gap: 12px;
  }

  .about__details .label {
    font-size: 0.6rem;
  }

  .about__details .value {
    font-size: 0.95rem;
    word-break: break-word;
  }

  .about__details li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .about__story {
    font-size: 0.9rem;
  }

  .about__list li {
    font-size: 0.9rem;
  }

  .about__list li::before {
    font-size: 0.58rem;
  }

  .card {
    padding: 24px;
  }

  .card__title {
    font-size: 0.85rem;
  }

  .card__body {
    font-size: 0.9rem;
  }

  .card__meta {
    font-size: 0.58rem;
  }

  .card__link {
    font-size: 0.65rem;
  }

  .xp-card {
    padding: 24px;
  }

  .xp-card__title {
    font-size: 0.85rem;
  }

  .xp-card__meta {
    font-size: 0.6rem;
  }

  .xp-card__body {
    font-size: 0.9rem;
  }

  .xp-card__list {
    font-size: 0.9rem;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .timeline::before {
    display: none;
  }

  .timeline__item {
    padding-left: 0;
    padding-top: 0;
  }

  .timeline__content {
    padding: 20px;
  }

  .timeline__content h3 {
    font-size: 0.75rem;
  }

  .timeline__content p {
    font-size: 0.85rem;
  }

  .skills__title {
    font-size: 0.8rem;
  }

  .skills__list {
    font-size: 0.9rem;
  }

  .contact__copy {
    font-size: 1rem;
  }

  .contact__grid {
    gap: 24px;
  }

  .projects__grid {
    gap: 24px;
  }

  .projects__grid.projects__grid--live {
    grid-template-columns: 1fr;
  }

  .contact__actions {
    width: 100%;
  }

  .btn {
    width: 100%;
    font-size: 0.75rem;
    padding: 12px 20px;
  }

  .footer__social {
    gap: 10px;
  }

  .footer__social a {
    font-size: 0.58rem;
    padding: 7px 12px;
  }

  .footer__marquee span {
    font-size: 0.65rem;
  }

  .footer__copy {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    width: 100%;
  }

  .site-nav {
    width: 100%;
  }

  .hero__title {
    font-size: 1.35rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .hero__blurb {
    font-size: 0.85rem;
  }

  .section--about,
  .section--experience,
  .section--skills,
  .section--contact {
    padding: 24px 16px;
  }

  .card,
  .xp-card {
    padding: 20px;
  }

  .projects__grid,
  .projects__grid.projects__grid--live,
  .skills__columns,
  .contact__grid {
    gap: 20px;
  }

  .contact__actions {
    display: grid;
    gap: 12px;
  }

  .timeline__content {
    padding: 18px;
  }

  .footer__social {
    gap: 8px;
  }

  .footer__social a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 410px) {
  /* Extra small screens - ensure perfect centering */
  main {
    padding: 24px 12px 60px;
  }

  .site-header {
    padding: 12px 8px;
  }

  .hero__grid {
    gap: 20px;
    justify-items: center;
  }

  .hero__content {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .hero__terminal {
    width: 100%;
    max-width: 340px;
    display: flex;
    justify-content: center;
  }

  .terminal {
    width: 100%;
    max-width: 100%;
  }

  .hero__chips,
  .hero__chips--primary {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .chip {
    padding: 8px 10px;
    font-size: 0.52rem;
    letter-spacing: 1px;
    word-break: break-word;
    hyphens: auto;
  }

  .hero__eyebrow {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    padding: 8px 10px;
  }

  .hero__title {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }

  .hero__blurb {
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 300px;
  }

  .terminal__body {
    padding: 16px 12px;
    font-size: 0.45rem;
    min-height: 140px;
  }

  .section--about,
  .section--experience,
  .section--skills,
  .section--contact {
    padding: 20px 12px;
    margin: 0 4px;
  }

  .card,
  .xp-card {
    padding: 16px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.7rem;
  }
}
