/* ============================================
   CSS Variables & Theme Setup
   ============================================ */
:root {
  --primary: #0a1e2f;
  --accent: #f0a500;
  --text-dark: #0a0f1c;
  --text-muted: #4b5563;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 30px rgba(10,30,47,0.12);
  --radius: 1.25rem;
  
  /* Dark mode defaults */
  --bg-primary: #0f172a;
  --bg-secondary: #ffffff;
  --text-primary: #000000;
  --text-secondary: #ffffff;
  --card-bg: #ffffff;
  --card-border: rgba(255,255,255,0.1);
  --feature-bg: #1d1f21;
  --image-border: #1e293b;
}

/* Light mode overrides */
body.light {
  --bg-primary: #f1f4f9;
  --bg-secondary: rgba(255,255,255,0.95);
  --text-primary: #0a0f1c;
  --text-secondary: #4b5563;
  --card-bg: #0a1e2f;
  --card-border: rgba(10,30,47,0.08);
  --feature-bg: #ffffff;
  --image-border: #ffffff;
}

/* ============================================
   Main Container
   ============================================ */
.cd {
  display: grid;
  place-items: center;
  /* background: var(--bg-primary); */
  /* background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(240,165,0,0.06) 0%, transparent 40%); */
  font-family: 'Poppins',  sans-serif;
  padding: 0rem 1rem;
  position: relative;
  transition: background 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ============================================
   Section Heading
   ============================================ */
.ts-section-heading {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-align: center;
  /* margin-bottom: 2rem; */
  position: relative;
  /* padding-bottom: 1rem; */
  z-index: 3;
  letter-spacing: -0.5px;
  width: 100%;
}

/* .ts-section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  border-radius: 2px;
} */

/* ============================================
   Wrapper Layout
   ============================================ */
.ts-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* ============================================
   LEFT SECTION - Slider
   ============================================ */
.ts-left {
  flex: 1 1 500px;
  max-width: 600px;
  min-width: 300px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.ts-slider-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0.5rem;
}

.ts-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

/* ============================================
   Slider Track
   ============================================ */
.ts-slider {
  width: 100%;
  height: 380px;
  list-style: none;
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  margin: 0;
  padding: 0;
  position: relative;
}

/* ============================================
   Individual Slide Items
   ============================================ */
.ts-item {
  position: relative;
  min-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* ============================================
   Testimonial Card
   ============================================ */
.ts-testimonial {
  width: 55%;
  max-width: 330px;
  padding: 1.8rem 1.5rem 1.8rem 1.8rem;
  margin-right: 5rem;
  background: var(--card-bg);
  color: var(--text-primary);
  border-radius: 1.2rem;
  font: 400 0.88rem/1.65 'Inter', sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 1;
  border: 1px solid var(--card-border);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Active slide testimonial */
.ts-animation .ts-testimonial {
  opacity: 1;
  transform: translateX(0);
}

/* Testimonial text */
.ts-testimonial p {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin: 0;
}

.ts-animation .ts-testimonial p {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered text animations */
.ts-animation .ts-testimonial p:nth-of-type(1) { 
  transition-delay: 0.35s; 
}

.ts-animation .ts-testimonial p:nth-of-type(2) { 
  transition-delay: 0.55s; 
}

.ts-testimonial p:nth-of-type(1) {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  position: relative;
}

/* Quote mark */
.ts-testimonial p:nth-of-type(1)::before {
  content: '\201C';
  font-size: 2.5rem;
  color: var(--accent);
  position: absolute;
  left: -0.8rem;
  top: -1rem;
  font-weight: 700;
  opacity: 0.5;
  line-height: 1;
}

.ts-testimonial p:nth-of-type(2) {
  font-style: italic;
  font-weight: 600;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.3px;
}

/* ============================================
   Client Image
   ============================================ */
.ts-image {
  position: absolute;
  right: 5%;
  z-index: 10;
  width: 180px;
  height: 180px;
  max-width: 40vw;
  max-height: 40vw;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  border: 4px solid var(--image-border);
  opacity: 0;
  transform: scale(0.85) translateX(20px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ts-animation .ts-image {
  opacity: 1;
  transform: scale(1) translateX(0);
}

/* ============================================
   Floating Chips
   ============================================ */
.chip {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  white-space: nowrap;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  animation: floatChip 6s infinite ease-in-out;
  backdrop-filter: blur(10px);
  letter-spacing: 0.3px;
  pointer-events: none;
}

.chip i {
  font-style: normal;
  font-size: 0.8rem;
}

.chip-1 { 
  top: 5%; 
  left: 5%; 
}

.chip-2 { 
  top: 10%; 
  right: 8%; 
  animation-delay: -2s; 
}

.chip-3 { 
  bottom: 10%; 
  left: 3%; 
  animation-delay: -4s; 
}

.chip-4 { 
  bottom: 5%; 
  right: 5%; 
  animation-delay: -1s; 
}

@keyframes floatChip {
  0%, 100% { 
    transform: translateY(0); 
  }
  50% { 
    transform: translateY(-8px); 
  }
}

.off-screen .chip { 
  animation-play-state: paused; 
}

/* ============================================
   Navigation Dots
   ============================================ */
.ts-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.ts-btn {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background-color: var(--text-secondary);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.5;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.ts-btn:hover {
  opacity: 0.8;
  transform: scale(1.3);
}

.ts-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ts-expand {
  width: 28px;
  border-radius: 20px;
  background-color: var(--accent);
  opacity: 1;
  border-color: var(--accent);
}

/* ============================================
   RIGHT SECTION - Company Info
   ============================================ */
.ts-right {
  flex: 1 1 320px;
  max-width: 460px;
  min-width: 280px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-secondary);
  backdrop-filter: blur(15px);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  border: 1px solid var(--card-border);
  z-index: 2;
  position: relative;
  box-sizing: border-box;
}

/* .ts-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), #60a5fa, var(--accent));
  border-radius: 1.5rem 1.5rem 0 0;
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
} */

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.ts-company-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(240,165,0,0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  width: fit-content;
  margin-top: 0.5rem;
}

.ts-company-header h2 {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0.5rem 0;
  letter-spacing: -0.5px;
}

.ts-company-subtitle {
  font-size: 0.9rem;
  color: var(--feature-bg);
  line-height: 1.6;
  margin-top: 0.3rem;
}

/* ============================================
   Feature Cards
   ============================================ */
.ts-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  width: 100%;
  margin-top: 0.5rem;
}

.ts-feature-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--feature-bg);
  padding: 0.8rem;
  border-radius: 0.8rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--card-border);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ts-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  border-color: var(--accent);
}

.ts-feature-card:active {
  transform: translateY(-2px);
}

.ts-feature-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  color: #0a1e2f;
  transition: all 0.35s ease;
}

.ts-feature-icon i {
  font-size: 15px;
}

.ts-feature-card:hover .ts-feature-icon {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  transform: scale(1.1) rotate(-5deg);
}

.ts-feature-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: -0.2px;
}

/* ============================================
   RESPONSIVE DESIGN - Mobile First
   ============================================ */

/* Large Mobile (480px - 767px) */
@media (max-width: 767px) {
  .cd {
    padding: 1.5rem 0.8rem;
  }
  
  .ts-wrapper {
    flex-direction: column;
    gap: 2rem;
  }
  
  .ts-left,
  .ts-right {
    max-width: 100%;
    width: 100%;
    min-width: 100%;
  }
  
  .ts-slider {
    height: 340px;
  }
  
  .ts-item {
    padding: 0.8rem;
  }
  
  .ts-image {
    width: 140px;
    height: 140px;
    right: 3%;
    border-width: 3px;
  }
  
  .ts-testimonial {
    width: 50%;
    padding: 1.3rem 1rem;
    font-size: 0.8rem;
    margin-right: 1.5rem;
  }
  
  .ts-testimonial p:nth-of-type(1) {
    font-size: 0.82rem;
  }
  
  .ts-testimonial p:nth-of-type(2) {
    font-size: 0.75rem;
  }
  
  .chip {
    font-size: 0.65rem;
    padding: 0.35rem 0.8rem;
  }
  
  .chip-1 { top: 5%; left: 3%; }
  .chip-2 { top: 8%; right: 5%; }
  .chip-3 { bottom: 8%; left: 3%; }
  .chip-4 { bottom: 5%; right: 5%; }
}

/* Medium Mobile (380px - 479px) */
@media (max-width: 479px) {
  .cd {
    padding: 1.2rem 0.5rem;
  }
  
  .ts-section-heading {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
  }
  
  .ts-section-heading::after {
    width: 60px;
    height: 3px;
  }
  
  .ts-slider {
    height: 300px;
  }
  
.ts-item {
  width: 100%;
  min-width: 100%;
  padding: 0.8rem;
  box-sizing: border-box;
  overflow: hidden;
}
  
.ts-testimonial {
  width: 100%;
  max-width: calc(100% - 20px);
  margin: 0 auto;
  box-sizing: border-box;
}
  
  .ts-animation .ts-testimonial {
    transform: translateY(0);
    opacity: 1;
  }
  
  .ts-testimonial p:nth-of-type(1)::before {
    display: none;
  }
  
  .ts-testimonial p:nth-of-type(1) {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }
  
  .ts-image {
    position: relative;
    right: auto;
    width: 100px;
    height: 100px;
    order: 1;
    transform: scale(0.8);
    opacity: 0;
  }
  
  .ts-animation .ts-image {
    transform: scale(1);
    opacity: 1;
  }
  
  .chip {
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
  }
  
  .chip-1 { top: 5%; left: 2%; }
  .chip-2 { top: 5%; right: 2%; }
  .chip-3 { bottom: 5%; left: 2%; }
  .chip-4 { bottom: 5%; right: 2%; }
  
  .ts-right {
    padding: 1.5rem 1rem;
    border-radius: 1.2rem;
  }
  
  .ts-right::before {
    height: 4px;
    border-radius: 1.2rem 1.2rem 0 0;
  }
  
  .ts-company-header h2 {
    font-size: 22px;
  }
  
  .ts-company-subtitle {
    font-size: 0.82rem;
  }
  
  .ts-features {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  
  .ts-feature-card {
    padding: 0.7rem;
    gap: 0.5rem;
  }
  
  .ts-feature-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
  }
  
  .ts-feature-icon i {
    font-size: 14px;
  }
  
  .ts-feature-text h4 {
    font-size: 0.78rem;
  }
}

/* Small Mobile (320px - 379px) */
@media (max-width: 379px) {
  .cd {
    padding: 0rem 0rem;
  }
  
  .ts-section-heading {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }
  
  .ts-slider {
    height: 280px;
  }
  
  .ts-testimonial {
    width: 90%;
    padding: 1rem 0.8rem;
    font-size: 0.72rem;
  }
  
  .ts-testimonial p:nth-of-type(1) {
    font-size: 0.75rem;
  }
  
  .ts-image {
    width: 80px;
    height: 80px;
  }
  
  .ts-right {
    padding: 1.2rem 0.8rem;
  }
  
  .ts-company-header h2 {
    font-size: 20px;
  }
  
  .ts-features {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .ts-feature-card {
    padding: 0.6rem 0.8rem;
  }
  
  .ts-nav {
    gap: 0.4rem;
  }
  
  .ts-btn {
    width: 8px;
    height: 8px;
  }
  
  .ts-expand {
    width: 24px;
  }
  
  .chip {
    font-size: 0.55rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1.5rem;
  }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .ts-slider {
    height: 360px;
  }
  
  .ts-image {
    width: 160px;
    height: 160px;
    right: 4%;
  }
  
  .ts-testimonial {
    width: 52%;
    padding: 1.6rem 1.3rem;
  }
}

/* Fix for very small devices */
@media (max-width: 320px) {
  .ts-slider {
    height: 260px;
  }
  
  .ts-testimonial {
    width: 92%;
    padding: 0.8rem;
  }
  
  .ts-image {
    width: 70px;
    height: 70px;
  }
  
  .ts-section-heading {
    font-size: 1.3rem;
  }
}
/* Fix for very small devices */
@media (max-width: 576px) {

.cd {
  display: block !important;
}
.ts-left{
  padding-top: 0px;
  margin-bottom: -87px;
}
 .ts-right {
    display: none;
  }
}

@media only screen and (min-width: 1200px) and (max-width: 1319px) {
.ts-section-heading {
  font-size: 2rem;
}
.ts-company-header h2 {
  font-size: 1.6rem;
}
.ts-testimonial p:nth-of-type(1) {
font-size: 14px;
}
.ts-company-subtitle {
  font-size: 14px;
}
}

body.light .ts-testimonial p:nth-of-type(1){
  color : #fff !important;
}
body.light .chip{
  color : #fff !important;
}

