/* ==========================================================================
   Trusted by Industry Leaders - Premium UI/UX Redesign
   ========================================================================== */

/* Full-Width Section Base & Background */
.trusted-clients-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.07) 0%, rgba(248, 250, 252, 0.6) 50%, #ffffff 100%), #ffffff;
  padding: 8rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

[data-bs-theme="dark"] .trusted-clients-section {
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12) 0%, rgba(15, 23, 42, 0.95) 50%, #0b1120 100%), #0b1120;
  border-color: rgba(255, 255, 255, 0.05);
}

/* Elegant Soft Grid Overlay */
.trusted-clients-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
}

/* Small Glowing Blur Circles / Blobs */
.glow-blob-left {
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, rgba(37, 99, 235, 0) 70%);
  top: -100px;
  left: -200px;
  pointer-events: none;
  filter: blur(60px);
  z-index: 1;
}

.glow-blob-right {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0) 70%);
  bottom: -150px;
  right: -250px;
  pointer-events: none;
  filter: blur(70px);
  z-index: 1;
}

/* Ensure container is above background grids & blobs */
.trusted-clients-section .container {
  position: relative;
  z-index: 2;
}

/* Header Section Styling */
.trusted-clients-section .section-eyebrow {
  display: inline-block;
  padding: 0.5rem 1.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2563eb;
  background-color: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

[data-bs-theme="dark"] .trusted-clients-section .section-eyebrow {
  color: #60a5fa;
  background-color: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.2);
}

.trusted-clients-section .section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, #0f172a 30%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-bs-theme="dark"] .text-gradient {
  background: linear-gradient(135deg, #f8fafc 40%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trusted-clients-section .section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: #475569;
  max-width: 820px;
  margin: 0 auto 4rem auto;
  line-height: 1.75;
  font-weight: 400;
}

[data-bs-theme="dark"] .trusted-clients-section .section-subtitle {
  color: #94a3b8;
}

/* ==========================================================================
   Statistics Row & Badges
   ========================================================================== */
.stats-row {
  margin-bottom: 5rem;
}

.stat-badge-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02), 0 1px 2px rgba(0, 0, 0, 0.01);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease;
}

[data-bs-theme="dark"] .stat-badge-card {
  background: rgba(30, 41, 59, 0.4);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-badge-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.06);
}

[data-bs-theme="dark"] .stat-badge-card:hover {
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 12px 30px rgba(96, 165, 250, 0.06);
}

.stat-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background-color: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

[data-bs-theme="dark"] .stat-badge-icon {
  background-color: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
}

.stat-badge-card:hover .stat-badge-icon {
  transform: scale(1.08) rotate(3deg);
}

/* Custom stats icon variations */
.stat-badge-icon.icon-industry { color: #0284c7; background-color: rgba(2, 132, 199, 0.08); }
.stat-badge-icon.icon-states { color: #059669; background-color: rgba(5, 150, 105, 0.08); }
.stat-badge-icon.icon-calendar { color: #d97706; background-color: rgba(217, 119, 6, 0.08); }
.stat-badge-icon.icon-projects { color: #7c3aed; background-color: rgba(124, 58, 237, 0.08); }

[data-bs-theme="dark"] .stat-badge-icon.icon-industry { color: #38bdf8; background-color: rgba(56, 189, 248, 0.12); }
[data-bs-theme="dark"] .stat-badge-icon.icon-states { color: #34d399; background-color: rgba(52, 211, 153, 0.12); }
[data-bs-theme="dark"] .stat-badge-icon.icon-calendar { color: #fbbf24; background-color: rgba(251, 191, 36, 0.12); }
[data-bs-theme="dark"] .stat-badge-icon.icon-projects { color: #a78bfa; background-color: rgba(167, 139, 250, 0.12); }

.stat-badge-content {
  display: flex;
  flex-direction: column;
}

.stat-badge-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: #0f172a;
  line-height: 1.2;
}

[data-bs-theme="dark"] .stat-badge-number {
  color: #f8fafc;
}

.stat-badge-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.01em;
}

[data-bs-theme="dark"] .stat-badge-label {
  color: #94a3b8;
}

/* ==========================================================================
   Divider Headings
   ========================================================================== */
.client-divider-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin: 4.5rem 0 3rem 0;
}

.client-divider-heading::before,
.client-divider-heading::after {
  content: "";
  flex: 1;
  max-width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.25), transparent);
}

[data-bs-theme="dark"] .client-divider-heading::before,
[data-bs-theme="dark"] .client-divider-heading::after {
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.2), transparent);
}

.client-divider-heading span {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #475569;
}

[data-bs-theme="dark"] .client-divider-heading span {
  color: #cbd5e1;
}

/* ==========================================================================
   Logo Cards Styling
   ========================================================================== */
.logo-card-wrapper {
  display: flex;
  height: 100%;
}

.logo-card {
  width: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(226, 232, 240, 0.8);
  
  /* Smooth 0.4s cubic-bezier transition for ultra-premium UX */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease;
  will-change: transform, box-shadow;
}

[data-bs-theme="dark"] .logo-card {
  background-color: #1e293b;
  border-color: rgba(255, 255, 255, 0.05);
}

/* 1. Featured Large Cards (Top Row) */
.logo-card-premium {
  height: 125px;
  border-radius: 18px;
  padding: 1.75rem 2.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.025), 0 1px 3px rgba(0, 0, 0, 0.015);
}

[data-bs-theme="dark"] .logo-card-premium {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* 2. Standard Valued Cards (Bottom Grid) */
.logo-card-standard {
  height: 95px;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.015);
}

[data-bs-theme="dark"] .logo-card-standard {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Logo Image - FULL COLOR & VIBRANT */
.logo-card .logo-img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none !important; /* Force original official colors */
  opacity: 1 !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Interactive States & Glow Effect
   ========================================================================== */
.logo-card:hover {
  /* Lift 10px & Scale 1.05 */
  transform: translateY(-10px) scale(1.05);
  
  /* Thin blue border */
  border-color: rgba(37, 99, 235, 0.45);
  
  /* Stronger shadow with soft blue glow */
  box-shadow: 0 20px 35px rgba(37, 99, 235, 0.12), 0 0 25px rgba(37, 99, 235, 0.08);
  z-index: 3;
}

[data-bs-theme="dark"] .logo-card:hover {
  background-color: #243249;
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(96, 165, 250, 0.12);
}

.logo-card:hover .logo-img {
  transform: scale(1.03);
}

/* ==========================================================================
   Pill Button Styling
   ========================================================================== */
.btn-pill-corporate {
  border: 2px solid #2563eb;
  border-radius: 50px;
  background-color: #ffffff;
  color: #2563eb;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2.6rem;
  letter-spacing: 0.03em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

[data-bs-theme="dark"] .btn-pill-corporate {
  background-color: transparent;
  color: #60a5fa;
  border-color: #60a5fa;
  box-shadow: 0 4px 14px rgba(96, 165, 250, 0.05);
}

.btn-pill-corporate:hover {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}

[data-bs-theme="dark"] .btn-pill-corporate:hover {
  background-color: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.25);
}

/* ==========================================================================
   Lightweight Scroll Animation
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(35px) scale(0.96);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delay loop */
.logo-card-wrapper {
  transition-delay: calc(var(--stagger-index, 0) * 0.04s);
}

/* ==========================================================================
   2-Row Auto-Sliding Customer Logo Marquee
   ========================================================================== */
.logo-marquee-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logo-marquee-track-container {
  overflow: hidden;
  width: 100%;
  display: flex;
  white-space: nowrap;
}

.logo-marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
}

.track-left {
  animation: marqueeLeft 32s linear infinite;
}

.track-right {
  animation: marqueeRight 36s linear infinite;
}

/* Pause auto-sliding on hover or manual click for clear visibility & interaction */
.logo-marquee-wrapper:hover .logo-marquee-track,
.logo-marquee-wrapper.is-manually-paused .logo-marquee-track {
  animation-play-state: paused !important;
}

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

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

.marquee-logo-card {
  flex: 0 0 210px;
  height: 95px;
  background: var(--surface, #ffffff);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-bs-theme="dark"] .marquee-logo-card {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.marquee-logo-card:hover {
  transform: translateY(-5px) scale(1.04);
  border-color: #2563eb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
}

[data-bs-theme="dark"] .marquee-logo-card:hover {
  border-color: #60a5fa;
  box-shadow: 0 12px 30px rgba(96, 165, 250, 0.25);
}

.marquee-logo-card img {
  max-width: 100%;
  max-height: 55px;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.marquee-logo-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .marquee-logo-card {
    flex: 0 0 160px;
    height: 80px;
    padding: 0.85rem 1rem;
  }
  .marquee-logo-card img {
    max-height: 42px;
  }
}
