/*
 * CHAPTER 10: TESTIMONIALS & CASE STUDIES
 * 3D Carousel, Depth Stacking
 */

.chapter-10 {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: var(--z-content);
  background: var(--bg-deep); /* Ensure contrast */
  overflow: hidden;
}

.c10-header {
  text-align: center;
  margin-bottom: 5rem;
}

.c10-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

/* Carousel Container */
.c10-carousel-wrapper {
  position: relative;
  width: 100vw;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.c10-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  will-change: transform;
}

.c10-card {
  width: 400px;
  height: 300px;
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 3rem 2rem;
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  display: flex;
  flex-direction: column;
  /* GSAP will control scale and opacity based on position */
  opacity: 0.4;
  transform: scale(0.8);
  transition: opacity 0.5s, transform 0.5s;
}

/* When active (center of screen) */
.c10-card.active {
  opacity: 1;
  transform: scale(1.1);
  border-color: rgba(255,255,255,0.2);
  box-shadow: var(--glow-ambient);
  z-index: 10;
}

.c10-quote {
  font-size: 1.1rem;
  color: var(--text-pure);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.c10-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.c10-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.c10-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c10-author-info h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-pure);
}

.c10-author-info span {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}
