:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --tag-bg: #f1f5f9;
  --tag-text: #334155;
}

[data-theme="dark"] {
  --bg: #0b0f19;
  --surface: #111827;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border: #1f2937;
  --primary: #3b82f6;
  --tag-bg: #1f2937;
  --tag-text: #e5e7eb;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 40px 20px;
}

.container {
  max-width: 820px;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.name {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.role {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 4px;
}

.location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-theme {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: border-color 0.2s;
}

.btn-theme:hover {
  border-color: var(--primary);
}

.contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 40px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--primary);
}

.section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.summary-text {
  color: var(--text);
  font-size: 0.98rem;
  text-align: justify;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.skill-category h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

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

.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-weight: 500;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-item {
  border-left: 2px solid var(--border);
  padding-left: 18px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.job-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.company {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.job-details {
  list-style: disc;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--text);
}

.job-details li {
  margin-bottom: 6px;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.compact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 8px;
}

.compact-card h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card-main {
  font-weight: 600;
  font-size: 1rem;
}

.card-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cert-list {
  list-style: none;
  font-size: 0.88rem;
}

.cert-list li {
  margin-bottom: 6px;
}

.interest-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}