* {
  margin: 2px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 5px;
}

body, html {
  scroll-behavior: smooth;
  font-family: Arial, sans-serif;
  overflow-x: hidden;

  background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

/* Header layout */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  width: 100%;
  background-color: #1f282e;
  color: #ffffff;
  padding: 0 20px;
  overflow: hidden;
  position: relative;
}



#heading h1 {
  color: #e4ac84;
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: 1.5rem;
  cursor: pointer;
 text-shadow: 2px 2px 5px rgb(148, 86, 6);
     
}

#heading h1::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

#heading h1:hover::after {
  transform: scaleX(1);
}

/* Icons in header */


#ul1 i {
  position: relative;
  display: inline-block;
  cursor: pointer;
  padding: 5px;
  color: white;
  transition: transform 0.3s ease, color 0.3s ease;
}

#ul1 i::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

#ul1 i:hover::after {
  transform: scaleX(1);
}

#ul1 i:hover {
  transform: translateX(-5px);
  color: #0095ff;
}

/* Main nav (desktop) */
ul {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-transform: uppercase;
  cursor: pointer;
}

ul li {
  list-style: none;
  cursor: pointer;
}

/* Hamburger icon */
#icon {
  display: none;
  cursor: pointer;
}

/* Hide sidebar container completely by default */
#navsidebar {
  display: none;
}

/* Sidebar itself */
#sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 1000;
  color: #ffffff;
  height: 37vh;
  width: 40%;
  background: rgba(255, 255, 255, 0.1);
  
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
  padding-top: 50px;
  padding-left: 20px;
  list-style: none;
  flex-direction: column;
  gap: 20px;
  border-radius: 12px;
  display: flex;
}

#sidebar li {
  color: #ffffff;
  height: 30px;
  width: 100px;
  background-color: #1c272e;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#sidebar li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

#sidebar li:hover::after {
  transform: scaleX(1);
}

/* Close icon */
#sidebar i {
  position: absolute;
  right: 10px;
  top: 10px;
}

.ri-close-circle-fill {
  font-size: 30px;
  color: red;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 700px) {
  ul li{
    display: none;
  }
  
  #icon {
    display: block;
  }
  #navsidebar {
    display: block;
  }
}



  .search-box {
    position: relative;
    width: 300px;
  }

  .search-box input {
    width: 100%;
    padding: 10px 45px 10px 15px; /* space for the icon */
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
  }

  .search-box input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
  }

  .search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    padding: 0;
  }

  .search-box button:hover {
    color: #007BFF;
  }




/* Border Beam */
.border-beam {
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 50%;
  height: 1.5px;
  background-color: linear-gradient(90deg, transparent, #ff00cc, #00ffff, transparent);
  animation: beamMove 2.5s linear infinite;
}

@keyframes beamMove {
  0% {
    left: -50%;
  }
  100% {
    left: 100%;
  }
}