:root {
  color-scheme: light;
  --bg: #eef6ff;
  --bg-strong: #dbeafe;
  --ink: #101827;
  --muted: #617089;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --accent: #0ea5e9;
  --accent-dark: #0369a1;
  --accent-2: #6366f1;
  --line: rgba(99, 116, 139, 0.24);
  --shadow: 0 24px 90px rgba(15, 23, 42, 0.14);
}

body.dark {
  color-scheme: dark;
  --bg: #06111f;
  --bg-strong: #111827;
  --ink: #f1f7ff;
  --muted: #aab8cb;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: #111c30;
  --accent: #38bdf8;
  --accent-dark: #7dd3fc;
  --accent-2: #a78bfa;
  --line: rgba(226, 232, 240, 0.16);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(14, 165, 233, 0.26), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(99, 102, 241, 0.24), transparent 24rem),
    linear-gradient(180deg, var(--bg), var(--bg-strong));
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 83%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.hero-actions,
.quick-stats,
.skill-cloud,
.skill-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.32);
}

nav {
  justify-content: center;
  gap: 8px;
}

nav a,
.theme-toggle,
.menu-toggle,
.button,
.ghost-button,
.close-dialog {
  border-radius: 8px;
}

nav a {
  padding: 8px 11px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

nav a:hover,
nav a.active {
  background: rgba(14, 165, 233, 0.13);
  color: var(--ink);
}

.theme-toggle,
.menu-toggle {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

main,
footer {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  gap: clamp(34px, 7vw, 82px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 56px 0;
}

.hero-copy,
.section-heading,
.page-hero {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 6.4vw, 6.4rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.14rem;
}

.hero p,
.page-hero p,
.section-heading p,
article p,
.task-item small,
footer,
.profile-card p,
.contact-card a {
  color: var(--muted);
}

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

.button,
.ghost-button,
.close-dialog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.26);
}

.button:hover,
.ghost-button:hover {
  background: var(--accent-dark);
}

.button.secondary,
.ghost-button,
.close-dialog {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: none;
}

.quick-stats {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quick-stats span {
  min-width: 128px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.quick-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.32rem;
}

.profile-card,
article,
.dashboard-panel,
form,
.contact-card,
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.profile-card {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 32px);
}

.avatar {
  display: grid;
  width: min(100%, 280px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(99, 102, 241, 0.96)),
    var(--accent);
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 950;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -40px 90px rgba(15, 23, 42, 0.22);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 800;
}

.status-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
}

.skill-cloud,
.skill-list {
  flex-wrap: wrap;
  gap: 10px;
}

.skill-cloud span,
.skill-list span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

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

.page-hero {
  padding: 72px 0 48px;
}

.feature-grid,
.project-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid {
  margin-top: 28px;
}

article {
  padding: 22px;
  box-shadow: none;
}

.feature-icon,
.project-card > span,
.timeline article span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--accent-dark);
  font-weight: 900;
}

.builder,
.contact-layout {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 34px;
  align-items: start;
}

.dashboard-panel,
form,
.contact-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.meter {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
}

.meter strong {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
}

.meter span {
  color: var(--muted);
}

.progress-bar {
  height: 12px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-strong);
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #22c55e);
  transition: width 180ms ease;
}

.task-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
  cursor: pointer;
}

.task-item input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.task-item strong,
.task-item small {
  display: block;
}

.timeline article {
  min-height: 220px;
}

.skill-list {
  align-items: stretch;
}

.project-card {
  display: grid;
  gap: 14px;
}

.project-art {
  min-height: 180px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.project-art.one {
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.88), rgba(34, 197, 94, 0.7)),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, 0.18) 26px 27px);
}

.project-art.two {
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.55), transparent 5rem),
    linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(14, 165, 233, 0.65));
}

.project-art.three {
  background:
    linear-gradient(45deg, rgba(14, 165, 233, 0.18) 25%, transparent 25% 50%, rgba(14, 165, 233, 0.18) 50% 75%, transparent 75%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(99, 102, 241, 0.8));
  background-size: 34px 34px, auto;
}

.contact-card a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

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

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
  color: var(--ink);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 850;
}

dialog {
  width: min(560px, calc(100% - 32px));
  color: var(--ink);
  padding: 24px;
}

dialog::backdrop {
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(8px);
}

.close-dialog {
  float: right;
  min-height: 38px;
}

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

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

footer {
  padding: 28px 0 42px;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  nav.open {
    display: flex;
  }

  .hero,
  .builder,
  .contact-layout,
  .feature-grid,
  .project-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.75rem;
  }

  main,
  footer {
    width: min(100% - 28px, 1160px);
  }
}
