/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.894);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0);
  transition: all 0.4s ease;
  padding: 10px 10px;
}

/* Navbar Brand / Logo */
.navbar-brand {
  margin-top: 10px;
  margin-right: 10px;
  margin-left: -5px;
}

.logo {
  height: 60px;
  width: auto;
  transition: all 0.9s ease;
}

.text-fallback {
  display: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Scroll effect */
.navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.755);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
  padding: 0.5rem 0;
}

/* ================= NAV LINKS ================= */
.navbar-nav {
  display: flex;
  justify-content: center; /* center menu */
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.navbar .nav-link {
  color: #2f3e46 !important;
  font-weight: 520;
  letter-spacing: 0.5px;
  font-size: 15px;
  margin-right: 49px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--accent) !important;
  transform: translateY(-1px);
}

/* Dropdown menus */
.navbar .dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(50px);
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  display: block;
  visibility: hidden;
  min-width: 200px;
}

.navbar .dropdown:hover .dropdown-menu,
.navbar .dropdown.show .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.navbar .dropdown-item {
  color: var(--dark);
  padding: 8px 20px;
  font-weight: 500;
  font-size: 14px;
  display: block;
  transition: all 0.2s ease;
  position: relative;
}

/* Submenu */
.dropdown-submenu {
  position: relative;
}

.sub-dropdown {
  position: absolute;
  left: 100%;
  top: -8px;
  margin-left: 1px;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(-15px);
  transition: all 0.3s ease 0.1s;
  min-width: 180px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(50px);
  border-radius: 12px;
  box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  display: none;
}

.dropdown-submenu:hover > .sub-dropdown {
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0);
}

.dropdown-submenu > .dropdown-item::after {
  content: "›";
  font-size: 16px;
  color: #ccc;
  margin-left: auto;
  padding-left: 10px;
  transition: all 0.3s ease;
}

.dropdown-submenu:hover > .dropdown-item::after {
  color: var(--secondary);
  transform: translateX(3px);
}

/* ================= CONTACT BUTTON ================= */
.nav-btn {
  font-family: "Montserrat", sans-serif;
  background-color: var(--accent);
  color: #fff;
  padding: 2px 20px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 400;
  transition: 0.3s;
}

.nav-btn:hover {
  transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
  .nav-btn {
    display: none; /* hide contact on mobile */
  }
  .navbar .nav-link {
    margin-right: 0;
    padding: 8px 0;
    text-align: center;
  }
  .navbar-nav {
    justify-content: flex-start;
    flex-direction: column;
  }
  .dropdown-submenu > .sub-dropdown {
    left: 100%;
    top: 0;
  }

  .logo {
    height: 45px;
    width: auto;
    transition: all 0.9s ease;
  }
}
