@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@300;700;900&display=swap");

/* title heading change */
#navbar {
  z-index: 1000;
  min-height: 10vh;

  /* Set the background to white */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  /* Black shadow */
  border-bottom: none;
  /* Remove the bottom line */
  overflow: initial;
  /* Avoid conflicts with other layouts */

  background-color: #b3bef9;
  /* background: linear-gradient(72deg , #000000eb , #6386f42e); */
}

.header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 4rem);
}

.title-wrapper {
  display: grid;
  align-items: center;
  justify-content: center;
}

.bitbox-title {
  color: #fff;
  font-size: clamp(1rem, 6vw, 4rem);
  font-size: clamp(0.8rem, 4vw, 3rem);
  font-family: "Exo 2", sans-serif;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.bitbox-title span {
  position: relative;
  display: inline-block;
}

.bitbox-title span:before,
.bitbox-title span:after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  overflow: hidden;
  width: 80%;
  color: #4af7ff;
  animation: glitch-animation 2s infinite linear alternate-reverse;
}

.bitbox-title span:before {
  left: 2px;
  text-shadow: -2px 0 #41537e;
}

.bitbox-title span:after {
  left: -2px;
  text-shadow: 2px 0 #4e535f;
}

.bitbox-title span:nth-child(1),
.bitbox-title span:nth-child(4) {
  text-transform: uppercase;
}

.bitbox-title span:nth-child(2),
.bitbox-title span:nth-child(3),
.bitbox-title span:nth-child(5),
.bitbox-title span:nth-child(6) {
  text-transform: lowercase;
}

@keyframes glitch-animation {
  0% {
    transform: translate(0);
  }

  25% {
    transform: translate(2px, -2px);
  }

  50% {
    transform: translate(-2px, 2px);
  }

  75% {
    transform: translate(2px, 0);
  }

  100% {
    transform: translate(-2px, -2px);
  }
}

.logoTitle {
  font-family: "medium";
  font-weight: lighter;
}

.mx-3 {
  border-radius: 50%;
}

#navbar ul li {
  margin-bottom: 0;
}

#navbar ul li:hover {
  border-radius: 1rem;
  transform: scale(1.025);
}

.nav-link {
  font-family: "Exo 2", sans-serif !important;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
}

.navbar-expand-lg .navbar-nav .dropdown-menu {
  position: absolute;
  min-width: 9rem;
  left: -50px;
  text-align: center;
}

.menu2 li {
  display: block;
  height: 100%;
  font-size: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-transform: uppercase;
  transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
  text-align: center;
  padding: 0 10px;
}

.menu2 li:after,
.menu2 li:before {
  content: "";
  position: absolute;
  display: block;
  border: 0px solid transparent;
  width: 0%;
  z-index: -10;
  height: 0%;
  transition: all 0.5s ease;
}

.menu2 li:after {
  width: 0%;
  height: 0%;
  top: 0;
  left: 0;
  border-top: 3px solid transparent;
  border-left: 3px solid transparent;
}

.menu2 li:before {
  width: 0%;
  height: 0%;
  right: 0;
  bottom: 0;
  border-bottom: 3px solid transparent;
  border-right: 3px solid transparent;
}

.menu2 li:hover::before,
.menu2 li:hover::after {
  width: 100%;
  height: 100%;
  border-color: #777;
}

.profile-img img {
  width: 45px;
  border-radius: 50%;
  cursor: pointer;
  outline: 2px solid black;
  background: white;
}

.uploadPro {
  border: 1px solid black;
  color: white;
  border-radius: 5px;
}

.uploadPro:hover {
  color: black;
}

.Navbar-Btn-Group {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  left: -1.5rem;
}

.Navbar-Btn-Group a {
  font-weight: bold;
  text-decoration: none;
  display: flex;
  color: white;
  justify-content: center;
  align-items: center;
}

/* Dark Mode Toggle Button */

.darkThemeBtn * {
  transition: all 0.3s;
}

.darkThemeBtn input {
  width: 0;
  height: 0;
  visibility: hidden;
}

.darkThemeBtn label {
  background-color: #000000;
  height: 50px;
  width: 50px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  border-radius: 3rem;
}

.darkThemeBtn label:active {
  border-radius: 5px;
}

.darkThemeBtn label svg {
  position: absolute;
  width: 16px;
  transition: 0.3s;
  z-index: 1;
}

.darkThemeBtn label .sun {
  width: 20px;
  opacity: 1;
  fill: orange;
}

.darkThemeBtn label .moon {
  opacity: 0;
}

.darkThemeBtn input:checked+label {
  background-color: white;
  border: 1px solid white;
}

.darkThemeBtn input:checked+label svg.sun {
  fill: orange;
  color: orange;
  opacity: 0;
}

.darkThemeBtn input:checked+label .moon {
  opacity: 1;
  fill: black;
}

.darkThemeBtn input:not(:checked)+label svg.sun {
  opacity: 1;
}

.darkThemeBtn input:not(:checked)+label svg.moon {
  opacity: 0;
}

.loginbtn {
  background: black;
  border: 3px solid white;
  color: white;
  padding: 0.5rem 1rem;
  /* Add padding for better appearance */
  text-decoration: none;
  /* Remove underline from text */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  /* Shadow to create a floating effect */
  transition: color 0.3s, box-shadow 0.3s;
  /* Smooth transition for color and shadow changes */
}

.loginbtn:hover {
  color: white;
  background: #1173eb;
  /* Make sure only one hover color is applied */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  /* Enhanced shadow effect */
}


/* .......................... */

.title-wrapper {
  display: grid;
  /* display: flex; */
  align-items: center;
  justify-content: center;
}

.bitbox-title {
  color: #fff;
  font-size: clamp(3rem, 10vw, 6rem);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.bitbox-title span {
  position: relative;
  display: inline-block;
}

.bitbox-title span:before,
.bitbox-title span:after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  overflow: hidden;
  width: 100%;
  color: #4af7ff;
  animation: glitch-animation 2s infinite linear alternate-reverse;
}

.bitbox-title span:before {
  left: 2px;
  text-shadow: -2px 0 #165bfb;
}

.bitbox-title span:after {
  left: -2px;
  text-shadow: 2px 0 #165bfb;
}

.bitbox-title span:nth-child(1),
.bitbox-title span:nth-child(4) {
  text-transform: uppercase;
}

.bitbox-title span:nth-child(2),
.bitbox-title span:nth-child(3),
.bitbox-title span:nth-child(5),
.bitbox-title span:nth-child(6) {
  text-transform: lowercase;
}

@keyframes glitch-animation {
  0% {
    transform: translate(0);
  }

  25% {
    transform: translate(2px, -2px);
  }

  50% {
    transform: translate(-2px, 2px);
  }

  75% {
    transform: translate(2px, 0);
  }

  100% {
    transform: translate(-2px, -2px);
  }
}

/* Upload Project */
.modal-backdrop {
  --bs-backdrop-zindex: 0;
}

/* Media query for desktop screens */
@media (min-width: 1280px) {
  .collapse {
    visibility: visible;
  }
}

/* Media query for mobile screens */
@media (max-width: 768px) {
  .logoTitle {
    font-size: 1rem;
  }

  form .btn {
    height: 30px !important;
    padding: 0.5rem !important;
  }

  .darkmode {
    width: 30px !important;
    height: 30px;
  }

  .Navbar-Btn-Group {
    margin-left: 1rem !important;
  }
}

.sidebar.open {
  left: 0;
  display: flex;
  /* Show sidebar */
}

.sidebar-links {
  list-style: none;
  padding: 20px;
}

.sidebar-links li {
  margin: 15px 0;
}

.sidebar-links a {
  text-decoration: none;
  /* Change according to your theme */
  font-size: 18px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin: 15px;
}

.sidebar-toggle {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
}

@media (min-width: 1280px) {
  .sidebar {
    display: none;
    /* Hide on larger screens */
  }

  .sidebar-toggle {
    display: none;
    /* Hide toggle on larger screens */
  }
}

/* Navbar styles */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.sidebar {
  position: absolute;
  top: 0;
  display: none;
  width: 250px;
  height: 100%;
  background-color: white;
  z-index: 1000;
}

.sidebar.open {
  right: 0;
  top: 12%;
}

.sidebar-links {
  list-style-type: none;
  padding: 0;
}

.sidebar-links li {
  padding: 1rem;
}

.sidebar-links li a {
  text-decoration: none;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.rnav {
  display: flex;
}

.main-content {
  margin-top: 10vh;
}


/* Navbar.css */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  /* Adjust as needed */
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
  transform: translateX(-100%);
  /* Initially hidden */
  z-index: 1000;
  background-color: #111;
  /* Change color based on theme */
}

.sidebar.open {
  transform: translateX(0);
  left: 0;
  display: flex;
}

/* Lock background scroll when sidebar is open */
.no-scroll {
  overflow: hidden;
}