/* ==========================================================================
   TPS Empire - Smooth Scroll-Scrubbed Flying Counters Section ("Consult Us Here")
   Bi-directional Scroll-Driven Flight (Forward & Backward), Seamless Layered Climb, Zero Shine
   ========================================================================== */

/* Main Section Wrapper */
.tps-flying-consult-section {
  position: relative;
  width: 100%;
  background: transparent;
  z-index: 25;
  margin-top: -60px;
}

/* Scroll-Pinned Track Container (Creates scroll distance for scrubbed animation) */
.tps-flying-scroll-track {
  position: relative;
  width: 100%;
  height: 500vh; /* Luxurious, slow, cinema-grade scroll scrub depth */
}

/* Sticky Viewport (Locks into view during the scrub sequence) */
.tps-flying-sticky-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Layered Light Sheet (Climbs up smoothly over previous dark section) */
.tps-flying-sheet-layer {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f8fafc;
  border-top-left-radius: 48px;
  border-top-right-radius: 48px;
  box-shadow: 0 -35px 90px rgba(0, 0, 0, 0.12);
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: box-shadow 0.4s ease;
}

/* Central Stage Container */
.tps-flying-stage-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}

/* --------------------------------------------------------------------------
   Center Hero Content (Title, Subtitle & Solid CTA)
   -------------------------------------------------------------------------- */
.tps-flying-center-content {
  position: relative;
  z-index: 12;
  max-width: 660px;
  text-align: center;
  margin: 0 auto;
  padding: 20px;
  pointer-events: auto;
}

.tps-flying-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #323edd;
  background: #eef2ff;
  border: 1px solid #dbeafe;
  padding: 6px 18px;
  border-radius: 9999px;
  margin-bottom: 18px;
}

.tps-flying-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: #0f172a;
  margin-bottom: 18px;
}

.tps-flying-title span {
  color: #323edd;
  font-weight: 800;
}

.tps-flying-subtitle {
  font-size: 16.5px;
  line-height: 1.7;
  color: #475569;
  max-width: 580px;
  margin: 0 auto 30px;
}

.tps-flying-cta-row {
  display: flex;
  justify-content: center;
}

.tps-flying-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 34px;
  background: #323edd;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(50, 62, 221, 0.25);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
}

.tps-flying-cta-btn:hover {
  background: #2531c4;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(50, 62, 221, 0.35);
}

.tps-flying-cta-btn i {
  transition: transform 0.25s ease;
}

.tps-flying-cta-btn:hover i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Flying Counter Cards (Clean Matte Light Design, Zero Shine)
   -------------------------------------------------------------------------- */
.tps-flying-card {
  position: absolute;
  z-index: 15;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 26px;
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.07), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  cursor: default;
  user-select: none;
  pointer-events: auto;
  
  /* GPU acceleration for scrubbed translation */
  will-change: transform, opacity;
  transform: translate3d(100vw, 0, 0);
  opacity: 0;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.tps-flying-card:hover {
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12);
}

/* Icon Wrap */
.tps-flying-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 12px;
  border: 1px solid;
}

/* Info Box */
.tps-flying-info {
  display: flex;
  flex-direction: column;
}

.tps-flying-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
  margin-bottom: 4px;
}

.tps-flying-number {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Montserrat", "Segoe UI", Roboto, sans-serif;
}

.tps-flying-plus {
  font-size: 22px;
  font-weight: 700;
  margin-left: 2px;
}

.tps-flying-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Theme Blue Card */
.tps-flying-card.theme-blue {
  border-left: 4px solid #323edd;
}

.tps-flying-card.theme-blue .tps-flying-icon-box {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #323edd;
}

.tps-flying-card.theme-blue .tps-flying-plus {
  color: #323edd;
}

/* Theme Orange Card */
.tps-flying-card.theme-orange {
  border-left: 4px solid #ffa41b;
}

.tps-flying-card.theme-orange .tps-flying-icon-box {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #ea580c;
}

.tps-flying-card.theme-orange .tps-flying-plus {
  color: #ea580c;
}

/* --------------------------------------------------------------------------
   Spatial Base Coordinates (Landing Targets)
   -------------------------------------------------------------------------- */

/* Card 1: 750 Projects (Top Left) */
.tps-flying-card-1 {
  top: 12%;
  left: 4%;
}

/* Card 2: 568 Happy Clients (Top Right) */
.tps-flying-card-2 {
  top: 14%;
  right: 4%;
}

/* Card 3: 478 Business Partners (Bottom Left) */
.tps-flying-card-3 {
  bottom: 14%;
  left: 6%;
}

/* Card 4: 780 IT Consultants (Bottom Right) */
.tps-flying-card-4 {
  bottom: 12%;
  right: 6%;
}

/* --------------------------------------------------------------------------
   Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .tps-flying-title {
    font-size: 38px;
  }

  .tps-flying-card-1 {
    top: 7%;
    left: 2%;
  }

  .tps-flying-card-2 {
    top: 8%;
    right: 2%;
  }

  .tps-flying-card-3 {
    bottom: 8%;
    left: 3%;
  }

  .tps-flying-card-4 {
    bottom: 7%;
    right: 3%;
  }
}

@media (max-width: 991.98px) {
  .tps-flying-consult-section {
    margin-top: -30px;
  }

  .tps-flying-scroll-track {
    height: 400vh;
  }

  .tps-flying-sheet-layer {
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 60px 0;
  }

  .tps-flying-stage-container {
    flex-direction: column;
    min-height: auto;
  }

  .tps-flying-center-content {
    margin-bottom: 36px;
    padding: 0;
  }

  .tps-flying-title {
    font-size: 30px;
  }

  .tps-flying-subtitle {
    font-size: 15px;
  }

  /* Responsive 2x2 grid layout coordinates */
  .tps-flying-card-1 {
    top: auto;
    bottom: 110px;
    left: 24px;
    width: calc(50% - 32px);
    min-width: 0;
  }

  .tps-flying-card-2 {
    top: auto;
    bottom: 110px;
    right: 24px;
    width: calc(50% - 32px);
    min-width: 0;
  }

  .tps-flying-card-3 {
    top: auto;
    bottom: 24px;
    left: 24px;
    width: calc(50% - 32px);
    min-width: 0;
  }

  .tps-flying-card-4 {
    top: auto;
    bottom: 24px;
    right: 24px;
    width: calc(50% - 32px);
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .tps-flying-scroll-track {
    height: 340vh;
  }

  .tps-flying-title {
    font-size: 24px;
  }

  .tps-flying-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .tps-flying-card {
    padding: 14px 16px;
    gap: 10px;
  }

  .tps-flying-icon-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 16px;
  }

  .tps-flying-number {
    font-size: 24px;
  }

  .tps-flying-label {
    font-size: 11px;
  }

  .tps-flying-card-1 {
    bottom: 160px;
    left: 16px;
    width: calc(100% - 32px);
  }

  .tps-flying-card-2 {
    bottom: 108px;
    left: 16px;
    right: auto;
    width: calc(100% - 32px);
  }

  .tps-flying-card-3 {
    bottom: 56px;
    left: 16px;
    width: calc(100% - 32px);
  }

  .tps-flying-card-4 {
    bottom: 4px;
    left: 16px;
    right: auto;
    width: calc(100% - 32px);
  }
}
