/* ===== Navbar base ===== */
.navbar {
  padding: 0.6rem 0;
  background: #fff;
  overflow: visible;
}

.brand-mark {
  width: 90px;
  object-fit: contain;
}

.brand-text {
  font-size: 0.95rem;
  line-height: 1;
  margin-left: 0.4rem;
  color: #1e73be;
  font-weight: 700;
}

.nav-link {
  color: #5d5f6d;
  font-weight: 500;
  padding: 0.5rem 1.5rem !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #7b61ff !important;
}

.nav-item a:hover {
  -webkit-text-fill-color: transparent;
  /* reveal gradient */
  background-size: 100% 100%;
  transition: all 0.4s ease;
}

/* Active State - keep gradient */
.nav-item a.active {
  -webkit-text-fill-color: transparent;
  background-size: 100% 100%;
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 4px 5px rgb(16 24 40 / 4%);
}

.nav-item .dropdown-toggle::after {
  margin-left: 0.35rem;
}

/* ===== Right actions ===== */
.action-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* Segmented control container (Sign-in + Free Trial) */
.segmented {
  display: inline-flex;
  align-items: center;
  gap: 50px;
  border: 1.5px solid #bdb7ff;
  border-radius: 10px;
  padding: 15px 37px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(32, 35, 89, 0.06);
}

a.btn.btn-gradient.btn-pill {
  color: #fff;
  font-size: 18px;
  padding: 10px 30px;
  border-radius: 15px;
}

.seg-link {
  display: inline-block;
  border-radius: 10px;
  /* keep inner links rounded */
  font-size: 18px;
  text-decoration: none;
  font-weight: 500;
  line-height: 1;
  color: #7b4dff;
  /* purple for non-current */
  white-space: nowrap;
}

.seg-link.is-current {
  /* match screenshot: Sign-in looks darker */
  color: #141a24;
}

.seg-link:focus-visible {
  outline: 2px solid #cfcaff;
  outline-offset: 2px;
}

/* Standalone gradient CTA */
.btn-pill {
  border-radius: 10px;
  padding: 0.65rem 1.15rem;
  font-weight: 700;
}

.btn-gradient {
  background: linear-gradient(90deg, #7b4dff 0%, #31d1c0 100%);
  color: #fff;
  border: 0;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12) inset,
    0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-gradient:hover {
  filter: brightness(0.96);
  color: #fff;
}

.nav-item {
  padding: 8px 24px;
}

li.nav-item a {
  color: #000;
  /* Default black text */
  text-decoration: none;
  transition: all 0.4s ease;
  background: linear-gradient(95deg, #2d68b6 0%, #6f86ff 45%, #2ad6c6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #000;
  /* show black by default */
}

.navbar-nav .dropdown {
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.navbar-nav .dropdown .nav-link {
  padding: 0.5rem 1rem !important;
  margin: 0;
  flex: 1;
}

/* Dropdown toggle button */
.services-dropdown-btn {
  background: none;
  border: none;
  padding: 0px;
  cursor: pointer;
  color: #5d5f6d;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  height: 100%;
}

.services-dropdown-btn:hover {
  color: #7b61ff;
}

.services-dropdown-btn[aria-expanded="true"] i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.services-dropdown-btn i {
  transition: transform 0.3s ease;
}

/* Dropdown menu styling */
.navbar-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1040;
  min-width: 200px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin-top: 0.125rem;
}

.navbar-nav .dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1.5rem;
  clear: both;
  color: #5d5f6d;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  color: #7b61ff;
  background-color: #f5f3ff;
}

/* Show dropdown when active */
.navbar-nav .dropdown-menu.show {
  display: block;
}

@media (min-width: 1200px) and (max-width: 1600px) {
  li.nav-item a {
    font-size: 16px !important;
    font-weight: 500;
  }

  .nav-item {
    padding: 8px 10px;
  }

  .segmented {
    gap: 20px;
    padding: 15px 20px;
  }

  a.btn.btn-gradient.btn-pill {
    padding: 10px 16px;
    font-size: 16px;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .ai-services-section {
    padding: auto 30px;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
    margin-right: 10px !important;
  }

  .segmented {
    gap: 25px !important;
    padding: 14px 20px !important;
  }

  .ms-lg-4 {
    margin-left: 0.5rem !important;
  }

  a.btn.btn-gradient.btn-pill {
    font-size: 14px !important;
  }

  .nav-item {
    padding: 8px 7px !important;
  }

  li.nav-item a {
    font-size: 15px !important;
    font-weight: 500 !important;
  }

  .seg-link {
    font-size: 16px !important;
  }

  .action-group {
    gap: 10px !important;
  }
}

@media (max-width: 768px) {
  .action-group {
    display: block;
    align-items: center;
  }

  a.btn.btn-gradient.btn-pill {
    margin-top: 20px;
  }

  /* Mobile dropdown responsive styles */
  .navbar-nav .dropdown {
    flex-wrap: wrap;
    width: 100%;
  }

  .navbar-nav .dropdown .nav-item {
    width: 100%;
  }

  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin-top: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background-color: #f8f9fa;
  }

  .navbar-nav .dropdown-menu.show {
    display: block;
  }

  .navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    color: #5d5f6d;
    background-color: transparent;
  }

  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item:focus {
    background-color: #e9ecef;
    color: #7b61ff;
  }

  .services-dropdown-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    z-index: 10;
  }
}

@media (max-width: 1100px) {
  .dropdown {
    padding: 0 !important;
  }
}

/*Services dropdown mega menu*/
.megamenu-services-2 {
  position: absolute;
  top: 103px;
  width: 100%;
  left: 0;
  /* background: #f3f3f3; */
  height: auto;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mega-menu-services-wrapper {
  max-width: 1625px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 4px 5px 2px rgb(16 24 40 / 4%);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.mega-menu-card-holder {
    width: 100%;
    padding: 10px;
    /* gap: 10px; */
    /* border: 1px solid; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mega-menu-item-image {
  width: 100%;
  height: auto;
  background-image: url("../assets/images/right-service.webp");
  height: 250px;
  border-radius: 8px;
}

.mega-menu-item-title {
  font-size: 20px;
  font-weight: 500;
}

.mega-menu-item-title:hover {
  background: linear-gradient(95deg, #2d68b6 0%, #6f86ff 45%, #2ad6c6 100%);
  /* -webkit-background-clip: text; */
  background-clip: text;
}

/* ===== Responsive Mega Menu & Dropdown ===== */

/* Desktop: Show mega menu, hide dropdown */
@media (min-width: 992px) {
  /* Hide dropdown on desktop */
  .dropdown-menu-mobile {
    display: none !important;
  }

  /* Show mega menu on desktop */
  .megamenu-desktop {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .megamenu-desktop.show {
    display: flex;
    opacity: 1;
    visibility: visible;
  }
}

/* Mobile: Show dropdown, hide mega menu */
@media (max-width: 991px) {
  /* Show dropdown on mobile */
  .dropdown-menu-mobile {
    display: block !important;
  }

  /* Hide mega menu on mobile */
  .megamenu-desktop {
    display: none !important;
  }

  /* Ensure chevron button works with Bootstrap dropdown on mobile */
  .services-dropdown-btn {
    display: inline-flex;
  }
}

.services-item-menu {
    padding-right: 10px;
}

.rims-image-header{
  background-image: url('../assets/images/index/rims-extraction.svg');
  background-size: cover;
  background-position: center;
}
.erp-image-header{
  background-image: url('../assets/images/index/ERP-Software.svg');
  background-size: cover;
  background-position: center;
}
.pie-image-header{
  background-image: url('../assets/images/index/Dpaas-ills.svg');
  background-size: cover;
  background-position: center;
}
.techno-image-header{
  background-image: url('../assets/images/index/tech-consulting.svg');
  background-size: cover;
  background-position: center;
}