/* Hamburger Menu Styles */
.hamburger-menu {
  position: fixed; /* Use fixed position to stay in place on scroll */
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1030; /* Ensure it's above other content, especially Bootstrap's default z-index */
}

.hamburger-icon {
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: #0066cc; /* Primary color for the icon */
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

/* Hamburger icon animation to "X" */
.hamburger-icon.active span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.hamburger-icon.active span:nth-child(2) {
  opacity: 0;
  left: -30px;
}

.hamburger-icon.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

.hamburger-icon span:nth-child(1) { top: 0px; }
.hamburger-icon span:nth-child(2) { top: 9px; }
.hamburger-icon span:nth-child(3) { top: 18px; }

/* Navigation Menu Panel */
.nav-menu {
  position: fixed;
  top: 0;
  left: -300px; /* Start off-screen */
  width: 300px;
  height: 100%;
  background-color: #e6f0ff; /* Lighter shade of primary color for the background */
  padding-top: 80px;
  transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1020;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.nav-menu.active {
  left: 0;
}

.nav-menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.nav-menu ul li {
  padding: 15px 25px;
  border-bottom: 1px solid #eee;
}

.nav-menu ul li a {
  text-decoration: none;
  color: #0066cc; /* Primary color for the link text */
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
  color: #0052a3;
}

/* Language Switcher Styles */
.nav-menu .language-switcher {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.nav-menu .language-switcher button {
  padding: 0.5rem 0.75rem;
  background: #f0f0f0;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  color: #0066cc;
  margin: 0 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.nav-menu .language-switcher button:hover {
  background: #e0e0e0;
  color: #0052a3;
}

/* Page Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s 0.4s;
  z-index: 1010;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}