:root {
  --primary: #4a90e2;
  --background-light: #f6f8f6;
  --background-dark: #102216;
  --wireframe-muted: #212529bf;
  --wireframe-bg-light: #d3e1f2;
  --wireframe-bg-dark: #102216;
  --bg-blur-blue: #4a90e233;
  --dark-blue: #152e54;
}
.header-main {
  transition: all 0.3s ease;
  border-bottom: 1px solid #f1f1f1;
}

.navbar {
  padding: 15px 0;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.header-main-new a.nav-link {
  font-size: 18px;
  font-weight: 500;
}

.header-cta-btn {
  position: relative;
  background-color: var(--primary) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  border-radius: 25px !important;
  overflow: hidden;
  z-index: 1;
  color: #fff !important;
  border: none !important;
}

/* Animated layer */
.header-cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--dark-blue);
  transition: width 0.4s ease;
  z-index: -1;
}

/* Hover effect */
.header-cta-btn:hover::before {
  width: 100%;
}

/* Optional: ensure text stays visible */
.header-cta-btn:hover {
  color: #fff;
}

.mega-header-nav-new .main-navigation ul {
  list-style: none;
}

.mega-header-nav-new .main-navigation ul.sub-menu {
  list-style: none;
  margin-left: 20px;
  margin-bottom: 10px;
}

/* .mega-header-nav-new .main-navigation ul li {
  margin-bottom: 10px;
} */

.main-navigation ul li a i {
  margin-left: 5px;
}

.content_single-service {
  width: 60% !important;
  margin: 0 auto;
}

.feature-list {
  border: 1px solid #f8f8f8;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.feature-list:hover {
  border-color: var(--primary) !important;
  transform: translateY(-5px);
}

.single_page_cta.ready_proto .ready_sec p {
  font-size: 16px;
}

/* Nav Link Styling */
.nav-link {
  color: #111 !important;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 15px !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary) !important; /* Appinventiv Orange */
}

/* Contact Button Styling */
.btn-contact {
  background-color: #111;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Header Shadow on Scroll (handled by JS) */
.header-scrolled {
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
}

.right-service-form {
  border-radius: 20px;
}

.contactservoceform input,
.contactservoceform select,
.contactservoceform textarea {
  padding: 10px 20px;
  margin-bottom: 10px;
  border: none;
  border-bottom: 1px solid var(--primary);
  width: 100%;
}

.contactservoceform select {
  width: 100%;
  background-color: #fff;
}

.contactservoceform textarea {
  max-height: 100px;
}

.form_head_right h3 {
  color: var(--dark-blue);
}

.contactservoceform .wpcf7-response-output {
  color: var(--dark-blue);
  text-align: center;
  border-color: var(--dark-blue) !important;
  border-radius: 20px;
}

input.submitleadserviceform {
  background-color: var(--primary);
  border-radius: 10px;
  border: 1px solid var(--primary);
  box-shadow: 3px 3px 5px #c8c5c5;
  transition: all 0.4s ease;
}

input.submitleadserviceform:hover {
  background: #fff;
  color: var(--primary);
}

.all_industry_names .content_all_ind h2 {
  color: var(--dark-blue);
}

.more_specific_sec {
  background-color: var(--dark-blue);
}

.more_specific_cont .cont_more_cont {
  font-size: 18px;
  padding-top: 15px;
  margin: 0px 15px;
}

.more_specific_cont .head_more_cont h2 {
  font-size: 40px;
}

.cta_btns_more .btn-blue {
  color: #fff !important;
  background-color: var(--primary) !important;
  border: 1px solid var(--primary);
  font-size: 18px;
  transition: all 0.3s ease;
}

.cta_btns_more .btn-blue:hover {
  color: var(--dark-blue) !important;
  background-color: white !important;
  border: 1px solid var(--dark-blue) !important;
}

.single_page_cta .sec-head h2 {
  font-size: 28px;
}

.cta_single_content {
  max-width: 680px;
}

.header-main-new ul li {
  padding-bottom: 5px;
  font-size: 18px;
}

.cta_submenu_btn {
  background-color: var(--wireframe-bg-light);
  border-radius: 20px;
  box-shadow: 2px 2px 5px #c3c3c3;
}

.cta_submenu_btn .submenu_cta_label {
  padding-left: 15px;
}

.cta_submenu_btn .submenu_cat_btn {
  padding-right: 15px;
}

.nav_submenu_menu {
  padding-left: 40px !important;
}

.nav_submenu_menu h6.title {
  font-size: 18px;
}

@media (max-width: 991.98px) {
  /* 1. Allow the mobile menu to scroll internally */
  /* .navbar-collapse {
    max-height: 85vh; 
    overflow-y: auto; 
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch; 
  } */

  /* 2. Ensure the Megamenu doesn't force a page-level scroll */
  .header-main-new .megamenu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    max-height: none !important; /* Let the parent .navbar-collapse handle scrolling */
  }

  .header-main-new .dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* 3. Improve spacing so it's easier to scroll/tap */
  .megamenu .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* 1. Force the toggler button to the absolute top layer */
  .navbar-toggler {
    position: relative !important;
    z-index: 10001 !important; /* Higher than the menu */
    background: #fff !important;
    border: 1px solid #ddd !important;
  }

  /* 2. Position the menu below the header area */
  .navbar-collapse {
    position: fixed !important;
    top: 80px; /* Adjust this to match your actual header height */
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #fff !important;
    z-index: 10000 !important; /* Lower than the toggler */
    overflow-y: auto !important;
    padding: 20px;
    display: none;
  }

  /* 3. Bootstrap show class */
  .navbar-collapse.show {
    display: block !important;
  }

  /* 4. Fix for the 'Services' dropdown overlapping the button */
  .megamenu {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
  }

  /* 3. Ensure the body lock works with fixed positioning */
  body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
  }
}

/* --- DESKTOP STYLES (Keep your existing hover logic) --- */
@media (min-width: 992px) {
  .navbar .has-megamenu {
    position: static;
  }
  .navbar .megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: block !important;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
  }
  .nav-item.dropdown:hover > .megamenu {
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 550px) {
  .nav_submenu_menu {
    padding-left: 0px !important;
    margin-top: 20px !important;
  }

  .nav_submenu_menu h6 {
    margin-bottom: 10px !important;
  }

  .header-main-new .nav_submenu_menu .main-navigation ul#menu-ui-ux li a i {
    display: none;
  }

  .header-main-new
    .nav_submenu_menu
    .main-navigation
    ul#menu-ui-ux
    li
    ul.sub-menu {
    margin-bottom: 0px;
  }
}
