/* ================================================================
   ROTATING TAGLINE STRIP — Ultra Premium 3D
   Features: glassmorphism pill, 3D flip axis, neon glow,
             hover lift, mobile-first responsive
   ================================================================ */

/* ── Section wrapper ─────────────────────────────────────────── */
.rotating-tagline-section {
  position: relative;
  width: 100%;
  padding: 56px 24px;
  overflow: hidden;
  background: transparent;
  z-index: 1;
  /* subtle separator top/bottom */
  border-top: 1px solid rgba(184, 0, 245, 0.12);
  border-bottom: 1px solid rgba(184, 0, 245, 0.08);
}

/* ── Ambient red radial glow ─────────────────────────────────── */
.rtl-ambient-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 100% at 50% 50%,
    rgba(184, 0, 245, 0.13) 0%,
    rgba(88, 11, 130, 0.06) 55%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

/* ── Inner flex row ─────────────────────────────────────────── */
.rtl-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Left label ─────────────────────────────────────────────── */
.rtl-left-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.55;
  flex-shrink: 0;
}
.rtl-label-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255, 192, 160, 0.6), transparent);
}
.rtl-label-text {
  font-family: 'Coolvetica', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255, 192, 160, 0.7);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

/* ── 3D Stage ───────────────────────────────────────────────── */
.rtl-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  /* 3D perspective context */
  perspective: 900px;
  perspective-origin: 50% 50%;
}

.rtl-perspective-wrap {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: 88px;
  transform-style: preserve-3d;
}

/* ── Slot base ─────────────────────────────────────────────── */
.rtl-slot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: none;
  will-change: transform, opacity;
}

.rtl-slot-active {
  transform: rotateX(0deg) translateZ(0px);
  opacity: 1;
  pointer-events: auto;
}
.rtl-slot-next {
  transform: rotateX(-90deg) translateZ(44px);
  opacity: 0;
  pointer-events: none;
}
.rtl-slot-exit {
  transform: rotateX(90deg) translateZ(44px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease;
}
.rtl-slot-enter {
  transform: rotateX(0deg) translateZ(0px);
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease;
}

/* ── Pill (glassmorphism card) ─────────────────────────────── */
.rtl-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 36px 18px 24px;
  width: 100%;
  border-radius: 20px;

  /* Glass effect */
  background: linear-gradient(
    135deg,
    rgba(21, 5, 34, 0.75) 0%,
    rgba(22, 12, 4, 0.6) 100%
  );
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);

  /* Neon border */
  border: 1px solid rgba(184, 0, 245, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 100, 60, 0.08) inset,
    0 8px 40px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(184, 0, 245, 0.18),
    0 0 80px rgba(184, 0, 245, 0.06);

  cursor: default;
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease;
}

/* Hover 3D lift */
.rtl-pill:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(184, 0, 245, 0.65);
  box-shadow:
    0 0 0 1px rgba(240, 85, 255, 0.15) inset,
    0 18px 60px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(184, 0, 245, 0.35),
    0 0 120px rgba(184, 0, 245, 0.12);
}

/* Animated border beam on pill */
.rtl-pill::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: conic-gradient(
    from var(--rtl-beam-angle, 0deg),
    transparent 0%,
    rgba(184, 0, 245, 0.7) 15%,
    rgba(232, 121, 249, 0.5) 25%,
    transparent 35%
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  animation: rtlBeamSpin 4s linear infinite;
  pointer-events: none;
}

@property --rtl-beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes rtlBeamSpin {
  to { --rtl-beam-angle: 360deg; }
}

/* Glare overlay inside pill */
.rtl-pill-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 200px at 30% -20%,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 60%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.rtl-pill:hover .rtl-pill-glare {
  background: radial-gradient(
    circle 260px at 30% -20%,
    rgba(255, 200, 160, 0.1) 0%,
    transparent 60%
  );
}

/* ── Icon wrap ─────────────────────────────────────────────── */
.rtl-pill-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(184, 0, 245, 0.25) 0%,
    rgba(88, 11, 130, 0.2) 100%
  );
  border: 1px solid rgba(184, 0, 245, 0.3);
  box-shadow: 0 0 20px rgba(184, 0, 245, 0.2), 0 4px 12px rgba(0,0,0,0.4);
  transform: translateZ(8px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.rtl-pill:hover .rtl-pill-icon-wrap {
  transform: translateZ(16px) scale(1.08);
  box-shadow: 0 0 35px rgba(184, 0, 245, 0.45), 0 6px 18px rgba(0,0,0,0.5);
}

.rtl-icon {
  width: 26px;
  height: 26px;
  color: rgba(232, 121, 249, 0.95);
  filter: drop-shadow(0 0 8px rgba(184, 0, 245, 0.8));
  transition: filter 0.3s ease;
}
.rtl-pill:hover .rtl-icon {
  filter: drop-shadow(0 0 14px rgba(255, 100, 60, 1));
}

/* ── Pill text ─────────────────────────────────────────────── */
.rtl-pill-text {
  font-family: 'Coolvetica', 'Inter', sans-serif;
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(
    125deg,
    #ffffff 0%,
    rgba(243, 232, 255, 0.9) 45%,
    rgba(184, 0, 245, 0.8) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateZ(4px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: letter-spacing 0.35s ease;
}
.rtl-pill:hover .rtl-pill-text {
  letter-spacing: -0.01em;
}

/* ── Progress dots ─────────────────────────────────────────── */
.rtl-dots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.rtl-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(184, 0, 245, 0.25);
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.rtl-dot.rtl-dot-active {
  background: rgba(184, 0, 245, 0.95);
  transform: scale(1.6);
  box-shadow: 0 0 10px rgba(184, 0, 245, 0.8);
}

/* ── Transition states ─────────────────────────────────────── */
.rtl-slot-transitioning-out {
  transform: rotateX(90deg) translateZ(44px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.55, 0, 1, 0.45),
              opacity 0.35s ease;
}
.rtl-slot-transitioning-in {
  transform: rotateX(0deg) translateZ(0px);
  opacity: 1;
  transition: transform 0.5s cubic-bezier(0, 0.55, 0.45, 1),
              opacity 0.35s ease 0.1s;
}

/* ── MOBILE responsive ─────────────────────────────────────── */
@media (max-width: 767px) {
  .rotating-tagline-section {
    padding: 44px 16px;
  }
  .rtl-inner {
    gap: 18px;
  }
  .rtl-left-label {
    display: none;
  }
  .rtl-perspective-wrap {
    height: 76px;
    max-width: 100%;
  }
  .rtl-pill {
    padding: 14px 20px 14px 16px;
    gap: 14px;
    border-radius: 16px;
  }
  .rtl-pill-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }
  .rtl-icon {
    width: 20px;
    height: 20px;
  }
  .rtl-dots {
    flex-direction: row;
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
  }
}
