/* ==========================================================================
   CERTIFICATIONS — Forensic 3D Showcase
   Premium dark glassmorphism certification display with cinematic lighting.
   ========================================================================== */

.forensic-certs {
  position: relative;
  padding: 4rem 1.5rem 4rem;
  overflow: hidden;
  background: transparent;
}

/* ---------- Atmospheric layers ---------- */

.forensic-certs__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Content wrapper ---------- */

.forensic-certs__inner {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
}

/* ---------- Heading ---------- */

.forensic-certs__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.forensic-certs__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(0, 255, 65, 0.6);
  margin-bottom: 1.2rem;
}
.forensic-certs__eyebrow::before,
.forensic-certs__eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(0, 255, 65, 0.35);
}

.forensic-certs__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  color: #fff;
  margin: 0 0 1.3rem;
  text-shadow: 0 0 40px rgba(0, 255, 65, 0.14);
}
.forensic-certs__title span { color: var(--forensic-green); }

.forensic-certs__desc {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(200, 220, 210, 0.5);
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  line-height: 1.75;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
}

/* ---------- 3D Stage ---------- */

.forensic-certs__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Budget: 5 cards + 4 gaps must fit inside (100vw - 1.5rem*2 padding) */
  gap: clamp(0.7rem, 1.6vw, 1.7rem);
  padding: 3.5rem 0 4.5rem;
  perspective: 1700px;
  transform-style: preserve-3d;
}

/* ---------- Certification Card ---------- */

.fc-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(190px, 17vw, 268px);
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  cursor: pointer;
  outline: none;
}

/* Resting depth arrangement — center elevated, sides angled back */
.fc-card[data-pos="center"] {
  z-index: 5;
  transform: translateZ(72px) scale(1.03);
}
.fc-card[data-pos="left"] {
  z-index: 3;
  transform: translateZ(0) rotateY(7deg) rotateX(3deg) rotateZ(-1.4deg) scale(0.93);
}
.fc-card[data-pos="right"] {
  z-index: 3;
  transform: translateZ(0) rotateY(-7deg) rotateX(3deg) rotateZ(1.4deg) scale(0.93);
}
.fc-card[data-pos="far-left"] {
  z-index: 2;
  transform: translateZ(-34px) rotateY(13deg) rotateX(4deg) rotateZ(-2.4deg) scale(0.87);
}
.fc-card[data-pos="far-right"] {
  z-index: 2;
  transform: translateZ(-34px) rotateY(-13deg) rotateX(4deg) rotateZ(2.4deg) scale(0.87);
}

/*
  Unified hover: EVERY card lifts forward, straightens toward the viewer,
  brightens and gains a stronger rim glow. Identical behavior for all five
  positions — only the starting transform differs.
*/
.fc-card:hover,
.fc-card:focus-visible {
  z-index: 20;
  transform: translateZ(120px) rotateY(0deg) rotateX(0deg) rotateZ(0deg) scale(1.06) !important;
  filter: none;
}

.fc-card:focus-visible {
  outline: 2px solid var(--forensic-green);
  outline-offset: 6px;
  border-radius: 16px;
}

.forensic-certs__stage.has-focus .fc-card:not(:hover):not(:focus-visible) {
  filter: brightness(0.55) saturate(0.65);
  transition: filter 0.5s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Glass body ---------- */

.fc-card__body {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(11, 20, 15, 0.75) 0%, rgba(4, 9, 7, 0.86) 100%);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.35),
    0 28px 65px -22px rgba(0, 0, 0, 0.85),
    0 55px 110px -45px rgba(0, 0, 0, 0.65);
  transition: box-shadow 0.55s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

/* Glowing emerald/cyan border */
.fc-card__body::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(160deg, rgba(0, 255, 65, 0.4), rgba(0, 200, 255, 0.14) 34%, rgba(0, 255, 65, 0.08) 62%, rgba(0, 200, 255, 0.28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.45s ease, filter 0.45s ease;
}

/* Inner glass reflection sweep */
.fc-card__body::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.05) 0%, transparent 32%, transparent 68%, rgba(0, 255, 65, 0.022) 100%);
  pointer-events: none;
  z-index: 3;
}

.fc-card:hover .fc-card__body,
.fc-card:focus-visible .fc-card__body {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.35),
    0 34px 80px -22px rgba(0, 0, 0, 0.88),
    0 0 44px rgba(0, 255, 65, 0.15),
    0 0 90px rgba(0, 200, 255, 0.07);
}
.fc-card:hover .fc-card__body::before,
.fc-card:focus-visible .fc-card__body::before { filter: brightness(1.5); }

/* ---------- Card content (no numbering) ---------- */

.fc-card__content {
  position: relative;
  z-index: 2;
  padding: 1.1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 330px;
}

/* Top HUD strip — status only, no index number */
.fc-card__hud {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.fc-card__hud-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 255, 65, 0.22), transparent);
}
.fc-card__hud-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 255, 65, 0.5);
  box-shadow: 0 0 7px rgba(0, 255, 65, 0.45);
  animation: fc-pulse 2.8s ease-in-out infinite;
}
@keyframes fc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Certificate sheet */
.fc-card__sheet {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.55);
  flex: 0 0 auto;
}
.fc-card__sheet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.55rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}
.fc-card:hover .fc-card__sheet img,
.fc-card:focus-visible .fc-card__sheet img {
  transform: scale(1.07);
  filter: brightness(1.12);
}
.fc-card__sheet::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(122deg, rgba(255, 255, 255, 0.07) 0%, transparent 36%, transparent 64%, rgba(0, 255, 65, 0.035) 100%);
  pointer-events: none;
}

/* Info block */
.fc-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  text-align: center;
}

.fc-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.3 !important;
  color: #fff;
  margin: 0;
}

.fc-card__provider {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.05em !important;
  color: rgba(0, 200, 255, 0.62);
  margin: 0;
}

.fc-card__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.fc-card__year {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.1em !important;
  color: var(--forensic-green);
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(0, 255, 65, 0.26);
  border-radius: 5px;
  background: rgba(0, 255, 65, 0.05);
}

.fc-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: rgba(200, 220, 210, 0.34);
}
.fc-card__verified svg { width: 10px; height: 10px; opacity: 0.6; }

/* ---------- Glowing platform ---------- */

.fc-card__platform {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  height: 34px;
  pointer-events: none;
  z-index: -1;
}
.fc-card__platform::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 255, 65, 0.2), rgba(0, 200, 255, 0.08) 42%, transparent 72%);
  filter: blur(11px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fc-card__ring {
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 65, 0.14);
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}
.fc-card__ring--1 { width: 74%; height: 18px; }
.fc-card__ring--2 { width: 54%; height: 13px; bottom: 6px; }
.fc-card__ring--3 { width: 34%; height: 8px; bottom: 8px; }

.fc-card:hover .fc-card__platform::before,
.fc-card:focus-visible .fc-card__platform::before {
  opacity: 1.5;
  transform: scale(1.06);
}
.fc-card:hover .fc-card__ring,
.fc-card:focus-visible .fc-card__ring {
  border-color: rgba(0, 255, 65, 0.28);
  box-shadow: 0 0 9px rgba(0, 255, 65, 0.12);
}

/* Contact shadow */
.fc-card__shadow {
  position: absolute;
  bottom: -28px;
  left: 12%;
  right: 12%;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(9px);
  z-index: -2;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.fc-card:hover .fc-card__shadow { transform: scaleX(1.12); opacity: 0.85; }

/* ---------- View All button ---------- */

.forensic-certs__actions {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.fc-view-all {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 2.1rem;
  border-radius: 999px;
  background: rgba(7, 13, 9, 0.6);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  border: 1px solid rgba(0, 255, 65, 0.28);
  color: var(--forensic-green);
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.1em !important;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 12px 34px -14px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(0, 255, 65, 0.05);
  transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.45s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}
.fc-view-all::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(0, 255, 65, 0.07), transparent 42%, transparent 62%, rgba(0, 200, 255, 0.06));
  pointer-events: none;
}
.fc-view-all__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 255, 65, 0.09);
  border: 1px solid rgba(0, 255, 65, 0.18);
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.fc-view-all__text { white-space: nowrap; }
.fc-view-all__arrow {
  display: flex;
  font-size: 0.82rem;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.fc-view-all:hover,
.fc-view-all:focus-visible {
  background: rgba(0, 255, 65, 0.09);
  border-color: rgba(0, 255, 65, 0.5);
  color: #b6ffc4;
  transform: translateY(-2px);
  box-shadow:
    0 18px 44px -14px rgba(0, 0, 0, 0.75),
    0 0 34px rgba(0, 255, 65, 0.18),
    0 0 70px rgba(0, 255, 65, 0.07);
}
.fc-view-all:hover .fc-view-all__icon {
  background: rgba(0, 255, 65, 0.17);
  border-color: rgba(0, 255, 65, 0.34);
}
.fc-view-all:hover .fc-view-all__arrow { transform: translateX(5px); }
.fc-view-all:focus-visible {
  outline: 2px solid var(--forensic-cyan);
  outline-offset: 3px;
}

/* ==========================================================================
   View All — Premium modal with horizontal carousel
   ========================================================================== */

.fc-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.8rem, 3vw, 2rem);
  background: rgba(0, 3, 1, 0.9);
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.fc-modal.is-open { opacity: 1; visibility: visible; }

.fc-modal__box {
  position: relative;
  width: 100%;
  max-width: 1320px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background:
    radial-gradient(120% 100% at 50% -10%, rgba(0, 255, 65, 0.05), transparent 55%),
    linear-gradient(180deg, rgba(8, 14, 10, 0.97), rgba(3, 7, 5, 0.99));
  border: 1px solid rgba(0, 255, 65, 0.18);
  box-shadow:
    0 0 90px rgba(0, 255, 65, 0.07),
    0 40px 110px -30px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: translateY(22px) scale(0.97);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}
.fc-modal.is-open .fc-modal__box { transform: translateY(0) scale(1); opacity: 1; }

/* Modal header */
.fc-modal__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
  flex-shrink: 0;
}
.fc-modal__heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.fc-modal__kicker {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase;
  color: rgba(0, 255, 65, 0.5);
}
.fc-modal__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: #fff;
  margin: 0;
}
.fc-modal__title span { color: var(--forensic-green); }
.fc-modal__count {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.08em !important;
  color: rgba(0, 255, 65, 0.6);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 999px;
  background: rgba(0, 255, 65, 0.05);
  white-space: nowrap;
}
.fc-modal__close {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(0, 255, 65, 0.06);
  border: 1px solid rgba(0, 255, 65, 0.18);
  color: rgba(0, 255, 65, 0.75);
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.32s ease;
}
.fc-modal__close:hover {
  background: rgba(0, 255, 65, 0.16);
  border-color: rgba(0, 255, 65, 0.45);
  color: #fff;
  transform: rotate(90deg);
}
.fc-modal__close:focus-visible {
  outline: 2px solid var(--forensic-cyan);
  outline-offset: 2px;
}

/* Carousel viewport */
.fc-modal__viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 1.6rem 0 1.2rem;
  overflow: hidden;
}
.fc-modal__track {
  display: flex;
  align-items: stretch;
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  height: 100%;
  padding: 0 clamp(3.6rem, 8vw, 6.5rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.fc-modal__track::-webkit-scrollbar { display: none; }

/* Carousel card */
.fcm-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(230px, 30vw, 330px);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(11, 20, 15, 0.8), rgba(4, 9, 7, 0.9));
  border: 1px solid rgba(0, 255, 65, 0.14);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.045),
    0 18px 42px -18px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.fcm-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(0, 255, 65, 0.28), rgba(0, 200, 255, 0.08) 50%, rgba(0, 255, 65, 0.14));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}
.fcm-card:hover,
.fcm-card:focus-visible {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 255, 65, 0.36);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    0 26px 56px -18px rgba(0, 0, 0, 0.85),
    0 0 30px rgba(0, 255, 65, 0.12);
  z-index: 4;
}
.fcm-card:focus-visible {
  outline: 2px solid var(--forensic-green);
  outline-offset: 3px;
}

.fcm-card__sheet {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  flex: 0 0 auto;
}
.fcm-card__sheet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.6rem;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.fcm-card:hover .fcm-card__sheet img { transform: scale(1.06); }

.fcm-card__body {
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  position: relative;
  z-index: 2;
}
.fcm-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #fff;
  margin: 0;
}
.fcm-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.4rem;
}
.fcm-card__org {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.04em !important;
  color: rgba(0, 200, 255, 0.6);
}
.fcm-card__year {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.08em !important;
  color: rgba(0, 255, 65, 0.72);
  padding: 0.16rem 0.5rem;
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 4px;
  background: rgba(0, 255, 65, 0.05);
  white-space: nowrap;
}

/* Carousel arrows */
.fcm-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(5, 12, 8, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 65, 0.25);
  color: rgba(0, 255, 65, 0.85);
  font-size: 0.82rem;
  cursor: pointer;
  z-index: 8;
  transition: all 0.3s ease;
}
.fcm-arrow:hover:not(:disabled) {
  background: rgba(0, 255, 65, 0.15);
  border-color: rgba(0, 255, 65, 0.5);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.22);
}
.fcm-arrow:disabled { opacity: 0.22; cursor: not-allowed; }
.fcm-arrow:focus-visible { outline: 2px solid var(--forensic-cyan); outline-offset: 2px; }
.fcm-arrow--prev { left: 0.8rem; }
.fcm-arrow--next { right: 0.8rem; }

/* Progress bar */
.fc-modal__progress {
  position: relative;
  height: 2px;
  background: rgba(0, 255, 65, 0.08);
  border-radius: 2px;
  margin: 0 1.6rem 1.2rem;
  flex-shrink: 0;
}
.fc-modal__progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 20%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--forensic-green), var(--forensic-cyan));
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.45);
  transition: width 0.3s ease, transform 0.3s ease;
}

/* Modal hint */
.fc-modal__hint {
  text-align: center;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.1em !important;
  color: rgba(200, 220, 210, 0.24);
  padding-bottom: 1.2rem;
  flex-shrink: 0;
}
.fc-modal__hint kbd {
  font-family: inherit;
  padding: 0.05rem 0.35rem;
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 4px;
  background: rgba(0, 255, 65, 0.05);
  color: rgba(0, 255, 65, 0.6);
  font-size: 0.58rem;
}

/* ==========================================================================
   Certificate preview lightbox
   ========================================================================== */

.fc-preview {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.6rem, 2vw, 1.6rem);
  background: rgba(0, 3, 1, 0.92);
  backdrop-filter: blur(28px) saturate(120%);
  -webkit-backdrop-filter: blur(28px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.fc-preview.is-open { opacity: 1; visibility: visible; }

.fc-preview__box {
  position: relative;
  width: min(100%, 1420px);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(0.9rem, 2vw, 1.4rem);
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 50% -15%, rgba(0, 255, 65, 0.055), transparent 58%),
    linear-gradient(180deg, rgba(8, 15, 11, 0.97), rgba(3, 7, 5, 0.99));
  border: 1px solid rgba(0, 255, 65, 0.2);
  box-shadow:
    0 0 100px rgba(0, 255, 65, 0.07),
    0 0 180px rgba(0, 200, 255, 0.04),
    0 50px 120px -30px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  transform: scale(0.96) translateY(16px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.fc-preview.is-open .fc-preview__box { transform: scale(1) translateY(0); opacity: 1; }

/* Irregular futuristic frame with layered glass edges */
.fc-preview__frame {
  position: relative;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(155deg, rgba(0, 255, 65, 0.42), rgba(0, 200, 255, 0.12) 38%, rgba(0, 255, 65, 0.08) 64%, rgba(0, 200, 255, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.fc-preview__stage {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 50% 40%, rgba(0, 255, 65, 0.035), transparent 70%),
    rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  min-height: clamp(180px, 34vh, 340px);
}
.fc-preview__stage img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, 760px);
  width: auto;
  height: auto;
  object-fit: contain;
  padding: clamp(0.5rem, 1.2vw, 0.9rem);
  cursor: zoom-in;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.fc-preview__stage img.is-loaded { opacity: 1; transform: scale(1); }

/* ---- 1:1 inspection mode (click the certificate) ---- */
.fc-preview__stage.is-zoomed {
  overflow: auto;
  place-items: start center;
  grid-template-columns: max-content;
  max-height: min(70vh, 720px);
  cursor: zoom-out;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 65, 0.3) transparent;
}
.fc-preview__stage.is-zoomed::-webkit-scrollbar { width: 8px; height: 8px; }
.fc-preview__stage.is-zoomed::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 65, 0.28);
  border-radius: 8px;
}
.fc-preview__stage.is-zoomed img {
  max-width: 4000px;
  max-height: 4000px;
  padding: 0;
  cursor: zoom-out;
}
.fc-preview__stage.is-zoomed::after { animation: none; opacity: 0; }

/* ---- Loading placeholder ---- */
.fc-preview__loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.35s ease;
}
.fc-preview__stage.is-loaded .fc-preview__loader { opacity: 0; }
.fc-preview__loader-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 65, 0.16);
  border-top-color: rgba(0, 255, 65, 0.85);
  border-right-color: rgba(0, 200, 255, 0.5);
  animation: fc-spin 1.1s linear infinite;
}
@keyframes fc-spin { to { transform: rotate(360deg); } }
.fc-preview__loader-text {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.22em !important;
  color: rgba(0, 255, 65, 0.55);
  white-space: nowrap;
}
.fc-preview__stage.is-error .fc-preview__loader-ring { animation: none; border-color: rgba(0, 255, 65, 0.3); }
.fc-preview__stage.is-error .fc-preview__loader-text { color: rgba(255, 120, 120, 0.75); letter-spacing: 0.12em; }

/* Zoom state badge */
.fc-preview__mode {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -6px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(4, 10, 7, 0.82);
  border: 1px solid rgba(0, 255, 65, 0.3);
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.55rem !important;
  letter-spacing: 0.18em !important;
  color: rgba(0, 255, 65, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
.fc-preview__stage.is-zoomed .fc-preview__mode { opacity: 1; transform: translate(-50%, 0); }

/* Sweep line over the certificate */
.fc-preview__stage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.5), transparent);
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.4);
  animation: fc-preview-scan 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 4;
}
@keyframes fc-preview-scan {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(min(72vh, 760px)); opacity: 0; }
}

/* HUD corner brackets */
.fc-preview__bracket {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 255, 65, 0.5);
  z-index: 3;
  pointer-events: none;
}
.fc-preview__bracket--tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.fc-preview__bracket--tr { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.fc-preview__bracket--bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.fc-preview__bracket--br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

/* Meta strip */
.fc-preview__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 0 0.35rem 0.15rem;
}
.fc-preview__text { min-width: 0; flex: 1; }
.fc-preview__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: #fff;
  margin: 0 0 0.2rem;
}
.fc-preview__org {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.08em !important;
  color: rgba(0, 200, 255, 0.65);
}
.fc-preview__tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.fc-preview__tag {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.1em !important;
  color: var(--forensic-green);
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(0, 255, 65, 0.26);
  border-radius: 6px;
  background: rgba(0, 255, 65, 0.05);
  white-space: nowrap;
}
.fc-preview__tag--muted {
  color: rgba(200, 220, 210, 0.42);
  border-color: rgba(200, 220, 210, 0.14);
  background: rgba(200, 220, 210, 0.03);
}

/* Nav + close */
.fc-preview__side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(5, 12, 8, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 65, 0.24);
  color: rgba(0, 255, 65, 0.85);
  font-size: 0.8rem;
  cursor: pointer;
  z-index: 6;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease,
              box-shadow 0.3s ease, transform 0.3s ease;
}
.fc-preview__side:hover {
  background: rgba(0, 255, 65, 0.15);
  border-color: rgba(0, 255, 65, 0.5);
  color: #fff;
  box-shadow: 0 0 22px rgba(0, 255, 65, 0.22);
}
.fc-preview__side--prev { left: -14px; }
.fc-preview__side--next { right: -14px; }
.fc-preview__side:focus-visible { outline: 2px solid var(--forensic-cyan); outline-offset: 2px; }

.fc-preview__close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(6, 14, 9, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 65, 0.3);
  color: rgba(0, 255, 65, 0.9);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease,
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.fc-preview__close:hover {
  background: rgba(0, 255, 65, 0.18);
  border-color: rgba(0, 255, 65, 0.55);
  color: #fff;
  transform: rotate(90deg);
}
.fc-preview__close:focus-visible { outline: 2px solid var(--forensic-cyan); outline-offset: 2px; }

.fc-preview__hint {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.12em !important;
  color: rgba(200, 220, 210, 0.3);
  white-space: nowrap;
  pointer-events: none;
}
.fc-preview__hint kbd {
  font-family: inherit;
  padding: 0.05rem 0.32rem;
  margin: 0 0.1rem;
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 4px;
  background: rgba(0, 255, 65, 0.05);
  color: rgba(0, 255, 65, 0.6);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .fc-card,
  .fc-card__body,
  .fc-card__body::before,
  .fc-card__sheet img,
  .fc-card__shadow,
  .fc-card__hud-dot,
  .fc-card__platform::before,
  .fc-view-all,
  .fc-view-all__arrow,
  .fcm-card,
  .fc-modal,
  .fc-modal__box,
  .fc-preview,
  .fc-preview__box,
  .fc-preview__stage img,
  .fc-preview__stage::after,
  .fc-preview__close {
    animation: none !important;
    transition: none !important;
  }
  .fc-modal__track { scroll-behavior: auto; }
  .fc-preview__stage img { opacity: 1; transform: none; }
  .fc-card:hover,
  .fc-card:focus-visible { transform: translateZ(60px) scale(1.02) !important; }
}

/* ---------- Responsive ---------- */

/* Tablet: 3 cards */
@media (max-width: 1100px) {
  .forensic-certs__stage { gap: 0.8rem; }
  .fc-card { width: clamp(180px, 22vw, 230px); }
  .fc-card[data-pos="far-left"],
  .fc-card[data-pos="far-right"] { display: none; }
  .fc-card[data-pos="center"] { transform: translateZ(44px) scale(1.02); }
  .fc-card[data-pos="left"]  { transform: translateZ(0) rotateY(5deg) rotateX(1.5deg) scale(0.94); }
  .fc-card[data-pos="right"] { transform: translateZ(0) rotateY(-5deg) rotateX(1.5deg) scale(0.94); }
  .fcm-card { width: clamp(210px, 40vw, 290px); }
}

/* Mobile: stacked, 3D reduced */
@media (max-width: 860px) {
  .forensic-certs { padding: 3rem 1rem 3.5rem; }
  .forensic-certs__header { margin-bottom: 2.5rem; }
  .forensic-certs__stage {
    flex-direction: column;
    gap: 2.6rem;
    padding: 2.5rem 0 3rem;
    perspective: 1100px;
  }
  .fc-card,
  .fc-card[data-pos] {
    width: clamp(250px, 78vw, 340px);
    transform: none !important;
    display: block !important;
  }
  .fc-card:hover,
  .fc-card:focus-visible {
    transform: translateY(-6px) scale(1.015) !important;
  }
  .fc-card__content { min-height: 300px; }
  .forensic-certs__stage.has-focus .fc-card:not(:hover):not(:focus-visible) { filter: none; }
  .fc-modal__viewport { padding: 1.2rem 0 1rem; }
  .fcm-card { width: clamp(200px, 62vw, 260px); }
  .fcm-arrow { width: 36px; height: 36px; }
  .fc-modal__head { padding: 1rem 1.2rem; }
  .fc-modal__title { font-size: 1.1rem !important; }
  .fc-preview__stage img { max-height: 64vh; }
  .fc-preview__stage.is-zoomed { max-height: 62vh; }
  .fc-preview__side { width: 36px; height: 36px; font-size: 0.72rem; }
  .fc-preview__side--prev { left: -8px; }
  .fc-preview__side--next { right: -8px; }
  .fc-preview__close { top: -8px; right: -8px; width: 36px; height: 36px; }
  .fc-preview__hint { display: none; }
}

@media (max-width: 480px) {
  .forensic-certs { padding: 2.5rem 0.7rem 3.5rem; }
  .forensic-certs__title { font-size: clamp(2.1rem, 8vw, 2.8rem) !important; }
  .forensic-certs__stage { gap: 2.2rem; }
  .fc-card,
  .fc-card[data-pos] { width: clamp(230px, 86vw, 300px); }
  .fc-card__content { min-height: 285px; padding: 1rem 0.9rem 1.05rem; }
  .fc-card__title { font-size: 0.95rem !important; }
  .fc-view-all { padding: 0.85rem 1.5rem; font-size: 0.7rem !important; gap: 0.65rem; }
  .fc-view-all__icon { width: 25px; height: 25px; }
  .fc-modal { padding: 0.6rem; }
  .fc-modal__box { border-radius: 18px; max-height: 94vh; }
  .fcm-card { width: min(78vw, 240px); }
  .fc-modal__hint { display: none; }
}
