:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0f172a;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-strong: rgba(30, 41, 59, 0.86);
  --border: rgba(148, 163, 184, 0.22);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #22d3ee;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --green: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 24px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.28), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(52, 211, 153, 0.16), transparent 28rem),
    linear-gradient(180deg, #020617 0%, var(--bg) 42%, #020617 100%);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 75%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #001018;
  font-weight: 800;
  transition: top .2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.68);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.nav {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: #020617;
  box-shadow: 0 16px 40px rgba(56, 189, 248, .22);
}

.brand-text {
  color: #f8fafc;
}

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

.nav-links a {
  padding: .65rem .85rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
  transition: color .2s ease, background .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f8fafc;
  background: rgba(148, 163, 184, .13);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, .72);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

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

.section-shell.compact {
  padding-top: 2rem;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  margin: 0 0 .85rem;
  color: var(--accent-strong);
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.35rem;
  font-size: clamp(3rem, 7.2vw, 6.2rem);
  line-height: 1.08;
  letter-spacing: -.06em;
  text-wrap: balance;
}

h2 {
  margin-bottom: .85rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.055em;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.25;
}

.hero-copy,
.section-subtitle,
.contact-card p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: #020617;
  box-shadow: 0 18px 38px rgba(56, 189, 248, .22);
}

.button.secondary {
  border-color: var(--border);
  background: rgba(15, 23, 42, .5);
  color: #f8fafc;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-weight: 800;
}

.social-links a {
  text-decoration: none;
}

.social-links a:hover {
  color: var(--accent);
}

.hero-card,
.experience-card,
.project-card,
.skill-group,
.timeline-card,
.focus-card,
.contact-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 42, .82), rgba(15, 23, 42, .48));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.2rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  padding: .55rem .75rem;
  border: 1px solid rgba(52, 211, 153, .25);
  border-radius: 999px;
  background: rgba(52, 211, 153, .08);
  color: #bbf7d0;
  font-size: .83rem;
  font-weight: 900;
}

.pulse {
  width: .65rem;
  height: .65rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

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

.metric-grid article {
  min-height: 148px;
  padding: 1.1rem;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 20px;
  background: rgba(2, 6, 23, .38);
}

.metric-grid strong {
  display: block;
  margin-bottom: .45rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.06em;
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: .95rem;
}

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

.focus-card,
.project-card,
.skill-group,
.timeline-card {
  padding: 1.35rem;
}

.card-kicker,
.project-card-header,
.timeline-card span {
  color: var(--accent);
  font-size: .83rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.focus-card p,
.project-card p,
.skill-group p,
.timeline-card p,
.experience-card p,
.impact-list {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 2rem;
}

.experience-card {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.experience-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.experience-topline h3 {
  margin-bottom: .25rem;
}

.experience-topline p,
.experience-topline span {
  margin-bottom: 0;
  color: var(--muted);
}

.experience-topline span {
  flex: 0 0 auto;
  font-weight: 800;
}

.impact-list {
  display: grid;
  gap: .85rem;
  margin: 1.4rem 0 0;
  padding-left: 1.15rem;
}

.project-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.project-card h3 {
  margin-bottom: .75rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1.2rem;
}

.tag-list span {
  padding: .4rem .6rem;
  border: 1px solid rgba(56, 189, 248, .18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #bae6fd;
  font-size: .8rem;
  font-weight: 800;
}

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

.skill-group h3 {
  margin-bottom: .55rem;
}

.skill-group p {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.timeline-list {
  display: grid;
  gap: 1rem;
}

.contact-section {
  padding-bottom: 4rem;
}

.contact-card {
  padding: clamp(1.5rem, 5vw, 3rem);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, .18), transparent 22rem),
    linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(15, 23, 42, .58));
}

.footer {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
}

.footer a {
  color: #f8fafc;
  font-weight: 800;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

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

@media (max-width: 900px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .focus-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

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

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .75rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(2, 6, 23, .94);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: .9rem 1rem;
  }

  .metric-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .experience-topline,
  .project-card-header,
  .footer {
    flex-direction: column;
  }

  .project-card {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
    line-height: 1.1;
    letter-spacing: -.055em;
  }
  
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

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

.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Cosmic theme update ------------------------------------------------------ */
:root {
  --bg: #030712;
  --bg-soft: #07111f;
  --border: rgba(129, 140, 248, 0.28);
  --muted: #a6b0c3;
  --accent: #7dd3fc;
  --accent-strong: #a78bfa;
  --accent-soft: rgba(99, 102, 241, 0.16);
  --green: #22d3ee;
  --violet: #8b5cf6;
  --pink: #d946ef;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
  --space-x: 0px;
  --space-y: 0px;
}

body {
  background: #02030a;
  overflow-x: hidden;
}

body::before {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 32rem),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, 76px 76px, 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 80%);
}

.space-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.16), transparent 34rem),
    radial-gradient(circle at 78% 8%, rgba(124, 58, 237, 0.22), transparent 36rem),
    radial-gradient(circle at 85% 78%, rgba(217, 70, 239, 0.13), transparent 34rem),
    linear-gradient(180deg, #02030a 0%, #030712 44%, #02030a 100%);
}

.site-header,
main,
.footer,
.skip-link {
  position: relative;
}

main,
.footer {
  z-index: 1;
}

.site-header {
  background: rgba(2, 3, 10, 0.7);
  border-bottom-color: rgba(129, 140, 248, 0.2);
}

.stars {
  position: absolute;
  inset: -25%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.96) 1px, transparent 1.7px),
    radial-gradient(circle, rgba(125,211,252,.85) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(167,139,250,.75) 1.2px, transparent 2px);
  background-size: 86px 86px, 145px 145px, 230px 230px;
  background-position: 0 0, 36px 64px, 120px 40px;
  opacity: .5;
  animation: starDrift 95s linear infinite;
}

.stars-b {
  opacity: .26;
  transform: scale(1.35);
  animation-duration: 155s;
  animation-direction: reverse;
}

.nebula {
  position: absolute;
  border-radius: 999px;
  filter: blur(58px);
  opacity: .42;
  mix-blend-mode: screen;
  will-change: transform;
}

.nebula-a {
  top: -26vmax;
  right: -20vmax;
  width: 72vmax;
  height: 72vmax;
  background: conic-gradient(
    from 120deg,
    transparent,
    rgba(56, 189, 248, .4),
    rgba(99, 102, 241, .48),
    rgba(168, 85, 247, .42),
    transparent
  );
  animation: nebulaSpin 82s linear infinite;
}

.nebula-b {
  top: 36%;
  left: -36vmax;
  width: 78vmax;
  height: 78vmax;
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, .38), transparent 60%),
    conic-gradient(from 24deg, transparent, rgba(59, 130, 246, .28), rgba(217, 70, 239, .32), transparent);
  animation: nebulaFloat 20s ease-in-out infinite alternate;
}

.nebula-c {
  right: 18vw;
  bottom: -30vmax;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle, rgba(14, 165, 233, .22), rgba(168, 85, 247, .13), transparent 68%);
  animation: nebulaFloat 26s ease-in-out infinite alternate-reverse;
}

.planet {
  position: absolute;
  will-change: transform;
  pointer-events: none;
}

.planet-large-wrap {
  top: clamp(72px, 13vh, 160px);
  right: clamp(-120px, 2vw, 80px);
  width: clamp(200px, 26vw, 420px);
  height: clamp(200px, 26vw, 420px);
  opacity: 0.88;
  animation: planetFloat 10s ease-in-out infinite alternate;
  filter:
    drop-shadow(0 0 28px rgba(56, 189, 248, 0.55))
    drop-shadow(0 0 70px rgba(99, 102, 241, 0.30))
    drop-shadow(0 0 120px rgba(56, 189, 248, 0.12));
}

.planet-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.planet-small-wrap {
  left: clamp(18px, 8vw, 140px);
  bottom: 16vh;
  width: clamp(80px, 9vw, 148px);
  height: clamp(80px, 9vw, 148px);
  opacity: 0.60;
  animation: planetFloatSmall 13s ease-in-out infinite alternate;
  filter:
    drop-shadow(0 0 16px rgba(167, 139, 250, 0.60))
    drop-shadow(0 0 40px rgba(192, 132, 252, 0.28));
}

.orbital-system {
  position: absolute;
  right: 2vw;
  top: 57vh;
  width: clamp(230px, 34vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(125, 211, 252, .16);
  border-radius: 50%;
  opacity: .55;
  animation: orbitRotate 36s linear infinite;
}

.orbital-system::before,
.orbital-system::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(167, 139, 250, .14);
  border-radius: 50%;
  transform: rotate(34deg) scaleX(1.35);
}

.orbital-system::after {
  inset: 30%;
  border-color: rgba(59, 130, 246, .12);
  transform: rotate(-18deg) scaleX(1.65);
}

.orbital-system span {
  position: absolute;
  top: 50%;
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #bfdbfe;
  box-shadow: 0 0 26px #60a5fa, 0 0 48px rgba(167, 139, 250, .9);
}

.shooting-star {
  position: absolute;
  width: 140px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  opacity: 0;
  transform: rotate(-18deg);
  animation: shootingStar 9s ease-in-out infinite;
}

.shooting-star-a {
  top: 18vh;
  left: 18vw;
}

.shooting-star-b {
  top: 72vh;
  left: 58vw;
  animation-delay: 4.6s;
  animation-duration: 12s;
}

.brand-mark,
.button.primary {
  background: linear-gradient(135deg, #7dd3fc, #6366f1 55%, #8b5cf6);
  color: #020617;
}

.brand-mark {
  box-shadow: 0 16px 46px rgba(99, 102, 241, .36);
}

.button.primary {
  box-shadow: 0 18px 48px rgba(99, 102, 241, .35);
}

.button.secondary {
  background: rgba(2, 6, 23, .42);
  border-color: rgba(129, 140, 248, .32);
}

.hero h1 {
  background: linear-gradient(110deg, #ffffff 0%, #e0f2fe 36%, #a78bfa 72%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px rgba(125, 211, 252, .12);
}

.hero-card,
.experience-card,
.project-card,
.skill-group,
.timeline-card,
.focus-card,
.contact-card {
  position: relative;
  border-color: rgba(129, 140, 248, 0.28);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(15, 23, 42, .52));
  box-shadow:
    var(--shadow),
    0 0 42px rgba(99, 102, 241, .08);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.hero-card::before,
.project-card::before,
.focus-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(125, 211, 252, .16), transparent 24rem);
  opacity: .75;
}

.focus-card:hover,
.project-card:hover,
.skill-group:hover,
.timeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, .52);
  box-shadow:
    var(--shadow),
    0 0 54px rgba(99, 102, 241, .16);
}

.focus-card,
.project-card,
.skill-group,
.timeline-card {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.contact-card {
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, .22), transparent 22rem),
    radial-gradient(circle at bottom left, rgba(139, 92, 246, .18), transparent 24rem),
    linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(15, 23, 42, .58));
}

@keyframes starDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-120px, 120px, 0); }
}

@keyframes nebulaSpin {
  from { transform: translate3d(var(--space-x), var(--space-y), 0) rotate(0deg); }
  to { transform: translate3d(var(--space-x), var(--space-y), 0) rotate(360deg); }
}

@keyframes nebulaFloat {
  from { transform: translate3d(calc(var(--space-x) * .4), calc(var(--space-y) * .4), 0) scale(1); }
  to { transform: translate3d(calc(var(--space-x) * .4 + 4vw), calc(var(--space-y) * .4 - 3vh), 0) scale(1.08); }
}

@keyframes planetFloat {
  from { transform: translate3d(var(--space-x), var(--space-y), 0) rotate(-4deg); }
  to { transform: translate3d(calc(var(--space-x) - 1vw), calc(var(--space-y) + 2vh), 0) rotate(4deg); }
}

@keyframes planetFloatSmall {
  from { transform: translate3d(calc(var(--space-x) * -.45), calc(var(--space-y) * -.45), 0) rotate(6deg); }
  to { transform: translate3d(calc(var(--space-x) * -.45 + 1.4vw), calc(var(--space-y) * -.45 - 1vh), 0) rotate(-8deg); }
}

@keyframes orbitRotate {
  to { transform: rotate(360deg); }
}

@keyframes shootingStar {
  0%, 72%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-18deg); }
  76% { opacity: .8; }
  84% { opacity: 0; transform: translate3d(34vw, 11vh, 0) rotate(-18deg); }
}

@media (max-width: 900px) {
  .planet-large-wrap {
    right: -120px;
    top: 110px;
    opacity: .50;
  }

  .orbital-system {
    right: -170px;
    top: 44vh;
    opacity: .28;
  }

  .planet-small-wrap {
    opacity: .28;
  }
}

@media (max-width: 720px) {
  .space-scene {
    background:
      radial-gradient(circle at 70% 10%, rgba(99, 102, 241, 0.22), transparent 24rem),
      radial-gradient(circle at 20% 42%, rgba(14, 165, 233, 0.15), transparent 24rem),
      #02030a;
  }

  .nebula-a {
    opacity: .3;
  }

  .planet-large-wrap {
    animation: none;
    width: 250px;
    height: 250px;
    top: 100px;
    right: -120px;
    opacity: .60;
    filter:
      drop-shadow(0 0 24px rgba(99, 102, 241, .30))
      drop-shadow(0 0 50px rgba(56, 189, 248, .12));
  }

  .shooting-star {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stars,
  .nebula,
  .planet-large-wrap,
  .planet-small-wrap,
  .orbital-system,
  .shooting-star {
    animation: none !important;
  }
}

/* Detail polish: remove top-edge gap and smooth primary button edges -------- */
html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #02030a;
}

body {
  margin: 0;
  padding: 0;
  background: #02030a;
}

.space-scene {
  inset: -2px 0 -2px 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  margin: 0;
  border-top: 0;
}

.button {
  position: relative;
  overflow: hidden;
  border: 0;
  background-clip: padding-box;
  transform: translateZ(0);
}

.button:hover {
  transform: translateY(-2px) translateZ(0);
}

.button.primary {
  background: linear-gradient(90deg, #7dd3fc 0%, #818cf8 55%, #7c3aed 100%);
  box-shadow:
    0 18px 48px rgba(99, 102, 241, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .18);
}

/* Mobile performance mode ------------------------------------------------- */
@media (max-width: 720px) {
  body::before {
    display: none;
  }

  .space-scene {
    background:
      radial-gradient(circle at 75% 12%, rgba(99, 102, 241, 0.24), transparent 18rem),
      radial-gradient(circle at 20% 36%, rgba(14, 165, 233, 0.12), transparent 18rem),
      linear-gradient(180deg, #02030a 0%, #030712 48%, #02030a 100%);
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: paint;
  }

  .stars {
    animation: none;
    opacity: .32;
    inset: 0;
    background-size: 120px 120px, 190px 190px, 280px 280px;
  }

  .stars-b,
  .nebula-b,
  .nebula-c,
  .planet-small-wrap,
  .orbital-system,
  .shooting-star {
    display: none;
  }

  .nebula {
    animation: none;
    filter: blur(32px);
    mix-blend-mode: normal;
    opacity: .24;
  }

  .nebula-a {
    top: -18rem;
    right: -16rem;
    width: 34rem;
    height: 34rem;
  }

  .site-header {
    backdrop-filter: none;
    background: rgba(2, 3, 10, .94);
  }

  .hero-card,
  .experience-card,
  .project-card,
  .skill-group,
  .timeline-card,
  .focus-card,
  .contact-card {
    backdrop-filter: none;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .36);
  }

  .focus-card:hover,
  .project-card:hover,
  .skill-group:hover,
  .timeline-card:hover,
  .button:hover {
    transform: none;
  }

  .reveal {
    transition: opacity .35s ease, transform .35s ease;
  }
}