@mixin section($color) {
  margin: 2rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--#{$color});
}

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

.cv-header {
  margin-bottom: 3rem;
  text-align: center;
}

.cv-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.cv-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.cv-meta a {
  color: var(--accent);
  text-decoration: none;
}

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

.cv-social {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.cv-social a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.cv-social a:hover {
  color: var(--accent);
}

.cv-section {
  @include section(text);
  margin-top: 2.5rem;
  padding-bottom: 1rem;
}

.cv-section h2 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.cv-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cv-section li {
  margin-bottom: 1rem;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.skills-list li {
  background: var(--border);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.skills-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--accent);
}

.exp-list, .edu-list, .projects-list {
  list-style: none;
  padding: 0;
}

.exp-item, .edu-item, .project-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.exp-item:last-child, .edu-item:last-child, .project-item:last-child {
  border-bottom: none;
}

.exp-header, .edu-header, .project-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.exp-header strong, .edu-header strong, .project-header strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
}

.exp-company, .edu-degree {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.exp-date, .edu-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.exp-location, .edu-area {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.edu-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.exp-highlights, .edu-highlights, .project-highlights {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.exp-highlights li, .edu-highlights li, .project-highlights li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.exp-highlights li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.project-header a {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  margin-left: 0.5rem;
}

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

@media (max-width: 640px) {
  .cv-header h1 {
    font-size: 1.5rem;
  }
  
  .cv-meta {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .exp-header, .edu-header, .project-header {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
  
  .exp-date, .edu-date {
    margin-left: 0;
    font-size: 0.8rem;
  }
}