/* ============================================================
   File: 04-testimonials.css
   Testimonials section - 3D draggable card stack.
   ============================================================ */

/* =========================================================
   Testimonials — 3D card stack + draggable
   ========================================================= */
.t3d-section {
  position: relative;
  background: linear-gradient(180deg, #f6f9fc 0%, #eaf1f8 100%);
  overflow: hidden;
}
.t3d-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 20%, rgba(0,212,255,.15), transparent 60%),
    radial-gradient(ellipse 500px 300px at 10% 90%, rgba(91,184,255,.12), transparent 60%);
  pointer-events: none;
}
.t3d-shell {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
@media (max-width: 980px) { .t3d-shell { grid-template-columns: 1fr; gap: 32px; } }

.t3d-stage {
  position: relative;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  height: 460px;
  display: grid; place-items: center;
}
@media (max-width: 520px) { .t3d-stage { height: 400px; } }

.t3d-card {
  position: absolute;
  width: min(420px, 92%);
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 60px -20px rgba(10,37,64,.25);
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .5s, box-shadow .4s;
  cursor: grab;
  user-select: none;
}
.t3d-card:active { cursor: grabbing; }
.t3d-card.pos-0 {
  transform: translateZ(0) rotate(0deg);
  z-index: 5;
  opacity: 1;
}
.t3d-card.pos-1 {
  transform: translate3d(40px, 14px, -120px) rotate(4deg);
  z-index: 4;
  opacity: .85;
}
.t3d-card.pos-2 {
  transform: translate3d(80px, 28px, -240px) rotate(8deg);
  z-index: 3;
  opacity: .55;
}
.t3d-card.pos-3 {
  transform: translate3d(-40px, 14px, -120px) rotate(-4deg);
  z-index: 4;
  opacity: .85;
}
.t3d-card.pos-4 {
  transform: translate3d(-80px, 28px, -240px) rotate(-8deg);
  z-index: 3;
  opacity: .55;
}
.t3d-card.hidden {
  transform: translateZ(-360px) rotate(0);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

html[dir="rtl"] .t3d-card.pos-1 { transform: translate3d(-40px, 14px, -120px) rotate(-4deg); }
html[dir="rtl"] .t3d-card.pos-2 { transform: translate3d(-80px, 28px, -240px) rotate(-8deg); }
html[dir="rtl"] .t3d-card.pos-3 { transform: translate3d(40px, 14px, -120px) rotate(4deg); }
html[dir="rtl"] .t3d-card.pos-4 { transform: translate3d(80px, 28px, -240px) rotate(8deg); }

.t3d-quote {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.6;
  color: #00D4FF;
  margin-bottom: 8px;
  font-weight: 700;
}
.t3d-stars {
  display: flex; gap: 3px;
  color: #F0B400;
  margin-bottom: 16px;
  font-size: 18px;
}
.t3d-body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 24px;
  text-wrap: pretty;
  min-height: 100px;
}
html[lang="ar"] .t3d-body { font-size: 18px; line-height: 1.7; }
.t3d-who {
  display: flex; align-items: center; gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.t3d-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, #00D4FF, #0A2540);
  box-shadow: 0 8px 18px -6px rgba(0,212,255,.5);
  flex-shrink: 0;
}
.t3d-who .name { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
html[lang="ar"] .t3d-who .name { font-family: var(--font-ar-display); }
.t3d-who .role { font-size: 13px; color: var(--ink-3); }

.t3d-controls {
  display: flex; align-items: center; gap: 14px;
  margin-top: 32px;
}
.t3d-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .2s;
  color: var(--ink);
}
.t3d-btn:hover { background: var(--ink); color: #fff; transform: translateY(-2px); border-color: var(--ink); }
.t3d-progress {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.t3d-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #00D4FF, #5BB8FF);
  width: var(--pp, 0%);
  transition: width .4s;
  border-radius: 2px;
}
.t3d-counter {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  min-width: 60px;
  text-align: center;
}

