/* =========================
   GLOBAL
========================= */
* {
  box-sizing: border-box;
}

/* =========================
   ARROW ANIMATION
========================= */
@keyframes arrow-move {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }

  100% {
    transform: translateX(0);
  }
}

.animate-arrow {
  display: inline-block;
  animation: arrow-move 1s ease-in-out infinite;
}

/* =========================
   CAROUSEL WRAPPER
========================= */
.carousel-wrapper {
  max-width: 1290px;
  margin: 0 auto;
  padding: 0px 12px;
  box-sizing: border-box;
}


/* =========================
   CONTAINER
========================= */
.carousel-container {
  position: relative;
  /* width: 100%; */
}

/* =========================
   VIEWPORT (NO CUT ISSUE)
========================= */
.carousel-viewport {
  width: auto;
  overflow: hidden;
  box-sizing: border-box;
}

/* =========================
   TRACK
========================= */
.carousel-track {
  display: flex;
  gap: 22px;
  align-items: center;
  transition: transform 0.45s ease;
  cursor: grab;
  margin: 0;
}

/* =========================
   CARD BASE (MOBILE FIRST)
========================= */
.carousel-card {
  flex: 0 0 100%;
  max-width: 100%;
  min-height: 500px;
  max-height: 500px;

  background: #ffffff;
  border-radius: 20px;
  padding: 18px;
  box-sizing: border-box;

  text-align: center;
  border: 1px solid #a7bce8;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease;
  transform: scale(0.96);
  opacity: 0.9;
}

/* =========================
   CARD CONTENT
========================= */


.carousel-card h3 {
  margin: 20px 0 8px;
  font-size: 1.7rem;
  color: var(--primary-dark);
}

.carousel-card p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}

/* =========================
   HOVER (SAFE – NO CUT)
========================= */
.carousel-card:hover {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);

  cursor: pointer;
}


/* =========================
   TABLET (2 CARDS)
========================= */
@media (min-width: 640px) {
  .carousel-card {
    flex: 0 0 calc((100% - 24px) / 2);
    max-width: calc((100% - 26px) / 2);
  }

}

/* =========================
   DESKTOP (3 CARDS)
========================= */
@media (min-width: 1024px) {
  .carousel-card {
    flex: 0 0 calc((100% - 48px) / 3);
    max-width: calc((100% - 50px) / 3);
  }
}


/* =========================
   NAV BUTTONS
========================= */
.nav-btn {
  /* Mobile First: Handled by Flex container */
  position: static;
  z-index: 10;

  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);

  background: #ffffff;
  color: var(--text-primary);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: var(--primary-soft, #2563eb);
  color: var(--text-light);
  border-color: var(--primary-soft, #2563eb);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transform: scale(1.08);

  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-btn {
    width: 60px;
    height: 60px;
    font-size: 22px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  }

  .nav-btn:hover {
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
    transform: scale(1.05);
    cursor: pointer;
  }
}

/* =========================
   CAROUSEL DOTS
========================= */
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  /* Fully rounded */
  background-color: var(--border-color);
  /* slate-300 */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background-color: var(--primary-soft, #2563eb);
  width: 36px;
  /* Pill shape */
  transform: scale(1.1);
  /* Smooth scaling animation */
}

.main-card {
  background: linear-gradient(180deg, #fafcff, #f0f3f8);
  backdrop-filter: blur(6px);
}

.video-wrapper iframe {
  aspect-ratio: 16/9;
  box-shadow: 0 30px 40px -20px rgba(0, 40, 100, 0.5);
}

.industry-card {
  transition: all 0.25s ease;
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.3);
}

/* =========================
   CLIENT MARQUEE SECTION
========================= */
.marquee-container {
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  overflow: hidden;
  user-select: none;
  position: relative;
  width: 100%;
}

.marquee-content {
  animation: scroll-marquee 25s linear infinite;
  display: flex;
  width: max-content;
}

@keyframes scroll-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}


.client-logo-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-10px) scale(1.1);
  width: 120px;
}



@media (max-width: 768px) {
  .client-logo-item {
    width: 180px;
  }

  .marquee-content {
    animation-duration: 40s;
  }
}