/* =============================================
   Philosophy Page — Instagram Lyrics Style
   ============================================= */

body {
  overflow: hidden; /* Hide scrollbar completely */
}

.phil-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-color);
  opacity: 0; /* Animated in via GSAP */
}

.phil-swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  width: 100%;
  height: auto; /* auto height for slides based on content */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  cursor: grab;
}

.swiper-slide:active {
  cursor: grabbing;
}

/* Instagram Lyrics Effect */
.lyric-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;

  /* Initial state for inactive slides */
  opacity: 0.15;
  transform: scale(0.65);
  transform-origin: center center;
  filter: blur(3px);

  transition:
    opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Active Slide - Center and Highlighted */
.swiper-slide-active .lyric-content {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

/* Force dim text to be bright on active slide */
.swiper-slide-active .scene-line--dim {
  color: var(--text-main);
}

/* Adjacent Slides (Optional: make them slightly larger than the far ones) */
.swiper-slide-next .lyric-content,
.swiper-slide-prev .lyric-content {
  opacity: 0.4;
  transform: scale(0.85);
  filter: blur(1.5px);
}

.scene-line {
  font-family: var(--font-main);
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--text-main);
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
}

.scene-line--dim {
  color: #555;
}

.scene-line--large {
  font-size: clamp(2rem, 4.5vw, 4rem);
  letter-spacing: -2px;
}

.scene-line--italic {
  font-style: italic;
  color: #aaa;
}

.scene-line--accent {
  color: var(--text-main);
  font-style: italic;
}

/* ── CTA (last scene) ───────────────────────── */
.scene-cta-wrap {
  margin-top: 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.swiper-slide-active .scene-cta-wrap {
  opacity: 1;
  pointer-events: auto;
}

.scene-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 18px 36px;
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition:
    background 0.4s,
    color 0.4s;
  position: relative;
  overflow: hidden;
}

.scene-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 0;
}

.scene-cta:hover::before {
  transform: scaleX(1);
}
.scene-cta:hover {
  color: #000 !important;
}
.scene-cta span {
  position: relative;
  z-index: 1;
}

/* ── Navigation Buttons ─────────────────────── */
.phil-nav-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -25px;
  margin-left: -25px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  z-index: 50;
  transition:
    opacity 0.4s ease,
    color 0.3s ease,
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
}

.phil-nav-up {
  transform: translateY(-150px); /* Fallback, overridden by JS */
}

.phil-nav-down {
  transform: translateY(150px); /* Fallback, overridden by JS */
}

.phil-nav-btn:hover {
  color: rgba(255, 255, 255, 1);
}

.phil-nav-btn.disabled {
  opacity: 0 !important;
  pointer-events: none;
}

.phil-nav-btn svg {
  width: 30px;
  height: 30px;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .scene-line {
    font-size: clamp(1.4rem, 5vw, 2rem);
    letter-spacing: 0px;
  }
  .scene-line--large {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
    letter-spacing: -1px;
  }
}
