/* Certifications showcase — light theme, blue glow (DOTDNA-style layout) */

.cert-showcase {
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 48%, #f8fbff 100%);
  overflow: hidden;
}

.cert-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 47px,
      rgba(77, 165, 255, 0.05) 48px
    );
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.cert-showcase::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -8%;
  top: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 165, 255, 0.12) 0%, transparent 68%);
  pointer-events: none;
}

.cert-showcase__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cert-showcase__tag {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--sky);
  text-transform: uppercase;
}

.cert-showcase__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.cert-showcase__shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  color: var(--sky);
  filter: drop-shadow(0 0 12px rgba(30, 123, 255, 0.55));
}

.cert-showcase__shield svg {
  width: 100%;
  height: 100%;
}

.cert-showcase__lead {
  margin: 0;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4a6d8a;
}

/* Floating logo stage */
.cert-showcase__stage {
  position: relative;
  min-height: clamp(380px, 42vw, 460px);
  width: 100%;
}

.cert-showcase__flare {
  position: absolute;
  top: 46%;
  left: -5%;
  width: 82%;
  height: 3px;
  z-index: 1;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139, 188, 255, 0.2) 15%,
    rgba(30, 123, 255, 0.85) 45%,
    rgba(77, 165, 255, 0.5) 70%,
    transparent 100%
  );
  box-shadow:
    0 0 24px rgba(30, 123, 255, 0.45),
    0 0 48px rgba(77, 165, 255, 0.25);
  pointer-events: none;
}

.cert-showcase__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(77, 165, 255, 0.35) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(30, 123, 255, 0.3) 0 1px, transparent 2px),
    radial-gradient(circle at 45% 80%, rgba(77, 165, 255, 0.25) 0 1px, transparent 2px);
  background-size: 120px 120px, 160px 160px, 200px 200px;
  opacity: 0.5;
}

.cert-logo-card {
  position: absolute;
  width: min(200px, 42vw);
  animation: cert-card-float 6s ease-in-out infinite;
}

.cert-logo-card:nth-child(3) { animation-delay: -1.5s; }
.cert-logo-card:nth-child(4) { animation-delay: -3s; }
.cert-logo-card:nth-child(5) { animation-delay: -4.5s; }

.cert-logo-card__halo {
  position: absolute;
  inset: -28%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(30, 123, 255, 0.42) 0%,
    rgba(77, 165, 255, 0.18) 38%,
    transparent 72%
  );
  filter: blur(18px);
  opacity: 0.9;
  animation: cert-halo-pulse 4s ease-in-out infinite;
}

.cert-logo-card__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 112px;
  padding: 1.35rem 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(77, 165, 255, 0.28);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 32px rgba(30, 123, 255, 0.22),
    0 0 64px rgba(77, 165, 255, 0.1),
    0 20px 48px rgba(5, 38, 77, 0.08);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.cert-logo-card:hover .cert-logo-card__panel {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 40px rgba(30, 123, 255, 0.35),
    0 0 72px rgba(77, 165, 255, 0.18),
    0 28px 56px rgba(5, 38, 77, 0.1);
}

.cert-logo-card__mark {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy);
  line-height: 1;
  text-shadow: 0 0 24px rgba(77, 165, 255, 0.35);
}

.cert-logo-card__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: #5a7f9e;
  line-height: 1.35;
}

/* Staggered positions */
.cert-logo-card--lr {
  top: 14%;
  left: 0;
  z-index: 2;
}

.cert-logo-card--abs {
  top: 32%;
  left: 28%;
  z-index: 4;
  width: min(220px, 46vw);
}

.cert-logo-card--bv {
  top: 2%;
  right: 2%;
  z-index: 3;
}

.cert-logo-card--iso {
  bottom: 6%;
  right: 6%;
  z-index: 2;
  width: min(210px, 44vw);
}

.cert-logo-card--featured .cert-logo-card__halo {
  inset: -35%;
  background: radial-gradient(
    circle,
    rgba(30, 123, 255, 0.55) 0%,
    rgba(77, 165, 255, 0.28) 40%,
    transparent 75%
  );
  filter: blur(22px);
}

.cert-logo-card--featured .cert-logo-card__panel {
  border-color: rgba(30, 123, 255, 0.45);
  box-shadow:
    0 0 48px rgba(30, 123, 255, 0.38),
    0 0 96px rgba(77, 165, 255, 0.15),
    0 24px 56px rgba(5, 38, 77, 0.1);
}

.cert-logo-card--featured .cert-logo-card__mark {
  color: #0b63ff;
}

@keyframes cert-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes cert-halo-pulse {
  0%, 100% { opacity: 0.75; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 900px) {
  .cert-showcase__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cert-showcase__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .cert-showcase__title {
    justify-content: center;
  }

  .cert-showcase__stage {
    min-height: 400px;
    max-width: 420px;
    margin: 0 auto;
  }

  .cert-showcase__flare {
    top: 48%;
    left: 0;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .cert-showcase__stage {
    min-height: 520px;
    max-width: 100%;
  }

  .cert-logo-card {
    width: min(168px, 44vw);
  }

  .cert-logo-card--lr {
    top: 0;
    left: 4%;
  }

  .cert-logo-card--abs {
    top: 28%;
    left: 50%;
    transform: translateX(-50%);
    width: min(190px, 52vw);
  }

  .cert-logo-card--bv {
    top: auto;
    bottom: 38%;
    right: 4%;
  }

  .cert-logo-card--iso {
    bottom: 2%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .cert-logo-card--abs,
  .cert-logo-card--iso {
    animation-name: cert-card-float-center;
  }
}

@keyframes cert-card-float-center {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .cert-logo-card,
  .cert-logo-card__halo {
    animation: none;
  }
}
