.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;
}

.companies-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #e2e8e9 0%, rgb(211.5, 220.5, 222) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 5%;
}
.companies-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff0032, transparent);
  opacity: 0.2;
}
.companies-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff0032, transparent);
  opacity: 0.2;
}

.companies-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}
.companies-header h2 {
  font-size: clamp(2.5rem, 4vw + 1rem, 4rem);
  color: #000;
  margin-bottom: 20px;
  font-weight: 700;
}
.companies-header p {
  font-size: 1.2rem;
  color: #333333;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.8;
}

.logos-carousel {
  position: relative;
  height: 200px;
  margin: 60px auto;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
@media (max-width: 768px) {
  .logos-carousel {
    height: 150px;
  }
}

.logos-track, .logos-track-2 {
  display: flex;
  position: absolute;
  left: 0;
  height: 100%;
  align-items: center;
  gap: 80px;
  animation: slide 20s linear infinite;
}
.logos-track:hover, .logos-track-2:hover {
  animation-play-state: paused;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  background: #ffffff;
  border-radius: 50%;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.logo-item::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #ff0032, transparent, #ff0032);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.logo-item:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}
.logo-item:hover::before {
  opacity: 0.3;
}
.logo-item:hover .logo-svg {
  transform: scale(1.1);
  filter: brightness(1.2);
}
@media (max-width: 1024px) {
  .logo-item {
    width: 150px;
    height: 150px;
    padding: 25px;
  }
}
@media (max-width: 768px) {
  .logo-item {
    width: 120px;
    height: 120px;
    padding: 20px;
  }
}

.logo-svg {
  width: 100%;
  height: 100%;
  transition: all 0.4s ease;
}
.logo-svg.netflix {
  color: #E50914;
}
.logo-svg.microsoft {
  color: #0078D4;
}
.logo-svg.apple {
  color: #000000;
}
.logo-svg.google {
  color: #4285F4;
}
.logo-svg.amazon {
  color: #FF9900;
}
.logo-svg.meta {
  color: #1877F2;
}
.logo-svg.spotify {
  color: #1DB954;
}
.logo-svg.airbnb {
  color: #FF5A5F;
}

.logo-name {
  position: absolute;
  bottom: -30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333333;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.logo-item:hover .logo-name {
  opacity: 1;
}

.logos-track-2 {
  top: 250px;
  animation: slide-reverse 20s linear infinite;
}
@media (max-width: 768px) {
  .logos-track-2 {
    top: 200px;
  }
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes slide-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}
.stats-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }
}
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.stat-card {
  text-align: center;
  padding: 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff0032, #ff6684);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-card:hover .stat-number {
  color: #ff0032;
}

.stat-number {
  font-size: clamp(2.5rem, 3vw + 1rem, 4rem);
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}
.stat-number::after {
  content: "+";
  font-size: 0.6em;
  margin-left: 2px;
}
.stat-number.percentage::after {
  content: "%";
}

.stat-label {
  font-size: 1.1rem;
  color: #333333;
  font-weight: 500;
  line-height: 1.4;
}

.stat-description {
  font-size: 0.9rem;
  color: #666666;
  margin-top: 20px;
  opacity: 0.8;
}

.companies-testimonial {
  max-width: 800px;
  margin: 80px auto 0;
  padding: 60px;
  background: #ffffff;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  position: relative;
}
.companies-testimonial::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 5rem;
  color: rgba(255, 0, 50, 0.1);
  font-family: serif;
  font-weight: bold;
}
.companies-testimonial p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 40px;
  font-style: italic;
}
.companies-testimonial .testimonial-author {
  font-weight: 600;
  color: #000;
  font-size: 1rem;
}
.companies-testimonial .testimonial-author span {
  color: #ff0032;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .companies-section {
    padding: 60px 5%;
  }
  .logos-carousel {
    height: 180px;
  }
}
@media (max-width: 768px) {
  .companies-section {
    padding: 40px 5%;
  }
  .logos-carousel {
    height: 140px;
  }
  .stat-card {
    padding: 40px 20px;
  }
  .companies-testimonial {
    padding: 40px;
  }
  .companies-testimonial p {
    font-size: 1.1rem;
  }
}
.companies-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ff0032;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s infinite ease-in-out;
}
.particle:nth-child(1) {
  top: 94%;
  left: 71%;
  animation-delay: 1s;
  animation-duration: 4s;
}
.particle:nth-child(2) {
  top: 6%;
  left: 89%;
  animation-delay: 2s;
  animation-duration: 6s;
}
.particle:nth-child(3) {
  top: 90%;
  left: 4%;
  animation-delay: 1s;
  animation-duration: 7s;
}
.particle:nth-child(4) {
  top: 96%;
  left: 63%;
  animation-delay: 4s;
  animation-duration: 4s;
}
.particle:nth-child(5) {
  top: 31%;
  left: 97%;
  animation-delay: 1s;
  animation-duration: 7s;
}
.particle:nth-child(6) {
  top: 53%;
  left: 17%;
  animation-delay: 1s;
  animation-duration: 7s;
}
.particle:nth-child(7) {
  top: 33%;
  left: 70%;
  animation-delay: 3s;
  animation-duration: 4s;
}
.particle:nth-child(8) {
  top: 94%;
  left: 1%;
  animation-delay: 1s;
  animation-duration: 7s;
}
.particle:nth-child(9) {
  top: 48%;
  left: 40%;
  animation-delay: 1s;
  animation-duration: 6s;
}
.particle:nth-child(10) {
  top: 98%;
  left: 80%;
  animation-delay: 3s;
  animation-duration: 4s;
}
.particle:nth-child(11) {
  top: 34%;
  left: 67%;
  animation-delay: 6s;
  animation-duration: 7s;
}
.particle:nth-child(12) {
  top: 21%;
  left: 46%;
  animation-delay: 3s;
  animation-duration: 5s;
}
.particle:nth-child(13) {
  top: 98%;
  left: 36%;
  animation-delay: 6s;
  animation-duration: 7s;
}
.particle:nth-child(14) {
  top: 56%;
  left: 26%;
  animation-delay: 3s;
  animation-duration: 7s;
}
.particle:nth-child(15) {
  top: 96%;
  left: 89%;
  animation-delay: 2s;
  animation-duration: 6s;
}
.particle:nth-child(16) {
  top: 91%;
  left: 31%;
  animation-delay: 3s;
  animation-duration: 4s;
}
.particle:nth-child(17) {
  top: 99%;
  left: 27%;
  animation-delay: 2s;
  animation-duration: 5s;
}
.particle:nth-child(18) {
  top: 38%;
  left: 84%;
  animation-delay: 4s;
  animation-duration: 7s;
}
.particle:nth-child(19) {
  top: 4%;
  left: 67%;
  animation-delay: 6s;
  animation-duration: 4s;
}
.particle:nth-child(20) {
  top: 93%;
  left: 30%;
  animation-delay: 2s;
  animation-duration: 7s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.2;
  }
}
