/* ==========================================================================
   BOSS RDR - PREMIUM WEB INTERACTIONS & DIAGNOSTIC QUIZ
   ========================================================================== */

/* ---------- Scroll Reveal Enhancements ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delay classes for dynamic scroll animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ---------- Card Mouse-Glow Effects ---------- */
.coach-card, .plat {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease;
}

.coach-card::before, .plat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 240px at var(--mx, -9999px) var(--my, -9999px),
    rgba(126, 200, 232, 0.12) 0%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

/* Specific glows matching accent colors */
.coach-card[style*="--cc"]::before {
  background: radial-gradient(
    circle 220px at var(--mx, -9999px) var(--my, -9999px),
    var(--cc) 0%,
    transparent 80%
  );
}

.plat[style*="--pc"]::before {
  background: radial-gradient(
    circle 200px at var(--mx, -9999px) var(--my, -9999px),
    var(--pc) 0%,
    transparent 80%
  );
}

.coach-card:hover::before, .plat:hover::before {
  opacity: 0.12; /* Subtle opacity overlays hex colors softly */
}

/* Ensure card contents lay above the glow */
.coach-card > *, .plat > * {
  position: relative;
  z-index: 1;
}

/* ---------- Stats Counters ---------- */
.reach-hero .rh-n, .plat .pl-big {
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

/* ---------- Floating Diagnostic Quiz Widget ---------- */
.quiz-widget-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: linear-gradient(135deg, var(--teal), var(--teal-bright));
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 12px 24px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(31, 155, 173, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.3s ease,
              opacity 0.3s ease,
              visibility 0.3s ease;
}

.quiz-widget-btn:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 15px 35px rgba(31, 155, 173, 0.6);
  animation-play-state: paused;
}

.quiz-widget-btn.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes quizPulse {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(31, 155, 173, 0.4);
  }
  50% {
    box-shadow: 0 10px 30px rgba(31, 155, 173, 0.15), 0 0 0 10px rgba(31, 155, 173, 0.25);
  }
}

.quiz-widget-btn {
  animation: quizPulse 2.4s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .quiz-widget-btn {
    animation: none;
  }
}

/* ---------- Quiz Modal Overlay ---------- */
.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 15, 26, 0.8);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 16px;
}

.quiz-modal.open {
  opacity: 1;
  visibility: visible;
}

.quiz-container {
  background: radial-gradient(circle at top right, rgba(0, 133, 191, 0.15), transparent 70%), 
              linear-gradient(135deg, rgba(2, 31, 51, 0.98), rgba(1, 15, 26, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
  transform: scale(0.94) translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.quiz-modal.open .quiz-container {
  transform: scale(1) translateY(0);
}

/* Quiz Header */
.quiz-header {
  padding: 24px 32px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-header h3 {
  font-family: var(--display);
  font-size: 24px;
  color: var(--white);
  letter-spacing: 0.02em;
  margin: 0;
}

.quiz-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  width: 36px;
  height: 36px;
}

.quiz-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* Quiz Progress */
.quiz-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  width: 0%;
  transition: width 0.3s ease;
}

/* Quiz Content & Body */
.quiz-body {
  padding: 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-slide {
  display: none;
  animation: quizSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.quiz-slide.active {
  display: block;
}

@keyframes quizSlideIn {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.quiz-question {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.4;
}

/* Quiz Options */
.quiz-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.quiz-option:hover {
  background: rgba(0, 133, 191, 0.08);
  border-color: rgba(126, 200, 232, 0.3);
  transform: translateX(4px);
}

.quiz-option.selected {
  background: rgba(31, 155, 173, 0.12);
  border-color: var(--teal-bright);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(31, 155, 173, 0.15);
}

.quiz-option::after {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.quiz-option.selected::after {
  border-color: var(--teal-bright);
  background: var(--teal-bright);
  box-shadow: inset 0 0 0 3px rgba(2, 31, 51, 1);
}

/* Quiz Footer / Actions */
.quiz-footer {
  padding: 20px 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-btn-prev {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--paper);
  padding: 10px 20px;
  border-radius: 20px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.quiz-btn-prev:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--white);
  color: var(--white);
}

.quiz-btn-next {
  background: linear-gradient(95deg, var(--teal), var(--teal-bright));
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(31, 155, 173, 0.2);
  margin-left: auto;
}

.quiz-btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(31, 155, 173, 0.3);
}

.quiz-btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Quiz Results Screen ---------- */
.quiz-result {
  text-align: center;
}

.quiz-result-title {
  font-family: var(--display);
  font-size: 32px;
  color: var(--white);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.quiz-result-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 24px;
}

.quiz-recommendation-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.quiz-recommendation-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--rec-color, var(--teal-bright));
}

.quiz-rec-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--rec-color, var(--teal-bright));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.quiz-rec-title {
  font-family: var(--body);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.quiz-rec-text {
  font-size: 13.5px;
  color: #b8cdd9;
  line-height: 1.6;
  text-align: left;
}

.quiz-rec-items {
  margin: 14px 0 0;
  padding-left: 20px;
  text-align: left;
}

.quiz-rec-items li {
  font-size: 12.5px;
  color: var(--paper);
  margin-bottom: 6px;
  line-height: 1.5;
}

.quiz-result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.quiz-result-actions .btn-teal {
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

.quiz-btn-restart {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  padding: 6px 12px;
}

.quiz-btn-restart:hover {
  color: var(--white);
}

/* Mobile Responsive Widget tweaks */
@media (max-width: 580px) {
  .quiz-widget-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 18px;
    font-size: 12.5px;
  }
  
  .quiz-container {
    border-radius: 18px;
  }

  .quiz-header {
    padding: 18px 24px 12px;
  }
  
  .quiz-body {
    padding: 24px;
    min-height: 280px;
  }

  .quiz-footer {
    padding: 16px 24px 20px;
  }

  .quiz-question {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .quiz-option {
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 8px;
  }
}

/* ==========================================================================
   4. BRANDS WE ACCELERATED SECTION
   ========================================================================== */
.accelerated-brands {
  background: linear-gradient(180deg, var(--navy-deep), var(--navy-mid));
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.brands-parallax-container {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(2, 31, 51, 0.4);
  backdrop-filter: blur(10px);
  padding: 60px 0;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.parallax-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--display);
  font-size: clamp(120px, 20vw, 320px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.015);
  pointer-events: none;
  z-index: 0;
  letter-spacing: 0.15em;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
  will-change: transform;
}

.floating-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.blob-1 {
  top: 10%;
  left: 5%;
  width: 250px;
  height: 250px;
  background: var(--teal);
}

.blob-2 {
  bottom: 15%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: var(--gold);
}

.accelerated-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  position: relative;
  z-index: 1;
  padding: 0 50px;
}

.acceleration-case-study {
  min-width: 0;
  width: 100%;
}

/* Left: Case Study Styles */
.case-study-player {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  background: #000;
  margin-bottom: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

.case-study-player .iframe-container {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
}

.case-study-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.case-study-selectors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.selector-btn {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--paper);
  position: relative;
}

.selector-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(126, 200, 232, 0.3);
  transform: translateX(4px);
}

.selector-btn.active {
  background: radial-gradient(circle at left, rgba(31, 155, 173, 0.15), transparent 70%),
              rgba(255, 255, 255, 0.055);
  border-color: var(--teal-bright);
  box-shadow: 0 4px 20px rgba(31, 155, 173, 0.15);
}

.selector-icon {
  font-size: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.selector-info {
  display: flex;
  flex-direction: column;
}

.sel-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}

.sel-tag {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
  transition: color 0.3s ease;
}

.selector-btn.active .sel-tag {
  color: var(--blue-soft);
}

.case-study-details {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.case-study-details h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.case-study-details p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* Right: Logo Wall Styles */
.logo-wall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  height: 100%;
  align-content: center;
}

.brand-logo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  will-change: transform;
}

.brand-logo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--brand-color), transparent 75%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.brand-logo-card:hover::before {
  opacity: 0.08;
}

.brand-logo-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-color);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.4);
}

.brand-logo-card > * {
  position: relative;
  z-index: 1;
}

.brand-logo-img {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 16px;
}

.brand-logo-img svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.brand-logo-card:hover .brand-logo-img {
  color: var(--brand-color);
  transform: scale(1.15) rotate(3deg);
}

.brand-logo-card h5 {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.brand-industry {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   5. RESPONSIVE MEDIA QUERIES FOR ACCELERATED BRANDS
   ========================================================================== */
@media (max-width: 1024px) {
  .accelerated-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 30px;
  }

  .logo-wall-grid {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .brands-parallax-container {
    padding: 40px 0;
  }

  .accelerated-grid {
    padding: 0 20px;
  }

  .case-study-selectors {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .selector-btn {
    padding: 12px 18px;
  }

  .selector-btn:hover {
    transform: none;
  }

  .logo-wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .logo-wall-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brand-logo-card {
    padding: 28px 20px;
  }
}

/* ---------- Brands Collage Wrapper ---------- */
.brands-collage-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
  background: rgba(2, 31, 51, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.brands-collage-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .brands-collage-wrapper {
    max-width: 680px;
    margin: 0 auto;
  }
}

