/* Clients Grid Styles */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px;
}

.client-card {
  perspective: 1000px;
  height: 280px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.client-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-front {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-back {
  background: #f8f9fa;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.client-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.card-back h2 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
}

.client-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 15px;
  }

  .client-card {
    height: 250px;
  }

  .card-back h2 {
    font-size: 16px;
  }

  .client-description {
    font-size: 13px;
  }
}
