.testimonials-section {
  min-height: 200vh;
  background: #e2e8e9;
  position: relative;
  overflow: hidden;
  padding: 120px 5% 80px;
  
}
.testimonials-section::before {
  content: "";
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff0032, transparent);
  opacity: 0.3;
  z-index: 0;
}
.testimonials-section::after {
  content: "";
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 0, 50, 0.03) 0%, transparent 70%);
  z-index: 0;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 10;
  justify-content: center;
  align-items: center;
}

.section-title {
  font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
  color: #000;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  display: inline;
  justify-content: center;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #ff0032;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #333333;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.stacking-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto 100px;
  min-height: 600px;
  perspective: 1000px;
}

.stacking-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stacking-card:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}
.stacking-card {
  position: relative;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  will-change: transform;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(var(--scale, 1));
  opacity: var(--opacity, 1);
  z-index: var(--z-index, 1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.client-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (max-width: 768px) {
  .client-profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.profile-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 0, 50, 0.1);
  transition: border-color 0.3s ease;
}
.stacking-card:hover .profile-img {
  border-color: rgba(255, 0, 50, 0.3);
}
@media (max-width: 768px) {
  .profile-img {
    width: 50px;
    height: 50px;
  }
}

.client-info h3 {
  font-size: 1.3rem;
  color: #000;
  margin-bottom: 4px;
  font-weight: 600;
}
.client-info .client-role {
  font-size: 0.9rem;
  color: #ff0032;
  font-weight: 500;
  margin-bottom: 6px;
}

.client-rating {
  display: flex;
  gap: 4px;
  color: #FFD700;
  font-size: 0.9rem;
}

.quote-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 0, 50, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff0032;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}
.stacking-card:hover .quote-icon {
  background: rgba(255, 0, 50, 0.2);
}

.testimonial-content {
  margin-bottom: 24px;
}
.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333333;
  font-style: italic;
  position: relative;
  padding-left: 20px;
}
.testimonial-content p::before {
  content: '""';
  position: absolute;
  left: 0;
  top: -10px;
  color: rgba(255, 0, 50, 0.2);
  font-size: 2.5rem;
  font-family: serif;
  font-weight: bold;
}
@media (max-width: 768px) {
  .testimonial-content p {
    font-size: 1rem;
    padding-left: 15px;
  }
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .testimonial-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.project-tag {
  padding: 6px 16px;
  background: rgba(255, 0, 50, 0.1);
  color: #ff0032;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 0, 50, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
.project-tag:hover {
  background: rgba(255, 0, 50, 0.2);
  transform: translateY(-2px);
}

.date {
  font-size: 0.9rem;
  color: #333333;
  font-weight: 500;
}

.testimonials-content {
  max-width: 800px;
  margin: 100px auto 0;
  padding: 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.testimonials-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 25px;
  text-align: center;
}
.testimonials-content p:last-child {
  margin-bottom: 0;
}
@media (max-width: 1024px) {
  .testimonials-content {
    margin-top: 60px;
    padding: 30px;
  }
}
@media (max-width: 768px) {
  .testimonials-content {
    padding: 24px;
    margin-top: 40px;
  }
}

@media (max-width: 1024px) {
  .stacking-container {
    max-width: 90%;
    margin-bottom: 60px;
  }
  .testimonials-section {
    padding: 80px 5% 60px;
  }
}
@media (max-width: 768px) {
  .testimonials-section {
    min-height: 150vh;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .stacking-card {
    padding: 24px;
  }
}
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.stacking-card {
  animation: cardEntrance 0.6s ease-out var(--delay) both;
}
.stacking-card:nth-child(1) {
  --delay: 0.1s;
}
.stacking-card:nth-child(2) {
  --delay: 0.2s;
}
.stacking-card:nth-child(3) {
  --delay: 0.3s;
}
.stacking-card:nth-child(4) {
  --delay: 0.4s;
}

.stacking-card.active {
  --scale: 1;
  --opacity: 1;
  --z-index: 10;
}
.stacking-card.inactive {
  --scale: 0.9;
  --opacity: 0.7;
  --z-index: 5;
}
.stacking-card.hidden {
  --scale: 0.8;
  --opacity: 0.3;
  --z-index: 1;
}

.testimonials-scroll-indicator {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.testimonials-scroll-indicator:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  .testimonials-scroll-indicator {
    right: 20px;
  }
}

.scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 0, 50, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}
.scroll-dot.active {
  background: #ff0032;
  transform: scale(1.3);
}
.scroll-dot:hover {
  background: #ff0032;
}
