
/* Hamburger Menu */
.hamburger-menu {
    display: none;
    z-index: 10;
    position: fixed;
    top: 10px;
    right: 20px;
    padding: 20px;
    border-radius: 5px;
    cursor: pointer;
    background-color: transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.479);
  }
  
  .ham-bar {
    width: 70%;
    height: 4px;
    background-color: rgb(255, 155, 5);
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform .6s, opacity .8s, top .6s;
  }
  
  .bar-top { top: 25%; }
  .bar-bottom { top: 75%; }
  

  .hamburger-menu.active {
    background-color: rgb(155, 128, 78);
    transition: background-color 0.5s ease-in-out;
  }


  .hamburger-menu.active .bar-top {
    transform: translate(-50%, -50%) rotate(-315deg);
    top: 50%;
  }
  
  .hamburger-menu.active .bar-mid { opacity: 0; }
  
  .hamburger-menu.active .bar-bottom {
    transform: translate(-50%, -50%) rotate(-225deg);
    top: 50%;
  }

/* Navbar */
nav {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: Add a subtle shadow */
  position: fixed;
  right: -0.2%;
  top: 0;
  z-index: 10;
  background-color: transparent; /* Make the navbar transparent */
  transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Transition for background color and shadow */
}

nav ul {
  list-style: none;
  display: flex;
  transition: all 0.3s ease; /* Smooth transition for list items */
}

nav li {
  display: flex;
}

nav a {
  text-shadow: 2px 2px rgba(82, 82, 82, 0.459);
  display: flex;
  text-decoration: none;
  color: rgb(255, 255, 255);
  padding: 15px 20px;
  transition: color 0.3s ease, background-color 0.3s ease; /* Transition for text color and background */
}

nav a:hover {
  background-color: rgb(184, 133, 91);
  transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

nav a.active-link {
  color: rgb(255, 147, 59);
  background-color: rgba(124, 84, 23, 0.555);
  transition: color 0.3s ease, background-color 0.3s ease; /* Transition for active link */
}

@media screen and (max-width: 700px) {

  .hamburger-menu {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 275px;
    width: min(15em, 100%);
    z-index: 10;
    transition: right 300ms ease-in-out, background-color 0.3s ease, box-shadow 0.3s ease; /* Transition for right and other properties */
    background-color: rgb(116, 97, 77);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  nav.show {
    right: 0;
  }

  nav.show ~ #overlay {
    display: block;
  }

  nav ul {
    width: 100%;
    flex-direction: column;
    transition: all 0.3s ease; /* Smooth transition for navbar items */
  }

  nav a {
    width: 100%;
    padding-left: 2.5em;
  }

  nav a.active-link {
    background-color: rgb(75, 30, 0);
    transition: color 0.3s ease, background-color 0.3s ease; /* Transition for active link */
  }
}

/* Scroll Effects */
#navbar.scroll {
  background-color: rgb(46, 32, 17);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: Add a subtle shadow */
  transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Transition for scroll effects */
  transition: right 300ms ease-in-out, background-color 0.3s ease, box-shadow 0.3s ease; /* Transition for right and other properties */

}

#navbar a.scroll {
  color: rgb(255, 255, 255);
  transition: color 0.3s ease; /* Transition for scroll link text color */
}

#navbar a:hover.scroll {
  background-color: rgb(255, 123, 0);
  transition: background-color 0.5s ease; /* Smooth transition for scroll hover effect */
}

nav a.active-link.scroll {
  transition: background-color 0.5s ease;
  background-color: rgb(117, 53, 0);
}

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark background */
    z-index: 3; /* Ensure it's behind the navbar */
    visibility: hidden; /* Initially hidden */
    opacity: 0; /* Initially invisible */
    transition: opacity 0.3s ease, visibility 0s linear 0.3s; /* Transition opacity, with delay for visibility */
  }
  
  .overlay.active {
    visibility: visible; /* Make it visible when active */
    opacity: 1; /* Fully visible when active */
    transition: opacity 0.3s ease, visibility 0s linear 0s; /* Reset the delay once it's visible */
  }
  