/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f8f9fa;
}

/* ----- Layout ----- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ----- Header ----- */
.header {
  background: #1a1a1a;
  color: #fff;
  padding: 2rem 0;
  margin-bottom: 2rem;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.3);
}
.header-text { min-width: 0; }
.header .name {
  margin: 0 0 0.25rem 0;
  font-size: 1.75rem;
  font-weight: 700;
}
.header .tagline {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  opacity: 0.9;
}
.header .contact {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}
.header .sep {
  margin: 0 0.5rem;
  opacity: 0.6;
}

/* ----- Main sections ----- */
.main { padding-bottom: 3rem; }
.section {
  background: #fff;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.section-title {
  margin: 0 0 1rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Summary */
.summary-text {
  margin: 0;
  color: #333;
}

/* Work Experience */
.job {
  margin-bottom: 1.5rem;
}
.job:last-child { margin-bottom: 0; }
.job-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.job-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.job-date {
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
}
.job-company {
  margin: 0.25rem 0 0.5rem 0;
  font-size: 0.95rem;
  color: #555;
}
.job-duties {
  margin: 0;
  padding-left: 1.25rem;
}
.job-duties li {
  margin-bottom: 0.35rem;
  color: #333;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.skill-group { margin: 0; }
.skill-category {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}
.skill-list {
  margin: 0;
  padding-left: 1.1rem;
}
.skill-list li { margin-bottom: 0.25rem; color: #444; }

/* Awards & Speaker */
.awards-list, .speaker-list {
  margin: 0;
  padding-left: 1.25rem;
}
.award, .speaker-item {
  margin-bottom: 0.6rem;
  color: #333;
}

/* More (links) ----- */
.section-links { padding: 1.5rem 1.75rem; }
.link-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 1.25rem 1.5rem;
  background: #f0f0f0;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.link-card:hover {
  background: #e8e8e8;
  border-color: #1a1a1a;
  transform: translateY(-2px);
}
.link-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.link-card-label { font-size: 1rem; }
.link-card-desc {
  font-size: 0.8rem;
  font-weight: 400;
  color: #555;
  margin-top: 0.2rem;
}

/* ----- Footer ----- */
.footer {
  padding: 1.25rem 0;
  background: #e9ecef;
  color: #555;
  font-size: 0.9rem;
  text-align: center;
}
.footer p { margin: 0; }

/* ----- Print (ATS-friendly) ----- */
@media print {
  body { background: #fff; }
  .header {
    background: #1a1a1a;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .section {
    box-shadow: none;
    border: 1px solid #e0e0e0;
    break-inside: avoid;
  }
  .link-card {
    border: 1px solid #333;
    break-inside: avoid;
  }
  .link-card:hover { transform: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.85em; opacity: 0.8; }
}

/* ----- Responsive ----- */
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; }
  .profile-photo { width: 96px; height: 96px; }
  .job-header { flex-direction: column; align-items: flex-start; }
  .link-cards { flex-direction: column; }
  .link-card { min-width: 100%; }
}
