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

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

body {
  font-family: "Open Sans", sans-serif;
  background-color: #f3f4f6;
  color: #111827;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.download-bar {
  width: 210mm;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.download-bar p {
  font-size: 0.8rem;
  color: #6b7280;
}

.download-bar a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.download-bar a:hover {
  text-decoration: underline;
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  color: #3b82f6;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resume-page {
  background-color: #ffffff;
  width: 210mm;
  min-height: 297mm;
  padding: 10mm;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

header {
  margin-bottom: 2rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
}

p.job-title {
  color: #3b82f6;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4b5563;
  font-style: normal;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

section.summary-section,
section.languages-section,
section.skills-section,
section.education-section,
section.training-section {
  margin-bottom: 1.5rem;
}

main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 2px solid #000;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
}

.job-entry {
  margin-bottom: 1.5rem;
}

h3.job-title-company {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.company-name {
  color: #3b82f6;
}

.job-meta {
  font-size: 0.7rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 1rem;
}

.job-description {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-left: 1rem;
}

.job-description li {
  margin-bottom: 0.25rem;
}

.summary-text {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  margin: 0;
}

.languages-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.language-name {
  font-size: 0.8rem;
  font-weight: 700;
  display: block;
}

.language-level {
  font-size: 0.72rem;
  font-weight: 400;
  color: #6b7280;
}

.skills-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.skill-tag {
  background-color: #bfdbfe;
  color: #1e3a8a;
  padding: 0.25rem 0.75rem;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
}

.education-entry {
  margin-bottom: 1rem;
}

h3.degree {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

p.university {
  color: #3b82f6;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

@media (max-width: 767px) {
  body {
    padding: 0.5rem;
  }

  .download-bar {
    width: 100%;
  }

  .resume-page {
    width: 100%;
    min-height: unset;
    padding: 1.25rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  p.job-title {
    font-size: 1.2rem;
  }

  .contact-info {
    font-size: 0.9rem;
    gap: 0.75rem;
  }

  main {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .left-column {
    order: 2;
  }

  .right-column {
    order: 1;
  }

  .section-title {
    font-size: 1.1rem;
  }

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

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

  .summary-text {
    font-size: 0.95rem;
  }

  .language-name {
    font-size: 0.95rem;
  }

  .language-level {
    font-size: 0.85rem;
  }

  .skill-tag {
    font-size: 0.9rem;
  }

  h3.degree {
    font-size: 1rem;
  }

  p.university {
    font-size: 0.95rem;
  }
}

@media print {
  body {
    background-color: transparent;
    padding: 0;
  }

  .download-bar {
    display: none;
  }

  .resume-page {
    width: 210mm;
    min-height: 297mm;
    padding: 10mm;
    box-shadow: none;
  }

  main {
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }

  .left-column {
    order: 0;
  }

  .right-column {
    order: 0;
  }

  h1 { font-size: 2.5rem; }
  p.job-title { font-size: 1.5rem; }
  .contact-info { font-size: 0.75rem; }
  .section-title { font-size: 1.25rem; }
  .job-meta { font-size: 0.7rem; }
  .job-description { font-size: 0.8rem; }
  .summary-text { font-size: 0.8rem; }
  .language-name { font-size: 0.8rem; }
  .language-level { font-size: 0.72rem; }
  .skill-tag { font-size: 0.75rem; }
  h3.degree { font-size: 0.9rem; }
  p.university { font-size: 0.85rem; }
}
