/* --- Clients Page Styles --- */

.clients-hero {
  height: 500px;
  width: 100%;
  background: url('../assets/clients-hero.jpg') center/cover no-repeat;
  color: #ffffff;
}

.clients-hero h1 {
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.clients-hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.8;
  line-height: 1.6;
}

.clients-page-container {
  background-color: var(--bg-secondary);
  padding: 40px 0;
}

.client-section {
  margin-bottom: 40px;
}

.client-section:last-child {
  margin-bottom: 0;
}

.client-section-title {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
}

.client-section-title h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--bg-color);
  opacity: 0.8;
  display: inline-block;
  padding-bottom: 15px;
}

.client-section-title h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--bg-color);
  opacity: 0.3;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.client-logo-box {
  background: #ffffff;
  aspect-ratio: 2/1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(17, 48, 37, 0.05);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  border: 1px solid rgba(17, 48, 37, 0.03);
  /* GPU Acceleration */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.client-logo-box img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast; /* Sharp HD contrast rendering */
  filter: grayscale(0%);
  opacity: 1;
  transition: transform 0.4s ease;
  pointer-events: none; /* Prevents image from blocking card hover */
}

.client-logo-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(17, 48, 37, 0.12);
  border-color: rgba(17, 48, 37, 0.1);
}

.client-logo-box:hover img {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .clients-hero {
    padding: 0;
    min-height: auto;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .clients-hero h1 { font-size: 2.8rem; line-height: 1.1; }
  .clients-hero p { font-size: 1rem; padding: 0 20px; }
  .client-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .client-logo-box { padding: 8px; }
  .client-section { margin-bottom: 50px; }
}
