/* Floating rounded navbar */
.floating-navbar {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 1300px;
  background-color: rgba(65, 86, 120, 0.7); /* translucent NavyBlue */
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Layout inside navbar */
.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo area */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

.brand-text {
  color: white;
  font-weight: normal;
  font-size: 1.2rem;
}

/* Links */
.navbar-links {
  display: flex;
  gap: 2rem;
}

.navbar-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.navbar-links a:hover {
  color: aquamarine;
}

.navbar-links a.active {
  background-color: rgba(255, 255, 255, 0.25); /* translucent white */
}

.navbar-links a.activePage {
  color: #b8df4f;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(9, 47, 80, 0.95);
  min-width: 300px;
  z-index: 9999;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 0.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: nowrap;
  right: 0; /* Align to right edge in mobile */
}


/* Show the dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Dropdown items */
.dropdown-content a {
  color: white;
  padding: 0.50rem 1rem;
  display: block;
  text-decoration: none;
}

.dropdown-content a:hover {
  color: aquamarine
}


/* Responsive behavior */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
    flex-direction: column;
    background-color:  rgba(12, 58, 98, 0.95);
    position: absolute;
    top: 60px;
    right: 1rem;
    width: 50vw;
    padding: 1rem;
    border-radius: 0.75rem;
    gap: 1.5rem;
  }

  .navbar-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}
