:root {
  --bg: #080a10;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f7f7fb;
  --muted: #a8afbf;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #62e7ff;
  --green: #a4ff7a;
  --pink: #ff6fb1;
  --orange: #ffb15e;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(98, 231, 255, 0.12), transparent 26%),
    linear-gradient(250deg, rgba(255, 111, 177, 0.12), transparent 28%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(8, 10, 16, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 10, 16, 0.9);
  border-color: var(--line);
}

.brand,
.nav,
.actions,
.project-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #061016;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-radius: 14px;
  box-shadow: 0 0 32px rgba(98, 231, 255, 0.26);
}

.nav {
  gap: 26px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a,
.footer a {
  transition: color 180ms ease;
}

.nav a:hover,
.footer a:hover {
  color: var(--cyan);
}

.header-action,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-action {
  padding: 0 18px;
  color: var(--text);
  background: var(--panel);
}

.header-action:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: rgba(98, 231, 255, 0.62);
}

.hero,
.section,
.contact-inner,
.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(32px, 7vw, 88px);
  min-height: calc(100vh - 79px);
  align-items: center;
  padding: clamp(44px, 7vw, 96px) 0;
}

.kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  padding: 9px 13px;
  color: var(--green);
  background: rgba(164, 255, 122, 0.08);
  border: 1px solid rgba(164, 255, 122, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: 4.8rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 4.2rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p,
.about-text p,
.project-content p,
.contact-inner p {
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.72;
}

.actions,
.project-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  padding: 0 20px;
}

.button.primary {
  color: #061016;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-color: transparent;
  box-shadow: 0 16px 48px rgba(98, 231, 255, 0.22);
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.hero-card,
.project-card,
.contact-inner {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel-strong), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border-radius: 28px;
  transform-style: preserve-3d;
}

.hero-card::before,
.project-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, rgba(98, 231, 255, 0.22), transparent 38%, rgba(255, 111, 177, 0.18));
  opacity: 0.65;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  filter: saturate(1.08);
}

.hero-card-footer {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: rgba(8, 10, 16, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.hero-card-footer span {
  color: var(--muted);
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.about,
.experience-lite {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(22px, 5vw, 64px);
}

.section-label span {
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
}

.metrics {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metrics div,
.experience-list div,
.contact-grid a {
  padding: 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 2.8rem;
}

.metrics span,
.experience-list span,
.contact-grid span {
  color: var(--muted);
}

.section-top {
  max-width: 760px;
  margin-bottom: 34px;
}

.skill-marquee {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.skill-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marquee 26s linear infinite;
}

.skill-track span {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding: 0 24px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  gap: clamp(20px, 4vw, 42px);
  padding: clamp(16px, 3vw, 28px);
  border-radius: 30px;
  transform-style: preserve-3d;
}

.project-image,
.project-content {
  position: relative;
  z-index: 1;
}

.project-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.project-image img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: contain;
  background: #080a10;
  transition: transform 400ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-content {
  align-self: center;
}

.project-chip {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--orange);
  font-weight: 900;
}

.experience-list {
  display: grid;
  gap: 14px;
}

.experience-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}

.experience-list strong {
  color: var(--green);
}

.contact {
  padding: 88px 0 38px;
}

.contact-inner {
  padding: clamp(24px, 5vw, 58px);
  border-radius: 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.contact-grid a {
  display: grid;
  gap: 8px;
  min-width: 0;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(98, 231, 255, 0.62);
  background: rgba(98, 231, 255, 0.08);
}

.contact-grid strong {
  overflow-wrap: anywhere;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0 46px;
  color: var(--muted);
}

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

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

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero,
  .project-card,
  .about,
  .experience-lite {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    max-width: 430px;
  }

  .metrics {
    grid-column: auto;
  }

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

  h1 {
    font-size: 3.9rem;
  }

  h2 {
    font-size: 3.25rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-action {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .hero,
  .section,
  .contact-inner,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-copy p,
  .about-text p,
  .project-content p,
  .contact-inner p {
    font-size: 1.04rem;
  }

  .metrics strong {
    font-size: 2.25rem;
  }

  .button {
    width: 100%;
  }

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

  .experience-list div {
    grid-template-columns: 1fr;
  }

  .hero-card-footer {
    right: 22px;
    bottom: 22px;
    left: 22px;
    flex-direction: column;
    gap: 4px;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
