.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.navbar .logo {
  height: 60px; /* Adjust logo size as needed */
  margin-right: 20px;
}

.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.navbar li {
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.navbar a {
  color: #083958;
  text-decoration: none;
  font-size: 18px;
  padding: 8px 16px;
  position: relative;
}

.navbar a.selected {
  color: orange;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px; /* Adjust distance from the text */
  height: 2px;
  background-color: orange;
  width: 0;
  transition: width 0.3s ease;
}

.navbar a:hover {
  color: orange;
}

.navbar a:hover::after {
  width: 120%; /* Increase underline width on hover */
  left: -10%;   /* Center the extended underline */
}

.navbar .menu-icon {
  display: none;
  font-size: 50px;
  margin-right: 20px;
  color: #083958;
  cursor: pointer;
}

.navbar .close-icon {
  display: none;
  margin-right: 20px;
  color: #083958;
  cursor: pointer;
  z-index: 1000;     /* Ensure it stays on top */
}


/* Mobile view */
@media (orientation: portrait) {
  .navbar .logo {
    height: 100px; /* Adjust logo size as needed */
    margin-right: 20px;
  }

  .navbar .navbar-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;  /* Full viewport width */
    height: 100vh; /* Full viewport height */
    background-color: white;
    padding: 20px;
    overflow: hidden;  /* Prevent scrolling within the overlay */
    z-index: 100;     /* Ensure it stays on top */
    transform: translateX(100%); /* Start off-screen to the right */
    transition: transform 0.3s ease;
  }
  
  .navbar .menu-icon {
    display: block; /* Show hamburger icon */
    font-size: 100px;
  }

  .navbar.show .menu-icon {
    display: none; /* Show hamburger icon */
  }

  .navbar .close-icon {
    font-size: 100px;
    display: none;
  }

  .navbar.show .close-icon {
    display: block; /* Show hamburger icon */
  }

  .navbar.show .navbar-links {
    transform: translateX(0); /* Slide in to view */
  }

  .navbar a {
    font-size: 40px;
    margin: 10px;
  }
}
