/* ============================================================
   Personal Website — Professional Page
   Joel Evert Thomas
   ============================================================ */

.professional-hero {
  min-height: auto;
  padding: clamp(5.5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
}

.professional-hero .hero-inner {
  max-width: 840px;
}

.professional-hero .hero-tagline {
  max-width: 34rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.metric-card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)), rgba(17, 16, 18, 0.9);
  border: 1px solid rgba(234, 220, 204, 0.1);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.metric-card::after {
  content: '';
  position: absolute;
  inset: auto 1.4rem 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(107, 39, 55, 0), rgba(107, 39, 55, 0.85), rgba(234, 220, 204, 0.5));
}

.metric-card .metric {
  font-size: clamp(3.5rem, 5vw, 4rem);
  line-height: 0.88;
  margin-bottom: 0.9rem;
  color: #f2e6d8;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.metric-card .metric-label {
  margin-top: 0;
  color: var(--text-mid);
  font-size: 0.8rem;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 22ch;
}

.timeline {
  max-width: 860px;
}

.timeline-item {
  padding: 0 0 clamp(2.6rem, 5vw, 3.8rem) 1.2rem;
}

.timeline-item::before {
  width: 13px;
  height: 13px;
  left: calc(-1 * clamp(1.75rem, 4vw, 3rem) - 6px);
  background: radial-gradient(circle at 35% 35%, var(--light) 0%, var(--light-dim) 18%, var(--maroon) 72%);
  box-shadow: 0 0 0 7px rgba(107, 39, 55, 0.12), 0 0 18px rgba(107, 39, 55, 0.24);
}

.timeline-role {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.timeline-role h3 {
  margin-bottom: 0;
}

.timeline-date {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}

.timeline-place {
  margin-bottom: var(--space-3);
  color: var(--light);
  font-weight: 600;
}

.timeline-copy {
  margin-bottom: var(--space-4);
}

.timeline-points {
  list-style: none;
  margin-bottom: 0;
  display: grid;
  gap: 0.8rem;
}

.timeline-points li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0;
  color: var(--text-mid);
}

.timeline-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-dim), var(--maroon));
  box-shadow: 0 0 0 4px rgba(107, 39, 55, 0.12);
}

.education-card,
.cv-card {
  max-width: 860px;
  margin: 0 auto;
}

.education-card h3,
.cv-card h2 {
  margin-bottom: var(--space-3);
}

.education-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: var(--space-3);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}

.skill-group {
  position: relative;
  padding: clamp(1.4rem, 2.8vw, 2rem);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)), rgba(17, 16, 18, 0.92);
  border: 1px solid rgba(234, 220, 204, 0.1);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.skill-group:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 39, 55, 0.28);
  box-shadow: var(--shadow-glow);
}

.skill-group h3 {
  margin-bottom: var(--space-3);
}

.skill-group ul {
  list-style: none;
  margin-bottom: 0;
  display: grid;
  gap: 0.7rem;
}

.skill-group li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-mid);
}

.skill-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-dim), var(--maroon));
}

.cv-card {
  text-align: center;
}

.cv-card p:last-child {
  margin-bottom: 0;
}

.stagger-1 { animation-delay: 80ms; }
.stagger-2 { animation-delay: 160ms; }
.stagger-3 { animation-delay: 240ms; }
.stagger-4 { animation-delay: 320ms; }

@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .metrics-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .timeline-role {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .timeline-date {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .professional-hero {
    padding: var(--space-8) 0 var(--space-7);
  }

  .metric-card .metric {
    font-size: 3.2rem;
  }

  .metric-card,
  .skill-group {
    border-radius: 18px;
  }
}
