@import url(../style.css);
.logo img {
  width: 100%;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.nav_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  overflow: hidden;
}
/*contact___bar */
.contact__bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  .phone a {
    cursor: pointer;
  }
  .phone a:hover,
  .email:hover {
    color: indianred;
    transition: color 0.5ms;
  }
}
.contact__bar i {
  color: #333;
  font-size: 20px;
}
/* navbar start ==============*/
.nav__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 10px 0;
  .logo {
    width: 3rem;
  }

  .menu__bar ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    background: ghostwhite;
    border-radius: 0.8rem;
    padding: 0.8rem;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    position: relative;

    li a {
      text-decoration: none;
      display: inline-block;
      color: black;
      margin: 0 10px;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      border-bottom: 1px dashed black;
      &:hover {
        color: orangered;
        font-weight: 500;
        transition: color 0.5ms;
        border-bottom: 0;
      }
    }
    li a::after {
      content: "";
      display: block;
      width: 0;
      height: 2px;
      background: orangered;
      transition: width 0.3s;
    }
    li a:hover::after {
      width: 100%;
    }
  }
}
.auth_btns {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.log__btn {
  color: black;
  border: 1px solid red;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.3s;
  &:hover {
    background: darkred;
    color: white;
  }
}

.signup_btn {
  background: darkred;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.3s;
  &:hover {
    background: darkred;
  }
}

.menu__bar ul li a.active {
  color: orangered !important;
}

/* Sidebar styles */
.sidebar__menu {
  position: fixed;
  top: 0;
  right: -500px; /* Initially hidden */
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  z-index: 1001;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar__menu.active {
  right: 0; /* Show sidebar when active */
}

.sidebar__close {
  align-self: flex-end;
  cursor: pointer;
  i {
    font-size: 1.5rem;
    color: #333;
  }
}

.sidebar__menu ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.sidebar__menu ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.sidebar__menu ul li a:hover {
  color: orangered;
}

.sidebar__auth {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
  padding-bottom: 6rem;
}

/* Overlay when sidebar is active */
.sidebar__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.sidebar__overlay.active {
  display: block;
}

/* media queries*/
@media (max-width: 768px) {
  .nav_container {
    padding: 0;
  }
  .nav__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    background: #fff;
  }
  .menu__bar {
    display: none;
  }
  .logo img {
    width: 50px;
    height: 50px;
  }

  .menu__bar ul {
    display: none;
  }

  .contact__bar {
    display: none;
  }

  .auth_btns {
    display: none;
  }

  /* Make sure hamburger menu is visible on mobile */
  .humberger__menu {
    display: block;
    cursor: pointer;
    i {
      font-size: 1.5rem;
      color: indianred;
    }
  }
}
@media (min-width: 769px) {
  .humberger__menu {
    display: none;
  }

  /* Hide sidebar on larger screens */
  .sidebar__menu {
    display: none !important;
  }

  .sidebar__overlay {
    display: none !important;
  }
}
