@import url("__global_service.css");
@import url("__helper_service.css");
@import url("sharepoint_intranet_service.css");

@keyframes carousel {
  /* Slide 1 */
  0%,
  20% {
    transform: translateX(0);
  }

  /* Slide to 2 */
  35%,
  50% {
    transform: translateX(-370px);
  }
  65%,
  85% {
    transform: translateX(-750px);
  }
}

.testimonials-carousel-track {
  animation: carousel 6s linear infinite !important;
}

.sa-alliances-section {
  background-color: #3c4fff;
  padding: 40px 0;
  width: 100%;
  overflow: hidden;
}

.sa-section-title {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.sa-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.sa-carousel-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.sa-carousel-container:hover .sa-carousel-track-wrapper {
  animation-play-state: paused;
}

@keyframes sa-scroll-right {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes sa-scroll-left {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.sa-carousel-track-wrapper {
  display: flex;
  width: fit-content;
  will-change: transform;
  overflow-x: hidden;
  overflow-y: visible;
  padding-block: 0.5rem;
}

.sa-carousel-track-wrapper.sa-row-1 {
  animation: sa-scroll-right 40s linear infinite;
}

.sa-carousel-track-wrapper.sa-row-2 {
  animation: sa-scroll-left 40s linear infinite;
}

.sa-carousel-track {
  display: flex;
  gap: 20px;
  padding: 0 10px;
}

.sa-logo-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

.sa-logo-card {
  background: linear-gradient(145deg, #3c4fff, #323764);
  border: 1px solid #3c4fff;
  border-radius: 16px;
  padding: 20px;
  width: 160px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: all 0.3s ease !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.sa-logo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease !important;
}

.sa-logo-card:hover {
  transform: translateY(-5px);
  border-color: #3c4fff;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.sa-logo-card:hover::before {
  opacity: 1;
}

.sa-logo-card img {
  max-width: 30px;
  max-height: 30px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* filter: brightness(0) invert(1); */
  transition: all 0.3s ease;
}

.sa-logo-card:hover img {
  /* filter: brightness(0) invert(1); */
  transform: scale(1.05);
}

.sa-aws-icon {
  width: 60px;
  height: 60px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-aws-icon svg {
  width: 100%;
  height: 100%;
}

.sa-logo-name {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  text-align: center;
  /* white-space: nowrap; */
}

/* Responsive Design */
@media (max-width: 1200px) {
  .sa-section-title {
    font-size: 2.5rem;
  }

  .sa-logo-card {
    min-width: 160px;
    height: 140px;
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .sa-section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .sa-logo-card {
    min-width: 140px;
    height: 130px;
    padding: 20px;
  }

  .sa-logo-card img {
    max-width: 30px;
    max-height: 30px;
  }

  .sa-logo-name {
    font-size: 0.75rem;
  }

  .sa-carousel-track-wrapper {
    animation-duration: 30s;
  }
}

@media (max-width: 576px) {
  .sa-alliances-section {
    padding: 60px 0;
  }

  .sa-section-title {
    font-size: 1.5rem;
    padding: 0 20px;
  }

  .sa-logo-card {
    min-width: 120px;
    height: 120px;
    padding: 15px;
  }

  .sa-logo-card img {
    max-width: 30px;
    max-height: 30px;
  }

  .sa-aws-icon {
    width: 50px;
    height: 50px;
  }

  .sa-carousel-track-wrapper {
    animation-duration: 25s;
  }
}

/* Smooth animation performance */
.sa-carousel-track-wrapper {
  will-change: transform;
}

.sa-logo-card {
  will-change: transform;
}

/* Ensure smooth scrolling */
.sa-carousel-wrapper::before,
.sa-carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.sa-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #3c4fff, transparent);
}

.sa-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #3c4fff, transparent);
}
