/* ================= Section 2: Construction Showcase + Patent Certificates ================= */
.showcase-sec {
  background: #ffffff;
  padding: 20px 0 88px;
  overflow: hidden;
}

/* 5-Card Showcase Row */
.showcase-stage {
  width: 100%;
  margin-top: 0;
}

.showcase-viewport {
  width: 100%;
  padding: 8px 32px 16px;
  overflow-x: auto;
  overflow-y: visible;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.showcase-viewport::-webkit-scrollbar {
  display: none;
}

.showcase-viewport.is-dragging {
  cursor: grabbing;
}

.showcase-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  margin: 0 auto;
}

.showcase-card {
  position: relative;
  width: 248px;
  height: 288px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--color-grey-100);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover {
  transform: translateY(-4px);
}

.showcase-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover .showcase-card__img {
  transform: scale(1.04);
}

/* Center Association President Trophy Card */
.showcase-card--trophy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 22px 20px;
  background:
    radial-gradient(circle at 52% 60%, rgba(78, 149, 255, 0.08) 0%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(168deg, #fafcff 0%, #f1f7ff 100%);
  box-shadow: inset 0 0 0 1px rgba(209, 224, 245, 0.72);
}

.showcase-card__copy {
  position: relative;
  z-index: 3;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.03em;
  color: #191f28;
  text-align: left;
}

.showcase-card__trophy-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

.showcase-card__trophy {
  height: 224px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(37, 99, 235, 0.14));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card--trophy:hover .showcase-card__trophy {
  transform: translateY(-4px) scale(1.04);
}

.showcase-card__mist {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(241, 247, 255, 0) 0%, #f1f7ff 96%);
}

/* Seamless 12-Patent Certificate Marquee Strip */
.certs-strip {
  width: 100%;
  max-width: var(--container-max);
  margin: 22px auto 0;
  padding: 8px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.certs-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: certsGlide 42s linear infinite;
}

.certs-strip:hover .certs-track {
  animation-play-state: paused;
}

@keyframes certsGlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cert-item {
  width: 96px;
  height: 132px;
  flex-shrink: 0;
  padding: 5px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.07);
  cursor: zoom-in;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cert-item:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 130, 246, 0.45);
}

.cert-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Patent Lightbox Modal */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cert-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.cert-modal__box {
  position: relative;
  max-width: 520px;
  width: 100%;
  max-height: 88svh;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.cert-modal__img {
  display: block;
  width: 100%;
  max-height: calc(88svh - 28px);
  object-fit: contain;
  border-radius: 10px;
}

.cert-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(25, 31, 40, 0.72);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .showcase-sec {
    padding: 12px 0 72px;
  }

  .showcase-card {
    width: 224px;
    height: 262px;
  }

  .showcase-card__trophy {
    height: 200px;
  }
}

@media (max-width: 640px) {
  .showcase-sec {
    padding: 8px 0 56px;
  }

  .showcase-stage {
    margin-top: 0;
  }

  .showcase-viewport {
    padding: 6px 20px 12px;
  }

  .showcase-track {
    gap: 12px;
  }

  .showcase-card {
    width: 196px;
    height: 232px;
    border-radius: 18px;
  }

  .showcase-card--trophy {
    padding: 18px 16px;
  }

  .showcase-card__copy {
    font-size: 15.5px;
  }

  .showcase-card__trophy {
    height: 172px;
  }

  .cert-item {
    width: 80px;
    height: 110px;
  }
}
