:root {
  --accent: #e8a0b4;
  --accent-dark: #d4768e;
  --bg: #f7f7f7;
  --card-bg: #ffffff;
  --text-primary: #333333;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border: #e0e0e0;
  --font-sans: "Inter", sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  padding: 2rem 1rem;
}

.cv-container {
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 1.5rem;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.7;
}

/* Header */
.cv-header {
  text-align: center;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--accent);
}

.cv-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cv-header .title {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.cv-header .contact {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cv-header .contact a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* Sections */
.cv-section {
  margin-bottom: 2.5rem;
}

.cv-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

/* About */
.about-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.additional-list {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-left: 1rem;
}

/* Timeline items (Experience, Education) */
.timeline-item {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--accent);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

.timeline-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-item .company {
  font-size: 0.9rem;
  color: var(--accent-dark);
  margin-bottom: 0.25rem;
}

.timeline-item .period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-item .description {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.timeline-item .description li {
  margin-bottom: 0.25rem;
  margin-left: 1rem;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-category h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  background-color: var(--card-bg);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
}

/* Projects */
.project-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

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

.project-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.project-item h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

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

.project-item .project-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.project-item .project-desc {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.project-item .project-desc li {
  margin-bottom: 0.25rem;
}

.project-item .project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-item .project-tech span {
  background-color: var(--bg);
  color: var(--accent-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* Print */
@media print {
  body {
    background-color: #fff;
    color: #222;
    padding: 0;
  }

  .back-link {
    display: none;
  }

  .cv-container {
    max-width: 100%;
  }

  .cv-header h1 {
    color: #222;
  }

  .cv-header .title {
    color: #555;
  }

  .cv-header .contact,
  .cv-header .contact a {
    color: #555;
  }

  .cv-header {
    border-bottom-color: #ccc;
  }

  .cv-section h2 {
    color: #555;
    border-bottom-color: #ddd;
  }

  .about-text,
  .timeline-item .description,
  .project-item .project-desc {
    color: #333;
  }

  .timeline-item {
    border-left-color: #ccc;
  }

  .timeline-item::before {
    background-color: #ccc;
  }

  .timeline-item h3,
  .skill-category h3,
  .project-item h3 {
    color: #222;
  }

  .timeline-item .company,
  .timeline-item .period,
  .project-item .project-period {
    color: #666;
  }

  .skill-tag {
    background-color: #f5f5f5;
    color: #333;
    border-color: #ddd;
  }

  .project-item {
    background-color: #f9f9f9;
    border-color: #ddd;
  }

  .project-item .project-tech span {
    background-color: #eee;
    color: #555;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .cv-header h1 {
    font-size: 1.5rem;
  }

  .cv-header .contact {
    flex-direction: column;
    gap: 0.3rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}
