/* === TESTIMONIALS SECTION - ENHANCED WITH FIREBASE FEATURES === */

.testimonials-section {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px) saturate(180%) brightness(120%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-lg);
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.1);
}

/* === ENHANCED HEADER === */
.testimonials-header {
  text-align: center;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonials-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 0 0 1rem 0;
}

.title-icon {
  font-size: 2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.testimonials-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === ENHANCED CAROUSEL === */
.testimonials-carousel {
  position: relative;
  padding: 2rem;
}

.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  min-height: 300px;
}

/* === ENHANCED REVIEW CARD === */
.review-card {
  padding: 3rem 2.5rem;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.6s ease;
  display: none;
}

.review-card.active {
  opacity: 1;
  transform: translateX(0);
  display: block;
  animation: slideIn 0.6s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.review-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* === ENHANCED RATING SECTION === */
.review-rating {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.star {
  font-size: 1.8rem;
  transition: all 0.3s ease;
  cursor: default;
}

.star.filled {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  animation: starGlow 2s ease-in-out infinite alternate;
}

.star.empty {
  color: rgba(255, 255, 255, 0.2);
}

@keyframes starGlow {
  from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
  to { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

.featured-badge {
  background: linear-gradient(135deg, var(--accent-purple), #af52de);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 1rem;
  box-shadow: 0 4px 15px rgba(175, 82, 222, 0.3);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 4px 15px rgba(175, 82, 222, 0.3); }
  to { box-shadow: 0 4px 25px rgba(175, 82, 222, 0.6); }
}

/* === ENHANCED REVIEW TEXT === */
.review-text {
  margin-bottom: 2.5rem;
  position: relative;
  padding: 1rem 2rem;
}

.review-text p {
  font-size: 1.3rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
  margin: 0;
  position: relative;
  z-index: 1;
  text-align: justify;
  hyphens: auto;
}

.review-text::before {
  content: '"';
  position: absolute;
  left: -0.5rem;
  top: -1rem;
  font-size: 4rem;
  color: rgba(212, 175, 55, 0.3);
  font-family: serif;
  line-height: 1;
}

.review-text::after {
  content: '"';
  position: absolute;
  right: -0.5rem;
  bottom: -1rem;
  font-size: 4rem;
  color: rgba(212, 175, 55, 0.3);
  font-family: serif;
  line-height: 1;
}

/* === ENHANCED CLIENT INFO === */
.review-client {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.client-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #f4d03f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.client-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

.client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.client-avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.client-info {
  text-align: left;
  flex: 1;
}

.client-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin: 0 0 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verified-badge {
  background: linear-gradient(135deg, var(--accent-green), #32d74b);
  color: white;
  padding: 0.1rem 0.4rem;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  box-shadow: 0 2px 8px rgba(50, 215, 75, 0.3);
}

.review-meta {
  font-size: 0.9rem;
  color: var(--accent-electric);
  margin: 0 0 0.2rem 0;
  font-weight: 500;
}

.review-location {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.rating-badge {
  background: linear-gradient(135deg, var(--accent-electric), #00d4ff);
  color: var(--primary-dark);
  padding: 0.8rem;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
  flex-shrink: 0;
}

.rating-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.rating-max {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* === ENHANCED NAVIGATION ARROWS === */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  background: linear-gradient(135deg, var(--accent-gold), #f4d03f);
  border-color: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.prev {
  left: -30px;
}

.carousel-arrow.next {
  right: -30px;
}

/* === ENHANCED DOTS NAVIGATION === */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: scale(1.4);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.dot:hover:not(.active) {
  background: var(--accent-electric);
  border-color: var(--accent-electric);
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

/* === NEW STATISTICS SECTION === */
.testimonials-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 1.5rem 1rem;
  min-width: 120px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
  font-family: 'Orbitron', sans-serif;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* === ENHANCED ERROR STATES === */
.testimonials-empty,
.section-deactivated,
.error-state {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin: 2rem;
}

.empty-icon,
.deactivated-icon,
.error-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.testimonials-empty h3,
.section-deactivated h3,
.error-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.retry-btn {
  background: var(--accent-electric);
  color: var(--primary-dark);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
  .testimonials-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .testimonials-subtitle {
    font-size: 1rem;
  }

  .testimonials-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .testimonials-carousel {
    padding: 1.5rem 1rem;
  }

  .review-card {
    padding: 2rem 1.5rem;
  }

  .review-text {
    padding: 0.5rem 1rem;
  }

  .review-text p {
    font-size: 1.1rem;
    text-align: center;
  }

  .review-client {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .client-info {
    text-align: center;
  }

  .client-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .rating-badge {
    padding: 0.6rem;
    min-width: 50px;
  }

  .rating-number {
    font-size: 1.3rem;
  }

  .carousel-arrow {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .carousel-arrow.prev {
    left: -24px;
  }

  .carousel-arrow.next {
    right: -24px;
  }

  .testimonials-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stat-item {
    min-width: 100px;
    padding: 1rem 0.8rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .featured-badge {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .testimonials-title {
    font-size: 1.5rem;
  }

  .testimonials-header {
    padding: 1.5rem 1rem;
  }

  .review-card {
    padding: 1.5rem 1rem;
  }

  .review-text p {
    font-size: 1rem;
  }

  .client-avatar {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }

  .client-name {
    font-size: 1.1rem;
  }

  .rating-badge {
    padding: 0.5rem;
    min-width: 45px;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .carousel-arrow.prev {
    left: -22px;
  }

  .carousel-arrow.next {
    right: -22px;
  }

  .testimonials-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .stat-item {
    min-width: auto;
    padding: 0.8rem 0.6rem;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  .review-card,
  .carousel-arrow,
  .dot,
  .stat-item,
  .client-avatar,
  .title-icon,
  .featured-badge {
    transition: none !important;
    animation: none !important;
  }
}

@media (prefers-contrast: high) {
  .carousel-arrow,
  .dot {
    border-width: 3px;
    background: rgba(255, 255, 255, 0.3);
  }
  
  .client-name {
    color: var(--accent-electric);
    font-weight: 700;
  }

  .star.filled {
    color: #FFA500;
    text-shadow: none;
  }
}

/* === PERFORMANCE OPTIMIZATIONS === */
.review-card {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.carousel-arrow {
  will-change: transform;
  backface-visibility: hidden;
}

.client-avatar img {
  will-change: transform;
  backface-visibility: hidden;
}

.stat-item {
  will-change: transform;
  backface-visibility: hidden;
}

/* === LOADING STATES === */
.testimonials-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  border-radius: 20px;
  margin: 2rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-gold);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}