.skills-strip {
  background: var(--bs-white);
  padding: 0.1rem 0;
  position: relative;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* overflow: hidden removed to allow magnifying glass to extend */
}

.skills-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.skills-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
  padding: 1rem 0;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.5rem;
  min-width: 120px;
  /* Transition handled by JS for smoothness, but keep base transition for non-animated props */
  will-change: transform; 
}

.skill-item img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  will-change: filter, opacity;
}

/* The Magnifying Glass Lens */
.magnifying-glass {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  
  /* Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  /* backdrop-filter removed */
  border: 1px solid rgba(255, 255, 255, 0.18);
  
  pointer-events: none; /* Allow clicks to pass through */
  z-index: 20;
}

/* Handle for the magnifying glass */
.magnifying-glass::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 40px;
  height: 12px;
  background: linear-gradient(45deg, #333, #666);
  transform: rotate(45deg);
  border-radius: 6px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .skill-item {
    padding: 0 1.8rem;
    min-width: 100px;
  }
  .skill-item img {
    height: 44px;
  }
  .magnifying-glass {
    width: 120px;
    height: 120px;
  }
  .magnifying-glass::after {
    bottom: -10px;
    right: -10px;
    width: 34px;
    height: 10px;
  }
}

@media (max-width: 575.98px) {
  .skill-item {
    padding: 0 1rem;
    min-width: 76px;
  }
  .skill-item img {
    height: 32px;
  }
  .skills-track {
    padding: 0.5rem 0;
    animation-duration: 22s; /* slightly faster on small screens */
  }
  .magnifying-glass {
    width: 90px;
    height: 90px;
  }
  .magnifying-glass::after {
    bottom: -8px;
    right: -8px;
    width: 28px;
    height: 8px;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
