/* Marquee Testimonials Section */
.testimonials-marquee-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background-color: var(--background-primary);
}

.marquee-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.marquee-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.marquee-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  max-width: 720px;
  color: var(--text-primary);
}

.marquee-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  max-width: 600px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 16px;
  animation: marquee 40s linear infinite;
  padding: 8px 0;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 16px));
  }
}

/* Testimonial Card */
.testimonial-card-marquee {
  display: flex;
  flex-direction: column;
  max-width: 320px;
  min-width: 280px;
  background: linear-gradient(to bottom, rgba(229, 231, 235, 0.5), rgba(229, 231, 235, 0.1));
  padding: 24px;
  border-radius: 8px;
  border-top: 1px solid var(--border-color);
  text-align: left;
  transition: background 0.3s;
}

.testimonial-card-marquee:hover {
  background: linear-gradient(to bottom, rgba(229, 231, 235, 0.6), rgba(229, 231, 235, 0.2));
}

.dark-mode .testimonial-card-marquee {
  background: linear-gradient(to bottom, rgba(30, 41, 59, 0.5), rgba(30, 41, 59, 0.1));
}

.dark-mode .testimonial-card-marquee:hover {
  background: linear-gradient(to bottom, rgba(30, 41, 59, 0.6), rgba(30, 41, 59, 0.2));
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.author-handle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.testimonial-text {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Gradient fades on sides */
.marquee-fade-left,
.marquee-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25%;
  pointer-events: none;
  z-index: 2;
  display: none;
}

.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--background-primary), transparent);
}

.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--background-primary), transparent);
}

@media (min-width: 640px) {
  .marquee-fade-left,
  .marquee-fade-right {
    display: block;
  }

  .marquee-wrapper {
    padding: 0 24px;
  }
}

/* Dark mode adjustments */
.dark-mode .testimonial-card-marquee {
  border-color: var(--border-color);
}

.dark-mode .marquee-fade-left {
  background: linear-gradient(to right, var(--background-primary), transparent);
}

.dark-mode .marquee-fade-right {
  background: linear-gradient(to left, var(--background-primary), transparent);
}
