/**
 * Interactive Logo Gallery
 * 22 client logos with hover effects
 */

/* ==========================================================================
   Logo Gallery Grid
   ========================================================================== */
.logo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.logo-item {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--strateg-light);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Gray to Color effect */
.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.logo-item:hover {
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

/* Logo tooltip */
.logo-item::after {
  content: attr(data-client-name);
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--strateg-dark);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.logo-item:hover::after {
  opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .logo-gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .logo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
