/* ─── CERTIFICATIONS & STANDARDS SECTION ─────────────────────── */
#certifications {
  background: #D1D5DB;
  padding: 90px 5vw;
  text-align: center;
}

.cert-title {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1A1F2B;
  margin-bottom: 16px;
}

.cert-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4A5568;
  max-width: 680px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.cert-card {
  background: #E8EAF0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
}

.cert-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.cert-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #C8CBD4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cert-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.cert-card-img .cert-placeholder {
  font-size: 14px;
  color: #8A92A3;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.cert-card-img::after {
  content: '🔍 View';
  position: absolute;
  inset: 0;
  background: rgba(11,14,19,0.45);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.cert-card:hover .cert-card-img::after { opacity: 1; }

.cert-card-label {
  background: #5A6275;
  color: #fff;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 20px;
  text-align: center;
}

/* ─── LIGHTBOX ─────────────────────── */
#cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#cert-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

#cert-lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-close:hover { background: var(--c-red); }

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ─── RESPONSIVE ─────────────────────── */
@media (max-width: 860px) {
  .cert-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  #certifications { padding: 70px 6vw; }
  .cert-grid { grid-template-columns: 1fr; }
}
/* ─── SCROLL REVEAL: CERT CARDS ─────────────────────── */
.cert-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
}

.cert-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cert-card:nth-child(1) { transition-delay: 0s, 0s, 0s; }
.cert-card:nth-child(2) { transition-delay: 0.15s, 0.15s, 0s; }
.cert-card:nth-child(3) { transition-delay: 0.3s, 0.3s, 0s; }

@media (prefers-reduced-motion: reduce) {
  .cert-card {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.35s ease;
  }
}