/* ===================================
   TESTIMONIALS MODERN - STANDALONE
   Diğer CSS'lerle karışmaz
   =================================== */

.testimonials-modern {
  padding: 80px 0;
  position: relative;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(30, 41, 59, 0.3) 50%, rgba(15, 23, 42, 0) 100%);
  overflow: hidden;
}

.testimonials-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
  position: relative;
  z-index: 1;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 50px;
}

.testimonials-title {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
}

.testimonials-subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
  margin: 0;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0;
}

.testimonials-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 10px;
}

.testimonial-item {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 280px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a78bfa, #3b82f6, #a78bfa);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-item:hover::before {
  opacity: 1;
}

.testimonial-item:hover {
  transform: translateY(-8px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow:
    0 20px 50px rgba(167, 139, 250, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.3);
  position: relative;
  flex-shrink: 0;
}

.testimonial-avatar::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #3b82f6);
  z-index: -1;
  opacity: 0.3;
  animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

.testimonial-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 16px 0;
}

.testimonial-text {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 16px;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 2.5rem;
  color: rgba(167, 139, 250, 0.4);
  line-height: 1;
}

.testimonial-text::after {
  content: '"';
  position: absolute;
  right: 0;
  bottom: -10px;
  font-size: 2.5rem;
  color: rgba(167, 139, 250, 0.4);
  line-height: 1;
}

.testimonials-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.3);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(10px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  outline: none;
}

.testimonials-prev {
  left: 10px;
}

.testimonials-next {
  right: 10px;
}

.testimonials-nav:hover {
  transform: translateY(-50%) scale(1.1);
  border-color: rgba(167, 139, 250, 0.6);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(59, 130, 246, 0.3));
  box-shadow:
    0 8px 30px rgba(167, 139, 250, 0.4),
    0 0 0 8px rgba(167, 139, 250, 0.1);
}

.testimonials-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.testimonials-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.testimonials-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonials-dot.active {
  background: linear-gradient(135deg, #a78bfa, #3b82f6);
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.5);
}

.testimonials-dot:hover:not(.active) {
  background: rgba(167, 139, 250, 0.5);
  transform: scale(1.1);
}

.testimonials-note {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 32px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .testimonials-slide {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .testimonials-container {
    padding: 0 60px;
  }
}

@media (max-width: 768px) {
  .testimonials-modern {
    padding: 45px 0;
  }

  .testimonials-container {
    padding: 0 45px;
  }

  .testimonials-header {
    margin-bottom: 35px;
  }

  .testimonials-title {
    font-size: 1.7rem;
  }

  .testimonials-subtitle {
    font-size: 0.95rem;
  }

  .testimonials-nav {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .testimonials-prev {
    left: 3px;
  }

  .testimonials-next {
    right: 3px;
  }

  .testimonial-item {
    padding: 20px 16px;
    min-height: 200px;
  }

  .testimonial-avatar {
    width: 56px;
    height: 56px;
    font-size: 22px;
    margin-bottom: 12px;
  }

  .testimonial-name {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .testimonial-text {
    font-size: 0.87rem;
    line-height: 1.55;
    padding: 0 12px;
  }

  .testimonials-dots {
    margin-top: 30px;
    gap: 10px;
  }
}

@media (max-width: 640px) {

  /* 2 column grid on mobile to save space */
  .testimonials-slide {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .testimonials-modern {
    padding: 30px 0;
  }

  .testimonials-container {
    padding: 0 30px;
  }

  .testimonials-header {
    margin-bottom: 22px;
  }

  .testimonials-title {
    font-size: 1.4rem;
  }

  .testimonials-subtitle {
    font-size: 0.85rem;
  }

  .testimonials-nav {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .testimonials-prev {
    left: 0;
  }

  .testimonials-next {
    right: 0;
  }

  .testimonial-item {
    padding: 14px 10px !important;
    min-height: 150px !important;
  }

  .testimonial-avatar {
    width: 44px;
    height: 44px;
    font-size: 18px;
    margin-bottom: 8px;
  }

  .testimonial-name {
    font-size: 0.88rem;
    margin-bottom: 8px;
  }

  .testimonial-text {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
    padding: 0 8px !important;
    /* Limit text to 4 lines */
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .testimonial-text::before,
  .testimonial-text::after {
    font-size: 1.5rem;
  }

  .testimonials-dots {
    gap: 7px;
    margin-top: 20px;
  }

  .testimonials-dot {
    width: 8px;
    height: 8px;
  }

  .testimonials-note {
    font-size: 0.8rem;
    margin-top: 20px;
  }
}
