/* =========================================================================
   COMBINED OPTION 1 + OPTION 3: TRIPLE-TIER SINE-WAVE 3D MARQUEE STREAM
   Showcase all 58+ genuine industrial product images in motion alive
   ========================================================================= */

.marquee-stream-showcase-section {
  position: relative;
  width: 100%;
  padding: 5rem 0 4.5rem;
  background: radial-gradient(120% 85% at 50% 30%, #F8FAFD 0%, #EEF4FC 60%, #E3EDF9 100%);
  border-top: 1px solid rgba(200, 215, 235, 0.6);
  overflow: hidden;
  box-sizing: border-box;
}

/* Header Wrap */
.marquee-header-wrap {
  max-width: 1650px;
  margin: 0 auto 2.8rem;
  text-align: center;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
}

.marquee-main-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 3.35rem);
  font-weight: 900;
  color: #061C38;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1.15rem 0;
}

.marquee-main-title .highlight-orange {
  color: #01255F;
  position: relative;
  display: inline-block;
}

.marquee-main-title .swoosh-underline-svg {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 16px;
  pointer-events: none;
}

.marquee-main-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #475569;
  max-width: 680px;
  margin: 0 0 1.75rem 0;
  font-weight: 450;
}

/* Category Filter Indicator Pills */
.marquee-cat-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.cat-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(200, 212, 226, 0.85);
  color: #061C38;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(6, 28, 56, 0.04);
  transition: all 0.25s ease;
  user-select: none;
  cursor: pointer;
}

.cat-filter-pill.active {
  background: #002347;
  color: #FFFFFF;
  border-color: #002347;
  box-shadow: 0 4px 14px rgba(0, 35, 71, 0.25);
}

.cat-filter-pill:hover:not(.active) {
  border-color: #01255F;
  color: #01255F;
  transform: translateY(-1px);
}

/* =========================================================================
   FULL-WIDTH TRIPLE-TIER SINE-WAVE MARQUEE VIEWPORT
   ========================================================================= */
.triple-wave-marquee-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

/* Gradient Horizon Fade Masks for older browsers */
.marquee-horizon-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  pointer-events: none;
  z-index: 10;
}

.marquee-horizon-fade.left-fade {
  left: 0;
  background: linear-gradient(to right, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-horizon-fade.right-fade {
  right: 0;
  background: linear-gradient(to left, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

/* Tier Track Wrappers */
.marquee-tier-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.marquee-track-motion {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* Continuous 60fps Hardware-Accelerated Marquee Animations */
.track-dir-left-to-right {
  animation: glideLeftToRight 55s linear infinite;
}

.track-dir-right-to-left {
  animation: glideRightToLeft 48s linear infinite;
}

@keyframes glideLeftToRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }

  100% {
    transform: translate3d(0%, 0, 0);
  }
}

@keyframes glideRightToLeft {
  0% {
    transform: translate3d(0%, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Pause/slow on hover of any row */
.marquee-tier-track-wrapper:hover .marquee-track-motion {
  animation-play-state: paused;
}

/* Cards Group (Track A & Track B) */
.marquee-cards-group {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  padding: 1.15rem 0.85rem;
}

/* =========================================================================
   INDIVIDUAL PRODUCT TILE (FROSTED GLASS + ORGANIC SINE-WAVE MOTION)
   ========================================================================= */
.sine-prod-tile {
  position: relative;
  width: 220px;
  height: 220px;
  flex: 0 0 220px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 32px -6px rgba(6, 28, 56, 0.09), 0 0 1px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background-color 0.35s ease;
  will-change: transform;
}

/* Tier 2 (Middle Hero Tier) gets slightly larger tiles for prominence */
.tier-2-wrap .sine-prod-tile {
  width: 250px;
  height: 250px;
  flex: 0 0 250px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
}

/* Sine Wave Floating Animation (Option 3 Dynamic Undulation) */
.tier-1-wrap .sine-prod-tile {
  animation: sineWaveTier1 4.5s ease-in-out infinite alternate;
}

.tier-2-wrap .sine-prod-tile {
  animation: sineWaveTier2 5.2s ease-in-out infinite alternate;
}

.tier-3-wrap .sine-prod-tile {
  animation: sineWaveTier3 4.2s ease-in-out infinite alternate;
}

@keyframes sineWaveTier1 {
  0% {
    transform: translateY(0px) scale(0.97);
  }

  50% {
    transform: translateY(-9px) scale(1.04);
  }

  100% {
    transform: translateY(7px) scale(0.98);
  }
}

@keyframes sineWaveTier2 {
  0% {
    transform: translateY(-8px) scale(1.03);
  }

  50% {
    transform: translateY(9px) scale(0.96);
  }

  100% {
    transform: translateY(-6px) scale(1.04);
  }
}

@keyframes sineWaveTier3 {
  0% {
    transform: translateY(6px) scale(0.98);
  }

  50% {
    transform: translateY(-8px) scale(1.03);
  }

  100% {
    transform: translateY(0px) scale(0.97);
  }
}

/* Staggered Sine-Wave Delays to create a continuous travelling wave! */
.sine-prod-tile:nth-child(4n+1) {
  animation-delay: 0.0s;
}

.sine-prod-tile:nth-child(4n+2) {
  animation-delay: 0.65s;
}

.sine-prod-tile:nth-child(4n+3) {
  animation-delay: 1.3s;
}

.sine-prod-tile:nth-child(4n+4) {
  animation-delay: 1.95s;
}

/* Image Container & Cutout Product Image */
.tile-img-box {
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.tile-prod-img {
  max-width: 96%;
  max-height: 96%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(6, 28, 56, 0.16));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

/* Ambient Neon Orange Glow Underneath on Hover */
.tile-ambient-glow {
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(1, 37, 95, 0.35) 0%, rgba(1, 37, 95, 0) 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}





/* HOVER EFFECT ON PRODUCT TILE */
.sine-prod-tile:hover {
  transform: translateY(-12px) scale(1.14) !important;
  animation-play-state: paused !important;
  z-index: 15;
  background: #FFFFFF;
  border-color: #01255F;
  box-shadow: 0 20px 42px -6px rgba(1, 37, 95, 0.32), 0 0 20px rgba(1, 37, 95, 0.2);
}

.sine-prod-tile:hover .tile-prod-img {
  transform: scale(1.08);
  filter: drop-shadow(0 16px 24px rgba(6, 28, 56, 0.25));
}

.sine-prod-tile:hover .tile-ambient-glow {
  opacity: 1;
}



/* Bottom CTA Wrap */
.marquee-bottom-cta-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2.2rem;
  position: relative;
  z-index: 5;
}

@media (min-width: 992px) {
  .marquee-cat-filters {
    flex-wrap: nowrap;
  }
}

/* =========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================= */
@media (max-width: 991px) {
  .sine-prod-tile {
    width: 180px;
    height: 180px;
    flex: 0 0 180px;
  }

  .tier-2-wrap .sine-prod-tile {
    width: 205px;
    height: 205px;
    flex: 0 0 205px;
  }

  .marquee-main-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 640px) {
  .sine-prod-tile {
    width: 145px;
    height: 145px;
    flex: 0 0 145px;
    border-radius: 18px;
  }

  .tier-2-wrap .sine-prod-tile {
    width: 165px;
    height: 165px;
    flex: 0 0 165px;
    border-radius: 20px;
  }

  .marquee-main-title {
    font-size: 1.85rem;
  }

  .marquee-cat-filters {
    gap: 0.4rem;
  }
}



/* =========================================================================
   FULL-SIZE PRODUCT IMAGE LIGHTBOX MODAL
   ========================================================================= */
.marquee-img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(6, 28, 56, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s ease;
}

.marquee-img-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-dialog-card {
  position: relative;
  max-width: 740px;
  width: 100%;
  background: radial-gradient(120% 120% at 50% 15%, #FFFFFF 0%, #F5F9FE 70%, #EBF2FA 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  box-shadow: 0 35px 80px -15px rgba(6, 28, 56, 0.5), 0 0 50px rgba(1, 37, 95, 0.25);
  padding: 2.2rem 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.marquee-img-lightbox.active .lightbox-dialog-card {
  transform: scale(1) translateY(0);
}

.lightbox-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid rgba(200, 212, 226, 0.8);
  color: #061C38;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(6, 28, 56, 0.12);
  z-index: 10;
}

.lightbox-close-btn:hover {
  background: #01255F;
  border-color: #01255F;
  color: #FFFFFF;
  transform: rotate(90deg) scale(1.08);
}

.lightbox-close-btn svg {
  width: 20px;
  height: 20px;
}

.lightbox-image-stage {
  position: relative;
  width: 100%;
  height: 420px;
  max-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  box-sizing: border-box;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(240, 246, 255, 0.4) 100%);
  border-radius: 20px;
}

.lightbox-full-img {
  max-width: 94%;
  max-height: 94%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(6, 28, 56, 0.22));
  transition: transform 0.3s ease;
}

.lightbox-full-img:hover {
  transform: scale(1.04);
}

.lightbox-info-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding-top: 1.4rem;
  margin-top: 0.8rem;
  border-top: 1px solid rgba(200, 212, 226, 0.65);
  flex-wrap: wrap;
}

.lightbox-prod-title {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  color: #061C38;
  letter-spacing: -0.015em;
  margin: 0;
  flex: 1;
  min-width: 220px;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #002347;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lightbox-nav-btn:hover {
  background: #01255F;
  transform: scale(1.1);
}

.lightbox-nav-btn svg {
  width: 18px;
  height: 18px;
}

.lightbox-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.35rem;
  background: linear-gradient(90deg, #01255F 0%, #073B8A 100%);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(1, 37, 95, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.lightbox-quote-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(1, 37, 95, 0.45);
}

@media (max-width: 640px) {
  .lightbox-dialog-card {
    padding: 2rem 1.2rem 1.4rem;
  }

  .lightbox-image-stage {
    height: 300px;
  }

  .lightbox-prod-title {
    font-size: 1.05rem;
  }

  .lightbox-info-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}