.tech-marquee-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; 
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg) scale(1.5);
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.tech-marquee-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,   
    rgba(0, 0, 0, 0.5) 50%,    
    rgba(0, 0, 0, 1) 100%  
  );
  z-index: 2;
}


.tech-marquee-row {
  display: inline-flex;
  white-space: nowrap;
  transform: translate3d(0,0,0);
  will-change: transform;
  pointer-events: auto;
}

.tech-marquee-row-wrapper {
  overflow: hidden;
  width: 100%;
}

.tech-marquee-row span {
  margin-right: 2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #262626;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
  pointer-events: auto;
  user-select: none; 
}

.tech-marquee-row[data-direction="left"] {
  animation: marqueeLeft 75s linear infinite;
  animation-timing-function: linear;
}

.tech-marquee-row[data-direction="right"] {
  animation: marqueeRight 75s linear infinite;
  animation-timing-function: linear;
}


.tech-marquee-highlight {
  animation: marqueeRight 15s linear infinite !important;
  z-index: 1;
}


.tech-marquee-row.paused {
  animation-play-state: paused !important;
}

.tech-marquee-highlight span {
  color: #676767 !important;
  font-weight: 700 !important;
  text-shadow: none;
}

.tech-marquee-row span.hovered {
  color: rgba(255, 255, 255, 1) !important;
  font-weight: 700;
  transform: scale(1);
  text-shadow: none;
}

.tech-marquee-highlight span.hovered {
  color: rgba(255, 255, 255, 1) !important;
  font-weight: 800 !important;
  transform: scale(1);
  text-shadow: none;
}

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

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