:root {
  --bg: #0f1420;
  --surface: #161c2a;
  --surface-2: #1d2436;
  --text: #e6eaf2;
  --text-muted: #9aa6b8;
  --accent: #4da3ff;
  --accent-dark: #8fc1ff;
  --border: #2a3348;
  --chip-bg: #1d2b40;
  --chip-border: #2d425f;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --max-width: 860px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, #103a6b 0%, #0a1f3a 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  background: #fff;
}

.identity h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.tagline {
  color: #bcd4ee;
  font-size: 1.05rem;
  margin-top: 0.25rem;
}

.contact-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.92rem;
}

.contact-links a {
  color: #fff;
}

.contact-links a:hover {
  color: #bcd4ee;
}

/* ---------- Main ---------- */
main.container {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.card h2 {
  font-size: 1.25rem;
  color: var(--accent-dark);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
}

.card h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ---------- Experience / entries ---------- */
.entry {
  margin-bottom: 1.5rem;
}

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

.entry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.25rem;
}

.entry-header h3 {
  margin-bottom: 0;
}

.company {
  font-weight: 600;
  color: var(--accent) !important;
  margin-bottom: 0 !important;
}

.date-range {
  margin-left: auto;
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.entry-sub {
  font-style: italic;
  font-size: 0.95rem;
}

.entry ul,
.achievement-list {
  list-style: none;
  margin-top: 0.5rem;
}

.entry ul li,
.achievement-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.entry ul li::before,
.achievement-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Skills ---------- */
.skill-group {
  font-size: 0.95rem;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 1rem 0 0.35rem;
}

.skill-group:first-of-type {
  margin-top: 0;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-list li {
  background: var(--chip-bg);
  color: var(--accent-dark);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  font-size: 0.88rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.site-footer p {
  margin-bottom: 0.25rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.visitor-count {
  font-weight: 600;
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .contact-links {
    justify-content: center;
  }

  .identity h1 {
    font-size: 1.5rem;
  }

  .date-range {
    margin-left: 0;
  }
}

/* ---------- Print ---------- */
@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11.5px;
  }

  .site-header {
    background: #fff;
    color: #000;
    padding: 0 0 1rem;
  }

  .site-header a,
  .identity h1,
  .tagline,
  .contact-links a {
    color: #000;
  }

  .card {
    background: #fff;
    border: none;
    box-shadow: none;
    padding: 0.75rem 0;
    page-break-inside: avoid;
  }

  .card h2 {
    color: #000;
  }

  .card p,
  .entry ul li,
  .achievement-list li {
    color: #000;
  }

  .profile-photo {
    width: 72px;
    height: 72px;
  }

  .site-footer {
    border-top: 1px solid #ccc;
  }
}
