/* ==========================================================================
   Technology We Use section
   Same continuous right-to-left strip technique as Industry Partners
   (see partners.css) but kept as its own class names + file, so this
   section can be edited or removed without touching partners.css at all.
   ========================================================================== */

.tech-stack {
  background: var(--color-bg-alt);
}

.tech-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.tech-track {
  display: flex;
  width: max-content;
  animation: tech-scroll 36s linear infinite;
}

.tech-marquee:hover .tech-track {
  animation-play-state: paused;
}

.tech-track-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--space-2xl);
  padding-inline: var(--space-lg);
}

.tech-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  flex-shrink: 0;
}

.tech-logo img {
  height: 100%;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter var(--transition-base) var(--ease-out), transform var(--transition-base) var(--ease-out);
}

.tech-logo:hover img {
  filter: grayscale(0);
  transform: scale(1.08);
}

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

@media (prefers-reduced-motion: reduce) {
  .tech-track {
    animation: none;
  }

  .tech-track-group[aria-hidden="true"] {
    display: none;
  }

  .tech-track {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .tech-logo {
    height: 28px;
  }

  .tech-logo img {
    max-width: 100px;
  }

  .tech-track-group {
    gap: var(--space-xl);
  }
}
