 /* ===================================================================
   3D TILT TESTIMONIALS - WHITE/LIGHT THEME
   Clean, Modern, Professional with Green Accents
   =================================================================== */

.testimonials-3d-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle Background Pattern */
.testimonials-3d-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(26, 188, 156, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(121, 197, 125, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.testi-header-3d {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.testi-title-3d {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #2c3e50;
  font-weight: 800;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, #2c3e50 0%, #1abc9c 50%, #79c57d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: titleGradient 5s linear infinite;
}

@keyframes titleGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.title-line-3d {
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, #1abc9c, #79c57d, #1abc9c);
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(26, 188, 156, 0.3);
  background-size: 200% 100%;
  animation: lineShine 3s linear infinite;
}

@keyframes lineShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.testi-grid-3d {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  perspective: 1000px;
  position: relative;
  z-index: 2;
}

/* 3D CARD - WHITE THEME */
.testi-card-3d {
  position: relative;
  background: #ffffff;
  border-radius: 30px;
  padding: 50px 40px;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Gradient Border */
.testi-card-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 3px;
  background: linear-gradient(135deg, 
    #1abc9c 0%, 
    #79c57d 50%, 
    #1abc9c 100%
  );
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.testi-card-3d:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.12),
    0 10px 30px rgba(26, 188, 156, 0.15),
    0 0 0 1px rgba(26, 188, 156, 0.1);
}

.testi-card-3d:hover::before {
  opacity: 1;
}

/* Card Shine Effect */
.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(26, 188, 156, 0.08), 
    rgba(121, 197, 125, 0.05), 
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.testi-card-3d:hover .card-shine {
  left: 100%;
}

/* Avatar 3D */
.user-avatar-3d {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  transform: translateZ(50px);
  z-index: 3;
}

.user-avatar-3d img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f8f9fa;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(26, 188, 156, 0.2);
  transition: all 0.3s ease;
}

.testi-card-3d:hover .user-avatar-3d img {
  border-color: #fff;
  transform: scale(1.1) translateZ(20px);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.2),
    0 0 0 4px rgba(26, 188, 156, 0.3),
    0 0 20px rgba(26, 188, 156, 0.2);
}

.avatar-ring {
  position: absolute;
  inset: -8px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: linear-gradient(45deg, #1abc9c, #79c57d, #1abc9c) border-box;
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ringRotate 4s linear infinite;
}

@keyframes ringRotate {
  0% { transform: rotate(0deg); background-position: 0% 50%; }
  100% { transform: rotate(360deg); background-position: 200% 50%; }
}

.verified-badge-3d {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1abc9c, #16a085);
  border-radius: 50%;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(26, 188, 156, 0.4);
  animation: badgeBounce 2s ease-in-out infinite;
  z-index: 4;
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.verified-badge-3d i {
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
}

/* Quote Mark - Light Theme */
.quote-mark-3d {
  font-size: 8rem;
  color: rgba(26, 188, 156, 0.08);
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: Georgia, serif;
  line-height: 1;
  transform: translateZ(10px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1;
}

.testi-card-3d:hover .quote-mark-3d {
  color: rgba(26, 188, 156, 0.12);
  transform: translateZ(10px) scale(1.05);
}

/* Text */
.testi-text-3d {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 30px;
  text-align: right;
  min-height: 140px;
  position: relative;
  z-index: 2;
  transform: translateZ(20px);
}

/* Rating - Gold Stars */
.rating-3d {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 25px;
  transform: translateZ(30px);
  z-index: 2;
}

.rating-3d i {
  color: #ffc107;
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
  animation: starFloat 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.testi-card-3d:hover .rating-3d i {
  transform: scale(1.15) rotate(10deg);
  filter: drop-shadow(0 3px 6px rgba(255, 193, 7, 0.5));
}

.rating-3d i:nth-child(1) { animation-delay: 0s; }
.rating-3d i:nth-child(2) { animation-delay: 0.1s; }
.rating-3d i:nth-child(3) { animation-delay: 0.2s; }
.rating-3d i:nth-child(4) { animation-delay: 0.3s; }
.rating-3d i:nth-child(5) { animation-delay: 0.4s; }

@keyframes starFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* User Info */
.user-info-3d {
  text-align: center;
  padding-top: 25px;
  border-top: 2px solid #f0f0f0;
  transform: translateZ(25px);
  z-index: 2;
  position: relative;
}

.testi-card-3d:hover .user-info-3d {
  border-top-color: rgba(26, 188, 156, 0.2);
}

.user-info-3d h4 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin: 0 0 5px 0;
  font-weight: 700;
}

.user-info-3d p {
  font-size: 1rem;
  color: #1abc9c;
  margin: 0;
  font-weight: 500;
}

/* Card Glow - Subtle Light Theme */
.card-glow-3d {
  position: absolute;
  inset: -100px;
  background: radial-gradient(circle, 
    rgba(26, 188, 156, 0.08) 0%, 
    rgba(121, 197, 125, 0.04) 40%, 
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.testi-card-3d:hover .card-glow-3d {
  opacity: 1;
}

/* Background Floating Elements */
.testimonials-3d-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 188, 156, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: floatBg 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatBg {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .testimonials-3d-section {
    padding: 70px 0;
  }
  
  .testi-grid-3d {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .testi-card-3d {
    padding: 35px 25px;
  }
  
  .user-avatar-3d {
    width: 80px;
    height: 80px;
  }
  
  .quote-mark-3d {
    font-size: 5rem;
    right: 20px;
  }
  
  .testi-text-3d {
    font-size: 1rem;
    min-height: 120px;
  }
  
  .testi-title-3d {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .testi-card-3d {
    padding: 30px 20px;
  }
  
  .user-avatar-3d {
    width: 70px;
    height: 70px;
  }
  
  .quote-mark-3d {
    font-size: 4rem;
  }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
  .testimonials-3d-section *,
  .testimonials-3d-section *::before,
  .testimonials-3d-section *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
