/* Added Remix Icon import */
@import url("https://cdn.jsdelivr.net/npm/remixicon@4.3.0/fonts/remixicon.css");

.navbar {
  background-color: white;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.navbar-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  height: 80px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  text-decoration: none;
}

.logo-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: orangered;
  margin: 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Updated navbar toggle to use Remix Icons instead of hamburger animation */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  width: 50px;
  height: 50px;
}

.navbar-toggle i {
  font-size: 24px;
  color: orangered;
  transition: all 0.3s ease;
}

.menu-open-icon,
.menu-close-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav-links {
  list-style-type: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: orangered;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: orangered;
}

.buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

button {
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  border: none;
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
  font-weight: 500;
}

button:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

#login {
  background: orangered;
  color: white;
}

#login:hover {
  background: rgb(200, 45, 0);
  box-shadow: 0 2px 4px rgba(255, 69, 0, 0.2);
}

#login a {
  text-decoration: none;
  color: #fff;
}

#signup:hover {
  background: #e6e6e6;
}
#signup a {
  text-decoration: none;
  color: #000;
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }

  .nav-wrapper {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .navbar-toggle[aria-expanded="true"] + .nav-wrapper {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 1rem;
    width: 100%;
  }

  .nav-links li a::after {
    display: none;
  }

  .nav-links li a:hover {
    background: #f8f8f8;
  }

  .buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  #login,
  #signup {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    position: static;
    width: auto;
    box-shadow: none;
    background: none;
  }
}
