/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #334155;
  background: #e2e8f0;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ===== PAGE CONTAINER ===== */
.page {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 960px;
  margin: 20px auto;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  min-height: 1340px;
}

/* ===== SIDEBAR ===== */
.sidebar {
  background: #1e293b;
  color: #e2e8f0;
  padding: 32px 22px;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f59e0b;
}

.name {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.title {
  font-size: 0.82rem;
  color: #f59e0b;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Sidebar sections */
.sidebar-section {
  margin-bottom: 22px;
}

.sidebar-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f59e0b;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #334155;
}

/* Contact list */
.contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  margin-bottom: 7px;
  color: #cbd5e1;
}

.contact-list a {
  color: #cbd5e1;
}

.contact-list a:hover {
  color: #f59e0b;
}

.icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #94a3b8;
}

/* Skills */
.skill-group {
  margin-bottom: 10px;
}

.skill-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  display: inline-block;
  padding: 2px 7px;
  font-size: 0.68rem;
  background: #334155;
  color: #e2e8f0;
  border-radius: 3px;
  font-weight: 400;
}

.tag-light {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Education */
.education-item {
  margin-bottom: 10px;
}

.edu-degree {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.edu-school {
  font-size: 0.72rem;
  color: #94a3b8;
}

.edu-date {
  font-size: 0.68rem;
  color: #64748b;
}

/* Languages */
.languages-list li {
  font-size: 0.78rem;
  margin-bottom: 4px;
  color: #cbd5e1;
}

.lang-level {
  color: #64748b;
  font-size: 0.7rem;
  font-style: italic;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 28px 32px;
}

.section {
  margin-bottom: 20px;
}

.section-heading {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e293b;
  padding-bottom: 6px;
  border-bottom: 2px solid #f59e0b;
  margin-bottom: 12px;
}

/* Summary */
.summary {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #475569;
}

/* Job entries */
.job {
  margin-bottom: 16px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.job-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
}

.job-company {
  font-size: 0.78rem;
  color: #64748b;
}

.promotion {
  font-size: 0.75rem;
  color: #f59e0b;
  font-weight: 500;
}

.job-link {
  color: #94a3b8;
  font-style: italic;
}

.job-date {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  text-align: right;
  min-width: 120px;
  padding-top: 2px;
}

.job-description {
  font-size: 0.76rem;
  color: #64748b;
  font-style: italic;
  margin-bottom: 6px;
  line-height: 1.45;
}

.job-bullets {
  list-style: none;
}

.job-bullets li {
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 4px;
  padding-left: 12px;
  position: relative;
  color: #475569;
}

.job-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f59e0b;
}

/* Projects */
.project {
  margin-bottom: 14px;
}

.project-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 3px;
}

.project-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
}

.project-link {
  font-size: 0.72rem;
  color: #94a3b8;
}

.project-link:hover {
  color: #f59e0b;
}

.project-desc {
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 6px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ===== PRINT STYLES ===== */
@page {
  size: A4;
  margin: 0;
}

@media print {
  html {
    font-size: 13px;
  }

  body {
    background: none;
  }

  .page {
    margin: 0;
    box-shadow: none;
    max-width: none;
    min-height: auto;
  }

  .sidebar a[href]::after {
    content: none;
  }

  .contact-list a:hover,
  .project-link:hover {
    text-decoration: none;
    color: inherit;
  }
}
