/* Honor / certification showcase — tech spotlight gallery */
.honor-section {
  --honor-cyan: #2ecbff;
  --honor-blue: #3d8bfd;
  --honor-gold: #f0c14b;
  --honor-teal: #2dd4bf;
  --honor-mint: #5eead4;
  --honor-sky: #7dd3fc;
  --honor-amber: #fbbf24;
  --honor-steel: #94a3b8;
  position: relative;
  padding: 88px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(46, 203, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(61, 139, 253, 0.16), transparent 60%),
    radial-gradient(ellipse 45% 35% at 10% 70%, rgba(14, 165, 233, 0.12), transparent 55%),
    linear-gradient(165deg, #061428 0%, #0a1f3d 42%, #0d2748 100%);
  color: #e8eef8;
}
.honor-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.honor-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 203, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 203, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 72%);
  opacity: 0.7;
}
.honor-bg::after {
  content: '';
  position: absolute;
  inset: -10%;
  background: none;
  opacity: 0.12;
  filter: saturate(1.2) contrast(1.05);
  mix-blend-mode: screen;
}
.honor-bg.is-ready::after {
  background: url(../picture/cybersecurity-3d.webp) center 40% / cover no-repeat;
  animation: honorBgDrift 28s ease-in-out infinite alternate;
}
.honor-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: honorOrbFloat 12s ease-in-out infinite;
}
.honor-bg-orb--a {
  width: 320px;
  height: 320px;
  top: -40px;
  left: 8%;
  background: rgba(46, 203, 255, 0.35);
}
.honor-bg-orb--b {
  width: 420px;
  height: 420px;
  right: -60px;
  bottom: 5%;
  background: rgba(61, 139, 253, 0.28);
  animation-delay: -4s;
}
.honor-bg-orb--c {
  width: 220px;
  height: 220px;
  left: 42%;
  bottom: 12%;
  background: rgba(45, 212, 191, 0.22);
  animation-delay: -7s;
}
.honor-bg-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(46, 203, 255, 0.08),
    transparent
  );
  animation: honorScan 7s linear infinite;
}
.honor-bg-rings {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(46, 203, 255, 0.12);
  box-shadow:
    0 0 0 48px rgba(46, 203, 255, 0.03),
    0 0 0 96px rgba(46, 203, 255, 0.02);
  animation: honorRingPulse 8s ease-in-out infinite;
}
@keyframes honorBgDrift {
  from { transform: scale(1.05) translateY(0); }
  to { transform: scale(1.12) translateY(-2%); }
}
@keyframes honorOrbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.08); }
}
@keyframes honorScan {
  0% { top: -20%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}
@keyframes honorRingPulse {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.03); }
}
@keyframes honorBorderFlow {
  to { background-position: 200% 0; }
}
@keyframes honorShine {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(220%) skewX(-18deg); }
}

.honor-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}
.honor-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--honor-cyan);
  background: rgba(46, 203, 255, 0.1);
  border: 1px solid rgba(46, 203, 255, 0.28);
}
.honor-heading h2 {
  color: #f4f8ff;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 40px rgba(46, 203, 255, 0.25);
}
.honor-heading p {
  color: rgba(200, 220, 245, 0.72);
  font-size: 16px;
  line-height: 1.7;
}

.honor-showcase {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 56px;
}
.honor-stage {
  position: relative;
  height: 500px;
  perspective: 1400px;
  overflow: visible;
}
.honor-stage-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 203, 255, 0.28) 0%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: honorRingPulse 5s ease-in-out infinite;
}
.honor-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.honor-card {
  --tone: var(--honor-cyan);
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(300px, 72vw);
  transform: translate(-50%, -50%) scale(0.55);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
  z-index: 0;
  text-align: center;
  cursor: pointer;
  filter: blur(1px) saturate(0.8);
}
.honor-card[data-tone="cyan"] { --tone: var(--honor-cyan); }
.honor-card[data-tone="gold"] { --tone: var(--honor-gold); }
.honor-card[data-tone="blue"] { --tone: var(--honor-blue); }
.honor-card[data-tone="teal"] { --tone: var(--honor-teal); }
.honor-card[data-tone="mint"] { --tone: var(--honor-mint); }
.honor-card[data-tone="sky"] { --tone: var(--honor-sky); }
.honor-card[data-tone="amber"] { --tone: var(--honor-amber); }
.honor-card[data-tone="steel"] { --tone: var(--honor-steel); }

.honor-card.is-active {
  transform: translate(-50%, -50%) scale(1) translateZ(80px);
  opacity: 1;
  pointer-events: auto;
  z-index: 5;
  filter: none;
}
.honor-card.is-prev {
  transform: translate(calc(-50% - 250px), -50%) scale(0.78) rotateY(18deg);
  opacity: 0.78;
  pointer-events: auto;
  z-index: 3;
  filter: blur(0.2px);
}
.honor-card.is-next {
  transform: translate(calc(-50% + 250px), -50%) scale(0.78) rotateY(-18deg);
  opacity: 0.78;
  pointer-events: auto;
  z-index: 3;
  filter: blur(0.2px);
}
.honor-card.is-far-prev {
  transform: translate(calc(-50% - 430px), -50%) scale(0.58) rotateY(28deg);
  opacity: 0.28;
  z-index: 1;
}
.honor-card.is-far-next {
  transform: translate(calc(-50% + 430px), -50%) scale(0.58) rotateY(-28deg);
  opacity: 0.28;
  z-index: 1;
}

.honor-card-shell {
  position: relative;
  padding: 3px;
  border-radius: 22px;
  background:
    linear-gradient(125deg, var(--tone), transparent 38%, transparent 62%, var(--tone)),
    linear-gradient(215deg, rgba(255,255,255,0.35), transparent 40%, rgba(255,255,255,0.08));
  background-size: 200% 200%, 100% 100%;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
.honor-card.is-active .honor-card-shell {
  animation: honorBorderFlow 4s linear infinite;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.45),
    0 0 36px color-mix(in srgb, var(--tone) 45%, transparent),
    0 0 0 1px color-mix(in srgb, var(--tone) 55%, transparent);
}

.honor-card-index {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  min-width: 42px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #061428;
  background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--tone) 70%, #fff));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.honor-card-frame {
  position: relative;
  border-radius: 19px;
  overflow: hidden;
  background: #071526;
  aspect-ratio: 3 / 3.85;
}
.honor-card-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(6, 20, 40, 0.35) 78%,
    rgba(6, 20, 40, 0.82) 100%
  );
  pointer-events: none;
}
.honor-card.is-active .honor-card-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    105deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  animation: honorShine 2.8s ease-in-out infinite;
  pointer-events: none;
}
.honor-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.honor-card.is-active:hover .honor-card-frame img,
.honor-card.is-prev:hover .honor-card-frame img,
.honor-card.is-next:hover .honor-card-frame img {
  transform: scale(1.05);
}

.honor-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 3;
  border-color: var(--tone);
  border-style: solid;
  opacity: 0.9;
  pointer-events: none;
}
.honor-corner--tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.honor-corner--tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.honor-corner--bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.honor-corner--br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.honor-card-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 18px 16px 16px;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(6, 20, 40, 0.92) 40%);
}
.honor-card-meta h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #f5f9ff;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.05s;
}
.honor-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: color-mix(in srgb, var(--tone) 85%, #fff);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.12s;
}
.honor-card-meta span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 8px var(--tone);
}
.honor-card.is-active .honor-card-meta h3,
.honor-card.is-active .honor-card-meta span {
  opacity: 1;
  transform: translateY(0);
}

.honor-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 8;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(46, 203, 255, 0.35);
  background: rgba(8, 28, 52, 0.72);
  backdrop-filter: blur(10px);
  color: #9fdfff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
}
.honor-nav:hover {
  background: rgba(46, 203, 255, 0.2);
  color: #fff;
  border-color: var(--honor-cyan);
  box-shadow: 0 0 24px rgba(46, 203, 255, 0.35);
  transform: translateY(-50%) scale(1.06);
}
.honor-nav--prev { left: 0; }
.honor-nav--next { right: 0; }

.honor-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.honor-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(159, 223, 255, 0.28);
  cursor: pointer;
  transition: all 0.3s ease;
}
.honor-dots button.is-active {
  width: 26px;
  background: linear-gradient(90deg, var(--honor-cyan), var(--honor-blue));
  box-shadow: 0 0 12px rgba(46, 203, 255, 0.45);
}

@media (max-width: 991px) {
  .honor-showcase { padding: 0 44px; }
  .honor-stage { height: 450px; }
  .honor-card.is-prev {
    transform: translate(calc(-50% - 170px), -50%) scale(0.72) rotateY(14deg);
  }
  .honor-card.is-next {
    transform: translate(calc(-50% + 170px), -50%) scale(0.72) rotateY(-14deg);
  }
  .honor-card.is-far-prev,
  .honor-card.is-far-next {
    opacity: 0;
    pointer-events: none;
  }
}
@media (max-width: 575px) {
  .honor-section { padding: 56px 0 72px; }
  .honor-showcase { padding: 0 40px; }
  .honor-stage { height: 420px; }
  .honor-card { width: min(250px, 74vw); }
  .honor-card.is-prev {
    opacity: 0.35;
    transform: translate(calc(-50% - 95px), -50%) scale(0.62);
  }
  .honor-card.is-next {
    opacity: 0.35;
    transform: translate(calc(-50% + 95px), -50%) scale(0.62);
  }
  .honor-nav {
    width: 40px;
    height: 40px;
  }
  .honor-bg-rings { display: none; }
}
