.bounceCardsContainer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 2 / 1; /* default 500x250 ratio */
  height: auto;
}

.mobile-only { display: none !important; }
.desktop-only { /* visible by default; hidden on small screens via media query */ }

.card {
  position: absolute;
  width: clamp(120px, 40%, 240px);
  aspect-ratio: 1;
  border: 5px solid #fff;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  will-change: transform, box-shadow;
}

.card .image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .bounceCardsContainer {
    max-width: 560px;
  }
  .mobile-only { display: block !important; }
  .desktop-only { display: none !important; }
}

@media (max-width: 768px) {
  .bounceCardsContainer {
    max-width: 520px;
  }
  .card {
    width: clamp(100px, 45%, 220px);
  }
}

@media (max-width: 480px) {
  .bounceCardsContainer {
    max-width: 420px;
    aspect-ratio: 16 / 10; /* slightly taller on very small screens */
  }
  .card {
    width: clamp(90px, 48%, 200px);
    border-width: 4px;
    border-radius: 18px;
  }
}



/* Smooth infinite marquee for logos section */
.section_logos {
  position: relative;
  overflow-x: clip; /* prevent any horizontal movement from affecting parent */
}

.section_logos .logos_component {
  overflow: hidden;
  width: 100%;
  transform: none !important; /* ensure parent stays static */
}

.section_logos .logos_list {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
  animation: logos-marquee 30s linear infinite;
  animation-direction: reverse;
}

.section_logos .stat-card_wrapper {
  flex: 0 0 auto;
  display: inline-flex;
  width: auto !important;
}

.section_logos .stat-card {
  white-space: nowrap;
}

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

@media (prefers-reduced-motion: reduce) {
  .section_logos .logos_list {
    animation: none;
    transform: none;
  }
}
/* Hover scale + brand glow for social icons */
.social-link {
  position: relative;
  border-radius: 9999px;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.social-link img {
  transition: transform 180ms ease, filter 180ms ease;
}
.social-link:hover {
  transform: scale(1.12);
  box-shadow: 0 0 18px 6px rgba(0, 0, 0, 0.3);
}
.social-link:hover img {
  filter: grayscale(100%) brightness(1.15) contrast(95%) drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}
