/* ===================================
   SERVICES SECTION - DARK (FIXED FOR AIRPLANE)
   ==================================== */
.services-section-dark {
  /* REMOVED: position: relative; - This blocks airplane! */
  padding: 10rem 0;
  background: #11111100;
  overflow: visible;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
  /* ADDED: Force no stacking context */
  z-index: auto !important;
  isolation: auto !important;
}

.services-section-dark.section-visible {
  opacity: 1;
  transform: translateY(0);
}

.services-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative; /* This is OK - inside the section */
}

/* ===================================
   CENTERED HEADING – LIKE ABOUT
   ==================================== */
.section-heading-centered-dark {
  text-align: center;
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(-30px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.section-heading-centered-dark.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Grey background word – Beyond Infinity */
.heading-bg-text-dark {
  font-size: 8rem;
  font-weight: 900;
  font-style: italic;
  color: rgb(39, 39, 39);
  line-height: 1;
  margin-bottom: -3.5rem;
  letter-spacing: -2px;
  user-select: none;
  font-family: "BeyondInfinity", "Beyond Infinity", cursive;
}

/* Main title – Montserrat like about */
.heading-main-dark {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

/* SVG underline like hero/about */
.heading-underline-dark {
  width: 180px;
  height: 18px;
  margin: 1.5rem auto 0;
  position: relative;
  pointer-events: none;
}
.heading-underline-dark::after {
  content: '';
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: 0;
  height: 100%;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1418 125'><path d='M1412.29 72.17c-11.04-5.78-20.07-14.33-85.46-25.24-22.37-3.63-44.69-7.56-67.07-11.04-167.11-22.06-181.65-21.24-304.94-30.56C888.78 1.39 822.57 1.1 756.44 0c-46.63-.11-93.27 1.56-139.89 2.5C365.5 13.55 452.86 7.68 277.94 23.15 202.57 33.32 127.38 45.01 52.07 55.69c-11.23 2.41-22.63 4.17-33.71 7.22C6.1 66.33 5.64 66.19 3.89 67.79c-7.99 5.78-2.98 20.14 8.72 17.5 33.99-9.47 32.28-8.57 178.06-29.66 4.26 4.48 7.29 3.38 18.42 3.11 13.19-.32 26.38-.53 39.56-1.12 53.51-3.81 106.88-9.62 160.36-13.95 18.41-1.3 36.8-3.12 55.21-4.7 23.21-1.16 46.43-2.29 69.65-3.4 120.28-2.16 85.46-3.13 234.65-1.52 23.42.99 1.57-.18 125.72 6.9 96.61 8.88 200.92 27.94 295.42 46.12 40.87 7.91 116.67 23.2 156.31 36.78 3.81 1.05 8.28-.27 10.51-3.58 3.17-3.72 2.66-9.7-.78-13.13-3.25-3.12-8.14-3.44-12.18-5.08-17.89-5.85-44.19-12.09-63.67-16.56l26.16 3.28c23.02 3.13 46.28 3.92 69.34 6.75 10.8.96 25.43 1.81 34.34-4.39 2.26-1.54 4.86-2.75 6.21-5.27 2.76-4.59 1.13-11.06-3.59-13.68ZM925.4 23.77c37.64 1.4 153.99 10.85 196.64 14.94 45.95 5.51 91.89 11.03 137.76 17.19 24.25 4.77 74.13 11.21 101.72 18.14-11.87-1.15-23.77-1.97-35.65-3.06-133.46-15.9-266.8-33.02-400.47-47.21Z' fill='%23f36e36'></path></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
  opacity: 1;
}

/* ===================================
   FLIP CARDS GRID
   ==================================== */
.services-flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem 3rem;
  margin-bottom: 5rem;
  padding: 2rem 1rem;
}

/* ===================================
   FLIP CARD CONTAINER
   ==================================== */
.flip-card {
  perspective: 1000px;
  height: 260px;
  position: relative;
  z-index: 1;
  transition: opacity 0.6s, transform 0.6s;
}
.flip-card:hover {
  z-index: 10;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card.touch-flip .flip-card-inner {
  transform: rotateY(180deg);
}

/* ===================================
   CARD FACES – MATCH ABOUT CARDS
   ==================================== */
.flip-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* front = dark glass card like about */
.flip-card-front {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top right,
              rgba(243, 110, 54, 0.22), #161616 55%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  z-index: 2;
}

/* circle icon – no orange glow */
.flip-icon {
  width: 65px;
  height: 65px;
  background: #f36e36;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 1.2rem;
  box-shadow: none;
  transition: transform 0.3s ease;
}
.flip-icon svg {
  width: 28px;
  height: 28px;
}
.flip-card:hover .flip-icon {
  transform: scale(1.05);
}

.flip-card-front h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

/* big translucent number */
.flip-number {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(243, 110, 54, 0.12);
  line-height: 1;
  user-select: none;
}

/* back side – dark shadow only */
.flip-card-back {
  background: linear-gradient(135deg, #f36e36, #f36e36);
  transform: rotateY(180deg);
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  position: relative;
}

/* title and text */
.flip-card-back h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.8rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}
.flip-card-back p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.flip-card-back ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.flip-card-back li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0 0.4rem 1.3rem;
  position: relative;
}
.flip-card-back li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
}

/* right-side icon on orange */
.flip-back-icon {
  position: absolute;
  right: 1.8rem;
  top: 1.8rem;
  width: 28px;
  height: 28px;
  color: #ffffff;
}

/* ===================================
   CTA SECTION – ORANGE
   ==================================== */
.services-cta-dark {
  background: linear-gradient(135deg, #f36e36, #f36e36);
  padding: 3rem 4rem;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s ease;
}
.services-cta-dark.animate {
  opacity: 1;
  transform: scale(1);
}
.services-cta-dark h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}
.services-cta-dark p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.6;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.5rem;
  background: #ffffff;
  color: #f36e36;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  gap: 1.2rem;
}

/* Mobile/touch auto flip */
.flip-card.auto-flip .flip-card-inner,
.flip-card.touch-flip .flip-card-inner {
  transform: rotateY(180deg);
}

/* ===================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 1024px) {
  .services-flip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem 2.5rem;
  }
  .heading-bg-text-dark {
    font-size: 5rem;
    margin-bottom: -2.5rem;
  }
  .heading-main-dark {
    font-size: 3.2rem;
  }
}

@media (max-width: 768px) {
  .services-section-dark {
    padding: 6rem 0;
  }
  .section-heading-centered-dark {
    margin-bottom: 4rem;
  }
  .services-flip-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 1rem;
  }
  .flip-card {
    height: 240px;
  }
  .heading-bg-text-dark {
    font-size: 3.5rem;
    margin-bottom: -2rem;
  }
  .heading-main-dark {
    font-size: 2.5rem;
  }
  .services-cta-dark {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
  }
  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .services-section-dark {
    padding: 5rem 0;
  }
  .section-heading-centered-dark {
    margin-bottom: 3rem;
  }
  .heading-bg-text-dark {
    font-size: 2.5rem;
    margin-bottom: -1.2rem;
  }
  .heading-main-dark {
    font-size: 2rem;
  }
  .services-flip-grid {
    gap: 2.5rem;
    padding: 0.5rem;
  }
  .flip-card {
    height: 220px;
  }
  .flip-icon {
    width: 60px;
    height: 60px;
  }
  .flip-icon svg {
    width: 26px;
    height: 26px;
  }
  .flip-card-front h3 {
    font-size: 1.15rem;
  }
  .flip-number {
    font-size: 2.5rem;
    bottom: 1.2rem;
    right: 1.2rem;
  }
  .flip-card-back h4 {
    font-size: 1.05rem;
  }
  .flip-card-back p {
    font-size: 0.85rem;
  }
  .flip-card-back li {
    font-size: 0.82rem;
  }
  .services-cta-dark {
    padding: 2rem 1.5rem;
  }
  .services-cta-dark h3 {
    font-size: 1.5rem;
  }
  .services-cta-dark p {
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .flip-card {
    height: 200px;
  }
  .flip-card-face {
    padding: 1.8rem 1.5rem;
  }
  .flip-icon {
    width: 55px;
    height: 55px;
  }
  .flip-icon svg {
    width: 24px;
    height: 24px;
  }
}
