/* ============================================
   CLIENTS SECTION - MODERN DESIGN
   ============================================ */

/* Section Base */
.clients-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

/* Animated background gradient */
.clients-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(13, 110, 253, 0.03) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-gradient 15s ease-in-out infinite;
}

@keyframes pulse-gradient {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

/* Floating decorative orbs */
.clients-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.2;
  filter: blur(60px);
}

.clients-orb.orb-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(111, 66, 193, 0.1));
  top: 20%;
  left: 5%;
  animation: float-orb-1 20s ease-in-out infinite;
}

.clients-orb.orb-2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, rgba(111, 66, 193, 0.15), rgba(13, 110, 253, 0.1));
  bottom: 20%;
  right: 5%;
  animation: float-orb-2 18s ease-in-out infinite;
}

@keyframes float-orb-1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -20px);
  }
}

@keyframes float-orb-2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-30px, 20px);
  }
}

/* Badge dot animation */
.badge-dot {
  width: 8px;
  height: 8px;
  background: #0d6efd;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.tracking-wider {
  letter-spacing: 0.1em;
}

.text-gradient {
  background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   CLIENTS LAYOUT
   ============================================ */

.clients-layout {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   COMPANY MASCOT - SIMPLE CLEAN DESIGN
   ============================================ */

.company-mascot {
  position: relative;
  z-index: 10;
}

.mascot-container {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================
   CAROUSEL CONTAINER
   ============================================ */

.clients-carousel-wrapper {
  position: relative;
  padding: 2rem 0;
  overflow: hidden;
}

.clients-carousel {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right,
      transparent 0%,
      black 3%,
      black 100%);
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      black 3%,
      black 100%);
}

/* ============================================
   CAROUSEL TRACK & ANIMATION
   ============================================ */

.carousel-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  width: fit-content;
  animation: scroll-left 40s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.carousel-track:hover {
  animation-play-state: paused;
}

/* ============================================
   LOGO ITEMS
   ============================================ */

.logo-item {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(13, 110, 253, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.logo-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(111, 66, 193, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.logo-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 40px rgba(13, 110, 253, 0.2);
  border-color: rgba(13, 110, 253, 0.3);
  background: #fff;
}

.logo-item:hover::before {
  opacity: 1;
}

.logo-item img {
  max-width: 100%;
  /* max-height: 100%; */
  height: 4000px;
  width: auto;
  object-fit: contain;
  /* filter: grayscale(100%) opacity(0.6); */
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.logo-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1400px) {
  .mascot-container {
    width: 160px;
    height: 160px;
  }

  .logo-item {
    width: 150px;
    height: 95px;
    padding: 1.25rem;
  }

  .carousel-track {
    gap: 1.75rem;
  }

  .clients-layout {
    gap: 2rem;
  }
}

@media (max-width: 1200px) {
  .mascot-container {
    width: 140px;
    height: 140px;
  }

  .logo-item {
    width: 140px;
    height: 90px;
    padding: 1.25rem;
  }

  .carousel-track {
    gap: 1.5rem;
  }

  .clients-layout {
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .mascot-container {
    width: 120px;
    height: 120px;
  }

  .logo-item {
    width: 130px;
    height: 85px;
    padding: 1rem;
  }

  .carousel-track {
    gap: 1.5rem;
  }

  .clients-layout {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .clients-layout {
    padding: 0 1rem;
    gap: 1rem;
  }

  .mascot-container {
    width: 100px;
    height: 100px;
  }

  .logo-item {
    width: 110px;
    height: 70px;
    padding: 0.875rem;
    border-radius: 16px;
  }

  .carousel-track {
    gap: 1.25rem;
  }

  .clients-carousel-wrapper {
    padding: 1.5rem 0;
  }

  .clients-orb {
    display: none;
  }
}

@media (max-width: 576px) {
  .mascot-container {
    width: 80px;
    height: 80px;
  }

  .logo-item {
    width: 90px;
    height: 60px;
    padding: 0.75rem;
    border-radius: 12px;
  }

  .carousel-track {
    gap: 1rem;
    animation: scroll-left 30s linear infinite;
  }

  .clients-carousel-wrapper {
    padding: 1rem 0;
  }
}

@media (max-width: 480px) {
  .mascot-container {
    width: 70px;
    height: 70px;
  }

  .logo-item {
    width: 80px;
    height: 55px;
    padding: 0.625rem;
  }

  .carousel-track {
    gap: 0.875rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
  }

  .logo-item {
    transition: none;
  }

  .clients-bg-gradient,
  .clients-orb {
    animation: none;
  }

  .badge-dot {
    animation: none;
  }
}

.logo-item:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 4px;
}