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

:root {
  --primary-dark: #1b3a5c;
  --primary-darker: #152e4a;
  --text-dark: #333;
  --text-secondary: #555;
  --border-color: #ccc;
  --skill-border: #8a9bb5;
  --skill-bg: #f0f3f7;
  --lang-bar: #3b5998;
}

body {
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.45;
  color: var(--text-dark);
  max-width: 800px;
  margin: 20px auto;
  background: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

html {
  background: #e8e8e8;
}

.header-top {
  background: var(--primary-dark);
  text-align: center;
  padding: 24px 20px 16px;
}

.header-top h1 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
}

.contact-bar {
  background: var(--primary-darker);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 8px 20px;
  flex-wrap: wrap;
}

.contact-bar a,
.contact-bar span {
  color: white;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.contact-icon {
  font-size: 14px;
}

.content {
  padding: 20px 40px 25px;
}

section {
  margin-bottom: 16px;
}

h2 {
  font-size: 18px;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary-dark);
  padding-bottom: 4px;
  margin-bottom: 8px;
  font-weight: 700;
}

.summary-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dark);
  text-align: justify;
}

.job-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  color: #222;
}

.job-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.job-company {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

.job-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.experience-list {
  padding-left: 20px;
  margin: 4px 0 0 0;
}

.experience-list li {
  font-size: 14px;
  margin-bottom: 3px;
  line-height: 1.45;
}

.edu-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

.edu-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

.edu-details {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.edu-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.edu-list {
  padding-left: 20px;
  margin-top: 4px;
}

.edu-list li {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 3px;
}

.project-block {
  margin-bottom: 10px;
}

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

.project-header {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 0;
}

.project-header span {
  font-weight: 400;
}

.project-sub {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.project-sub a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

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

.project-list {
  padding-left: 20px;
  margin: 0;
}

.project-list li {
  font-size: 14px;
  margin-bottom: 3px;
  line-height: 1.45;
}

.skills-group {
  margin-bottom: 10px;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skill-category-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-block;
  padding: 3px 12px;
  border: 1.5px solid var(--skill-border);
  border-radius: 20px;
  font-size: 12.5px;
  color: var(--text-dark);
  background: var(--skill-bg);
  font-weight: 500;
}

.languages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
}

.language-item {
  display: flex;
  flex-direction: column;
}

.language-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.language-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

.language-level {
  font-size: 13px;
  color: var(--text-secondary);
}

.language-bar-bg {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.language-bar-fill {
  height: 100%;
  background: var(--lang-bar);
  border-radius: 3px;
}

@media print {
  @page {
    margin: 0;
    size: auto;
  }
  body {
    max-width: 100%;
    margin: 0;
    box-shadow: none;
  }
  .header-top {
    padding-top: 25px;
  }
  .content {
    padding: 15px 35px 20px;
  }
}
