/**
 * Modern Resume/CV Style
 */

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 10pt;
  line-height: 1.6;
  color: #1f2937;
  max-width: 8.5in;
  margin: 0.5in auto;
  padding: 0;
}

/* Name/Header */
h1 {
  font-size: 32pt;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 0.05in 0;
  line-height: 1.1;
  text-align: center;
}

/* Subtitle (role) */
h1 + p {
  text-align: center;
  font-size: 13pt;
  font-weight: 500;
  color: #4b5563;
  margin: 0 0 0.1in 0;
}

/* Contact info */
h1 + p + p {
  text-align: center;
  font-size: 9pt;
  color: #6b7280;
  margin: 0 0 0.15in 0;
  line-height: 1.8;
}

/* Horizontal dividers */
hr {
  border: none;
  border-top: 2px solid #dbeafe;
  margin: 0.15in 0;
}

/* Section headers (h2) */
h2 {
  font-size: 14pt;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0.2in 0 0.1in 0;
  padding-bottom: 0.05in;
  border-bottom: 2px solid #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Subsection headers (h3) - Company/Organization names */
h3 {
  font-size: 11pt;
  font-weight: 700;
  color: #1f2937;
  margin: 0.12in 0 0.05in 0;
}

/* Job titles and roles */
h3 + p {
  font-size: 10pt;
  font-weight: 600;
  color: #4b5563;
  margin: 0 0 0.08in 0;
}

/* Paragraphs */
p {
  margin: 0.06in 0;
  text-align: left;
}

/* Lists */
ul {
  margin: 0.08in 0;
  padding-left: 0.25in;
  list-style-type: disc;
}

li {
  margin: 0.04in 0;
  line-height: 1.5;
}

/* Strong text */
strong {
  font-weight: 600;
  color: #1f2937;
}

/* Emphasis */
em {
  font-style: italic;
  color: #4b5563;
}

/* Links */
a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Technical skills section - make it stand out */
h2:contains("Technical Skills") + p {
  background: #f3f4f6;
  padding: 0.1in;
  border-radius: 4px;
  margin: 0.08in 0;
}

/* Professional Summary */
h2:first-of-type + p {
  font-size: 10.5pt;
  line-height: 1.7;
  color: #374151;
}

/* Code/technical terms */
code {
  font-family: 'Courier New', monospace;
  background: #f3f4f6;
  padding: 0.02in 0.05in;
  border-radius: 3px;
  font-size: 9pt;
  color: #1e40af;
}

/* Compact spacing for experience bullets */
h3 ~ ul {
  margin-top: 0.06in;
}

/* Key Technologies emphasis */
p:contains("Key Technologies") {
  margin-top: 0.08in;
  padding: 0.06in;
  background: #eff6ff;
  border-left: 3px solid #2563eb;
  font-size: 9pt;
  font-weight: 500;
}

/* Education section */
h2:contains("Education") ~ h3 {
  color: #1e3a8a;
}

/* Projects section */
h2:contains("Projects") ~ h3 {
  color: #7c3aed;
  font-size: 10.5pt;
}

/* Certifications - make them standout */
h2:contains("Certifications") ~ ul li {
  background: #fef3c7;
  padding: 0.05in;
  margin: 0.05in 0;
  border-left: 3px solid #f59e0b;
  list-style: none;
}

h2:contains("Certifications") ~ ul {
  padding-left: 0;
}

/* Page breaks */
@media print {
  h2 {
    page-break-after: avoid;
  }

  h3 {
    page-break-after: avoid;
  }

  li {
    page-break-inside: avoid;
  }
}

/* Compact layout */
body > *:first-child {
  margin-top: 0;
}

/* Footer note */
p:contains("References") {
  text-align: center;
  font-size: 9pt;
  color: #9ca3af;
  font-style: italic;
  margin-top: 0.15in;
}
