:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5c677d;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e2e8f0;
  --hero-bg: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  background: var(--hero-bg);
  color: #fff;
  padding: 4rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.hero-profile {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}

.profile-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  border: 3px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
}

.hero-text {
  min-width: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #93c5fd;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.tagline {
  font-size: 1.05rem;
  color: #dbeafe;
  max-width: 58ch;
  margin: 0 0 1.5rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.contact-row a,
.footer-links a {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-row a:hover,
.footer-links a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.hero-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-card li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}

.hero-card li:last-child {
  border-bottom: none;
}

main {
  padding: 2rem 0 3rem;
}

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

.section-title {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: 1.02rem;
  color: var(--muted);
  margin-top: 0;
}

.bullet-list,
.skill-list {
  margin: 0;
  padding-left: 1.2rem;
}

.bullet-list li,
.skill-list li {
  margin-bottom: 0.55rem;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.job + .job {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

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

.job h3,
.education h3 {
  margin: 0;
  font-size: 1.15rem;
}

.company {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-weight: 500;
}

.date {
  white-space: nowrap;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  background: #eff6ff;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.job-intro {
  margin: 0 0 0.5rem;
}

.education {
  padding: 0.25rem 0;
}

.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
}

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

@media (max-width: 860px) {
  .hero-inner,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text .tagline {
    max-width: none;
  }

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

  .job-header {
    flex-direction: column;
  }

  .date {
    align-self: flex-start;
  }
}

@media print {
  body {
    background: #fff;
  }

  .hero {
    background: #0f172a;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .section {
    box-shadow: none;
    break-inside: avoid;
  }

  .contact-row a,
  .footer-links a {
    border: none;
    padding: 0;
    background: none;
  }
}
