/*
 * Our Clients Section Styles
 * Clean carousel showing 5 logos at a time with infinite auto-scroll
 */

.our-clients {
  padding: 80px 0;
  background: #ffffff;
  position: relative;
}

.our-clients .section-title {
  text-align: center;
  margin-bottom: 60px;
}

.our-clients .section-title h2 {
  font-size: 48px;
  font-weight: 700;
  color: #001648;
  margin-bottom: 15px;
  text-transform: none;
  letter-spacing: -1px;
  line-height: 1.2;
}

.our-clients .section-title p {
  font-size: 18px;
  color: #6c7983;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 80px;
}

/* Carousel */
.carousel {
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
}

/* Carousel Track */
.carousel-track {
  display: flex;
  gap: 30px;
  animation: scroll 40s linear infinite;
  align-items: center;
  justify-content: flex-start;
}

/* Individual Logo Images */
.carousel-track img {
  width: 270px;
  height: 150px;
  object-fit: contain;
  filter: grayscale(0%) opacity(1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.carousel-track img:hover {
  transform: scale(1.1);
  filter: grayscale(0%) opacity(1);
}

/* Infinite Scroll Animation */
@keyframes scroll {
  0% { 
    transform: translateX(0); 
  }
  100% { 
    transform: translateX(calc(-240px * 11 - 40px * 11)); 
  }
}

/* Navigation Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid #e9ecef;
  font-size: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #001648;
  font-weight: bold;
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

.arrow:hover {
  background: #001648;
  border-color: #001648;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Pause animation on hover */
.carousel:hover .carousel-track {
  animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .carousel-container {
    padding: 0 70px;
  }
  
  .carousel-track {
    gap: 35px;
  }
  
  .carousel-track img {
    width: 210px;
    height: 105px;
  }
  
  @keyframes scroll {
    0% { 
      transform: translateX(0); 
    }
    100% { 
      transform: translateX(calc(-210px * 11 - 35px * 11)); 
    }
  }
}

@media (max-width: 992px) {
  .our-clients {
    padding: 60px 0;
  }
  
  .our-clients .section-title {
    margin-bottom: 50px;
  }
  
  .our-clients .section-title h2 {
    font-size: 40px;
  }
  
  .our-clients .section-title p {
    font-size: 16px;
  }
  
  .carousel-container {
    padding: 0 60px;
  }
  
  .carousel-track {
    gap: 30px;
  }
  
  .carousel-track img {
    width: 180px;
    height: 90px;
  }
  
  .arrow {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  @keyframes scroll {
    0% { 
      transform: translateX(0); 
    }
    100% { 
      transform: translateX(calc(-180px * 11 - 30px * 11)); 
    }
  }
}

@media (max-width: 768px) {
  .our-clients {
    padding: 50px 0;
  }
  
  .our-clients .section-title h2 {
    font-size: 36px;
  }
  
  .carousel-container {
    padding: 0 50px;
  }
  
  .carousel-track {
    gap: 25px;
  }
  
  .carousel-track img {
    width: 150px;
    height: 75px;
  }
  
  .arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .arrow.left {
    left: 15px;
  }
  
  .arrow.right {
    right: 15px;
  }
  
  @keyframes scroll {
    0% { 
      transform: translateX(0); 
    }
    100% { 
      transform: translateX(calc(-150px * 11 - 25px * 11)); 
    }
  }
}

@media (max-width: 480px) {
  .our-clients {
    padding: 40px 0;
  }
  
  .our-clients .section-title {
    margin-bottom: 40px;
  }
  
  .our-clients .section-title h2 {
    font-size: 32px;
  }
  
  .our-clients .section-title p {
    font-size: 15px;
  }
  
  .carousel-container {
    padding: 0 40px;
  }
  
  .carousel-track {
    gap: 20px;
  }
  
  .carousel-track img {
    width: 120px;
    height: 60px;
  }
  
  .arrow {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .arrow.left {
    left: 10px;
  }
  
  .arrow.right {
    right: 10px;
  }
  
  @keyframes scroll {
    0% { 
      transform: translateX(0); 
    }
    100% { 
      transform: translateX(calc(-120px * 11 - 20px * 11)); 
    }
  }
}

/* Accessibility */
.arrow:focus {
  outline: 3px solid #001648;
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
  }
  
  .carousel-track img {
    transition: none;
  }
  
  .arrow {
    transition: none;
  }
}