/* ========== NAVIGATION BAR ========== */
nav {
  height: 60px;
  background: rgba(25, 25, 112, 0.9); /* Midnight blue with transparency */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px); /* Glass effect */
}

/* Logo Styling */
.logo {
  display: flex;
  align-items: center;
  color: white;
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: -5px;
}

.logo-img {
  height: 40px;
  margin-right: 10px;
}

/* NAVIGATION ITEMS (Default Desktop) */
.nav-items {
  display: flex;
  align-items: center;
  gap: 10px; /* Uniform spacing */
  margin-top: -5px;
}

.nav-items a, .dropbtn {
  text-decoration: none;
  color: white;
  padding: 15px 20px; /* Even spacing */
  font-size: 1rem;
  position: relative;
  transition: all 0.3s ease;
  display: block;
  text-align: center;
  min-width: 150px; /* Equal width */
}

.nav-items a:hover, .dropbtn:hover {
  color: grey;
  transform: scale(1.1);
}

/* Underline effect */
.nav-items a::after, .dropbtn::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease-in-out;
}

.nav-items a:hover::after, .dropbtn:hover::after {
  width: 100%;
}

/* ========== DROPDOWN MENU ========== */
.dropdown {
  position: relative;
  display: inline-block;
  text-align: center;
}

.dropbtn {
  cursor: pointer;
}

/* Dropdown Content */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* Ensures dropdown starts exactly below */
  left: 0;
  width: 150px;
  background-color: rgba(25, 25, 112, 0.9);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 5px;
}

/* Dropdown Links */
.dropdown-content a {
  color: white;
  padding: 12px 15px;
  text-decoration: none;
  display: block;
  text-align: center; /* Align text with Account */
  font-size: 1rem;
  transition: all 0.3s ease;
}

.dropdown-content a:hover {
  background-color: rgba(255, 215, 0, 0.2);
}

/* Show dropdown on hover (Desktop) */
.dropdown:hover .dropdown-content {
  display: block;
}

/* ========== RESPONSIVE DESIGN ========== */
@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

/* Default: Hide Hamburger on Large Screens */
.hamburger {
  display: none !important; /* Force it to stay hidden */
}


  /* Mobile View: Show Hamburger */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block !important; /* Force it to show only on small screens */
    font-size: 30px;
    color: white;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 5px;
  }
}

  .nav-items {
    display: none; /* Hide menu by default */
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .nav-items a, .dropbtn {
    width: 100%;
    min-width: unset;
    padding: 12px;
  }

  /* Fix Dropdown Menu Position */
  .dropdown {
    width: 110%;
    text-align: center;
    position: relative;
  }

  .dropdown-content {
    position: absolute;
    width: 100%;
    top: 100%; /* Ensures dropdown stays directly below */
    margin-top: 7.5px;
    background-color: rgba(25, 25, 112, 0.9);
    z-index: 1000;
  }

  /* Show Menu When Clicked */
  .nav-items.show {
    display: flex;
  }
}
.navbar .hamburger {
  display: none;
}

