/* BRANDS SECTION */
.brands-section {
  background: linear-gradient(180deg, #ffffff, #f5f7fa);
  padding: 70px 0;
  overflow: hidden;
  position: relative;
  text-align: center;
}

/* Section Heading */
.brands-header {
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.brands-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1b3354;
  margin-bottom: 10px;
}

.brands-header p {
  color: #6b7280;
  font-size: 16px;
}

/* Row wrapper */
.brands-row {
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  margin: 30px 0;
  
  /* Faded edges (premium effect) */
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

/* Scrolling track */
.brands-track {
  display: flex;
  gap: 70px;
  min-width: max-content;
  animation: scroll-left 28s linear infinite;
  will-change: transform;
}

.brands-row-bottom .brands-track {
  animation: scroll-right 32s linear infinite;
}

/* Brand logos */
.brands-track img {
  height: 65px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(100%) brightness(0.6);
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

/* Hover effect */
.brands-track img:hover {
  transform: scale(1.15);
  opacity: 1;
  filter: grayscale(0%) brightness(1);
}

/* Smooth infinite animation */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  .brands-header h2 {
    font-size: 28px;
  }
  .brands-track {
    gap: 40px;
  }
  .brands-track img {
    height: 45px;
  }
}

@media (max-width: 600px) {
  .brands-header h2 {
    font-size: 24px;
  }
  .brands-header p {
    font-size: 14px;
  }
  .brands-track {
    gap: 30px;
  }
  .brands-track img {
    height: 35px;
  }
}
