/* ==========================================
   Our Clients Page Styles
   ========================================== */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0 60px;
  text-align: center;
  color: white;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Our Clients Section */
.our-clients-section {
  padding: 80px 0;
}

/* Category Section */
.category-section {
  margin-bottom: 60px;
}

.category-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #333;
  text-transform: capitalize;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
  display: inline-block;
}

/* Clients Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
}

/* Client Card */
.client-card {
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Image Container */
.client-image-container {
  position: relative;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

/* Loader */
.image-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

/* Skeleton Placeholder */
.image-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* Client Image */
.lazy-load-client-image {
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 2;
}

/* Image Loaded State */
.client-image-container.image-loaded .image-loader,
.client-image-container.image-loaded .image-skeleton {
  display: none !important;
}

.client-image-container.image-loaded .lazy-load-client-image {
  opacity: 1 !important;
}

/* Client Name */
.client-card p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================
   Animations
   ========================================== */

/* Spin Animation for Loader */
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Shimmer Animation for Skeleton */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 20px !important;
  }

  .page-header {
    padding: 60px 0 40px !important;
  }

  .page-header h1 {
    font-size: 2rem !important;
  }

  .category-title {
    font-size: 1.5rem !important;
  }

  .client-image-container {
    height: 80px !important;
  }
}

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 15px !important;
  }

  .client-card {
    padding: 20px 15px !important;
  }

  .client-image-container {
    height: 60px !important;
  }

  .image-loader {
    width: 30px !important;
    height: 30px !important;
  }

  .client-card p {
    font-size: 0.75rem !important;
  }
}
