html {
  scroll-behavior: smooth;
}
.navbar {
  background-color: rgba(31, 31, 31, 0);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  z-index: 1000;
}
.logo {
  font-size: 1.7rem;
  font-weight: bold;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color:  rgb(93, 64, 55);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: #3b7ea1;
}
/* Hamburger button */
.menu-toggle {
  /*display: none;*/
  visibility: visible; /* Skryje element, ale ponechá jeho místo */
  opacity: 1; /* Zprůhlední element */
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle .bar {
  height: 3px;
  background-color: rgb(93, 64, 55, 0.81);
  width: 100%;
  border-radius: 2px;
  transition: all 0.4s ease;
}
/* RESPONSIVE: mobilní verze */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links a {
    color: #fffef0;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 30%;
    background-color: rgba(93, 64, 55, 0.81);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.4s ease;
  }
  .nav-links.active {
    right: 0;
  }
  /* Hamburger animation to X */
  .menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.open .bar:nth-child(2) {
    transform: translate(1000%, 0);
  }
  .menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}
