/* ===== Client Partner Section — Floating Marquee ===== */
.client-partner-section {
  display: block !important;
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
}

.client-partner-header {
  text-align: center;
  margin-bottom: 48px;
}
.client-partner-header .label {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0063ff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.client-partner-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #191919;
  line-height: 1.3;
}

/* ===== Logo Marquee Wrapper ===== */
.logo-marquee-wrapper {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

/* ===== Individual Row ===== */
.logo-marquee-row {
  display: flex;
  margin-bottom: 24px;
  overflow: hidden;
}

.logo-marquee-row:last-child {
  margin-bottom: 0;
}

/* ===== Track (duplicated for seamless loop) ===== */
.logo-marquee-track {
  display: flex;
  gap: 24px;
  animation: marquee-left 35s linear infinite;
  will-change: transform;
}

.logo-marquee-row[data-direction="right"] .logo-marquee-track {
  animation-name: marquee-right;
}

.logo-marquee-row[data-speed="slow"] .logo-marquee-track {
  animation-duration: 50s;
}

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

/* ===== Logo Item Card ===== */
.logo-marquee-item {
  flex: 0 0 auto;
  width: 272px;
  height: 112px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-marquee-item:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 99, 255, 0.12);
  border-color: rgba(0, 99, 255, 0.15);
  z-index: 2;
}

.logo-marquee-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: opacity 0.35s ease, filter 0.35s ease;
  border-radius: 0 !important;
  mix-blend-mode: multiply;
}

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

/* ===== Floating Hexagon Badge — bottom-right overlap ===== */
.logo-badge-float {
  position: absolute;
  bottom: -30px;
  right: 40px;
  z-index: 10;
  animation: badge-float 3s ease-in-out infinite;
  pointer-events: none;
}

.logo-badge-inner {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  filter: drop-shadow(0 8px 28px rgba(0, 99, 255, 0.4));
  pointer-events: auto;
  cursor: default;
}

.badge-hex-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.badge-count {
  position: relative;
  font-size: 40px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -1px;
  z-index: 2;
}

.badge-text {
  position: relative;
  font-size: 22px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 5px;
  z-index: 2;
}

/* ===== Keyframes ===== */
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

@keyframes badge-float {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-12px); }
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
  .logo-marquee-item {
    width: 210px;
    height: 88px;
    padding: 10px 14px;
    border-radius: 12px;
  }

  .logo-marquee-row {
    margin-bottom: 10px;
  }

  .logo-badge-float {
    right: 20px;
    bottom: -20px;
  }

  .logo-badge-inner {
    width: 110px;
    height: 110px;
  }

  .badge-count {
    font-size: 28px;
  }

  .badge-text {
    font-size: 16px;
  }
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .logo-marquee-item {
    width: 160px;
    height: 68px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .logo-marquee-track {
    gap: 10px;
  }

  .logo-marquee-row {
    margin-bottom: 8px;
  }

  .logo-badge-float {
    right: 10px;
    bottom: -15px;
  }

  .logo-badge-inner {
    width: 80px;
    height: 80px;
    border-radius: 16px;
  }

  .badge-count {
    font-size: 22px;
  }

  .badge-text {
    font-size: 9px;
  }
}

/* ===== Hide old elements ===== */
.client-slider-section,
.slider-row,
.slider-track,
.client-logo-card {
  display: none !important;
}

/* OLD grid hidden */
.client-logo-grid {
  display: none !important;
}

/* ===== NEW: Client logos INLINE inside OUR SERVICES (blue bg) ===== */
.client-partner-inline {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 32px;
}

.client-inline-header {
  text-align: center;
  margin-bottom: 48px;
}

.client-inline-label {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.client-inline-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.client-inline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.client-inline-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  height: 80px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.client-inline-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.client-inline-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: all 0.35s ease;
}

.client-inline-item:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.client-inline-more {
  background: rgba(255, 255, 255, 0.95) !important;
  border: none !important;
  flex-direction: column;
  gap: 2px;
  cursor: default;
}

.client-inline-more:hover {
  background: #ffffff !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.inline-more-count {
  font-size: 30px;
  font-weight: 900;
  color: #0063FF;
  line-height: 1;
}

.inline-more-text {
  font-size: 12px;
  font-weight: 700;
  color: #0063FF;
  letter-spacing: 1.5px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .client-inline-title { font-size: 22px; }
  .client-inline-header { margin-bottom: 36px; }
  .client-inline-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .client-inline-item { height: 68px; padding: 14px 16px; border-radius: 12px; }
  .inline-more-count { font-size: 24px; }
  .inline-more-text { font-size: 10px; }
}

@media (max-width: 480px) {
  .client-partner-inline { padding: 0 16px; }
  .client-inline-title { font-size: 20px; }
  .client-inline-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .client-inline-item { height: 56px; padding: 10px 12px; border-radius: 10px; }
  .inline-more-count { font-size: 20px; }
  .inline-more-text { font-size: 9px; }
}
