* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.3;
  color: #000;
  background: #f5f5f5;
  font-size: 10.5pt;
}

.container {
  max-width: 210mm;
  margin: 0 auto;
  background: #fff;
  padding: 0.75in;
  min-height: 297mm;
  position: relative;
}

@media print {
  body {
    background: #fff;
  }
  .container {
    padding: 0.5in;
    margin: 0;
  }
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #000;
  padding-bottom: 8px;
}

.header h1 {
  font-size: 20pt;
  font-weight: bold;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.header .title {
  font-size: 11pt;
  margin-bottom: 6px;
  font-weight: normal;
}

.contact {
  font-size: 9.5pt;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.contact-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.contact a {
  color: #000;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact a:hover {
  text-decoration: underline;
}

/* Section Headers */
.section {
  margin-bottom: 14px;
}

.section-title {
  font-size: 11pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  border-bottom: 1px solid #000;
  padding-bottom: 2px;
}

/* Summary */
.summary {
  text-align: justify;
  line-height: 1.4;
}

/* Skills */
.skills-grid {
  line-height: 1.5;
}

.skill-category {
  margin-bottom: 4px;
}

.skill-category strong {
  font-weight: bold;
}

/* Experience */
.job {
  margin-bottom: 10px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.job-title-company {
  font-weight: bold;
  font-size: 10.5pt;
}

.job-date {
  font-style: italic;
  font-size: 9.5pt;
  color: #333;
}

.job-position {
  font-style: italic;
  margin-bottom: 4px;
  font-size: 10pt;
}

.job ul {
  margin-left: 18px;
  margin-top: 3px;
}

.job li {
  margin-bottom: 3px;
  line-height: 1.35;
}

/* Projects */
.project {
  margin-bottom: 8px;
}

.project-header {
  font-weight: bold;
  margin-bottom: 3px;
}

.project-header a {
  color: #000;
  text-decoration: none;
}

.project-description {
  line-height: 1.4;
}

.project ul {
  margin-left: 18px;
  margin-top: 3px;
}

.project li {
  margin-bottom: 3px;
  line-height: 1.35;
}

/* Education */
.education-item {
  margin-bottom: 6px;
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.education-school {
  font-weight: bold;
}

.education-date {
  font-style: italic;
  font-size: 9.5pt;
  color: #333;
}

.education-degree {
  font-size: 10pt;
}

/* Metrics highlighting */
strong.metric {
  font-weight: bold;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    min-height: auto;
    padding: 24px 16px;
  }

  .header {
    margin-bottom: 14px;
  }

  .header h1 {
    font-size: 17pt;
    letter-spacing: 0.6px;
  }

  .header .title {
    font-size: 10.5pt;
  }

  .contact {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    line-height: 1.5;
  }

  .section {
    margin-bottom: 12px;
  }

  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .job ul,
  .project ul {
    margin-left: 16px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 10pt;
  }

  .container {
    padding: 16px 12px;
  }

  .header h1 {
    font-size: 15pt;
    letter-spacing: 0.4px;
  }

  .header .title {
    font-size: 10pt;
  }

  .contact {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    line-height: 1.7;
  }

  .contact-icon {
    width: 13px;
    height: 13px;
  }

  .section-title {
    font-size: 10pt;
  }

  .job-title-company {
    font-size: 10pt;
  }
}
