/* ============================================================
   CERTIFICATIONS & STATS SECTION
   ============================================================ */

#certifications {
  padding: var(--section-padding) 0;
  border-top: 1px solid var(--color-border);
}

.stats__row {
  display: flex;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-16);
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--color-border);
  text-align: center;
  transition: background var(--t-base);
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--color-surface); }

.stat-item__value {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  color: var(--color-accent);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2);
}

.stat-item__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.certs__marquee {
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
  width: 100%;
  padding: var(--space-4) 0;
  white-space: nowrap;
  cursor: grab;
}

.certs__marquee::-webkit-scrollbar {
  display: none;
}

.certs__marquee:active {
  cursor: grabbing;
}

.certs__marquee::before,
.certs__marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.certs__marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--color-background), transparent);
}

.certs__marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--color-background), transparent);
}

.certs__track {
  display: inline-flex;
  gap: var(--space-8);
}

.certs__track img {
  height: 150px;
  width: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform var(--t-base), border-color var(--t-base);
  background: var(--color-surface);
  user-select: none;
  -webkit-user-drag: none;
}

.certs__track img:hover {
  transform: scale(1.02);
  border-color: var(--color-accent);
}

@media (max-width: 768px) {
  .stats__row { flex-wrap: wrap; border-bottom: none; }
  .stat-item { flex: 1 1 50%; border-bottom: 1px solid var(--color-border); }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .certs__track img { height: 110px; }
}
