:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-soft: #111821;
  --surface: rgba(17, 24, 33, 0.82);
  --surface-strong: #17202b;
  --text: #f5f7fb;
  --muted: #a8b3c2;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #38d6a7;
  --accent-2: #6aa8ff;
  --accent-3: #ffcf5a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --max-width: 1180px;
}

:root.light {
  color-scheme: light;
  --bg: #f7f8fb;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #111827;
  --muted: #596579;
  --line: rgba(17, 24, 39, 0.12);
  --shadow: 0 24px 70px rgba(42, 54, 71, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  overflow: hidden;
}

.topbar {
  position: fixed;
  inset: 18px 24px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.nav-actions,
.hero-actions,
.section-heading,
.status-row,
.social-links,
.button,
.text-link {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.brand:hover,
.brand:focus-visible {
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061015;
  font-size: 0.82rem;
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--line);
  color: var(--text);
}

.nav-actions {
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--line);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  padding: 142px max(24px, calc((100vw - var(--max-width)) / 2)) 72px;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.88fr);
  gap: 42px;
  align-items: center;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: -1;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-content {
  max-width: 690px;
}

.eyebrow,
.section-kicker,
.project-type {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3.15rem, 5.4vw, 5.35rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-chips span {
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 9px 12px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  gap: 9px;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #061015;
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button:hover,
.text-link:hover,
.social-links a:hover {
  transform: translateY(-2px);
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 24px;
}

.status-row {
  gap: 9px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 16%, transparent);
}

.profile-visual {
  display: grid;
  min-height: 315px;
  margin: 22px 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, transparent), transparent 40%),
    linear-gradient(315deg, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 45%),
    var(--surface-strong);
}

.code-window {
  width: min(86%, 360px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.code-window-top {
  display: flex;
  gap: 7px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.code-window-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.code-window-top span:nth-child(2) {
  background: var(--accent-3);
}

.code-window-top span:nth-child(3) {
  background: var(--accent-2);
}

.code-window pre {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font: 700 0.86rem/1.75 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.code-window code {
  color: inherit;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

.quick-stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
}

.quick-stats dt {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 800;
}

.quick-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 82px 24px;
}

.intro-band,
.about-section,
.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 50px;
  align-items: start;
}

.intro-band {
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--max-width)) / 2));
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.section-heading {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.text-link {
  gap: 7px;
  color: var(--accent);
  font-weight: 800;
  transition: transform 0.2s ease;
}

.project-grid {
  align-items: stretch;
}

.selected-work-intro {
  max-width: 900px;
  margin: -8px 0 28px;
}

.selected-work-intro p {
  margin-bottom: 0;
}

.selected-work-grid {
  align-items: stretch;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 46%),
    var(--surface-strong);
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.work-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.work-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.work-icon .lucide {
  width: 25px;
  height: 25px;
}

.work-meta {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 7px 10px;
  text-transform: uppercase;
}

.work-card h3 {
  font-size: 1.25rem;
  line-height: 1.35;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.project-card.featured {
  min-height: 100%;
}

.project-media {
  position: relative;
  min-height: 230px;
  border-bottom: 1px solid var(--line);
  background: #101721;
}

.project-card.featured .project-media {
  min-height: 360px;
}

.browser-frame {
  position: absolute;
  inset: 32px 32px auto;
  display: flex;
  gap: 7px;
  height: 36px;
  align-items: center;
  padding-inline: 14px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(255, 255, 255, 0.12);
}

.browser-frame span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-3);
}

.mock-chart {
  position: absolute;
  inset: 86px 32px 34px;
  border-radius: var(--radius);
  background:
    linear-gradient(to top, rgba(56, 214, 167, 0.45) 28%, transparent 29%) 12% 100% / 12% 72% no-repeat,
    linear-gradient(to top, rgba(106, 168, 255, 0.45) 52%, transparent 53%) 34% 100% / 12% 72% no-repeat,
    linear-gradient(to top, rgba(255, 207, 90, 0.5) 78%, transparent 79%) 56% 100% / 12% 72% no-repeat,
    linear-gradient(to top, rgba(56, 214, 167, 0.55) 42%, transparent 43%) 78% 100% / 12% 72% no-repeat,
    rgba(255, 255, 255, 0.08);
}

.mock-lines {
  position: absolute;
  right: 54px;
  bottom: 58px;
  width: 130px;
  height: 70px;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.24)) 16px 18px / 86px 8px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)) 16px 38px / 54px 8px no-repeat,
    rgba(0, 0, 0, 0.24);
}

.shop-media {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: 14px;
  padding: 28px;
}

.product-tile,
.product-copy,
.phone-shell {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.product-tile {
  min-height: 170px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 207, 90, 0.85) 0 26px, transparent 27px),
    rgba(255, 255, 255, 0.1);
}

.product-tile.small {
  min-height: 110px;
  background:
    radial-gradient(circle at 50% 46%, rgba(56, 214, 167, 0.75) 0 18px, transparent 19px),
    rgba(255, 255, 255, 0.1);
}

.product-copy {
  grid-column: 1 / -1;
  height: 22px;
}

.app-media {
  display: grid;
  place-items: center;
}

.phone-shell {
  display: grid;
  width: 112px;
  height: 190px;
  gap: 10px;
  padding: 24px 15px;
  border: 8px solid rgba(255, 255, 255, 0.18);
}

.phone-shell span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.phone-shell span:first-child {
  background: var(--accent-2);
}

.project-body {
  padding: 24px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tags span,
.skill-cloud span,
.project-filter-list button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.tags span {
  padding: 7px 10px;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-cloud span {
  padding: 12px 15px;
}

.project-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.project-filter-list button {
  padding: 9px 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-filter-list button:hover,
.project-filter-list button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  color: var(--text);
  transform: translateY(-1px);
}

.project-filter-list button.active {
  background: var(--accent);
  color: #061015;
  border-color: transparent;
}

.project-showcase [data-category].is-hidden {
  display: none;
}

.portfolio-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 800;
}

.project-link:hover {
  color: var(--accent-3);
}

.portfolio-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}

.seo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 22px;
}

.seo-card h3 {
  color: var(--accent);
}

.info-list,
.contact-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.info-list li,
.contact-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 14px;
  line-height: 1.55;
}

.info-list strong {
  color: var(--text);
}

.service-grid,
.testimonial-grid {
  align-items: stretch;
}

.service-card,
.testimonial-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.testimonial-card img {
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 50%;
  background: var(--bg);
}

.service-card .lucide {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  color: var(--accent);
}

.testimonial-card p {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.7;
}

.testimonial-card h3 {
  margin-bottom: 4px;
}

.testimonial-card span {
  color: var(--accent);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 24px;
}

.timeline time {
  color: var(--accent);
  font-weight: 800;
}

.timeline p {
  margin-bottom: 0;
}

.resume-summary {
  margin-bottom: 26px;
}

.resume-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 22px;
}

.resume-stat .lucide {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  color: var(--accent);
}

.resume-stat strong,
.resume-stat span {
  display: block;
}

.resume-stat strong {
  color: var(--text);
  font-size: 1.06rem;
  margin-bottom: 6px;
}

.resume-stat span {
  color: var(--muted);
  line-height: 1.6;
}

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

.experience-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 7%, transparent), transparent 45%),
    var(--surface-strong);
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.experience-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.experience-icon .lucide {
  width: 26px;
  height: 26px;
}

.experience-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.experience-head h3 {
  margin-bottom: 4px;
}

.experience-head span {
  color: var(--muted);
  font-weight: 800;
}

.experience-head time {
  flex: 0 0 auto;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 12px;
}

.experience-content > p {
  margin-bottom: 0;
}

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

.social-links {
  gap: 10px;
  margin-top: 22px;
}

.contact-list li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-list .lucide {
  flex: 0 0 auto;
  color: var(--accent);
}

.social-links a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  transition: transform 0.2s ease;
}

.contact-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 24px 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin-bottom: 0;
}

.footer a {
  color: var(--text);
  font-weight: 800;
}

.lucide {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

@media (max-width: 900px) {
  .topbar {
    inset: 12px 14px auto;
  }

  .menu-button {
    display: grid;
  }

  .nav-links {
    position: fixed;
    inset: 76px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
  }

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

  .nav-links a {
    padding: 14px;
  }

  .hero,
  .intro-band,
  .about-section,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 122px;
  }

  .project-grid {
    align-items: stretch;
  }

  .service-grid,
  .testimonial-grid {
    align-items: stretch;
  }

  .project-card.featured {
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .brand span:last-child {
    display: none;
  }

  .hero {
    padding-inline: 18px;
    gap: 26px;
  }

  .section {
    padding: 62px 18px;
  }

  .intro-band {
    padding-inline: 18px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .hero-panel {
    padding: 18px;
  }

  .profile-visual {
    min-height: 230px;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

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

  .timeline article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .experience-head {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
  }
}
