:root {
  --orange: #ff6b35;
}

#rocket-image{
  cursor:pointer;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 550px;
  height: 500px;
  overflow: visible;
  flex-shrink: 0;
}

.placeholder-image {
  animation: float 3s ease-in-out infinite;
}

.floating-image {
  width: 450px;
  max-width: 450px;
  height:70vh;
}

.testimonial-section {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height:78vh;
  box-sizing: border-box;
  margin: auto;
  overflow:hidden;
}

.testimonial-section p {
  font-size: 14px;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.carousel-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
}

.testimonial {
  width: 100%;
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: absolute;
  left: 0;
  opacity: 0;
  transition: transform .8s cubic-bezier(0.49, -0.04, 0.68, 0.61), opacity .8s ease;
  pointer-events: none;
  transform-origin: center center;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0) scale(1.15);
  pointer-events: auto;
  z-index: 10;
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.15);
  cursor:pointer;
}
.testimonial.active:hover {  
  transform: translateY(0) scale(1.2); 
}

/* Shared styling for "below" and "above" for consistency */
.testimonial.below-1,
.testimonial.above-1 {
  opacity: 1;
  transform: translateY(90px) scale(0.95);
  z-index: 5;
}

.testimonial.below-2,
.testimonial.above-2 {
  opacity: 0.4;
  transform: translateY(180px) scale(0.85);
  z-index: 2;
}

.testimonial.below-3 {
  opacity: 0.1;
  transform: translateY(270px) scale(0.9);
  z-index: 1;
}

.testimonial.below-4 {
  opacity: 0.1;
  transform: translateY(360px) scale(0.85);
  z-index: 0;
}

.testimonial.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(0); /* reset position */
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  object-fit: cover;
}

.name-stars {
  display: flex;
  flex-direction: column;
}

.name {
  font-size: 18px;
  font-weight: 600;
  color: var(--orange);
}
.jobtitle {
  font-size: 16px;
}
.companyname {
  font-size: 14px;
}


.stars {
  font-size: 16px;
  color: var(--orange);
}

.testimonial-text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
}

/* Responsive Adjustments */
@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {
    @media (max-width: 767px) {
      .carousel-inner {
        top: 20px;
      }
    }
  }
}

@media (max-width: 1280px) {
  
  .testimonial.active:hover {  
    transform: translateY(0) scale(1); 
  }
  
  .testimonial-section {
    flex-direction: column;
    gap: 40px;
    padding: 20px;
    height: 65vh;
  }

  .placeholder-image {
    display: none;
  }

  .carousel {
    height: 450px;
    width: 100%;
    order: 2;
  }

  .testimonial {
    padding: 20px;
  }

  .testimonial.active {
    transform: translateY(0) scale(1);
  }

  .testimonial.below-1{
    transform: translateY(0) scale(1);
  }

  .testimonial.below-2 {
    transform: translateY(0) scale(1);

  }

  .testimonial.below-3 {   
    transform: translateY(0) scale(1);    
  }

  .avatar {
    width: 56px;
    height: 56px;
    border: 2px solid var(--orange);
  }

  .name {
    font-size: 16px;
  }

  .stars {
    font-size: 14px;
  }

  .testimonial-text {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 12px;
  }

  .testimonial-header {
    gap: 14px;
  }
}

@media (max-width: 480px) {
  
  .testimonial.active:hover {  
    transform: translateY(0) scale(1); 
  }
  .testimonial-section {
    gap: 30px;
    padding: 15px;
  }

  .placeholder-image {
    width: 240px;
    height: 180px;
  }

  .carousel {
    max-width: 100%;
    height: 400px;
  }

  .testimonial {
    padding: 18px;
  }

  .testimonial.active {
    transform: translateY(0) scale(1.01);
  }

  .testimonial.below-1,
  .testimonial.above-1 {
    transform: translateY(70px) scale(0.97);
  }

  .testimonial.below-2,
  .testimonial.above-2 {
    transform: translateY(140px) scale(0.9);
  }

  .avatar {
    width: 50px;
    height: 50px;
  }

  .name {
    font-size: 15px;
  }

  .stars {
    font-size: 13px;
  }

  .testimonial-text {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 10px;
  }

  .testimonial-header {
    gap: 12px;
  }
}