.testimonials-section {
  min-height: 200vh;
  background: #e2e8e9;
  position: relative;
  overflow: hidden;
  padding: 120px 5% 80px;
}
.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff0032, transparent);
  opacity: 0.3;
}
.testimonials-section::after {
  content: "";
  position: absolute;
  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;
}

.section-title {
  font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
  color: #000;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.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;
}
.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;
}

.animated-footer {
  background: #000;
  color: #ffffff;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
  margin-top: 120px;
}
.animated-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff0032, transparent);
  opacity: 0.3;
}
.animated-footer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(255, 0, 50, 0.05) 0%, transparent 70%);
  z-index: 0;
  opacity: 0.5;
}

.footer-title {
  font-size: clamp(5rem, 10vw + 1rem, 12rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
  line-height: 1;
  letter-spacing: -0.02em;
}
@media (max-width: 1024px) {
  .footer-title {
    margin-bottom: 60px;
  }
}
@media (max-width: 768px) {
  .footer-title {
    margin-bottom: 40px;
    font-size: clamp(3.5rem, 8vw + 1rem, 8rem);
  }
}

.animated-text {
  display: inline-block;
  position: relative;
}
.animated-text .letter {
  display: inline-block;
  position: relative;
  animation: float 3s ease-in-out infinite;
  text-shadow: 0 0 20px currentColor;
}
.animated-text .letter:nth-child(1) {
  animation-delay: 0.1s;
}
.animated-text .letter:nth-child(2) {
  animation-delay: 0.2s;
}
.animated-text .letter:nth-child(3) {
  animation-delay: 0.3s;
}
.animated-text .letter:nth-child(4) {
  animation-delay: 0.4s;
}
.animated-text .letter:nth-child(5) {
  animation-delay: 0.5s;
}
.animated-text .letter:nth-child(6) {
  animation-delay: 0.6s;
}
.animated-text .letter:nth-child(7) {
  animation-delay: 0.7s;
}
.animated-text .letter:nth-child(odd) {
  color: #ff0032;
}
.animated-text .letter:nth-child(even) {
  color: #ffffff;
}
.animated-text .letter::before {
  content: attr(data-letter);
  position: absolute;
  top: 0;
  left: 0;
  color: inherit;
  filter: blur(10px);
  opacity: 0.7;
  z-index: -1;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto 80px;
  position: relative;
  z-index: 1;
}
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.footer-social h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #ff0032;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 1024px) {
  .social-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.social-link {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 12px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-link:hover {
  background: rgba(255, 0, 50, 0.2);
  transform: translateX(10px);
  border-color: rgba(255, 0, 50, 0.3);
}
.social-link:hover .social-icon {
  transform: scale(1.2);
  color: #ff0032;
}
@media (max-width: 1024px) {
  .social-link {
    transform: none;
  }
  .social-link:hover {
    transform: translateY(-5px);
  }
}

.social-icon {
  font-size: 1.5rem;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.footer-info {
  text-align: center;
  padding: 0 40px;
}
.footer-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 1024px) {
  .footer-info {
    padding: 0;
  }
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  text-decoration: none;
  padding: 20px 40px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  cursor: pointer;
}
.whatsapp-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
  z-index: -1;
}
.whatsapp-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(37, 211, 102, 0.5);
}
.whatsapp-btn:hover::before {
  left: 100%;
}
.whatsapp-btn:hover .whatsapp-icon {
  animation: shake 0.5s ease infinite;
}
.whatsapp-btn:active {
  transform: translateY(-2px) scale(1.02);
}
@media (max-width: 768px) {
  .whatsapp-btn {
    padding: 18px 30px;
    font-size: 1.1rem;
  }
}

.whatsapp-icon {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.footer-contact h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #ff0032;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: right;
}
@media (max-width: 1024px) {
  .footer-contact h3 {
    text-align: center;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}
@media (max-width: 1024px) {
  .contact-info {
    align-items: center;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 10px 20px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.03);
}
.contact-item:hover {
  color: #ffffff;
  background: rgba(255, 0, 50, 0.1);
  transform: translateX(-10px);
}
.contact-item:hover .contact-icon {
  color: #ff0032;
}
@media (max-width: 1024px) {
  .contact-item {
    transform: none;
  }
  .contact-item:hover {
    transform: translateY(-3px);
  }
}

.contact-icon {
  font-size: 1.2rem;
  transition: color 0.3s ease;
  width: 30px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #ff0032;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}
@keyframes shake {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}
@keyframes colorChange {
  0% {
    color: #ff0032;
  }
  25% {
    color: rgb(255, 76.5, 111.5);
  }
  50% {
    color: #ffffff;
  }
  75% {
    color: #cc0028;
  }
  100% {
    color: #ff0032;
  }
}
.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.footer-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ff0032;
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 8s infinite ease-in-out;
}
.footer-particle:nth-child(1) {
  top: 38%;
  left: 94%;
  animation-delay: 3s;
  animation-duration: 5s;
  background: #ffffff;
}
.footer-particle:nth-child(2) {
  top: 10%;
  left: 68%;
  animation-delay: 7s;
  animation-duration: 5s;
  background: #ff0032;
}
.footer-particle:nth-child(3) {
  top: 68%;
  left: 34%;
  animation-delay: 4s;
  animation-duration: 6s;
  background: #ffffff;
}
.footer-particle:nth-child(4) {
  top: 18%;
  left: 76%;
  animation-delay: 4s;
  animation-duration: 8s;
  background: #ff0032;
}
.footer-particle:nth-child(5) {
  top: 47%;
  left: 48%;
  animation-delay: 5s;
  animation-duration: 6s;
  background: #ffffff;
}
.footer-particle:nth-child(6) {
  top: 52%;
  left: 70%;
  animation-delay: 4s;
  animation-duration: 5s;
  background: #ff0032;
}
.footer-particle:nth-child(7) {
  top: 36%;
  left: 21%;
  animation-delay: 1s;
  animation-duration: 6s;
  background: #ffffff;
}
.footer-particle:nth-child(8) {
  top: 63%;
  left: 95%;
  animation-delay: 7s;
  animation-duration: 7s;
  background: #ff0032;
}
.footer-particle:nth-child(9) {
  top: 33%;
  left: 57%;
  animation-delay: 8s;
  animation-duration: 5s;
  background: #ffffff;
}
.footer-particle:nth-child(10) {
  top: 74%;
  left: 93%;
  animation-delay: 8s;
  animation-duration: 10s;
  background: #ff0032;
}
.footer-particle:nth-child(11) {
  top: 88%;
  left: 65%;
  animation-delay: 2s;
  animation-duration: 6s;
  background: #ffffff;
}
.footer-particle:nth-child(12) {
  top: 12%;
  left: 64%;
  animation-delay: 5s;
  animation-duration: 8s;
  background: #ff0032;
}
.footer-particle:nth-child(13) {
  top: 23%;
  left: 34%;
  animation-delay: 8s;
  animation-duration: 6s;
  background: #ffffff;
}
.footer-particle:nth-child(14) {
  top: 50%;
  left: 57%;
  animation-delay: 4s;
  animation-duration: 8s;
  background: #ff0032;
}
.footer-particle:nth-child(15) {
  top: 44%;
  left: 52%;
  animation-delay: 7s;
  animation-duration: 6s;
  background: #ffffff;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  25% {
    transform: translate(20px, -30px);
    opacity: 0.5;
  }
  50% {
    transform: translate(-15px, 20px);
    opacity: 0.3;
  }
  75% {
    transform: translate(25px, 15px);
    opacity: 0.1;
  }
}
@media (max-width: 1024px) {
  .animated-footer {
    padding: 80px 5% 40px;
    margin-top: 80px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-info {
    align-items: center;
  }
}
@media (max-width: 768px) {
  .animated-footer {
    padding: 60px 5% 30px;
    margin-top: 60px;
  }
  .footer-title {
    margin-bottom: 40px;
  }
  .footer-content {
    gap: 30px;
    margin-bottom: 50px;
  }
  .footer-info p {
    font-size: 1rem;
  }
  .social-links {
    gap: 15px;
  }
  .social-link {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  .footer-bottom {
    padding-top: 30px;
  }
}
