:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef2f8;
  --ink: #11131a;
  --muted: #5f6b7a;
  --accent: #2f5ee8;
  --accent-strong: #2148c9;
  --accent-warm: #c4772d;
  --border: #d9e1ee;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, #edf2ff 0%, #f4f7fb 45%, #f1f3f8 100%);
  color: var(--ink);
  min-height: 100vh;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(47, 94, 232, 0.2);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(47, 94, 232, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-ghost:hover {
  box-shadow: none;
}

main {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
  animation: fadeUp 0.8s ease both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin: 28px 0 32px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.metric {
  font-size: 1.2rem;
  font-weight: 600;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeUp 0.9s ease both 0.2s;
}

.card-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.status {
  color: var(--accent-strong);
  font-weight: 600;
}

.card-body h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card-body ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.card-body li::before {
  content: "•";
  color: var(--accent-warm);
  margin-right: 8px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.pill {
  background: var(--surface-alt);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--accent-strong);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.section-header h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.section-header p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.skills {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.skills article,
.grid.projects .project {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: var(--shadow);
}

.grid.skills article h3 {
  margin-bottom: 10px;
}

.grid.skills article p,
.project p {
  color: var(--muted);
  line-height: 1.6;
}

.grid.projects {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-top {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 94, 232, 0.15);
  color: var(--accent-strong);
  font-weight: 600;
}

.tag.ghost {
  background: var(--surface-alt);
  color: var(--muted);
}

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

.timeline-item {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.timeline-role {
  font-weight: 600;
}

.timeline-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  gap: 24px;
  background: var(--surface);
  border-radius: 26px;
  border: 1px solid var(--border);
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-card {
  background: var(--surface-alt);
  padding: 20px;
  border-radius: 20px;
  display: grid;
  gap: 12px;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.contact-item {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
