/* Resume Stylesheet - Clean, Professional, Print-Optimized */

:root {
  --text: #1a1a1a;
  --text-muted: #4a4a4a;
  --text-light: #6b7280;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-hover: #1d4ed8;
  --accent-subtle: #dbeafe;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --bg: #ffffff;
  --bg-footer: #f9fafb;
}

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

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

.resume-container {
  max-width: 8.5in;
  margin: 0 auto;
  padding: 0.5in;
  background: var(--bg);
}

/* ===== HEADER ===== */
.resume-header {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--accent);
}

.resume-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

/* ===== CONTACT LINE WITH ICONS ===== */
.contact-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* SVG Icons */
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  color: var(--text-muted);
}

.icon-linkedin {
  color: #0a66c2;
}

.contact-line a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ===== MAIN CONTENT ===== */
.resume-content {
  line-height: 1.6;
}

/* Summary paragraph */
.resume-content > p:first-child {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-bottom: 0.5rem;
}

/* ===== SECTION HEADINGS WITH ACCENT ===== */
h2 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.35rem;
  padding-left: 0.5rem;
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
  position: relative;
}

/* Accent left border on section headings */
h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== JOB ENTRIES ===== */
h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.125rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}

/* Location and dates */
h3 + p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

h3 + p strong {
  font-weight: 500;
  font-style: normal;
}

/* ===== LISTS ===== */
ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.3rem;
  line-height: 1.55;
}

li::marker {
  color: var(--accent-light);
}

/* Core Competencies - Two Column Layout */
h2:first-of-type + ul {
  columns: 2;
  column-gap: 2rem;
}

h2:first-of-type + ul li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

/* Certifications - also two columns */
h2:nth-of-type(2) + ul {
  columns: 2;
  column-gap: 2rem;
}

h2:nth-of-type(2) + ul li {
  break-inside: avoid;
}

/* ===== LINKS ===== */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.resume-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-footer);
  margin-left: -0.5in;
  margin-right: -0.5in;
  margin-bottom: -0.5in;
  padding-left: 0.5in;
  padding-right: 0.5in;
  padding-bottom: 1.5rem;
}

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

.last-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.download-links {
  display: flex;
  gap: 0.75rem;
}

.download-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.download-btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

/* ===== PRINT STYLES ===== */
@media print {
  body {
    font-size: 10pt;
  }

  .resume-container {
    padding: 0;
    max-width: none;
  }

  .no-print {
    display: none !important;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  ul {
    page-break-inside: avoid;
  }

  .resume-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
  }

  h2 {
    margin-top: 1.25rem;
    color: var(--text);
  }

  h2::before {
    background: var(--text);
  }

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

  a[href^="http"]::after {
    content: none;
  }

  li::marker {
    color: var(--text);
  }
}

/* ===== SCREEN ENHANCEMENTS ===== */
@media screen {
  body {
    background: #f3f4f6;
    padding: 2rem 1rem;
  }

  .resume-container {
    box-shadow:
      0 4px 6px -1px rgba(0, 0, 0, 0.1),
      0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
  }
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media screen and (max-width: 640px) {
  body {
    padding: 0;
  }

  .resume-container {
    padding: 1rem;
    border-radius: 0;
  }

  .resume-header h1 {
    font-size: 1.5rem;
  }

  .contact-line {
    gap: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  h2:first-of-type + ul,
  h2:nth-of-type(2) + ul {
    columns: 1;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
