:root {
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --accent: #0ea5e9;
  --border: #e5e7eb;
  --bg-light: #f9fafb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-secondary);
  background: #f0f2f5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.page {
  background: white;
  width: 21cm;
  min-height: 29.7cm;
  margin: 40px auto;
  padding: 48px 56px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Header */
header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--text-primary);
}

header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.role {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.contact-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.contact-row a {
  color: var(--text-muted);
  text-decoration: none;
}

.contact-row a:hover {
  color: var(--accent);
}

/* Sections */
section {
  margin-bottom: 24px;
}

h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* Summary */
.summary {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Skills */
.skills-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-group h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Experience/Projects */
.item {
  margin-bottom: 16px;
}

.item:last-child {
  margin-bottom: 0;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.item-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.item-subtitle {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}

.item-description {
  font-size: 13px;
  color: var(--text-secondary);
}

.item-description ul {
  padding-left: 16px;
  margin: 0;
}

.item-description li {
  margin-bottom: 2px;
}

/* Print Styles */
@media print {
  body {
    background: white;
  }
  .page {
    box-shadow: none;
    margin: 0;
    padding: 40px 48px;
    width: 100%;
  }
  .no-print {
    display: none !important;
  }
  a {
    color: inherit !important;
  }
}

/* Navigation Buttons */
.btn-back {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--text-primary);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-print {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  transition: all 0.2s ease;
}

.btn-print:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}
