/* Logo Section Wrapper */
.logo-section {
  padding: 80px 0;
  min-height: auto;
  background: transparent;
}

.logo-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-header-container {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.logo-main-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: white;
  text-align: center;
}

.industry-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
  max-width: 700px;
  text-transform: none;
}

/* Masking Container */
.logo-scroll-mask {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 0; /* Increased from 40px to prevent clipping */
  overflow: hidden;
  /* The Blur Effect: Radial Gradient tightened for 3 items */
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 70%,
    transparent 100%
  );
  mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
  /* Add 3D perspective */
  perspective: 1200px;
}

.logo-scroll-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo-scroll-track {
  display: flex;
  gap: 0; /* Removing gap to fix loop math */
  width: fit-content;
  /* Enable 3D transforms */
  transform-style: preserve-3d;
}

.scroll-left {
  animation: scrollLeft 56s linear infinite;
}

.logo-card {
  /* 
      Logic for "3 cards at a time" & Seamless Loop:
      Width: 200px
      Margin: 0 40px (simulates 80px gap)
      Total Unit Width = 280px
      PERFECT LOOP maintained via % transform.
  */
  width: 200px;
  height: 100px;
  background: #ffffff;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* No CSS transition - JavaScript handles smooth animation */
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin: 0 40px;
  /* Default state - smaller and back */
  transform: scale(0.85) translateZ(-100px);
  opacity: 0.6;
  /* Will be updated by JavaScript */
}

.logo-card:hover {
  transform: scale(1.5) translateZ(120px) translateY(-25px) !important;
  box-shadow: 0 25px 50px rgba(0, 242, 234, 0.5);
  opacity: 1 !important;
  z-index: 20;
}

.logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

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

/* Pause on hover */
.logo-scroll-container:hover .logo-scroll-track {
  animation-play-state: paused;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .logo-card {
    width: 180px;
    height: 90px;
    margin: 0 30px;
  }
  .logo-scroll-mask {
    perspective: 1000px;
  }
}
@media (max-width: 768px) {
  .logo-card {
    width: 150px;
    height: 75px;
    margin: 0 20px;
  }
  /* Tighter mask on mobile */
  .logo-scroll-mask {
    perspective: 800px;
    -webkit-mask-image: radial-gradient(
      ellipse at center,
      black 60%,
      transparent 100%
    );
    mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
  }
}
