/* ═══════════════════════════════════════════
   testimonials.css — Coverflow Testimonial Slider
   Change this file to update: card styles, background,
   quote icon, initials badge, nav buttons
═══════════════════════════════════════════ */

/* ── Section wrapper ── */
.testi {
  padding: 90px 32px 100px;
  position: relative;
  overflow: hidden;
}

/* ── Background image ── */
.testi-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/option4.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.32) saturate(1.1);
  transform: scale(1.06);
  z-index: 0;
}

/* ── Dark gradient overlay ── */
.testi-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(13,5,33,0.88) 0%,
    rgba(13,5,33,0.55) 40%,
    rgba(13,5,33,0.55) 60%,
    rgba(13,5,33,0.88) 100%
  );
}

/* ── Ambient glow orbs ── */
.testi-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
.testi-orb1 {
  width: 600px;
  height: 600px;
  top: -180px;
  left: -160px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.18) 0%, transparent 65%);
}
.testi-orb2 {
  width: 500px;
  height: 500px;
  bottom: -120px;
  right: -100px;
  background: radial-gradient(ellipse, rgba(244,114,182,0.12) 0%, transparent 65%);
}

/* ── Content wrapper ── */
.testi-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 0 16px;
}

/* ── Swiper container — must overflow visible for side cards ── */
.testi-swiper {
  width: 100%;
  padding: 32px 0 72px;
  overflow: visible !important;
}

/* clip side bleed at section boundary */
.testi-inner {
  overflow: hidden;
  padding: 0 8px;
}

.testi-swiper .swiper-wrapper {
  align-items: center;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ── Slide size — wide so side cards are partially seen ── */
.testi-swiper .swiper-slide {
  width: 480px;
  height: auto;
  /* Let Swiper coverflow control scale/rotate — no CSS opacity override */
  transition: box-shadow 0.5s ease;
}

/* ── Card ── */
.t2-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 36px 36px 30px;
  position: relative;
  box-shadow:
    0 8px 40px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
  overflow: hidden;
}

/* Active card highlight */
.testi-swiper .swiper-slide-active .t2-card {
  border-color: rgba(139,92,246,0.32);
  box-shadow:
    0 20px 64px rgba(0,0,0,0.6),
    0 0 0 1px rgba(139,92,246,0.2),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Subtle top-left gradient shine on active */
.testi-swiper .swiper-slide-active .t2-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 220px; height: 220px;
  background: radial-gradient(ellipse at top left, rgba(139,92,246,0.15), transparent 65%);
  pointer-events: none;
  border-radius: 24px 0 0 0;
}

/* ── Giant decorative quote mark ── */
.t2-quote {
  font-family: Georgia, serif;
  font-size: 100px;
  line-height: 0.6;
  color: rgba(139,92,246,0.22);
  margin-bottom: 20px;
  display: block;
  user-select: none;
}

/* ── Testimonial text ── */
.t2-text {
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(255,255,255,0.78);
  margin-bottom: 28px;
  font-weight: 400;
  letter-spacing: 0.01em;
  /* Fade in on active */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease 0.15s, transform 0.55s ease 0.15s;
}

.testi-swiper .swiper-slide-active .t2-text {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer row (initials + name + verified) ── */
.t2-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

/* ── Initials badge (replaces avatar) ── */
.t2-initials {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(139,92,246,0.4);
  letter-spacing: 0.5px;
}

/* ── Name ── */
.t2-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 11.5px;
}

/* ── Stars ── */
.t2-stars {
  color: var(--gold2);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ── Verified badge ── */
.t2-verified {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #22c55e;
  margin-left: auto;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 50px;
  padding: 4px 12px;
}

/* ── Navigation arrows ── */
.testi-prev,
.testi-next {
  color: #fff !important;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  width: 46px !important;
  height: 46px !important;
  border-radius: 50%;
  top: 42% !important;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.testi-prev:hover,
.testi-next:hover {
  background: rgba(139,92,246,0.35);
  border-color: rgba(139,92,246,0.55);
}

.testi-prev::after,
.testi-next::after {
  font-size: 15px !important;
  font-weight: 800;
}

/* ── Pagination ── */
.testi-pagination {
  bottom: 16px !important;
}

.testi-pagination .swiper-pagination-bullet {
  background: rgba(255,255,255,0.3);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: all 0.35s ease;
}

.testi-pagination .swiper-pagination-bullet-active {
  background: var(--accent);
  width: 28px;
  border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .testi-swiper .swiper-slide {
    width: 85vw;
  }
  .t2-card {
    padding: 26px 22px 22px;
  }
  .t2-quote {
    font-size: 72px;
  }
  .t2-text {
    font-size: 13.5px;
  }
  .testi-prev, .testi-next {
    display: none !important;
  }
}
