:root {
  --bg: #f5f7fb;
  --bg-accent: radial-gradient(circle at 10% 10%, #e9efff 0%, transparent 35%), radial-gradient(circle at 90% 0%, #eefaf5 0%, transparent 30%);
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe3ef;
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #ffffff;
  --brand: #2563eb;
  --brand-soft: #dbeafe;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-accent: radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.22) 0%, transparent 32%), radial-gradient(circle at 90% 0%, rgba(16, 185, 129, 0.14) 0%, transparent 26%);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --line: #233047;
    --card: rgba(17, 25, 40, 0.72);
    --card-solid: #111827;
    --brand: #60a5fa;
    --brand-soft: rgba(96, 165, 250, 0.14);
    --shadow: 0 24px 48px rgba(2, 6, 23, 0.52);
  }
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-accent), var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.headline {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.links a {
  text-decoration: none;
  color: var(--brand);
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(8px);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.links a:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  background: var(--brand-soft);
}

main {
  display: grid;
  gap: 1.15rem;
}

.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.section h2 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  letter-spacing: 0.01em;
}

.job,
.education-item,
.skill-category {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem;
}

.job + .job,
.education-item + .education-item {
  margin-top: 0.8rem;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.job-header h3 {
  font-size: 1rem;
}

.date {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.company {
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.achievements {
  padding-left: 1rem;
}

.achievements li {
  margin-bottom: 0.35rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.skill-category h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.skill-category p,
#summary p {
  color: var(--muted);
  font-size: 0.95rem;
}

.spaced {
  margin-top: 0.8rem;
}

.footer {
  margin-top: 1.4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .container {
    padding: 2rem 0.9rem 3rem;
  }

  .section {
    padding: 1rem;
  }

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