/* ============================================================
   SkyGroupGh — Header enhancements (Cyan -> Dark Glass)
   ============================================================ */

/* 1. Base Navbar Setup */
.navbar-modern {
  transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease;
}

.navbar-modern .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.5rem !important; 
}

.navbar-modern .navbar-nav .nav-item {
  margin: 0 !important;
  padding: 0 !important;
}

/* 2. Uniform padding and White text for all links */
.navbar-modern .navbar-nav .nav-link,
.navbar-modern .navbar-nav .nav-link.active {
  position: relative;
  padding: 1.5rem 1.25rem !important; 
  font-weight: 500;
  color: #ffffff !important; /* Always white on the cyan background */
  transition: color .25s ease;
}

/* 3. SCROLLED STATE: Dark Navy Glass */
.navbar-modern.is-scrolled {
  background: rgba(6, 20, 41, 0.95) !important; /* Overrides cyan when scrolling */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Logo sizing */
.navbar-modern .navbar-brand img {
  transition: height .35s ease;
  height: 80px; 
}
.navbar-modern.is-scrolled .navbar-brand img {
  height: 50px; 
}

/* --- Animated underline ---------------------------------------------- */
.navbar-modern .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1rem;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}

.navbar-modern.is-scrolled .navbar-nav .nav-link::after {
  background: #0d6efd; /* Blue underline when scrolled */
}

.navbar-modern .navbar-nav .nav-link:hover::after,
.navbar-modern .navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* --- Modern dropdown ------------------------------------------------- */
.navbar-modern .dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: .5rem;
  margin-top: 0 !important;
  animation: dropdown-fade .25s ease both;
}
@keyframes dropdown-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.navbar-modern .dropdown-item {
  padding: .65rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  color: #1f2937 !important;
  transition: background-color .2s ease, color .2s ease, padding-left .2s ease;
}
.navbar-modern .dropdown-item:hover,
.navbar-modern .dropdown-item:focus {
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd !important;
  padding-left: 1.25rem;
}
.navbar-modern .dropdown-item.active {
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd !important;
  font-weight: 600;
}

.navbar-modern .dropdown-toggle::after {
  transition: transform .25s ease;
  vertical-align: middle;
  margin-left: .35rem;
}
.navbar-modern .dropdown-toggle.show::after {
  transform: rotate(180deg);
}

/* --- Mobile menu ----------------------------------------------------- */
@media (max-width: 991.98px) {
  .navbar-modern .navbar-collapse {
    background: #ffffff;
    border-radius: 14px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  }
  .navbar-modern .navbar-nav {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 0 !important;
  }
  .navbar-modern .navbar-nav .nav-link {
    color: #1f2937 !important;
    padding: .75rem 1rem !important;
    width: 100%;
    border-radius: 8px;
  }
  .navbar-modern .navbar-nav .nav-link::after {
    display: none;
  }
  .navbar-modern .navbar-nav .nav-link:hover,
  .navbar-modern .navbar-nav .nav-link.active {
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd !important;
  }
  .navbar-modern .dropdown-menu {
    box-shadow: none;
    background: #f8f9fc;
    margin-top: .25rem !important;
  }
}