/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e5e7eb;
  --radius: 12px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Card container ===== */
.resume {
  background: var(--card);
  width: 100%;
  max-width: 820px;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ===== Header ===== */
.header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--accent);
}

.header-text h1 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.title {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact a {
  color: var(--muted);
  text-decoration: none;
}

.contact a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== Sections ===== */
.section {
  margin-top: 2rem;
}

.section h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

/* ===== Jobs / entries ===== */
.job {
  margin-bottom: 1.25rem;
}

.job:last-child {
  margin-bottom: 0;
}

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.job-head h3 {
  font-size: 1rem;
  font-weight: 600;
}

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

.job ul {
  margin: 0.4rem 0 0 1.1rem;
  font-size: 0.925rem;
}

.job li {
  margin-bottom: 0.25rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Skill tags ===== */
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  background: #eef2ff;
  color: var(--accent);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.825rem;
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Print styles (for PDF export) ===== */
@media print {
  body {
    background: #fff;
    padding: 0;
  }
  .resume {
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
    padding: 0;
  }
  .footer {
    display: none;
  }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .resume {
    padding: 1.5rem;
  }
  .header {
    flex-direction: column;
    text-align: center;
  }
  .contact {
    justify-content: center;
  }
  .job-head {
    flex-direction: column;
  }
}