:root {
  --bg: #06101d;
  --bg-soft: #0a1728;
  --surface: rgba(15, 29, 46, 0.86);
  --surface-solid: #0f1d2e;
  --surface-2: #14263b;
  --text: #f7f9fc;
  --muted: #afbed0;
  --accent: #75adff;
  --accent-strong: #3175e3;
  --accent-two: #67e8c5;
  --border: rgba(255, 255, 255, 0.11);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --max: 1180px;
}

:root[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-soft: #eaf1f8;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-2: #edf3f9;
  --text: #102033;
  --muted: #55677c;
  --accent: #245fd1;
  --accent-strong: #245fd1;
  --accent-two: #0a8f74;
  --border: rgba(16, 32, 51, 0.12);
  --shadow: 0 24px 70px rgba(39, 63, 93, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 4%, rgba(49, 117, 227, 0.24), transparent 28%),
    radial-gradient(circle at 8% 30%, rgba(103, 232, 197, 0.10), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  border-radius: 8px;
}

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.25;
  border-radius: 999px;
  z-index: -1;
}

.ambient-one {
  width: 320px;
  height: 320px;
  right: -80px;
  top: 18%;
  background: #337ee8;
}

.ambient-two {
  width: 260px;
  height: 260px;
  left: -70px;
  bottom: 8%;
  background: #28b99a;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 950;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.primary-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

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

.menu-button,
.theme-toggle {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-button {
  display: none;
  padding: 9px 12px;
  font-weight: 800;
}

.theme-toggle {
  width: 42px;
  height: 42px;
}

.hero {
  padding: 96px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 64px;
  align-items: center;
}

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

.global-greeting {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
}

#greeting-text {
  color: var(--accent-two);
  font-weight: 900;
  min-width: 76px;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.99;
  letter-spacing: -0.058em;
}

.gradient-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-two));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.1rem, 4.3vw, 3.55rem);
  line-height: 1.07;
  letter-spacing: -0.04em;
}

h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.hero-copy,
.lead {
  max-width: 800px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.18rem);
}

.role-rotator {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: var(--muted);
}

.role-rotator strong {
  color: var(--text);
}

.actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

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

.button-primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
}

.button-secondary {
  background: var(--surface);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.metric {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.metric strong {
  display: block;
  font-size: 1.45rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-showcase {
  position: relative;
}

.profile-frame {
  position: relative;
  max-width: 390px;
  margin-inline: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(117, 173, 255, 0.35), rgba(103, 232, 197, 0.18));
  box-shadow: var(--shadow);
}

.profile-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 22px;
}

.profile-glow {
  position: absolute;
  inset: auto 12% -30px 12%;
  height: 50px;
  background: var(--accent);
  filter: blur(48px);
  opacity: 0.4;
  z-index: -1;
}

.profile-card {
  position: relative;
  width: min(360px, calc(100% - 20px));
  margin: -46px auto 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.profile-card h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.profile-card p {
  color: var(--muted);
}

.availability {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 750;
}

.availability-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #45db9c;
  box-shadow: 0 0 0 6px rgba(69, 219, 156, 0.12);
}

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

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 52px;
  align-items: start;
}

.principles,
.contact-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.principles span,
.contact-points span {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.83rem;
}

.language-marquee {
  position: relative;
  margin: 34px 0 24px;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.language-track {
  width: max-content;
  display: flex;
  gap: 16px;
  padding: 14px 0;
  animation: marquee 28s linear infinite;
}

.language-track span {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 750;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card,
.project-card,
.timeline-item,
.code-lab,
.contact-form {
  border: 1px solid var(--border);
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--surface-2) 94%, transparent),
      color-mix(in srgb, var(--surface-solid) 94%, transparent)
    );
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  min-height: 270px;
  padding: 28px;
  border-radius: 20px;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -35px;
  bottom: -35px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117, 173, 255, 0.16), transparent 70%);
}

.card-number {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--accent-two);
  font-weight: 900;
}

.card p,
.project-card p,
.timeline-item p {
  color: var(--muted);
}

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

.tags span {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.79rem;
}

.code-lab {
  margin-top: 28px;
  border-radius: 20px;
  overflow: hidden;
}

.code-lab-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.code-lab-header h3 {
  margin: 0;
}

.code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.code-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.code-tab.is-active {
  background: var(--accent-strong);
  color: #fff;
}

.code-window {
  margin: 0;
  min-height: 220px;
  padding: 24px;
  overflow-x: auto;
  background: #050b14;
  color: #c8f7e8;
  font-size: 0.9rem;
  line-height: 1.7;
}

.project-list,
.timeline {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: 34px;
  padding: 28px;
  border-radius: 20px;
  align-items: center;
}

.project-card .tags {
  margin-top: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr);
  gap: 30px;
  padding: 28px;
  border-radius: 20px;
}

.date {
  margin-top: 3px;
  color: var(--accent) !important;
  font-size: 0.88rem;
  font-weight: 850;
}

.role {
  margin-top: -4px;
  color: var(--text) !important;
  font-weight: 750;
}

.contact-section {
  background: linear-gradient(120deg, rgba(49, 117, 227, 0.11), transparent 55%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 110px;
}

.contact-form {
  padding: 28px;
  border-radius: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 13px;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  color: var(--text);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(117, 173, 255, 0.13);
}

.contact-form textarea {
  resize: vertical;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.form-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.form-status {
  min-height: 24px;
  margin: 15px 0 0;
  color: var(--muted);
}

.form-status.is-success {
  color: #58e1ad;
}

.form-status.is-error {
  color: #ff8f8f;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid a {
  color: var(--text);
  text-decoration: none;
}

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

  .profile-showcase {
    max-width: 560px;
    margin-inline: auto;
  }

  .contact-copy {
    position: static;
  }

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

  .project-card .tags {
    margin-top: 14px;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    grid-template-columns: auto 1fr auto;
  }

  .menu-button {
    display: inline-flex;
    justify-self: end;
  }

  .theme-toggle {
    grid-column: 3;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 74px;
    right: 20px;
    left: 20px;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
  }

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

  .primary-nav a {
    padding: 11px 12px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-metrics,
  .card-grid,
  .form-row,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .code-lab-header {
    align-items: start;
    flex-direction: column;
  }

  .language-track {
    animation-duration: 36s;
  }

  .form-footer,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

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

  .profile-card {
    margin-top: -24px;
  }

  .contact-form {
    padding: 20px;
  }
}

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

  .button,
  .language-track {
    transition: none;
    animation: none;
  }
}

/* Search identity enhancement */
.seo-name {
  display: block;
  margin-bottom: 0.18em;
  color: var(--text);
  font-size: 0.48em;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}
