/* ==========================================================================
   Taraah — Super Ultra-Premium Design & Physics Engine
   (Exceeding Influential.co with Luxury Editorial Polish)
   ========================================================================== */

/* 1. Global Reading Progress Bar */
.scroll-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #1b3fe8 0%, #6085ff 50%, #1b3fe8 100%);
  z-index: 9999;
  pointer-events: none;
  transition: width 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Scroll-Driven Stagger Entrance Engine */
.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

/* 3. Luxury Container Framing & Ambient Radial Luminescence */
.sec-blue-intro {
  position: relative;
  background: radial-gradient(circle at 50% 20%, #224bff 0%, #1b3fe8 60%), #1b3fe8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sec-signal-review {
  position: relative;
  background: radial-gradient(circle at 65% 35%, #0533d6 0%, #0026ae 75%), #0026ae !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sec-dark-cards {
  position: relative;
  background: radial-gradient(circle at 50% 25%, #0e173d 0%, #080d22 80%), #080d22 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 4. Floating Intelligence Badges (The Influential Polish) */
.floating-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 5;
  animation: floatSlow 5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes floatSlow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(0.5deg); }
  100% { transform: translateY(3px) rotate(-0.5deg); }
}

.badge-mint {
  background-color: #d6f2e4;
  color: #126338;
  border-color: #b7e5cc;
}

.badge-sand {
  background-color: #fae4dc;
  color: #a83c18;
  border-color: #f2c7b8;
}

.badge-periwinkle {
  background-color: #dbe2fd;
  color: #1a3bd4;
  border-color: #c2ccfa;
}

/* Specific Positions in Signal Review Section */
.signal-collage-container {
  position: relative;
}

.badge-pos-top-right {
  top: -15px;
  right: -20px;
  animation-delay: 0.4s;
}

.badge-pos-bottom-left {
  bottom: 25px;
  left: -20px;
  animation-delay: 1.2s;
}

/* 5. Smooth Liquid Accordion Physics */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: max-height, opacity;
}

.accordion-row.active .accordion-body {
  max-height: 240px;
  opacity: 1;
  padding-top: 14px;
  padding-bottom: 4px;
}

/* 6. High-End Micro-Physics & Hover States */
.btn-primary, .btn-sand, .btn-white, .tab-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              color 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(27, 63, 232, 0.35);
}

.btn-sand:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  background-color: #eee7da;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  background-color: #f7f9ff;
}

/* Partnership Cards Hover Lift */
.partner-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.partner-circle-btn {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              color 0.25s ease;
}

.partner-circle-btn:hover {
  transform: scale(1.15) rotate(90deg);
}

/* Pattern Studies Side Peek Cards Hover */
.side-card-peek {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
}

.side-card-peek.peek-left:hover {
  transform: translateX(-4px) scale(1.02);
  opacity: 0.95;
}

.side-card-peek.peek-right:hover {
  transform: translateX(4px) scale(1.02);
  opacity: 0.95;
}

/* Tilted KIT Card Ambient Lift */
.kit-main-polygon-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.kit-main-polygon-card:hover {
  transform: translateY(-4px);
}

/* Wireframe Visuals Card Hover Physics */
.visuals-wireframe-grid svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
  cursor: pointer;
}

.visuals-wireframe-grid svg:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Custom Selection Highlight */
::selection {
  background-color: var(--primary-blue);
  color: #fff;
}

/* 7. Interactive Audience Signal Simulator (Section 4) */
.signal-simulator-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(27, 63, 232, 0.2);
}

.simulator-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #555c70;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.simulator-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.sim-chip {
  text-align: left;
  padding: 8px 12px;
  background-color: #f7f5f2;
  border: 1px solid #e2ddd5;
  border-radius: 4px;
  font-size: 12px;
  color: #2b3044;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.sim-chip:hover {
  background-color: #eee9e0;
  border-color: #1b3fe8;
  transform: translateX(3px);
}

.sim-chip.active {
  background-color: #1b3fe8;
  color: #ffffff;
  border-color: #1b3fe8;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(27, 63, 232, 0.25);
}

.simulator-result {
  background: #ffffff;
  border: 1.5px solid #1b3fe8;
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(27, 63, 232, 0.08);
  animation: resultGlow 0.4s ease-out;
}

@keyframes resultGlow {
  0% { transform: scale(0.97); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.sim-result-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #1b3fe8;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sim-result-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0b112c;
  margin-bottom: 4px;
}

.sim-result-meta {
  font-size: 11.5px;
  color: #646a7c;
  line-height: 1.35;
}

