:root {
  --lime:     #C8FF00;
  --lime-dim: rgba(200,255,0,.09);
  --lime-gw:  rgba(200,255,0,.22);
  --bg:       #0a0a0a;
  --card-v:   #0d1210;
  --card-t:   #0f1318;
  --border:   rgba(255,255,255,.07);
  --bord-l:   rgba(200,255,0,.28);
  --white:    #fff;
  --grey:     #525870;
  --grey-lt:  #8a92a8;
  --f-h:      'Questrial', sans-serif;
  --f-s:      'IBM Plex Sans', sans-serif;
  --f-b:      'Nunito', sans-serif;
  --ease:     cubic-bezier(.4,0,.2,1);
  --spring:   cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--white); font-family: var(--f-s); overflow-x: hidden; }

/* ═══════════════════════
   SECTION
═══════════════════════ */
.testi-section {
  width: 100%; max-width: 1240px;
  margin: 0 auto;
  padding: 90px 40px 100px;
}

/* ── Header row ── */
.testi-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px;
  margin-bottom: 44px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.testi-header.visible { opacity: 1; transform: translateY(0); }

.th-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.th-dash { width: 24px; height: 2px; background: var(--lime); border-radius: 2px; }
.th-label-txt {
  font-family: var(--f-h); font-size: 11px; font-weight: 500;
  letter-spacing: 3.5px; text-transform: uppercase; color: var(--lime);
}
.th-sub {
  font-family: var(--f-s); font-size: 14px;
  color: var(--grey-lt); letter-spacing: .3px;
}

/* Nav controls */
.th-nav {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav-arr {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-lt); font-size: 15px; cursor: pointer;
  transition: all .3s; user-select: none;
}
.nav-arr:hover {
  background: var(--lime); border-color: var(--lime); color: #000;
  box-shadow: 0 0 20px var(--lime-gw);
}
.nav-arr.disabled { opacity: .3; cursor: not-allowed; }
.nav-arr.disabled:hover {
  background: rgba(255,255,255,.05); border-color: var(--border);
  color: var(--grey-lt); box-shadow: none;
}

.nav-dots { display: flex; align-items: center; gap: 6px; }
.nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.2); cursor: pointer;
  transition: all .35s var(--spring);
}
.nav-dot.active { width: 22px; border-radius: 4px; background: var(--lime); }

/* ═══════════════════════
   SLIDER WRAPPER
═══════════════════════ */
.slider-outer { position: relative; overflow: hidden; }
.slider-outer::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 100px;
  background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%);
  pointer-events: none; z-index: 10;
}

.slider-track {
  display: flex; gap: 16px;
  transition: transform .65s var(--spring);
  will-change: transform; padding-bottom: 4px;
}

/* ═══════════════════════
   CARD BASE
═══════════════════════ */
.t-card {
  flex-shrink: 0; width: 300px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); position: relative;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  cursor: pointer; transform: translateZ(0);
}
.t-card:hover {
  border-color: var(--bord-l); transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 30px rgba(200,255,0,.06);
}

/* ═══════════════════════
   VIDEO CARD
═══════════════════════ */
.t-card.vid { background: var(--card-v); height: 380px; }
.vid-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform .5s var(--ease);
}
.t-card.vid:hover .vid-bg { transform: scale(1.05); }
.vid-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.1) 100%);
}
.vid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 22px, rgba(255,255,255,.015) 22px, rgba(255,255,255,.015) 23px);
}

.vid-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--white); z-index: 3;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: all .3s var(--spring);
}
.vid-play i { margin-left: 3px; }
.t-card.vid:hover .vid-play {
  background: var(--lime); border-color: var(--lime); color: #000;
  box-shadow: 0 0 30px var(--lime-gw); transform: translate(-50%, -50%) scale(1.1);
}

.vid-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 18px 16px; z-index: 4;
}
.vid-person { display: flex; align-items: center; gap: 10px; }
.vid-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(200,255,0,.15);
  border: 2px solid rgba(200,255,0,.4); display: flex; align-items: center; justify-content: center;
  font-family: var(--f-h); font-size: 13px; font-weight: 700; color: var(--lime); flex-shrink: 0; overflow: hidden;
}
.vid-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vid-name {
  font-family: var(--f-h); font-size: 14px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--white);
  line-height: 1; margin-bottom: 3px;
}
.vid-role { font-family: var(--f-s); font-size: 11px; color: var(--grey-lt); letter-spacing: .3px; }
.vid-stars { display: flex; gap: 2px; margin-bottom: 8px; }
.vid-stars i { color: var(--lime); font-size: 11px; }

/* ═══════════════════════
   TEXT CARD
═══════════════════════ */
.t-card.txt {
  background: var(--card-t); height: 380px; display: flex; flex-direction: column;
  padding: 24px 22px 22px;
}
.t-card.txt::before {
  content: ''; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 20px 20px; 
}
.t-card.txt::after {
  content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,255,0,.07), transparent 70%);
  top: -50px; right: -50px; pointer-events: none;
}

.txt-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; position: relative; z-index: 1; }
.txt-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(200,255,0,.1);
  border: 2px solid rgba(200,255,0,.25); display: flex; align-items: center; justify-content: center;
  font-family: var(--f-h); font-size: 16px; font-weight: 700; color: var(--lime); overflow: hidden; flex-shrink: 0;
}
.txt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.txt-quote-icon { font-size: 28px; color: rgba(200,255,0,.15); font-family: Georgia, serif; line-height: 1; position: relative; z-index: 1; }
.txt-stars { display: flex; gap: 2px; margin-bottom: 10px; position: relative; z-index: 1; }
.txt-stars i { color: var(--lime); font-size: 11px; }

.txt-title {
  font-family: var(--f-h); font-size: 17px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--white); line-height: 1.1; margin-bottom: 10px;
  position: relative; z-index: 1; transition: color .3s;
}
.t-card.txt:hover .txt-title { color: var(--lime); }
.txt-body {
  font-family: var(--f-s); font-size: 13.5px; line-height: 1.72; color: var(--grey-lt);
  flex: 1; position: relative; z-index: 1; display: -webkit-box; -webkit-line-clamp: 5;
  -webkit-box-orient: vertical; overflow: hidden;
}
.txt-bottom {
  margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07); position: relative; z-index: 1;
}
.txt-name {
  font-family: var(--f-h); font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--white); margin-bottom: 2px;
}
.txt-role { font-family: var(--f-s); font-size: 11px; color: var(--grey); letter-spacing: .3px; }

.card-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--lime), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.t-card:hover .card-bar { transform: scaleX(1); }

/* Tints & Gradients */
.tint-green { background: linear-gradient(135deg, #0c1510 0%, #0f1a14 100%); }
.tint-blue { background: linear-gradient(135deg, #0c0f1a 0%, #0f1220 100%); }
.tint-red { background: linear-gradient(135deg, #160c0c 0%, #1a0f0f 100%); }
.tint-purple { background: linear-gradient(135deg, #110c18 0%, #150f20 100%); }
.tint-amber { background: linear-gradient(135deg, #161008 0%, #1a1408 100%); }

.vbg1 { background: linear-gradient(160deg, #0c1a10 0%, #142614 60%, #0a0e0a 100%); }
.vbg2 { background: linear-gradient(160deg, #0a0f1c 0%, #10162c 60%, #080c14 100%); }
.vbg3 { background: linear-gradient(160deg, #1a0c0c 0%, #261414 60%, #0e0a0a 100%); }
.vbg4 { background: linear-gradient(160deg, #0e0c1c 0%, #18142c 60%, #0c0a16 100%); }
.vbg5 { background: linear-gradient(160deg, #141008 0%, #201808 60%, #0e0c06 100%); }

/* ═══════════════════════
   PREMIUM GLASSY VIDEO MODAL 
═══════════════════════ */
.sheo-video-modal {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); /* Safari Fix */
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.4s var(--ease);
  padding: 20px;
}
.sheo-video-modal.is-active { opacity: 1; visibility: visible; }

.sheo-video-modal-content {
  position: relative; width: 100%; max-width: 380px; background: #000;
  border-radius: 20px; border: 1px solid var(--bord-l);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(200, 255, 0, 0.1);
  transform: scale(0.9) translateY(20px); transition: transform 0.4s var(--spring);
}
.sheo-video-modal.is-active .sheo-video-modal-content { transform: scale(1) translateY(0); }

#sheo-modal-video {
  width: 100%; max-height: 85vh; aspect-ratio: 9/16;
  object-fit: cover; border-radius: 20px; display: block; background: #000;
}

.sheo-close-modal {
  position: absolute; top: -16px; right: -16px;
  width: 44px; height: 44px; border-radius: 50%; background: var(--lime);
  color: #000; border: none; font-size: 20px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; box-shadow: 0 4px 15px rgba(200, 255, 0, 0.4);
  transition: transform 0.3s var(--spring);
}
.sheo-close-modal:hover { transform: scale(1.15) rotate(90deg); }

/* ═══════════════════════
   RESPONSIVE
═══════════════════════ */
@media(max-width: 900px) {
  .testi-section { padding: 70px 24px 80px; }
  .slider-outer::after { width: 60px; }
}

@media(max-width: 600px) {
  .testi-section { padding: 60px 16px 70px; }
  .testi-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .th-nav { align-self: flex-start; }
  .t-card { width: 270px; height: 340px; } /* Improved mobile card width */
  .t-card.txt { padding: 20px 18px 18px; }
  .txt-title { font-size: 15px; }

  /* Mobile Modal Fixes */
  .sheo-video-modal { padding: 12px; }
  .sheo-video-modal-content { max-width: 100%; max-height: 88vh; margin: 0 auto; }
  #sheo-modal-video { height: auto; max-height: 88vh; }
  
  .sheo-close-modal {
    top: 12px; right: 12px; width: 36px; height: 36px; font-size: 16px;
    background: rgba(0, 0, 0, 0.6); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: none;
  }
  .sheo-close-modal:hover { background: var(--lime); color: #000; border-color: var(--lime); transform: scale(1.1); }
}

/* scroll animation */
.testi-section .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.testi-section .reveal.visible { opacity: 1; transform: translateY(0); }