/* =========================================================
   SUMMIT PEOPLE GROUP - HOMEPAGE SHOWCASE REEL
   Auto-playing crossfade + slow zoom image reel.
   Reads like a looping video without needing a video file.
   ========================================================= */

.showcase-reel {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: var(--blue-dark, #0f1e3d);
}

.showcase-reel .reel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: reelFade 25s infinite;
}

.showcase-reel .reel-slide:nth-child(1) { animation-delay: 0s; }
.showcase-reel .reel-slide:nth-child(2) { animation-delay: 5s; }
.showcase-reel .reel-slide:nth-child(3) { animation-delay: 10s; }
.showcase-reel .reel-slide:nth-child(4) { animation-delay: 15s; }
.showcase-reel .reel-slide:nth-child(5) { animation-delay: 20s; }

.showcase-reel .reel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  animation: reelZoom 25s infinite;
  animation-delay: inherit;
}

/* Dark gradient so overlay text/nav always stays readable */
.showcase-reel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(15, 30, 61, 0.55) 0%,
    rgba(15, 30, 61, 0.25) 35%,
    rgba(15, 30, 61, 0.65) 100%
  );
  pointer-events: none;
}

.showcase-caption {
  position: absolute;
  inset: 0;
  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 0 24px;
}

.showcase-caption span {
  position: relative;
  display: inline-block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
}

.showcase-caption span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 42px;
  height: 2px;
  background: var(--accent-green, #c7e000);
}

.showcase-caption h2 {
  color: #ffffff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 720px;
  margin-bottom: 14px;
}

.showcase-caption p {
  color: #e6e9f5;
  font-size: 17px;
  max-width: 560px;
}

@keyframes reelFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  20%  { opacity: 1; }
  26%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes reelZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.15); }
}

/* ================= TABLET ================= */
@media (max-width: 900px) {
  .showcase-reel {
    height: 420px;
  }

  .showcase-caption h2 {
    font-size: 30px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
  .showcase-reel {
    height: 340px;
  }

  .showcase-caption h2 {
    font-size: 24px;
  }

  .showcase-caption p {
    font-size: 15px;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .showcase-reel .reel-slide,
  .showcase-reel .reel-slide img {
    animation: none;
  }

  .showcase-reel .reel-slide {
    opacity: 0;
  }

  .showcase-reel .reel-slide:first-child {
    opacity: 1;
  }
}