/* ==========================================================
   ThinkAIQ — 3D Circular Client Gallery
   Dark + blue/indigo palette
   ========================================================== */

.trusted-clients-section {
  background: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 80px;
}

.trusted-clients-section .section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -1px;
}

.trusted-clients-section .section-subtitle {
  margin-top: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- 3D stage ---------- */

.circular-gallery-wrapper {
  perspective: 1200px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px;
}

.circular-gallery {
  position: relative;
  width: 240px;
  height: 280px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: grab;
}

.circular-gallery.dragging {
  cursor: grabbing;
  transition: none;
}

.circular-gallery.paused {
  transition: none;
}

/* ---------- 3D card ---------- */

.client-card-3d {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(30, 30, 45, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.client-card-3d:hover {
  border-color: rgba(113, 196, 255, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(99, 102, 241, 0.25);
}

.client-card-3d .client-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: #ffffff;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 16px;
}

.client-card-3d .client-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.client-card-3d .client-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.client-card-3d .client-quote {
  font-size: 12px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
  max-width: 92%;
}

.client-card-3d .client-quote::before {
  content: "\201C";
  display: block;
  font-size: 34px;
  line-height: 0.6;
  color: rgba(113, 196, 255, 0.5);
  margin-bottom: 6px;
}

/* ---------- controls ---------- */

.gallery-controls {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.gallery-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(30, 30, 45, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.gallery-nav-btn:hover {
  border-color: rgba(113, 196, 255, 0.5);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
}

/* ---------- mobile ---------- */

@media (max-width: 768px) {
  .circular-gallery-wrapper {
    height: auto;
    padding: 20px 0;
    perspective: none;
  }

  .circular-gallery {
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    position: static !important;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .client-card-3d {
    position: static !important;
    transform: none !important;
    min-width: 240px;
    max-width: 240px;
    width: 240px;
    height: auto;
    scroll-snap-align: center;
    opacity: 1 !important;
    border-radius: 16px;
    padding: 18px 12px;
  }

  .client-card-3d:hover {
    transform: none !important;
  }

  .client-card-3d .client-avatar {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }

  .client-card-3d .client-name {
    font-size: 15px;
  }

  .client-card-3d .client-role {
    font-size: 10px;
  }

  .client-card-3d .client-quote {
    font-size: 11px;
    line-height: 1.4;
  }
}