/* =========================================================
   TECHROCK — SECTION 5: TESTIMONIALS
   ========================================================= */

.section-5-testimonials {
  --section-5-purple: #7b35f5;
  width: 100%;
  padding-block: clamp(88px, 9vw, 140px);
  background: #ffffff;
  overflow: hidden;
}

.section-5-container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--page-padding-desktop);
}

/* The header is intentionally unchanged from the approved Section 5 design. */
.section-5-header {
  max-width: 1180px;
  margin-bottom: clamp(42px, 5vw, 64px);
}

.section-5-eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--font-semibold);
  line-height: 1.2;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #697493;
}

.section-5-title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(48px, 5.1vw, 72px);
  font-weight: var(--font-bold);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--color-primary-text);
}

.section-5-title span {
  color: var(--color-primary-purple);
}

.section-5-description {
  max-width: 1180px;
  margin: 18px 0 0;
  font-family: var(--font-primary);
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: var(--font-regular);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: #7783a3;
}

/* =========================================================
   TESTIMONIAL DESIGN — background artwork + two editorial reviews
   ========================================================= */
.section-5-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 0;
  height: clamp(540px, 41vw, 680px);
  background-color: #ffffff;
  background-image: url('../assets/images/testimonials/section-5-bg.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.section-5-stage-inner {
  position: relative;
  width: min(1600px, 100%);
  height: 100%;
  margin-inline: auto;
}

.section-5-review {
  position: absolute;
  z-index: 1;
  font-family: var(--font-primary);
  color: #101522;
}

.section-5-review--anil {
  top: 7.5%;
  left: 6.3%;
  width: min(48%, 700px);
}

.section-5-review--sandeep {
  right: 5.0%;
  bottom: 7.0%;
  width: min(46%, 690px);
}

.section-5-review-quote {
  display: block;
  width: fit-content;
  margin: 0 0 8px;
  font-size: clamp(44px, 3.35vw, 58px);
  line-height: 0.78;
  color: #000;
  filter: drop-shadow(0 7px 9px rgba(73, 43, 145, 0.09));
  animation: section-5-float-quote 5.8s ease-in-out infinite;
  transform-origin: center bottom;
}

.section-5-review--sandeep .section-5-review-quote {
  animation-delay: -2.5s;
}

.section-5-review-text {
  max-width: 100%;
  margin: 0;
  font-size: clamp(17px, 1.48vw, 24px);
  font-weight: var(--font-regular);
  line-height: 1.32;
  letter-spacing: -0.028em;
}

.section-5-review-text strong {
  color: var(--section-5-purple);
  font-weight: var(--font-bold);
}

.section-5-review-person {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(18px, 1.5vw, 26px);
}

.section-5-review-avatar {
  flex: 0 0 clamp(62px, 4.5vw, 76px);
  width: clamp(62px, 4.5vw, 76px);
  height: clamp(62px, 4.5vw, 76px);
  border-radius: 50%;
  overflow: hidden;
  background: #ececef;
  box-shadow: 0 10px 22px rgba(39, 30, 75, 0.12), 0 0 0 1px rgba(255,255,255,0.8);
  animation: section-5-float-avatar 5.2s ease-in-out infinite;
  transform: translateZ(0);
  will-change: transform;
}

.section-5-review--sandeep .section-5-review-avatar {
  animation-delay: -1.8s;
}

.section-5-review-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-5-review--anil .section-5-review-avatar img {
  object-position: center center;
}

.section-5-review--sandeep .section-5-review-avatar img {
  object-position: center center;
}

.section-5-review-meta {
  min-width: 0;
}

.section-5-review-name,
.section-5-review-role,
.section-5-review-company {
  margin: 0;
}

.section-5-review-name {
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: var(--font-bold);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.section-5-review-role,
.section-5-review-company {
  color: #65748f;
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: var(--font-regular);
  line-height: 1.35;
}

.section-5-review-role {
  margin-top: 3px;
}

.section-5-review-company {
  margin-top: 1px;
}

@keyframes section-5-float-avatar {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    box-shadow: 0 10px 22px rgba(39, 30, 75, 0.12), 0 0 0 1px rgba(255,255,255,0.8);
  }
  50% {
    transform: translate3d(0, -6px, 0) rotate(1deg);
    box-shadow: 0 17px 28px rgba(39, 30, 75, 0.16), 0 0 0 1px rgba(255,255,255,0.8);
  }
}

@keyframes section-5-float-quote {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -6px, 0) rotate(-1.5deg);
  }
}

@media (max-width: 1100px) {
  .section-5-stage {
    min-height: 0;
    height: 560px;
  }

  .section-5-review--anil {
    left: 5.2%;
    width: 53%;
  }

  .section-5-review--sandeep {
    right: 4.2%;
    width: 51%;
  }

  .section-5-review-text {
    font-size: clamp(16px, 1.75vw, 21px);
  }

  .section-5-review-person {
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .section-5-testimonials {
    padding-block: 78px;
  }

  .section-5-container {
    padding-inline: var(--page-padding-mobile);
  }

  .section-5-header {
    margin-bottom: 38px;
  }

  .section-5-title {
    font-size: clamp(40px, 11vw, 56px);
  }

  .section-5-description {
    font-size: 16px;
  }

  /* Small devices: reviews become a simple vertical editorial stack. */
  .section-5-stage {
    width: 100%;
    margin-left: 0;
    height: auto;
    min-height: 0;
    background-color: #ffffff;
    background-size: auto 100%;
    background-position: center top;
    padding: 48px 20px 64px;
    overflow: hidden;
  }

  .section-5-stage-inner {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 64px;
  }

  .section-5-review,
  .section-5-review--anil,
  .section-5-review--sandeep {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
  }

  .section-5-review-text {
    font-size: clamp(18px, 5.1vw, 23px);
    line-height: 1.4;
    letter-spacing: -0.024em;
  }

  .section-5-review-quote {
    margin-bottom: 14px;
    font-size: 58px;
  }

  .section-5-review-person {
    gap: 14px;
    margin-top: 24px;
  }

  .section-5-review-avatar {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
  }

  .section-5-review-name {
    font-size: 18px;
  }

  .section-5-review-role,
  .section-5-review-company {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-5-review-quote,
  .section-5-review-avatar {
    animation: none;
  }
}

/* =========================================================
   TECHROCK — SECTION 5: TESTIMONIALS — END
   ========================================================= */
