:root {
  color-scheme: dark;
  --bg: #05070d;
  --surface: rgba(13, 17, 28, 0.72);
  --surface-strong: rgba(16, 22, 37, 0.9);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(125, 211, 252, 0.3);
  --text: #eef3ff;
  --muted: #9aa7c2;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1120px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.18), transparent 32rem),
    linear-gradient(135deg, var(--bg), #03040a 48%, #05070d);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
}

::selection {
  color: #fff;
  background: rgba(34, 211, 238, 0.35);
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  filter: blur(10px);
}

.aurora__blob {
  position: absolute;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  opacity: 0.2;
  filter: blur(36px);
  animation: floatBlob 16s var(--ease) infinite alternate;
}

.aurora__blob--one {
  top: -12rem;
  left: -8rem;
  background: var(--purple);
}

.aurora__blob--two {
  top: 18rem;
  right: -14rem;
  background: var(--cyan);
  animation-delay: -5s;
}

.aurora__blob--three {
  bottom: -16rem;
  left: 28%;
  background: var(--blue);
  animation-delay: -9s;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 22rem;
  height: 22rem;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 62%);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 220ms ease;
}

.site-header,
.hero,
.section,
.footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.nav {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(34, 211, 238, 0.85));
  box-shadow: 0 0 38px rgba(34, 211, 238, 0.22);
  color: white;
}

.brand__text {
  font-size: 1.05rem;
}

.nav {
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 11, 20, 0.54);
  backdrop-filter: blur(18px);
}

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-1px);
}

.hero {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 36px;
  padding: 48px 0 84px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section__heading h2 {
  margin: 0;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(4.2rem, 14vw, 9.2rem);
  background: linear-gradient(110deg, #ffffff, #c7d2fe 30%, #7dd3fc 68%, #ccfbf1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 52px rgba(59, 130, 246, 0.16);
}

.hero__lead {
  margin: 16px 0 0;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  color: rgba(238, 243, 255, 0.96);
}

.hero__description,
.section__heading p,
.project-card p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero__description {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: 1.06rem;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.stack span,
.info-card__label {
  color: var(--muted);
}

.stack span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button--primary {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(59, 130, 246, 0.9));
  box-shadow: 0 14px 42px rgba(59, 130, 246, 0.22);
}

.button--ghost {
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(255, 255, 255, 0.035);
}

.info-card,
.project-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(13, 17, 28, 0.9), rgba(14, 23, 39, 0.74));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 24px;
}

.info-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.info-card__row:last-child {
  border-bottom: 0;
}

.info-card__label {
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.info-card a {
  color: var(--text);
}

.section {
  padding: 20px 0 96px;
}

.section__heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section__heading h2 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.section__heading p {
  margin: 18px 0 0;
  font-size: 1.06rem;
}

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

.project-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(125, 211, 252, 0.1);
}

.project-card__content {
  padding: 28px 28px 20px;
}

.project-card h3 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.project-card p {
  margin: 0;
  font-size: 1rem;
}

.project-card__link,
.locked-overlay {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  margin: 0 18px 18px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
}

.project-card__link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.project-card--locked {
  position: relative;
}

.project-card__content--blurred {
  filter: blur(5px);
  user-select: none;
}

.locked-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: rgba(7, 9, 16, 0.52);
  backdrop-filter: blur(10px);
}

.locked-overlay span {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

.locked-overlay small {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 0 0 40px;
}

.footer p {
  margin: 0;
  font-size: 0.96rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

@keyframes floatBlob {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4rem, -3rem, 0) scale(1.08);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 36px 0 64px;
  }

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

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 19vw, 6rem);
  }

  .info-card__row,
  .footer {
    gap: 8px;
  }

  .info-card__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding-bottom: 72px;
  }

  .project-card__link,
  .locked-overlay {
    min-height: 62px;
  }
}

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

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

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
