/**
 * ATS-Friendly Resume Styles
 * Single-column layout, standard fonts, clean structure for optimal parsing
 */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap');

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

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.4;
  color: #1a1a1a;
  background: #fff;
  padding: 1.5rem;
  max-width: 8.5in;
  margin: 0 auto;
}

.resume {
  max-width: 8.5in;
}

/* Header */
.header {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #1a1a1a;
  margin-bottom: 1rem;
}

.header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

.header .title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.contact {
  font-size: 0.9rem;
  color: #444;
}

.contact a {
  color: #1a1a1a;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.contact .sep {
  margin: 0 0.4rem;
  color: #999;
}

/* Sections */
.section {
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  margin-bottom: 0.6rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid #ccc;
}

/* Summary */
.summary {
  font-size: 11pt;
  line-height: 1.5;
  text-align: justify;
}

.summary-bullets {
  list-style-type: disc;
  margin-left: 1.25rem;
  padding-left: 0.25rem;
}

.summary-bullets li {
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

.summary-bullets a {
  color: #1a1a1a;
  text-decoration: underline;
}

/* Skills */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skills-group {
  font-size: 10.5pt;
  line-height: 1.4;
}

.skills-group strong {
  font-weight: 700;
  margin-right: 0.25rem;
}

strong {
  font-weight: 700;
}

/* Jobs */
.job {
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.job:first-of-type {
  padding-top: 0;
  border-top: none;
}

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

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

.job h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.job .company {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
}

.job-meta {
  text-align: right;
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
}

.job-meta .location {
  display: block;
  font-size: 0.85rem;
}

.tech-stack {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.job ul,
.project ul {
  list-style-type: disc;
  margin-left: 1.25rem;
  padding-left: 0.25rem;
}

.job li,
.project li {
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

/* Projects */
.project {
  margin-bottom: 1rem;
}

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

.project h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.project h3 a {
  color: #1a1a1a;
  text-decoration: none;
}

.project h3 a:hover {
  text-decoration: underline;
}

.project p {
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.project .tech-stack {
  margin-bottom: 0.35rem;
}

/* Print styles */
@media print {
  @page {
    size: letter;
    margin: 0.4in;
  }

  html, body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-size: 10pt;
    line-height: 1.4;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    padding: 0;
  }

  .resume {
    max-width: none;
  }

  .header {
    padding-bottom: 0.65rem;
    margin-bottom: 0.65rem;
  }

  .header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
  }

  .header .title {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
  }

  .contact {
    font-size: 0.85rem;
  }

  .section {
    margin-bottom: 0.75rem;
  }

  .section-title {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.15rem;
  }

  .summary {
    font-size: 10pt;
    line-height: 1.42;
    margin-bottom: 0;
  }

  .summary-bullets li {
    margin-bottom: 0.28rem;
  }

  .job {
    padding-top: 0.6rem;
    border-top-color: #ddd;
  }

  .job:first-of-type {
    padding-top: 0;
  }

  .skills-grid {
    gap: 0.2rem;
  }

  .skills-group {
    font-size: 9.5pt;
    line-height: 1.35;
  }

  .job {
    margin-bottom: 0.7rem;
  }

  .job-header {
    margin-bottom: 0.28rem;
  }

  .job h3 {
    font-size: 0.95rem;
  }

  .job .company,
  .tech-stack {
    font-size: 0.8rem;
  }

  .tech-stack {
    margin-bottom: 0.28rem;
  }

  .job li,
  .project li {
    margin-bottom: 0.32rem;
    line-height: 1.4;
  }

  .project {
    margin-bottom: 0.6rem;
  }

  .project h3 {
    font-size: 0.9rem;
    margin-bottom: 0.18rem;
  }

  .project p {
    font-size: 10pt;
    margin-bottom: 0.25rem;
    line-height: 1.4;
  }

  .project .tech-stack {
    margin-bottom: 0.18rem;
  }

  /* Prevent URLs from appearing after links */
  a[href]::after {
    content: none !important;
  }

  a {
    color: #1a1a1a;
    text-decoration: none;
  }

  .contact .sep {
    color: #1a1a1a;
  }
}

/* Responsive */
@media screen and (max-width: 600px) {
  body {
    padding: 1rem;
  }

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

  .job-meta {
    text-align: left;
  }
}
