:root {
  color-scheme: light dark;
  --page: #f7fafc;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --surface-soft: #f1f5f9;
  --surface-strong: #0f172a;
  --text: #0f172a;
  --muted: #475569;
  --muted-soft: #64748b;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --hero-bg:
    radial-gradient(circle at 18% 18%, rgba(6, 182, 212, 0.17), transparent 31%),
    radial-gradient(circle at 82% 18%, rgba(251, 113, 133, 0.16), transparent 28%),
    linear-gradient(125deg, #f8fafc 0%, #eef6ff 43%, #fff2ef 100%);
  --mesh-line: rgba(15, 23, 42, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #070b14;
    --surface: rgba(15, 23, 42, 0.76);
    --surface-solid: #101827;
    --surface-soft: #0c1220;
    --surface-strong: #f8fafc;
    --text: #f8fafc;
    --muted: #cbd5e1;
    --muted-soft: #94a3b8;
    --border: rgba(226, 232, 240, 0.14);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    --hero-bg:
      radial-gradient(circle at 18% 18%, rgba(6, 182, 212, 0.28), transparent 32%),
      radial-gradient(circle at 82% 18%, rgba(251, 113, 133, 0.22), transparent 28%),
      linear-gradient(125deg, #070b14 0%, #101827 48%, #1b1222 100%);
    --mesh-line: rgba(226, 232, 240, 0.11);
  }
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  background: var(--page);
  color: var(--text);
}

.hero-band {
  background: var(--hero-bg);
}

.bg-cloud,
.bg-white,
.bg-slate-50 {
  background-color: var(--page);
}

.bg-white\/88 {
  background-color: var(--surface);
}

.bg-ink {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.text-ink {
  color: var(--text);
}

.text-slate-300,
.text-slate-400,
.text-slate-500,
.text-slate-600,
.text-slate-650 {
  color: var(--muted);
}

.border-slate-200,
.border-slate-300,
.border-slate-200\/80 {
  border-color: var(--border);
}

header {
  border-color: var(--border) !important;
  background: color-mix(in srgb, var(--page) 88%, transparent) !important;
}

.rounded-md {
  border-radius: 14px;
}

.rounded-lg {
  border-radius: 22px;
}

.nav-link {
  position: relative;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #06b6d4;
  content: "";
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.metric-tile {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  border-width: 1px;
  border-radius: 20px;
  padding: 18px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

.social-button,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-button {
  border: 1px solid #cbd5e1;
  background: var(--surface-solid);
  color: var(--text);
}

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

.section-band {
  padding-top: 88px;
  padding-bottom: 88px;
}

.eyebrow {
  margin-bottom: 12px;
  color: #0891b2;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.info-card,
.timeline-item,
.project-card {
  border-width: 1px;
  border-radius: 22px;
}

.info-card {
  min-height: 220px;
  background: var(--surface-solid);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-icon {
  margin-bottom: 20px;
  height: 34px;
  width: 34px;
}

.info-card h3,
.project-card h3,
.timeline-item h3 {
  margin-bottom: 10px;
  color: inherit;
  font-size: 1.18rem;
  font-weight: 900;
}

.info-card p,
.project-card p,
.timeline-item p {
  color: var(--muted-soft);
  line-height: 1.72;
}

.project-card {
  overflow: hidden;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.2);
}

.project-card p {
  color: #cbd5e1;
}

.project-visual {
  display: grid;
  min-height: 190px;
  place-items: center;
  color: #fff;
}

.project-visual.text-ink {
  color: #0f172a;
}

.tag-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 9px;
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 800;
}

.timeline-item {
  border-left-width: 6px;
  background: var(--surface-soft);
  padding: 24px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.05);
}

.timeline-item span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--muted-soft);
  font-size: 0.85rem;
  font-weight: 900;
}

.skill-block {
  display: flex;
  min-height: 84px;
  align-items: center;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: var(--surface-solid);
  padding: 18px;
  color: var(--text);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.skill-block:nth-child(3n + 1) {
  border-color: rgba(6, 182, 212, 0.38);
}

.skill-block:nth-child(3n + 2) {
  border-color: rgba(251, 113, 133, 0.38);
}

.skill-block:nth-child(3n + 3) {
  border-color: rgba(163, 230, 53, 0.7);
}

.contact-band {
  background:
    linear-gradient(125deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.94)),
    repeating-linear-gradient(135deg, rgba(6, 182, 212, 0.16) 0 2px, transparent 2px 18px);
}

.contact-link {
  border: 1px solid rgba(226, 232, 240, 0.2);
  background: rgba(255, 255, 255, 0.08);
  padding: 14px;
  color: #fff;
}

.contact-link:hover {
  border-color: rgba(163, 230, 53, 0.65);
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .metric-tile {
    min-height: 94px;
    padding: 12px;
  }

  .metric-tile span:first-child {
    font-size: 1.65rem;
  }

  .section-band {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}
