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

:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #52606d;
  --accent: #0078d4; /* Azure blue */
  --border: #e4e7eb;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  padding: 2rem 1rem;
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}

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

header .title {
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.25rem;
}

.contact {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

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

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

/* ---------- Sections ---------- */
section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

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

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

/* ---------- Lists ---------- */
section ul {
  list-style: none;
  padding-left: 0;
}

section ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

section ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ---------- Experience / Projects ---------- */
article {
  margin-bottom: 1.25rem;
}

article:last-child {
  margin-bottom: 0;
}

article h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.company {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

#visitor-count {
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  body {
    padding: 1rem 0.75rem;
  }

  header h1 {
    font-size: 1.75rem;
  }

  section {
    padding: 1.15rem;
  }
}

/* ---------- Print (for PDF export) ---------- */
@media print {
  body {
    background: #fff;
    padding: 0;
    max-width: 100%;
  }

  section {
    box-shadow: none;
    border: none;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    page-break-inside: avoid;
  }

  footer {
    display: none;
  }
}