/* ==========================================================================
   DUAL-COLUMN AUTOMATIC SCROLLING TESTIMONIAL COMPONENT
   Aider Creative — Left Column Scrolls UP, Right Column Scrolls DOWN
   ========================================================================== */

/* Main Section Wrapper */
.st-section {
  position: relative;
  width: 100%;
  padding: 100px 0;
  background: #06070a;
  overflow: hidden;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ambient Glowing Background Orbs */
.st-bg-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.st-bg-glow.glow-left {
  top: 15%;
  left: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(100, 70, 255, 0.12) 0%, rgba(100, 70, 255, 0.02) 60%, transparent 100%);
  filter: blur(80px);
}

.st-bg-glow.glow-right {
  bottom: 15%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 94, 20, 0.1) 0%, rgba(255, 94, 20, 0.02) 60%, transparent 100%);
  filter: blur(80px);
}

/* Container */
.st-container {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Overlay */
.st-header {
  text-align: center;
  margin-bottom: 55px;
}

.st-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 94, 20, 0.1);
  color: #FF5E14;
  border: 1px solid rgba(255, 94, 20, 0.25);
  padding: 6px 18px;
  border-radius: 30px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.st-badge .dot-orange {
  color: #FF5E14;
  font-size: 0.6rem;
}

.st-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.2rem, 1.8rem + 2.5vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 0 0 16px 0;
}

.st-title em.accent-serif {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  color: #FF5E14;
}

.st-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  color: #a0a5be;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Marquee Viewport with Top & Bottom Fade Mask */
.st-marquee-viewport {
  position: relative;
  width: 100%;
  height: 720px;
  overflow: hidden;
  border-radius: 24px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Pause ONLY the specific column track being hovered */
.st-column:hover .st-track {
  animation-play-state: paused;
}

/* Dim sibling cards in the hovered column so target testimonial pops out */
.st-column:hover .st-card:not(:hover) {
  opacity: 0.7;
}

/* Continuous auto-scrolling stays active at all times */

/* Columns Grid */
.st-columns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  height: 100%;
}

.st-column {
  position: relative;
  height: 100%;
  overflow: hidden;
}

/* Scroll Tracks */
.st-track {
  display: flex;
  flex-direction: column;
  gap: 24px;
  will-change: transform;
}

/* Left Column Animation: Scroll UP */
.track-up {
  animation: stScrollUp 32s linear infinite;
}

/* Right Column Animation: Scroll DOWN */
.track-down {
  animation: stScrollDown 32s linear infinite;
}

@keyframes stScrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes stScrollDown {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Individual Testimonial Card Styling */
.st-card {
  position: relative;
  z-index: 1;
  background: rgba(18, 20, 36, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(120, 130, 240, 0.16);
  border-radius: 20px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, opacity 0.35s ease;
  box-sizing: border-box;
}

.st-card:hover {
  z-index: 10;
  transform: scale(1.04);
  border-color: rgba(255, 94, 20, 0.75);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88), 0 0 35px rgba(255, 94, 20, 0.3);
  background: rgba(25, 29, 52, 0.98);
}

/* Brand Logo Top Emblem Wrap */
.st-logo-emblem-wrap {
  height: 54px;
  max-width: 170px;
  min-width: 110px;
  padding: 8px 18px;
  border-radius: 14px;
  background: rgba(12, 14, 26, 0.95);
  border: 1px solid rgba(255, 94, 20, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.st-card-logo-img {
  max-height: 36px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1.25);
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.st-card:hover .st-logo-emblem-wrap {
  border-color: rgba(255, 94, 20, 0.65);
  box-shadow: 0 6px 20px rgba(255, 94, 20, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.st-card:hover .st-card-logo-img {
  transform: scale(1.05);
  filter: brightness(1.4);
}

/* Name, Role & Stars */
.st-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.st-role {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #9499be;
  margin: 0 0 12px 0;
}

.st-stars {
  display: flex;
  gap: 4px;
  color: #ffb800;
  font-size: 1rem;
  margin-bottom: 16px;
}

.st-quote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #d8dbee;
  font-weight: 400;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 850px) {
  .st-section {
    padding: 70px 0;
  }

  .st-subtitle {
    font-size: 1rem;
  }

  .st-marquee-viewport {
    height: 640px;
  }

  .st-columns-grid {
    gap: 16px;
  }

  .st-card {
    padding: 26px 20px;
  }

  .st-avatar-wrap {
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
  }

  .st-name {
    font-size: 1.05rem;
  }

  .st-role {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .st-quote {
    font-size: 0.88rem;
    line-height: 1.55;
  }
}

@media (max-width: 560px) {
  .st-marquee-viewport {
    height: 600px;
  }

  .st-columns-grid {
    grid-template-columns: 1fr;
  }

  /* Hide right column on small screens to maintain clean single column flow */
  .st-column.col-right {
    display: none;
  }

  .st-card {
    padding: 24px 20px;
  }
}
