/* Navbar CSS */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  box-sizing: border-box;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  /* Adjusted padding */
}

.nav.scrolled {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav.scrolled .navmenu li a {
  color: black;
}

.nav.scrolled .auth span {
  color: black;
}

.nav.scrolled #login {
  background-color: #e0e0e0;
  /* Darken button when navbar is white */
}

/* Logo */
.logo {
  flex: 1;
}

.logo img {
  /* Ensure logo has a reasonable size if needed, though strictly requested move only */
  max-height: 80px;
}

.navmenu {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.navmenu li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.navmenu li a:hover {
  color: #fec72d;
  transform: translateY(-2px);
}

.navmenu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fec72d;
  transition: width 0.3s ease;
}

.navmenu li a:hover::after {
  width: 100%;
}

.nav.scrolled .navmenu li a:hover {
  color: #424242;
}

.nav.scrolled .navmenu li a::after {
  background-color: #424242;
}

/* Auth Buttons */
.auth {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.auth button {
  padding: 8px 24px;
  margin-left: 10px;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

#login {
  background-color: white;
  color: black;
  border-radius: 50px;
}

#regist {
  background-color: #fec72d;
  color: black;
  border-radius: 50px;
}

/* Welcome Text */
.auth span {
  color: white;
  margin-right: 15px;
  font-weight: 500;
}

#logout {
  background-color: #ff4d4d;
  color: white;
  border-radius: 50px;
}