/* Testimonials Section */
.testimonials-section {
  padding: 5rem 0;
  background: linear-gradient(
    180deg,
    hsl(200, 30%, 15%) 0%,
    hsl(200, 25%, 12%) 100%
  );
  color: var(--primary-foreground);
  position: relative;
}

.testimonials-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 20%,
    var(--accent) 80%,
    transparent 100%
  );
  opacity: 0.3;
}

.testimonials-title {
  color: var(--primary-foreground);
}

.rating-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.stars {
  display: flex;
}

.star-icon {
  width: 24px;
  height: 24px;
  color: #fbbf24;
  fill: #fbbf24;
}

.rating-text {
  color: rgba(255, 255, 255, 0.8);
  margin-left: 0.5rem;
}

.testimonials-carousel {
  position: relative;
  overflow: hidden;
  padding-bottom: 3rem;
  -webkit-overflow-scrolling: touch;
}

.testimonials-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Mobile carousel styles */
@media (max-width: 767px) {
  .testimonial-card {
    flex: 0 0 calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    min-width: 280px;
  }

  .testimonials-grid {
    padding: 0 1rem;
    gap: 1rem;
  }

  .testimonials-carousel {
    overflow: hidden;
  }
}

@media (min-width: 768px) {
  .testimonials-carousel {
    overflow: hidden;
  }

  .testimonials-grid {
    gap: 1.5rem;
  }

  .testimonial-card {
    flex: 0 0 400px;
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex: 0 0 450px;
  }
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  box-sizing: border-box;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar-text {
  font-size: 1.125rem;
  font-weight: 600;
}

.testimonial-info h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-stars {
  display: flex;
}

.testimonial-star {
  width: 16px;
  height: 16px;
  color: #fbbf24;
  fill: #fbbf24;
}

.testimonial-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
}

.google-reviews-logo {
  width: 200px;
  height: auto;
}

/* Carousel navigation arrows */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-nav-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.carousel-nav-button:hover:not(:disabled) {
  background-color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.05);
}

.carousel-nav-button:active:not(:disabled) {
  transform: scale(0.95);
}

.carousel-nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-nav-button svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .carousel-nav-button {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .rating-display {
    display: flex;
    flex-direction: column;
  }
  .testimonial-header {
    display: flex;
    flex-direction: column;
  }
}
