/* Success Stories Section Styles */

/* === Section Background === */
.success-stories-section {
  background: #f9fafb;
  padding: 50px 0 80px;
  position: relative;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.success-stories-container {
  position: relative;
  z-index: 2;
}

/* === Container === */
.success-stories-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* === Section Header === */
.success-stories-header {
  text-align: center;
  margin-bottom: 60px;
}

.success-stories-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 48px;
  text-align: center;
  color: #2c3e50;
  margin-bottom: 16px;
}

.success-stories-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  color: #5a6c7d;
}

/* === Carousel Container === */
.success-stories-carousel {
  margin-bottom: 40px;
}

/* === Featured Card Wrapper === */
.success-featured-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 352px;
  border-radius: 20px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .success-featured-wrapper {
    overflow: hidden;
    touch-action: pan-y; /* Prevent vertical scroll conflict */
  }
}

/* === Base Card Style === */
.success-featured-card {
  position: absolute;
  top: 0;
  opacity: 0;
  transform: scale(0.9) translateX(0);
  filter: blur(6px);
  pointer-events: none;
  transition: transform 0.8s ease, opacity 0.8s ease, filter 0.8s ease;
  z-index: 1;
  display: flex;
  max-width: 600px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* === Active (Center) Card === */
.success-featured-card.active {
  position: relative;
  opacity: 1;
  transform: scale(1) translateX(0);
  filter: none;
  z-index: 3;
  pointer-events: auto;
}

/* === Left (Prev) Card === */
.success-featured-card.prev {
  transform: scale(0.9) translateX(-320px) translateY(40px);
  opacity: 0.6;
  z-index: 2;
  filter: blur(2px);
  pointer-events: auto;
  cursor: pointer;
}

/* === Right (Next) Card === */
.success-featured-card.next {
  transform: scale(0.9) translateX(320px) translateY(40px);
  opacity: 0.6;
  z-index: 2;
  filter: blur(2px);
  pointer-events: auto;
  cursor: pointer;
}

/* === Card Image Section === */
.success-card-image {
  position: relative;
  flex-shrink: 0;
  width: 200px;
}

.success-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.success-industry-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: transparent;
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px 8px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 500;
  border: 2px solid var(--color-white-white-30, #ffffff4d);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  stroke: white;
}

/* === Card Text Content === */
.success-card-content {
  padding: 24px;
  flex: 1;
}

.success-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 6px;
}

.success-card-subtitle {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 12px;
}

.success-card-description {
  font-size: 14px;
  color: #495057;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* === Achievements List === */
.success-achievements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.success-achievement-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #495057;
}

.success-check-icon {
  width: 16px;
  height: 16px;
  background: #28a745;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.success-check-icon::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 10px;
  font-weight: bold;
}

/* === Dots Navigation === */
.success-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-radius: 50px;
  background: linear-gradient(90deg, #478ec0, #51b36c);
  width: fit-content;
  margin: 0 auto;
  margin-top: 20px;
}

.success-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.success-dot.active {
  background: white;
}

/* === Mobile Swipe Animations === */
@media (max-width: 480px) {
  .success-featured-card.slide-forward {
    animation: slideAnimation 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .success-featured-card.slide-reverse {
    animation: slideAnimationReverse 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

@keyframes slideAnimation {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideAnimationReverse {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* === Responsive Styles === */
@media (max-width: 768px) {
  .success-stories-title {
    font-size: 32px;
  }

  .success-card-image {
    width: 100%;
    height: 200px;
  }

  .success-featured-card {
    flex-direction: column;
    max-width: 100%;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out,
      filter 0.6s ease-in-out;
  }

  .success-featured-card.prev,
  .success-featured-card.next {
    display: none;
  }
}

@media (max-width: 480px) {
  .success-stories-title {
    font-size: 40px;
  }

  .success-dot {
    width: 10px;
    height: 10px;
  }

  .success-card-content {
    padding: 16px;
  }

  .success-achievement-item {
    font-size: 13px;
  }
}