/* XVE Testimonials Page */
.xve-testimonials-hero {
  position: relative;
  min-height: 78vh;
  padding: 150px 20px 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(245, 197, 66, 0.13), transparent 32%),
    radial-gradient(circle at 80% 40%, rgba(245, 197, 66, 0.07), transparent 30%),
    linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 55%, #0a0a0a 100%);
  overflow: hidden;
  color: #fff;
}

.xve-testimonials-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 197, 66, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 197, 66, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: 0.55;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.xve-testimonials-hero::after {
  content: "XVE";
  position: absolute;
  right: -40px;
  bottom: -70px;
  color: rgba(255, 255, 255, 0.025);
  font-family: 'Chakra Petch', 'Poppins', sans-serif;
  font-size: clamp(150px, 28vw, 430px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -12px;
  pointer-events: none;
}

.xve-testimonials-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  text-align: center;
}

.xve-testimonials-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  padding: 8px 15px;
  border: 1px solid rgba(245, 197, 66, 0.35);
  border-radius: 999px;
  color: #f5c542;
  background: rgba(245, 197, 66, 0.06);
  font-family: 'Chakra Petch', 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.xve-testimonials-hero h1 {
  margin: 0;
  color: #fff;
  font-family: 'Chakra Petch', 'Poppins', sans-serif;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -2px;
}

.xve-testimonials-hero h1 span {
  color: #f5c542;
  text-shadow: 0 0 22px rgba(245, 197, 66, 0.22);
}

.xve-testimonials-hero p {
  max-width: 680px;
  margin: 26px auto 0;
  color: #cfcfcf;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 500;
}

.xve-testimonials-stats {
  width: min(760px, 100%);
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.xve-testimonials-stats div {
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(245, 197, 66, 0.14);
  border-radius: 14px;
}

.xve-testimonials-stats strong {
  display: block;
  color: #f5c542;
  font-family: 'Chakra Petch', 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.xve-testimonials-stats span {
  display: block;
  margin-top: 8px;
  color: #aaa;
  font-size: 13px;
  font-weight: 600;
}

/* Gallery */
.xve-testimonials-gallery-section {
  position: relative;
  padding: 90px 20px 120px;
  background: #0a0a0a;
  color: #fff;
}

.xve-testimonials-section-head {
  width: min(1120px, 100%);
  margin: 0 auto 42px;
}

.xve-testimonials-section-head span {
  display: inline-block;
  margin-bottom: 12px;
  color: #f5c542;
  font-family: 'Chakra Petch', 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.xve-testimonials-section-head h2 {
  margin: 0;
  color: #fff;
  font-family: 'Chakra Petch', 'Poppins', sans-serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.3px;
}

.xve-testimonials-section-head p {
  max-width: 560px;
  margin: 14px 0 0;
  color: #aaa;
  font-size: 15px;
  line-height: 1.6;
}

/* Masonry layout supports different screenshot sizes */
.xve-testimonial-masonry {
  width: min(1120px, 100%);
  margin: 0 auto;
  column-count: 3;
  column-gap: 18px;
}

.xve-testimonial-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  border: 1px solid rgba(245, 197, 66, 0.16);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  cursor: url('../assets/images/cursor-1.png') 4 4, pointer;
  transform: translateY(18px);
  opacity: 0;
  animation: testimonialCardIn 0.55s ease forwards;
}

.xve-testimonial-card::after {
  content: "Click to view";
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: #111;
  background: #f5c542;
  border-radius: 999px;
  font-family: 'Chakra Petch', 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

.xve-testimonial-card:hover {
  border-color: rgba(245, 197, 66, 0.45);
  transform: translateY(-3px);
}

.xve-testimonial-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.xve-testimonial-card img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

@keyframes testimonialCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lightbox */
.xve-testimonial-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 22px 34px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.xve-testimonial-lightbox.show {
  display: flex;
}

.xve-lightbox-content {
  position: relative;
  width: min(1180px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.xve-lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 14px;
  background: #111;
  border: 1px solid rgba(245, 197, 66, 0.28);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

.xve-lightbox-caption {
  margin-top: 12px;
  color: #f5c542;
  font-family: 'Chakra Petch', 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.xve-lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 197, 66, 0.3);
  border-radius: 50%;
  background: #111;
  color: #f5c542;
  font-size: 32px;
  line-height: 1;
  cursor: url('../assets/images/cursor-1.png') 4 4, pointer;
  z-index: 2;
}

.xve-lightbox-close:hover {
  background: #f5c542;
  color: #111;
}

.xve-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border: 1px solid rgba(245, 197, 66, 0.3);
  border-radius: 12px;
  background: #111;
  color: #f5c542;
  cursor: url('../assets/images/cursor-1.png') 4 4, pointer;
  z-index: 2;
}

.xve-lightbox-nav:hover {
  background: #f5c542;
  color: #111;
}

.xve-lightbox-prev {
  left: 22px;
}

.xve-lightbox-next {
  right: 22px;
}

/* Responsive */
@media (max-width: 1024px) {
  .xve-testimonial-masonry {
    column-count: 2;
  }

  .xve-testimonials-hero {
    min-height: auto;
    padding: 135px 20px 80px;
  }
}

@media (max-width: 768px) {
  .xve-testimonials-stats {
    grid-template-columns: 1fr;
  }

  .xve-testimonial-masonry {
    column-count: 1;
  }

  .xve-testimonials-gallery-section {
    padding: 70px 16px 90px;
  }

  .xve-lightbox-nav {
    width: 42px;
    height: 54px;
  }

  .xve-lightbox-prev {
    left: 10px;
  }

  .xve-lightbox-next {
    right: 10px;
  }
}

@media (max-width: 520px) {
  .xve-testimonials-hero {
    padding: 115px 16px 70px;
  }

  .xve-testimonials-hero h1 {
    font-size: 42px;
  }

  .xve-testimonials-hero p {
    font-size: 14px;
  }

  .xve-testimonials-section-head h2 {
    font-size: 38px;
  }

  .xve-lightbox-content img {
    max-height: 76vh;
  }

  .xve-lightbox-close {
    top: 14px;
    right: 14px;
  }
}