/**
 * OSAPEX GROUP — Slanted Continuous Sliding Marquee (Mobile-Fixed)
 * Guaranteed to animate on ALL devices including touch/mobile
 */

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

.slanted-marquee-wrapper {
  overflow: hidden;
  background: linear-gradient(90deg, #0F203C 0%, #1A355E 50%, #0F203C 100%);
  border-top: 2px solid #00F0FF;
  border-bottom: 2px solid #00F0FF;
  padding: 14px 0;
  /* Only rotate on desktop — causes clipping on mobile */
  transform: rotate(-1.2deg) scale(1.02);
  margin: 30px -10px;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.25);
  white-space: nowrap;
  position: relative;
  z-index: 10;
  width: 100vw;
  max-width: 100%;
  /* Ensure GPU-composited layer for silky animation */
  will-change: transform;
  -webkit-transform: rotate(-1.2deg) scale(1.02);
}

.slanted-marquee-track {
  display: flex !important;
  width: max-content !important;
  /* Run indefinitely — cannot pause on touch */
  animation: slantedMarquee 28s linear infinite !important;
  will-change: transform;
  -webkit-animation: slantedMarquee 28s linear infinite !important;
}

/* Pause only on desktop hover — NOT ON TOUCH */
@media (hover: hover) and (pointer: fine) {
  .slanted-marquee-track:hover {
    animation-play-state: paused;
    -webkit-animation-play-state: paused;
  }
}

.slanted-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}

.slanted-marquee-item span.accent-cyan {
  color: #00F0FF;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}
.slanted-marquee-item span.accent-amber { color: #FFB703; }
.slanted-marquee-item span.accent-red   { color: #E51D2A; }

/* === MOBILE OVERRIDES === */
@media (max-width: 768px) {
  .slanted-marquee-wrapper {
    /* Remove rotation — it causes content to clip out of viewport on mobile */
    transform: none !important;
    -webkit-transform: none !important;
    margin: 20px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0;
  }

  .slanted-marquee-track {
    /* Slightly faster on mobile for visual energy */
    animation-duration: 20s !important;
    -webkit-animation-duration: 20s !important;
    /* Ensure it NEVER pauses on touch */
    animation-play-state: running !important;
    -webkit-animation-play-state: running !important;
  }

  .slanted-marquee-item {
    font-size: 11px;
    padding: 0 18px;
    gap: 7px;
  }
}

@media (max-width: 480px) {
  .slanted-marquee-wrapper {
    padding: 10px 0;
  }
  .slanted-marquee-track {
    animation-duration: 16s !important;
    -webkit-animation-duration: 16s !important;
  }
  .slanted-marquee-item {
    font-size: 10px;
    padding: 0 14px;
  }
}
