/* Reusable components: stats, cards, tags, timeline, buttons, contact. */

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 12px var(--shadow-medium);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--surface-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px var(--shadow-medium);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  font-size: 20px;
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.card-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.card-description--lead {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.card-description--lead:last-child {
  margin-bottom: 0;
}

.card-description a {
  color: var(--primary-blue);
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--surface-tertiary);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border-light);
}

.tag.primary {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.tag.success {
  background: var(--accent-green);
  color: white;
  border-color: var(--accent-green);
}

.tag.warning {
  background: var(--accent-yellow);
  color: var(--text-primary);
  border-color: var(--accent-yellow);
}

/* Timeline (experience & projects) */
.timeline-item {
  background: var(--surface-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.timeline-item:hover {
  box-shadow: 0 2px 8px var(--shadow-light);
}

.timeline-item.fade-in {
  animation: fadeInUp 0.6s ease both;
}

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

.timeline-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-company {
  color: var(--primary-blue);
  font-weight: 500;
  font-size: 14px;
}

.timeline-date {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-tertiary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.achievement-list {
  list-style: none;
}

.achievement-list li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.achievement-list li::before {
  content: "•";
  color: var(--primary-blue);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font: inherit;
  font-size: 14px;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-blue-dark);
  box-shadow: 0 2px 8px var(--shadow-medium);
}

.btn-secondary {
  background: var(--surface-secondary);
  color: var(--primary-blue);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--surface-tertiary);
  box-shadow: 0 2px 8px var(--shadow-light);
}

/* Projects paging */
.project-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.projects-stats {
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Contact */
.contact-section {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.contact-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.contact-description {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.specializations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 600px;
  margin: 0 auto 32px;
}

.specialization-item {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section,
  .timeline-item.fade-in,
  .card,
  .stat-card {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
