/* ---- Responsive Navbar ---- */

#home-navigation {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: black;
  width: 98%;
  position: sticky;
  top: 0;
  border-bottom: 1px solid white;
  z-index: 20;
}


#sidebar {
  display: none;
}

#nav-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 5rem;
  list-style-type: none;
  padding-left: 0;
}

#nav-buttons li button {
  color: #8A2BE2;
  font-size: 2rem;
  border: none;
  border-radius: 1rem;
}

#hamburger-menu {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 30;
}

#sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 250px;
  height: 100%;
  background: black;
  box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3rem;
  z-index: 100;
}

#sidebar ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

#sidebar li {
  margin: 1rem 0;
}

#sidebar button {
  color: white;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

#close-sidebar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}


/* ---- college logo ---- */

#jss-logo {
  height: 4.5rem;
  width: 5rem;
  z-index: 30;
  object-fit: contain;
}

#anveshan-side-logo {
  width: 7.5%;
  z-index: 30;
  cursor: pointer;
}

/* ---- nav buttons animation ---- */

.btn-elegant {
  font-family: "Spy Agency", sans-serif;
  padding: 10px 20px;
  color: #8A2BE2;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  font-weight: bold;
  background-color: transparent;
}

.btn-elegant:hover {
  border-color: #666666;
  background: #292929;
  color: white;
}

/* ---- Responsive Design ---- */
@media (max-width: 768px) {

  #home-navigation {
    padding: 1rem;
    position: fixed;
    width: 90%;
  }

  #nav-buttons {
    display: none;
  }

  #hamburger-menu {
    display: block;
  }

  #sidebar {
    display: block;
    z-index: 999;
    border-right: #892be25f 2px solid;
  }

  #sidebar ul li button {
    color: #8A2BE2;
  }

  #jss-logo {
    display: none;
  }

  #anveshan-side-logo {
    width: 20%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #home-navigation {
    padding: 1rem;
    position: fixed;
  }

  #nav-buttons {
    display: none;
  }

  #hamburger-menu {
    display: block;
  }

  #sidebar {
    display: block;
    z-index: 999;
    border-right: #892be25f 2px solid;
  }

  #sidebar ul li button {
    color: #8A2BE2;
  }

  #jss-logo {
    display: none;
  }

  #anveshan-side-logo {
    width: 20%;
  }
}

@media (min-width: 1024px) and (max-width: 1600px) {
  #home-navigation {
    padding: 1rem;
    position: fixed;
  }

  #anveshan-side-logo {
    width: 15%;
  }

  #nav-buttons {
    display: none;
  }

  #hamburger-menu {
    display: block;
  }

  #sidebar {
    display: block;
    z-index: 999;
    border-right: #892be25f 2px solid;
  }

  #sidebar ul li button {
    color: #8A2BE2;
  }

  #jss-logo {
    display: none;
  }
}

@media (min-width: 1600px) and (max-width: 1785px) {
  #nav-buttons li button {
    font-size: 1.6rem;
  }
}


#sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.sidebar-active #sidebar-backdrop {
  display: block;
}

.sidebar-active #sidebar {
  left: 0;
}