:root {
  color-scheme: dark;
  --bg: #080b12;
  --surface: #101521;
  --surface-strong: #151d2b;
  --text: #f5f7fb;
  --muted: #aab4c4;
  --line: rgba(255, 255, 255, 0.09);
  --hero-accent: #8ae6c1;
  --work-accent: #8ae6c1;
  --ai-accent: #b9a7ff;
  --skills-accent: #8cc9ff;
  --contact-accent: #f2c48a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(138, 230, 193, 0.08), transparent 24%),
    radial-gradient(circle at 88% 28%, rgba(185, 167, 255, 0.07), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.015), transparent 35%, rgba(255,255,255,0.01));
  z-index: -1;
}

::selection {
  background: rgba(138, 230, 193, 0.24);
  color: #ffffff;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  color: #0b1020;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 11, 18, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(138, 230, 193, 0.12);
  border: 1px solid rgba(138, 230, 193, 0.26);
  color: var(--hero-accent);
  font: 700 0.75rem/1 "Space Mono", monospace;
}

.brand-dot {
  color: var(--hero-accent);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

nav a {
  color: #c9d1de;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover,
nav a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  outline: none;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(138, 230, 193, 0.18);
  border-radius: 999px;
  background: rgba(138, 230, 193, 0.06);
  color: #c9e9dc;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hero-accent);
  box-shadow: 0 0 0 5px rgba(138, 230, 193, 0.08);
}

.hero-kicker,
.section-label {
  margin: 1.1rem 0 0.75rem;
  color: var(--hero-accent);
  font: 700 0.78rem/1.4 "Space Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: var(--hero-accent);
}

.hero-lead {
  max-width: 680px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 11px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--hero-accent);
  color: #0b1513;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #9df0cc;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: #e8edf4;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  margin-top: 1.2rem;
  color: #8490a2;
  font-size: 0.85rem;
}

.hero-links a {
  color: #dde4ed;
  text-decoration: none;
}

.hero-links a:hover,
.hero-links a:focus-visible {
  color: var(--hero-accent);
  outline: none;
}

.hero-visual {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 12% 4%;
  z-index: -3;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 36px;
  transform: rotate(-3deg);
}

.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  will-change: transform;
}

.orb-one {
  width: 190px;
  height: 190px;
  top: 6%;
  right: 1%;
  background: rgba(138, 230, 193, 0.14);
  box-shadow: 0 0 100px rgba(138, 230, 193, 0.12);
  z-index: -2;
}

.orb-two {
  width: 140px;
  height: 140px;
  bottom: 4%;
  left: 5%;
  background: rgba(185, 167, 255, 0.13);
  box-shadow: 0 0 90px rgba(185, 167, 255, 0.11);
  z-index: -2;
}

.hero-card {
  width: min(100%, 510px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(18, 25, 37, 0.96), rgba(12, 17, 27, 0.96));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translate3d(0, 0, 0) rotate(1deg);
  will-change: transform;
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.code-window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.code-window-bar small {
  margin-left: 0.35rem;
  color: #7c899a;
  font: 0.72rem/1 "Space Mono", monospace;
}

pre {
  margin: 0;
  padding: 1.35rem 1.4rem;
  overflow-x: auto;
  color: #eef2f7;
  font: 0.82rem/1.8 "Space Mono", monospace;
}

.code-muted {
  color: #8593a8;
}

.code-key {
  color: #c9baff;
}

.code-string {
  color: #a7e6cf;
}

.hero-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1.4rem 1.3rem;
}

.hero-card-footer span {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(138, 230, 193, 0.13);
  border-radius: 999px;
  background: rgba(138, 230, 193, 0.05);
  color: #b8ddce;
  font: 0.68rem/1 "Space Mono", monospace;
}

.section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--section-accent), transparent);
  opacity: 0.48;
}

.section-work {
  --section-accent: var(--work-accent);
  background: linear-gradient(180deg, rgba(138, 230, 193, 0.035), transparent 30%);
}

.section-workflow {
  --section-accent: var(--ai-accent);
  background:
    radial-gradient(circle at 82% 20%, rgba(185, 167, 255, 0.08), transparent 27%),
    #0b0f1a;
}

.section-skills {
  --section-accent: var(--skills-accent);
  background: linear-gradient(180deg, rgba(140, 201, 255, 0.035), transparent 36%);
}

.section-contact {
  --section-accent: var(--contact-accent);
  background: linear-gradient(180deg, rgba(242, 196, 138, 0.04), transparent 44%);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-header .section-label {
  color: var(--section-accent, var(--hero-accent));
}

.section-header h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-note {
  max-width: 330px;
  margin: 0;
  color: #7f8a9b;
  font-size: 0.9rem;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--work-accent) 30%, transparent);
  background: rgba(255, 255, 255, 0.04);
}

.project-card-featured {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(138, 230, 193, 0.09), rgba(255, 255, 255, 0.025));
  border-color: rgba(138, 230, 193, 0.18);
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #738096;
  font: 0.7rem/1.2 "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-card h3,
.workflow-step h3,
.skill-group h3 {
  margin: 0;
  color: #f4f7fb;
}

.project-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.project-card p,
.workflow-step p,
.skill-group p,
.contact-card p {
  color: var(--muted);
}

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

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

.tag-row span {
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: #b9c3d1;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.7rem;
}

.project-link {
  margin-top: 1rem;
  color: #e9eef6;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--work-accent);
  outline: none;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.workflow-step {
  min-height: 180px;
  padding: 1.1rem;
  border: 1px solid rgba(185, 167, 255, 0.12);
  border-radius: 16px;
  background: rgba(185, 167, 255, 0.035);
}

.workflow-step:nth-child(3),
.workflow-step:nth-child(6) {
  transform: translateY(18px);
}

.workflow-step > span {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--ai-accent);
  font: 700 0.7rem/1 "Space Mono", monospace;
}

.workflow-step h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.workflow-step p {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
}

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

.skill-group {
  padding: 1.2rem;
  border: 1px solid rgba(140, 201, 255, 0.11);
  border-radius: 16px;
  background: rgba(140, 201, 255, 0.028);
}

.skill-group h3 {
  color: #dceeff;
  font-size: 1rem;
}

.skill-group p {
  margin: 0.6rem 0 0;
  font-size: 0.83rem;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(242, 196, 138, 0.15);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 20%, rgba(242, 196, 138, 0.07), transparent 35%),
    rgba(255, 255, 255, 0.025);
}

.contact-card h2 {
  max-width: 720px;
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.contact-card .section-label {
  color: var(--contact-accent);
}

.contact-card p {
  margin: 0.8rem 0 0;
}

.contact-actions {
  margin-top: 0;
  flex-shrink: 0;
}

.contact-actions .button-primary {
  background: var(--contact-accent);
  color: #2a2012;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0 2.2rem;
  color: #748093;
  font-size: 0.78rem;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 3rem;
  }

  .hero-visual {
    min-height: 390px;
  }

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

  .project-card-featured {
    grid-column: span 2;
  }

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

  .workflow-step:nth-child(3),
  .workflow-step:nth-child(6) {
    transform: none;
  }

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

  .contact-actions {
    margin-top: 0.5rem;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 1.25rem, 1120px);
  }

  .topbar-inner {
    min-height: 62px;
  }

  nav {
    display: none;
  }

  .hero {
    padding-top: 3.7rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .hero-visual {
    min-height: 330px;
  }

  .hero-card {
    width: 100%;
    transform: none;
  }

  .orb-one {
    width: 130px;
    height: 130px;
  }

  .orb-two {
    width: 100px;
    height: 100px;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .section-note {
    max-width: 560px;
  }

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

  .project-card-featured {
    grid-column: span 1;
  }

  .footer {
    flex-direction: column;
  }
}

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

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

@media print {
  body {
    background: #ffffff !important;
    color: #111111 !important;
  }

  .topbar,
  .hero-visual,
  .hero-actions,
  .hero-links,
  .contact-actions,
  .skip-link {
    display: none !important;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 0 0 1rem;
  }

  .section,
  .section-workflow,
  .section-skills,
  .section-contact {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
  }

  h1,
  h2,
  h3,
  p,
  span,
  .project-card,
  .skill-group,
  .workflow-step,
  .contact-card {
    color: #111111 !important;
    text-shadow: none !important;
  }
}
