/* Reset default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* Navbar container */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #305367;
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: auto; /* fixed height */
    z-index: 10;
  }

/* Brand title */
.brand-title {
  font-size: 1.5rem;
  color: #fff;
}

/* Hamburger menu icon */
.toggle-button {
     display: none;
     flex-direction: column;
     justify-content: space-between;
     width: 24px;
     height: 21px;
     cursor: pointer;
     z-index: 20;
   }

   .toggle-button .bar {
     height: 3px;
     width: 100%;
     background-color: #fff;
     border-radius: 10px;
   }

   .navbar-links {
     display: flex;
   }

   .navbar-links ul {
     list-style: none;
     display: flex;
   }

   .navbar-links li {
     margin-left: 1.5rem;
     font-size: 0.8rem;
   }

   .navbar-links a {
     position: relative;
     text-decoration: none;
     color: white;
   }

   .navbar-links a::after {
     content: '';
     position: absolute;
     left: 0;
     bottom: -3px; /* space below the text */
     width: 100%;
     height: 2px;
     background-color: white;
     transform: scaleX(0);
     transform-origin: left;
     transition: transform 0.3s ease-in-out;
   }

   .navbar-links a:hover::after {
     transform: scaleX(1);
   }

/* Responsive styles */
@media (max-width: 968px) {
  .toggle-button {
    display: flex;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* just below navbar */
    left: 0;
    width: 100%;
    background-color: #333;
    z-index: 5;
  }

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

  .navbar-links ul {
    flex-direction: column;
    width: 100%;
  }

  .navbar-links li {
    text-align: center;
    padding: 1rem 0;
    margin: 0;
  }
} /* media query for mobile */
