/* ==========================================================================
   Navbar & Megamenu Styling
   ========================================================================== */

.custom-navbar,
.custom-navbar * {
  font-family: "Inter", sans-serif !important;
}

.custom-navbar {
  background-color: var(--white);
  padding: 16px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border-color);
  transition: top 0.3s ease-in-out;
}

.container-nav-wrapper {
  /* max-width: 1280px; */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 991.98px) {
  .container-nav-wrapper {
    flex-wrap: wrap !important;
  }

  .brand-logo {
    max-height: 40px;
  }
}

@media (max-width: 375px) {
  .brand-logo {
    max-height: 34px;
  }
}

.brand-logo {
  max-height: 48px;
  object-fit: contain;
  transition: max-height 0.3s ease;
}

.nav-menu-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-menu-list .nav-item {
  position: relative;
}

.nav-menu-list .nav-link {
  color: var(--text-main) !important;
  font-size: 18px;
  line-height: 18px;
  font-weight: 500;
  padding: 8px 16px !important;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  box-shadow: none;
  transition: all 0.3s ease;
}

.nav-menu-list .nav-link:hover,
.nav-menu-list .nav-link:focus,
.nav-menu-list .show > .nav-link {
  /* background-color: var(--primary-light); */
  color: var(--primary-color) !important;
}

.nav-arrow-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.nav-menu-list .dropdown:hover .nav-arrow-icon,
.nav-menu-list .dropdown.show .nav-arrow-icon {
  transform: rotate(180deg);
}

.nav-menu-list .dropdown:hover > .nav-link {
  /* background-color: var(--primary-light); */
  color: var(--primary-color) !important;
}

/* Styling for regular dropdown menus on desktop to make them smooth and premium */
@media (min-width: 992px) {
  .nav-menu-list .dropdown:not(.dropdown-megamenu) .dropdown-menu {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
      transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
      opacity 0.3s ease,
      visibility 0.3s ease;
    pointer-events: none;
    margin-top: 15px !important;
  }

  .nav-menu-list .dropdown:not(.dropdown-megamenu):hover .dropdown-menu,
  .nav-menu-list .dropdown:not(.dropdown-megamenu).show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Bridge the gap between nav links and dropdown menus/megamenu so hover remains active */
  .nav-menu-list .dropdown .nav-link {
    position: relative;
  }

  .nav-menu-list .dropdown .nav-link::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -30px;
    right: -30px;
    height: 35px;
    background: transparent;
    z-index: 99;
    pointer-events: auto;
  }
}

/* Premium Styling for Standard Dropdowns */
.dropdown-menu {
  background-color: var(--white);
  border-radius: 12px !important;
  border: 1px solid var(--border-color) !important;
  padding: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.dropdown-item {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main) !important;
  padding: 10px 16px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--primary-light) !important;
  color: var(--primary-color) !important;
}

@media (max-width: 991.98px) {
  .dropdown-menu {
    border: none !important;
    box-shadow: none !important;
    padding-left: 20px !important;
    background-color: transparent !important;
  }

  .dropdown-item {
    padding: 8px 16px !important;
  }
}

/* ==========================================================================
   Get a Free Quote Button
   ========================================================================== */

.btn-quote-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
  padding: 20px 24px;
  border-radius: 100px;
  font-weight: 700;
  line-height: 18px;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.chat-icon-nav {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.btn-quote-outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-quote-outline:hover {
  color: var(--white) !important;
  box-shadow: 0 8px 20px rgba(84, 96, 249, 0.25);
}

.btn-quote-outline:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-quote-outline:hover .chat-icon-nav {
  filter: brightness(0) invert(1);
}

/* Mobile Quote Button (Circular) */
.btn-quote-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--primary-color);
  background-color: var(--white);
  transition: all 0.3s ease;
  padding: 0;
}

.chat-icon-nav-mobile {
  width: 18px;
  height: 18px;
  transition: all 0.3s ease;
}

.btn-quote-mobile:hover {
  background-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(84, 96, 249, 0.25);
}

.btn-quote-mobile:hover .chat-icon-nav-mobile {
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   Mega Menu Dropdown Panel
   ========================================================================== */

.dropdown-megamenu {
  position: static !important;
}

.megamenu-panel {
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 1140px;
  max-width: 95vw;
  background: var(--white);
  border-radius: 24px !important;
  overflow: hidden;
  padding: 0 !important;
  margin-top: 5px !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: block !important;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  z-index: 1000;
}

/* Show mega menu dropdown on hover or class toggle */
.dropdown-megamenu:hover .megamenu-panel,
.dropdown-megamenu.show .megamenu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) !important;
}

/* Pointer Triangle */
.megamenu-pointer {
  position: absolute;
  top: -8px;
  left: 31%;
  /* Position matches the Services nav item location */
  width: 16px;
  height: 16px;
  background: var(--white);
  transform: rotate(45deg);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  z-index: 10;
  pointer-events: none;
}

.megamenu-row {
  display: flex;
}

/* Left Sidebar - Categories */
.megamenu-sidebar {
  width: 335px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-right: 1px solid var(--border-color);
  padding: 30px !important;
  display: flex;
  flex-direction: column;
}

.category-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
  font-size: 20px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-link:hover {
  color: var(--primary-color);
  background-color: transparent;
}

.category-link.active {
  background: linear-gradient(90deg, #5460f9 0%, #12b3eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.category-link.active .active-indicator {
  color: #12b3eb;
  -webkit-text-fill-color: initial;
}

.active-indicator {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--primary-color);
}

.category-link.active .active-indicator,
.category-link:hover .active-indicator {
  opacity: 1;
  transform: translateX(0);
}

/* Right Content Area */
.megamenu-main-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--white);
}

.services-wrapper {
  padding: 25px;
  flex-grow: 1;
}

.services-grid-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.services-grid-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Service Item Style */
.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  /* padding: 10px; */
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.service-item:hover {
  /* background-color: var(--primary-light); */
  transform: translateY(-2px);
}

.service-title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: #131415;
  transition: color 0.3s ease;
  font-family: var(--font-body);
}

.service-item:hover .service-title {
  color: var(--primary-color);
}

/* Icon Badges */
.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
  transform: scale(1.1);
}

/* Dynamic styling classes for icons */
.icon-iphone {
  background-color: var(--bg-iphone);
  color: var(--color-iphone);
}

.icon-android {
  background-color: var(--bg-android);
  color: var(--color-android);
}

.icon-hybrid {
  background-color: var(--bg-hybrid);
  color: var(--color-hybrid);
}

.icon-watch {
  background-color: var(--bg-watch);
  color: var(--color-watch);
}

.icon-react {
  background-color: var(--bg-react);
  color: var(--color-react);
}

.icon-ipad {
  background-color: var(--bg-ipad);
  color: var(--color-ipad);
}

.icon-ar {
  background-color: var(--bg-ar);
  color: var(--color-ar);
}

.icon-flutter {
  background-color: var(--bg-flutter);
  color: var(--color-flutter);
}

.icon-swift {
  background-color: var(--bg-swift);
  color: var(--color-swift);
}

.icon-kotlin {
  background-color: var(--bg-kotlin);
  color: var(--color-kotlin);
}

.icon-custom-soft {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.icon-ent-soft {
  background-color: #eceff1;
  color: #37474f;
}

.icon-saas {
  background-color: #ede7f6;
  color: #5e35b1;
}

.icon-api {
  background-color: #e8eaf6;
  color: #3f51b5;
}

.icon-legacy {
  background-color: #fff3e0;
  color: #e65100;
}

.icon-testing {
  background-color: #e0f2f1;
  color: #00695c;
}

.icon-php {
  background-color: #e8eaf6;
  color: #5c6bc0;
}

.icon-node {
  background-color: #e8f5e9;
  color: #43a047;
}

.icon-angular {
  background-color: #ffebee;
  color: #c62828;
}

.icon-wordpress {
  background-color: #e1f5fe;
  color: #0288d1;
}

.icon-laravel {
  background-color: #fbe9e7;
  color: #d84315;
}

.icon-shopify {
  background-color: #f1f8e9;
  color: #558b2f;
}

.icon-magento {
  background-color: #fff3e0;
  color: #ef6c00;
}

.icon-hire-ded {
  background-color: #ede7f6;
  color: #673ab7;
}

.icon-python {
  background-color: #fffde7;
  color: #fbc02d;
}

.icon-seo {
  background-color: #e0f7fa;
  color: #00acc1;
}

.icon-smm {
  background-color: #fce4ec;
  color: #d81b60;
}

.icon-ppc {
  background-color: #fff8e1;
  color: #ffb300;
}

.icon-content {
  background-color: #e8f5e9;
  color: #43a047;
}

.icon-aso {
  background-color: #e8eaf6;
  color: #3f51b5;
}

.icon-email {
  background-color: #efebe9;
  color: #6d4c41;
}

.icon-cloud {
  background-color: #e1f5fe;
  color: #0288d1;
}

.icon-devops {
  background-color: #fbe9e7;
  color: #d84315;
}

.icon-ai {
  background-color: #ede7f6;
  color: #5e35b1;
}

.icon-iot {
  background-color: #e0f2f1;
  color: #00796b;
}

.icon-blockchain {
  background-color: #eceff1;
  color: #455a64;
}

.icon-bigdata {
  background-color: #fff3e0;
  color: #ef6c00;
}

/* ==========================================================================
   Industry Menu Icon Classes
   ========================================================================== */

.icon-ind-healthcare {
  background-color: #ebf3ff;
  color: #12b3eb;
}

.icon-ind-logistics {
  background-color: #feede8;
  color: #ff9800;
}

.icon-ind-retail {
  background-color: #ebf3ff;
  color: #12b3eb;
}

.icon-ind-fitness {
  background-color: #ffe9e9;
  color: #ec407a;
}

.icon-ind-taxi {
  background-color: #ebffda;
  color: #4caf50;
}

.icon-ind-realestate {
  background-color: #ebffda;
  color: #4caf50;
}

.icon-ind-travel {
  background-color: #ffefcb;
  color: #fbc02d;
}

.icon-ind-dating {
  background-color: #efdeff;
  color: #ab47bc;
}

.icon-ind-fintech {
  background-color: #deeeff;
  color: #00acc1;
}

.icon-ind-education {
  background-color: #ebffda;
  color: #4caf50;
}

.icon-ind-social {
  background-color: #deeeff;
  color: #00acc1;
}

.icon-ind-food {
  background-color: #ffefcb;
  color: #fbc02d;
}

.icon-ind-ondemand {
  background-color: #ebf3ff;
  color: #12b3eb;
}

.icon-ind-events {
  background-color: #deeeff;
  color: #00acc1;
}

.icon-ind-restaurants {
  background-color: #ffe9e9;
  color: #ec407a;
}

/* ==========================================================================
   Mega Menu CTA Banner (Bottom)
   ========================================================================== */

.megamenu-cta-banner {
  background: linear-gradient(90deg, #5460f9 0%, #12b3eb 100%);
  padding: 31px 36px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border-color);
}

.cta-text-wrapper {
  color: var(--white);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.megamenu-cta-banner .cta-title {
  margin: 0 0 12px 0 !important;
  font-family: "Inter", sans-serif;
  font-size: 32px !important;
  font-weight: 900 !important;
  line-height: 32px !important;
  letter-spacing: -0.02em !important;
  color: var(--white);
  text-align: left;
}

.megamenu-cta-banner .cta-subtitle {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 25px !important;
  letter-spacing: 0% !important;
  color: var(--white);
  text-align: left;
}

.btn-cta-hire {
  background-color: var(--white);
  color: #5460f9;
  padding: 23px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(84, 96, 249, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-cta-hire:hover {
  color: #5460f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(84, 96, 249, 0.3);
}

.btn-cta-hire svg {
  transition: transform 0.3s ease;
}

.btn-cta-hire:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Mobile Navigation Drawer (< 992px)
   ========================================================================== */

/* Hidden on desktop */
.mobile-nav-overlay,
.mobile-nav-drawer {
  display: none;
}

@media (max-width: 991.98px) {
  /* Hide Bootstrap's default collapse on mobile — replaced by custom drawer */
  #navbarContent {
    display: none !important;
  }

  /* Body scroll lock when drawer is open */
  body.mobile-nav-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
  }

  /* ---- Overlay ---- */
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.35s ease,
      visibility 0.35s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* ---- Drawer Container ---- */
  .mobile-nav-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 85vw;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.08);
  }

  .mobile-nav-drawer.open {
    transform: translateX(0);
  }

  /* ---- Main Panel ---- */
  .mobile-nav-main {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f0f1f3;
    flex-shrink: 0;
  }

  .mobile-nav-header .brand-logo {
    max-height: 36px !important;
  }

  .mobile-nav-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s ease;
  }

  .mobile-nav-close-btn:hover,
  .mobile-nav-close-btn:active {
    background: #e8eaee;
    color: #1a1a2e;
  }

  /* ---- Menu List ---- */
  .mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border-bottom: 1px solid #f5f6f8;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: translateX(20px);
  }

  /* Trigger main menu items staggered animation when drawer is open */
  .mobile-nav-drawer.open .mobile-nav-menu-item {
    animation: menuSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .mobile-nav-drawer.open .mobile-nav-menu-item:nth-child(1) {
    animation-delay: 0.05s;
  }

  .mobile-nav-drawer.open .mobile-nav-menu-item:nth-child(2) {
    animation-delay: 0.1s;
  }

  .mobile-nav-drawer.open .mobile-nav-menu-item:nth-child(3) {
    animation-delay: 0.15s;
  }

  .mobile-nav-drawer.open .mobile-nav-menu-item:nth-child(4) {
    animation-delay: 0.2s;
  }

  .mobile-nav-drawer.open .mobile-nav-menu-item:nth-child(5) {
    animation-delay: 0.25s;
  }

  .mobile-nav-menu-item:last-child {
    border-bottom: none;
  }

  .mobile-nav-menu-text {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: -0.01em;
    text-decoration: none;
    flex-grow: 1;
    padding: 16px 12px 16px 24px;
    transition:
      color 0.15s ease,
      background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-menu-text:hover {
    color: #5460f9;
    background: #fafbfc;
  }

  .mobile-nav-menu-text:active {
    background: #f0f1f4;
  }

  /* Arrow button — separate tap target for expanding sub-panel */
  .mobile-nav-menu-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    align-self: stretch;
    border: none;
    background: transparent;
    cursor: pointer;
    border-left: 1px solid #f0f1f3;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
  }

  .mobile-nav-menu-arrow-btn:hover {
    background: #f4f5f7;
  }

  .mobile-nav-menu-arrow-btn:active {
    background: #ebedf0;
  }

  .mobile-nav-menu-arrow {
    color: #c0c5ce;
    flex-shrink: 0;
    transition:
      transform 0.2s ease,
      color 0.2s ease;
  }

  .mobile-nav-menu-arrow-btn:hover .mobile-nav-menu-arrow {
    color: #5460f9;
    transform: translateX(2px);
  }

  /* Keyframe Animations */
  @keyframes menuSlideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes subGroupSlideIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ---- Bottom CTA ---- */
  .mobile-nav-bottom {
    padding: 16px 22px 28px;
    border-top: 1px solid #f0f1f3;
    flex-shrink: 0;
  }

  .mobile-promo-card {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    background-image:
      linear-gradient(
        135deg,
        rgba(79, 70, 229, 0.95) 0%,
        rgba(59, 130, 246, 0.95) 100%
      ),
      repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.03) 0px,
        rgba(255, 255, 255, 0.03) 2px,
        transparent 2px,
        transparent 10px
      );
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
    color: #ffffff;
    font-family: "Inter", sans-serif;
  }

  .promo-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 16px 0;
    color: #ffffff;
    letter-spacing: -0.01em;
  }

  .promo-contacts {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 14px 12px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(5px);
  }

  .promo-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
  }

  .promo-contact-item svg {
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
  }

  .promo-contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  .promo-contact-item a:hover {
    opacity: 0.8;
  }

  .promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 100px;
    background: #ffffff;
    color: #4f46e5 !important;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .promo-btn svg {
    transition: transform 0.2s ease;
  }

  .promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #fdfdfd;
  }

  .promo-btn:hover svg {
    transform: translate(2px, -2px);
  }

  /* ==========================================================
     Sub Panels — slide in from right over main panel
     ========================================================== */

  .mobile-nav-sub {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .mobile-nav-sub.active {
    transform: translateX(0);
  }

  /* Sub Panel Header */
  .mobile-sub-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #f0f1f3;
    flex-shrink: 0;
    background: #fff;
  }

  .mobile-sub-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .mobile-sub-back:hover,
  .mobile-sub-back:active {
    background: #e8eaee;
    color: #1a1a2e;
  }

  .mobile-sub-title {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    flex-grow: 1;
  }

  /* Sub Panel Body (scrollable) */
  .mobile-sub-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 4px 0 24px;
    -webkit-overflow-scrolling: touch;
  }

  /* Category Groups */
  .mobile-sub-group {
    padding: 8px 0 4px;
    opacity: 0;
    transform: translateY(15px);
  }

  .mobile-nav-sub.active .mobile-sub-group {
    animation: subGroupSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .mobile-nav-sub.active .mobile-sub-group:nth-child(1) {
    animation-delay: 0.36s;
  }

  .mobile-nav-sub.active .mobile-sub-group:nth-child(2) {
    animation-delay: 0.4s;
  }

  .mobile-nav-sub.active .mobile-sub-group:nth-child(3) {
    animation-delay: 0.44s;
  }

  .mobile-nav-sub.active .mobile-sub-group:nth-child(4) {
    animation-delay: 0.48s;
  }

  .mobile-nav-sub.active .mobile-sub-group:nth-child(5) {
    animation-delay: 0.52s;
  }

  .mobile-nav-sub.active .mobile-sub-group:nth-child(6) {
    animation-delay: 0.56s;
  }

  .mobile-sub-group + .mobile-sub-group {
    border-top: 1px solid #f0f1f3;
    margin-top: 4px;
    padding-top: 12px;
  }

  .mobile-sub-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px 6px;
    font-family: "Inter", sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #7a8599;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .mobile-sub-group-title svg {
    color: #5460f9;
    flex-shrink: 0;
    opacity: 0.8;
  }

  .mobile-sub-links {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* Services Specific Collapsible Accordion Dropdowns */
  #mobileSubServices .mobile-sub-group-title {
    font-size: 13px;
    padding: 12px 24px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
    transition:
      color 0.2s ease,
      background-color 0.15s ease;
  }

  #mobileSubServices .mobile-sub-group-title:hover {
    color: #1a1a2e;
    background-color: #f8f9ff;
  }

  #mobileSubServices .submenu-toggle-arrow {
    margin-left: auto;
    transition:
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      color 0.2s ease;
    color: #7a8599;
    opacity: 0.7;
  }

  #mobileSubServices .mobile-sub-group.open .submenu-toggle-arrow {
    transform: rotate(180deg);
    color: #5460f9;
    opacity: 1;
  }

  #mobileSubServices .mobile-sub-links {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.3s ease;
  }

  #mobileSubServices .mobile-sub-group.open .mobile-sub-links {
    max-height: 600px;
    opacity: 1;
  }

  .mobile-sub-links li {
    opacity: 0;
    transform: translateX(15px);
  }

  .mobile-nav-sub.active .mobile-sub-links li {
    animation: menuSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  /* Progressive staggered delays for individual links starting after sub-panel transition completes */
  .mobile-nav-sub.active .mobile-sub-links li:nth-child(1) {
    animation-delay: 0.24s;
  }

  .mobile-nav-sub.active .mobile-sub-links li:nth-child(2) {
    animation-delay: 0.28s;
  }

  .mobile-nav-sub.active .mobile-sub-links li:nth-child(3) {
    animation-delay: 0.32s;
  }

  .mobile-nav-sub.active .mobile-sub-links li:nth-child(4) {
    animation-delay: 0.36s;
  }

  .mobile-nav-sub.active .mobile-sub-links li:nth-child(5) {
    animation-delay: 0.4s;
  }

  .mobile-nav-sub.active .mobile-sub-links li:nth-child(6) {
    animation-delay: 0.44s;
  }

  .mobile-nav-sub.active .mobile-sub-links li:nth-child(7) {
    animation-delay: 0.48s;
  }

  .mobile-nav-sub.active .mobile-sub-links li:nth-child(8) {
    animation-delay: 0.52s;
  }

  .mobile-nav-sub.active .mobile-sub-links li:nth-child(9) {
    animation-delay: 0.56s;
  }

  .mobile-nav-sub.active .mobile-sub-links li:nth-child(10) {
    animation-delay: 0.6s;
  }

  .mobile-sub-links li a {
    display: block;
    padding: 11px 24px 11px 50px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-sub-links li a:hover {
    background: #f8f9ff;
    color: #5460f9;
    border-left-color: #5460f9;
  }

  .mobile-sub-links li a:active {
    background: #eef0ff;
  }

  /* Flat sub-links (for simple dropdowns without categories) */
  .mobile-sub-links-flat {
    padding-top: 8px;
  }

  .mobile-sub-links-flat li {
    opacity: 0;
    transform: translateY(12px);
  }

  .mobile-nav-sub.active .mobile-sub-links-flat li {
    animation: subGroupSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .mobile-nav-sub.active .mobile-sub-links-flat li:nth-child(1) {
    animation-delay: 0.05s;
  }

  .mobile-nav-sub.active .mobile-sub-links-flat li:nth-child(2) {
    animation-delay: 0.1s;
  }

  .mobile-nav-sub.active .mobile-sub-links-flat li:nth-child(3) {
    animation-delay: 0.15s;
  }

  .mobile-sub-links-flat li a {
    padding-left: 24px;
    font-size: 16px;
    font-weight: 500;
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f5f6f8;
    border-left: none;
  }

  .mobile-sub-links-flat li:last-child a {
    border-bottom: none;
  }

  .mobile-sub-links-flat li a:hover {
    background: #f8f9ff;
    color: #5460f9;
    border-left: none;
  }
}
