/* ======================
   CLIENTS MARQUEE
====================== */
.clients-marquee-section{
  padding:80px 0 100px;
  overflow:hidden;
  position:relative;
}

/* FADE EDGES */
.clients-marquee{
  overflow:hidden;
  margin-bottom:0;
  -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);
}

/* TRACK */
.clients-track{
  display:flex;
  align-items:center;
  gap:0;
  width:max-content;
  animation-play-state:running;
  background: linear-gradient(90deg, 
    rgba(0,0,0,0.3) 0%, 
    rgba(0,0,0,0.8) 25%, 
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.8) 75%,
    rgba(0,0,0,0.3) 100%
  );
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 10px 0;
}

/* ── LOGO CARD (Now a segment) ── */
.client-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 300px;
  height: 160px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.client-logo-item:hover {
  background: rgba(255,255,255,0.08);
}

/* ── LOGO IMAGE ── */
.clients-track img{
  height: 100px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  opacity: 0.75;
  transition: all 0.4s ease;
  filter: brightness(0.9) grayscale(20%);
  z-index: 1;
}

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

/* ── CLIENT NAME (hidden for cleaner look or minimized) ── */
.client-name {
  display: none; /* Hide client names in this bar design */
}

/* ── ANIMATIONS ── */
.left-to-right .clients-track{
  animation:clients-ltr 45s linear infinite;
}

.right-to-left .clients-track{
  animation:clients-rtl 48s linear infinite;
}

@keyframes clients-ltr{
  from{ transform:translateX(-50%); }
  to{ transform:translateX(0); }
}

@keyframes clients-rtl{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* PAUSE ON HOVER */
.clients-marquee:hover .clients-track{
  animation-play-state:paused;
}

/* ── MOBILE ── */
@media(max-width:768px){
  .clients-marquee-section{
    padding: 40px 0 60px;
  }
  .clients-track{
    gap: 0;
    padding: 5px 0;
  }
  .client-logo-item {
    width: 180px;
    height: 100px;
    border-right: 1px solid rgba(255,255,255,0.05);
  }
  .clients-track img{
    height: 50px;
    max-width: 140px;
  }
}

/* ======================
   MOVING TEXT MARQUEE
====================== */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  background: transparent;
  padding: 60px 0;
  margin-top: 80px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.marquee {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}

.marquee-rtl {
  animation: marquee-rtl 30s linear infinite;
}

.marquee-ltr {
  animation: marquee-ltr 30s linear infinite;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  font-size: clamp(0.75rem, 1.5vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding-right: 100px;
  letter-spacing: 0.5px;
}

.marquee strong {
  color: var(--orange1);
  margin-left: 8px;
}

.spin-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  animation: spin 6s linear infinite;
}

.spin-icon circle {
  fill: #fff;
  stroke: none;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

@media (max-width: 768px) {
  .marquee-wrap {
    margin-top: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .marquee span {
    font-size: 16px;
    padding-right: 30px;
  }
  .spin-icon {
    width: 24px;
    height: 24px;
  }
}

/* ======================
   ACCESSIBILITY
====================== */
@media (prefers-reduced-motion: reduce) {
  .clients-track,
  .marquee-rtl,
  .marquee-ltr,
  .spin-icon {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
