/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.7); /* semi-transparent black */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0; 
  padding-bottom: 0; 
  padding-left: 40px;
  padding-right: 40px;
  color: white;
  z-index: 10; /* stay on top */
}

.right-side {
  display: flex;
  align-items: center;
  gap: 20px; /* Gap between nav links and lang switch */
  height: 60px; /* fix the right container exactly to the same hight as the navbar itself */
}

.navbar a.logo {
  font-weight: bold;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  text-decoration: none;    /* ensure there is no underline for a link */
  color: white;  /* Ensure it's white by default */
}

.navbar a.logo img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}
.navbar a.logo:visited,
.navbar a.logo:hover,
.navbar a.logo:active {
  color: white;
  text-decoration: none;
}


.navbar nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
}

.navbar nav a:hover {
  text-decoration: underline;
}

.navbar .lang-switch {
  display: flex;
  gap: 8px;
}

.navbar .lang-switch button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.navbar .lang-switch img.lang-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-icon {
  color: white;
  width: 32px;
  height: 32px;
  margin-bottom: 5px;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

#navbar-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#navbar-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 14px;
}

#navbar-links a:hover {
  text-decoration: underline;
}

#navbar-links a:hover .nav-icon {
  fill: #FFD700; /* Gold on hover */
}

/* Hamburger button */
#hamburger {
  display: none; /* hidden by default on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

#hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

/* Animate hamburger into X when open */
#hamburger.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#hamburger.open .bar:nth-child(2) {
  opacity: 0;
}
#hamburger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* -----------------------
   Mobile / small screen navbar
----------------------- */
@media (max-width: 768px) {
  /* Show hamburger */
  #hamburger {
    display: flex;
  }

  /* Hide nav links by default */
  #navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* below navbar */
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 10px 0;
    z-index: 20;
  }

  /* Show links when hamburger is active */
  #navbar-links.active {
    display: flex;
  }

  /* Stack language buttons below nav links */
  .navbar .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .right-side {
    gap: 10px; /* smaller gap on mobile */
  }
}


