/* ============================================================
   ESSE INDIA — STORIES.CSS
   Success Stories — 3D Coverflow Carousel
   ============================================================ */

/* ============================================================
   1. SECTION WRAPPER
   ============================================================ */
#esseStories {
  position: relative;
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at 15% 20%, rgba(139, 92, 246, .06), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(245, 180, 0, .06), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #faf8ff 55%, #f5f1ff 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Ambient blobs */
#esseStories .es-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  z-index: 0;
  pointer-events: none;
}
#esseStories .es-blob-1 {
  width: 360px; height: 360px;
  background: #c4b5fd;
  top: -100px; left: -80px;
}
#esseStories .es-blob-2 {
  width: 320px; height: 320px;
  background: #fde68a;
  bottom: -120px; right: -60px;
}

/* ============================================================
   2. LAYOUT GRID
   ============================================================ */
#esseStories .es-wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: .9fr 1.4fr;
  gap: 60px;
  align-items: center;
}

/* ============================================================
   3. LEFT COLUMN
   ============================================================ */
#esseStories .es-left {
  position: relative;
  z-index: 2;
}

#esseStories .es-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ede9fe, #fef3c7);
  color: #6d28d9;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid rgba(124, 58, 237, .12);
  letter-spacing: .3px;
}
#esseStories .es-tag i {
  color: #d97706;
  font-size: 12px;
}

#esseStories h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  color: #181021;
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
#esseStories h2 span {
  display: block;
  background: linear-gradient(100deg, #7c3aed 20%, #d97706 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#esseStories .es-left > p {
  color: #6b7280;
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 26px;
  max-width: 420px;
}

/* CTA Button */
#esseStories .es-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 14px 28px -10px rgba(124, 58, 237, .45);
  transition: transform .25s ease, box-shadow .25s ease;
}
#esseStories .es-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -10px rgba(124, 58, 237, .55);
  color: #fff;
}
#esseStories .es-btn i {
  font-size: 13px;
}

/* Stats Row */
#esseStories .es-stats {
  display: flex;
  gap: 30px;
  margin-top: 34px;
  flex-wrap: wrap;
}
#esseStories .es-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #181021;
  line-height: 1;
  margin-bottom: 4px;
}
#esseStories .es-stat b span {
  color: #d97706;
}
#esseStories .es-stat small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
}

/* Trust Row */
#esseStories .es-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
#esseStories .es-trust .es-avatars {
  display: flex;
}
#esseStories .es-trust .es-avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 10px -3px rgba(26, 13, 61, .25);
}
#esseStories .es-trust .es-avatars span:first-child {
  margin-left: 0;
}
#esseStories .es-trust small {
  color: #6b7280;
  font-size: 12.5px;
  font-weight: 500;
}

/* ============================================================
   4. 3D COVERFLOW STAGE
   ============================================================ */
#esseStories .es-stage {
  position: relative;
  height: 400px;
  perspective: 1600px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
  outline: none;
}
#esseStories .es-stage.es-in {
  opacity: 1;
  transform: translateY(0);
}

#esseStories .es-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

#esseStories .es-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: 320px;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.22, .68, 0, 1.04),
              opacity .7s ease,
              filter .7s ease;
  cursor: pointer;
}

/* ============================================================
   5. CARD
   ============================================================ */
#esseStories .es-card {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 32px 26px 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1.5px solid rgba(124, 58, 237, .12);
  box-shadow: 0 20px 50px rgba(76, 29, 149, .12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .5s ease, border-color .5s ease;
  will-change: transform;
}

/* Top accent bar */
#esseStories .es-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #d97706);
  opacity: .9;
}

/* Center card emphasis */
#esseStories .es-slide[data-pos="0"] .es-card {
  border-color: rgba(124, 58, 237, .35);
  box-shadow:
    0 30px 60px rgba(124, 58, 237, .22),
    0 0 0 1px rgba(192, 132, 252, .25);
  background: rgba(255, 255, 255, 1);
}

/* Quote mark */
#esseStories .es-quote {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 56px;
  color: rgba(124, 58, 237, .12);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
  font-weight: 700;
}

/* ============================================================
   6. CARD HEAD
   ============================================================ */
#esseStories .es-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

#esseStories .es-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6d28d9);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -6px rgba(109, 40, 217, .5);
  letter-spacing: .5px;
}

/* Center card avatar ring pulse */
#esseStories .es-slide[data-pos="0"] .es-avatar::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(217, 119, 6, .45);
  animation: esPulseRing 2.4s ease-out infinite;
}
@keyframes esPulseRing {
  0%   { transform: scale(.9); opacity: .9; }
  100% { transform: scale(1.4); opacity: 0; }
}

#esseStories .es-name {
  font-weight: 800;
  font-size: 15.5px;
  color: #181021;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  line-height: 1.2;
}
#esseStories .es-verified {
  color: #16a34a;
  font-size: 12px;
}
#esseStories .es-sub {
  font-size: 12.5px;
  color: #6b7280;
  font-weight: 500;
}

/* Stars */
#esseStories .es-stars {
  color: #d97706;
  font-size: 14px;
  letter-spacing: 2px;
  margin: 4px 0 14px;
  position: relative;
  z-index: 1;
}

/* Quote text */
#esseStories .es-card .es-quote-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.75;
  margin: 0;
  position: relative;
  z-index: 1;
  font-style: italic;
}

/* ============================================================
   7. DEPTH STATES (coverflow positions)
   ============================================================ */
#esseStories .es-slide[data-pos="0"] {
  transform: translateX(-50%) translateZ(0) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 5;
  filter: blur(0);
}
#esseStories .es-slide[data-pos="-1"] {
  transform: translateX(calc(-50% - 240px)) translateZ(-180px) rotateY(32deg) scale(.86);
  opacity: .7;
  z-index: 4;
  filter: blur(.6px) brightness(.94);
}
#esseStories .es-slide[data-pos="1"] {
  transform: translateX(calc(-50% + 240px)) translateZ(-180px) rotateY(-32deg) scale(.86);
  opacity: .7;
  z-index: 4;
  filter: blur(.6px) brightness(.94);
}
#esseStories .es-slide[data-pos="-2"] {
  transform: translateX(calc(-50% - 400px)) translateZ(-340px) rotateY(40deg) scale(.7);
  opacity: .25;
  z-index: 3;
  filter: blur(1px) brightness(.88);
}
#esseStories .es-slide[data-pos="2"] {
  transform: translateX(calc(-50% + 400px)) translateZ(-340px) rotateY(-40deg) scale(.7);
  opacity: .25;
  z-index: 3;
  filter: blur(1px) brightness(.88);
}
#esseStories .es-slide[data-pos="far"] {
  transform: translateX(-50%) translateZ(-520px) scale(.5);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   8. NAVIGATION
   ============================================================ */
#esseStories .es-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 44px;
}

#esseStories .es-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #e5e0f5;
  color: #6d28d9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(76, 29, 149, .15);
  transition: all .25s ease;
  font-size: 16px;
  font-family: inherit;
}
#esseStories .es-arrow:hover {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -8px rgba(124, 58, 237, .5);
}
#esseStories .es-arrow:active {
  transform: translateY(0) scale(.96);
}

#esseStories .es-dots {
  display: flex;
  gap: 8px;
}
#esseStories .es-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0dcf0;
  cursor: pointer;
  transition: all .3s ease;
  border: none;
  padding: 0;
}
#esseStories .es-dot:hover {
  background: #c4b5fd;
}
#esseStories .es-dot.active {
  width: 28px;
  border-radius: 5px;
  background: linear-gradient(90deg, #7c3aed, #d97706);
}

/* ============================================================
   9. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  #esseStories .es-wrap {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  #esseStories .es-left {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
  }
  #esseStories .es-left > p {
    margin-left: auto;
    margin-right: auto;
  }
  #esseStories .es-stats {
    justify-content: center;
  }
  #esseStories .es-trust {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  #esseStories .es-stage {
    height: 380px;
  }
  #esseStories .es-slide {
    width: 78vw;
    max-width: 340px;
  }
  #esseStories .es-slide[data-pos="-1"] {
    transform: translateX(calc(-50% - 62vw)) translateZ(-120px) rotateY(28deg) scale(.8);
  }
  #esseStories .es-slide[data-pos="1"] {
    transform: translateX(calc(-50% + 62vw)) translateZ(-120px) rotateY(-28deg) scale(.8);
  }
  #esseStories .es-slide[data-pos="-2"],
  #esseStories .es-slide[data-pos="2"] {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  #esseStories {
    padding: 70px 0 50px;
  }
  #esseStories .es-wrap {
    padding: 0 20px;
    gap: 40px;
  }
  #esseStories h2 {
    font-size: 26px;
  }
  #esseStories .es-left > p {
    font-size: 14.5px;
  }
  #esseStories .es-stats {
    gap: 22px;
  }
  #esseStories .es-stat b {
    font-size: 22px;
  }
  #esseStories .es-stage {
    height: 400px;
  }
  #esseStories .es-slide {
    width: 88vw;
    max-width: 320px;
  }
  #esseStories .es-card {
    padding: 26px 22px 22px;
  }
  #esseStories .es-avatar {
    width: 46px;
    height: 46px;
    font-size: 14px;
  }
  #esseStories .es-name {
    font-size: 14.5px;
  }
  #esseStories .es-card .es-quote-text {
    font-size: 13.5px;
  }
  #esseStories .es-arrow {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }
  #esseStories .es-nav {
    gap: 14px;
    margin-top: 34px;
  }
}

/* ============================================================
   10. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  #esseStories .es-slide,
  #esseStories .es-blob,
  #esseStories .es-avatar::after {
    transition: none !important;
    animation: none !important;
  }
  #esseStories .es-stage {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   VIDEO REVIEWS — YouTube Shorts Section
   ============================================================ */
.video-reviews-section {
  position: relative;
  padding: 90px 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, .06), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(245, 180, 0, .06), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
  overflow: hidden;
}
.video-reviews-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2d5fc 30%, #e2d5fc 70%, transparent);
}

.vr-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ---------- Head ---------- */
.vr-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}
.vr-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
  border: 1px solid rgba(220, 38, 38, .15);
  letter-spacing: .3px;
}
.vr-tag i {
  font-size: 14px;
}
.vr-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.vr-head h2 span {
  display: block;
  background: linear-gradient(100deg, #7c3aed 20%, #d97706 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vr-head p {
  color: var(--gray);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ---------- Grid (4 columns) ---------- */
.vr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

/* ---------- Video Item ---------- */
.vr-item {
  position: relative;
}

.vr-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #1a0d3d;
  box-shadow:
    0 20px 45px -18px rgba(26, 13, 61, .35),
    0 8px 20px -10px rgba(75, 33, 196, .2);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1),
              box-shadow .35s ease;
}

/* Gradient border ring */
.vr-video-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .5), rgba(245, 180, 0, .4), rgba(124, 58, 237, .5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .7;
  z-index: 2;
}

.vr-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Hover effect */
.vr-item:hover .vr-video-wrap {
  transform: translateY(-8px);
  box-shadow:
    0 30px 60px -20px rgba(75, 33, 196, .45),
    0 12px 26px -12px rgba(124, 58, 237, .3);
}
.vr-item:hover .vr-video-wrap::before {
  opacity: 1;
}

/* ---------- CTA ---------- */
.vr-cta {
  text-align: center;
}
.vr-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-800));
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 15px 32px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 14px 28px -10px rgba(75, 33, 196, .5);
  transition: transform .3s ease, box-shadow .3s ease;
}
.vr-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -10px rgba(75, 33, 196, .6);
  color: #fff;
}
.vr-cta-btn i {
  font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .vr-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .video-reviews-section {
    padding: 70px 0;
  }
  .vr-head {
    margin-bottom: 40px;
  }
  .vr-head h2 {
    font-size: 24px;
  }
  .vr-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
  }
  .vr-video-wrap {
    border-radius: 16px;
  }
  .vr-video-wrap::before {
    border-radius: 16px;
  }
  .vr-cta-btn {
    font-size: 13.5px;
    padding: 13px 26px;
  }
}

@media (max-width: 480px) {
  .vr-wrap {
    padding: 0 16px;
  }
  .vr-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .vr-video-wrap,
  .vr-cta-btn {
    transition: none !important;
  }
}