/* General Styles */
.navbar {
  background-color: #333;
  color: white;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: start; /* Align contents to the left */
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for clarity */
}

.navbar-container {
  display: flex;
  justify-content: start; /* Keep items aligned left */
  align-items: center;
  width: 100%;
  max-width: 720px; /* Reduced width to make menu smaller */
  padding-left: 1rem; /* Align navbar contents with the page */
}

/* Logo Styles */
.navbar-logo {
  margin-left: 0.5rem; /* Add space between the separator and the logo */
}

.navbar-logo a {
  text-decoration: none;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Navbar Links */
.navbar-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links li {
  margin-left: 1rem;
}

.navbar-links a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
}

/* Hamburger Menu Button */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  border-right: 1px solid white; /* Add a vertical separation bar */
  padding-right: 0.5rem; /* Add spacing inside the button */
}

/* Anchor Link Fix */
html {
  scroll-padding-top: 80px; /* Adjust based on navbar height */
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  .navbar-container {
    flex-direction: row;
    justify-content: start;
    align-items: center;
    padding-left: 0.5rem; /* Keep consistent alignment on mobile */
  }

  .navbar-toggle {
    display: block;
    margin-right: 0.5rem; /* Add spacing before the logo */
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    background-color: #333;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 0.5rem 0;
  }

  .navbar-links li {
    margin: 0;
    padding: 0.5rem;
  }

  .navbar-links a {
    font-size: 1.2rem;
    text-align: left;
  }

  .navbar-links.active {
    display: flex;
  }
}

