/* Resetting default styles and setting font family */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Styles for the navbar */
.navbar {
  position: fixed;
  top: 4vh;
  right: 4vw;
  z-index: 9999;
  background-color: #bcb0b0;
  padding: 0 5px 5px;
  border-radius: 5px;
}

/* Styling for the navbar icon */
.navbar-icon {
  display: block;
  width: 30px;
  height: 30px;
  background-color: transparent;
  cursor: pointer;
}

/* Styles for the menu list */
.menu-list {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 998;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: none;
  flex-direction: column;
}

/* Styling for the links in the menu list */
.menu-list a {
  margin: 2%;
  text-decoration: none;
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  position: relative;
}

/* Styling for the line before the link text on hover */
.menu-list a::before {
  content: '';
  height: 7%;
  width: 0;
  background-color: rgba(255, 255, 255, 0.8);
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.5s;
  border-radius: 24px;
  margin: 2%;
}

/* Hover effect on menu list items */
.menu-list a:hover::before {
  width: 100%;
}

.menu-list a:hover {
  transform: scale(1.3);
}

/* Checkbox hack to toggle menu visibility */
#navbarCheckbox:checked ~ .menu-list {
  display: flex;
}

/* Hide the checkbox input */
#navbarCheckbox {
  display: none;
}

/* Styling for the hamburger icon */
.navbar-icon {
  position: relative;
}

.navbar-icon span {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #000000;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.navbar-icon span:nth-child(1) {
  transform: translateY(-8px);
}

.navbar-icon span:nth-child(2) {
  transform: translateY(0);
}

.navbar-icon span:nth-child(3) {
  transform: translateY(8px);
}

/* Hamburger icon animation when checkbox is checked */
#navbarCheckbox:checked ~ .navbar .navbar-icon span:nth-child(1) {
  transform: translateY(0) rotate(-45deg);
}

#navbarCheckbox:checked ~ .navbar .navbar-icon span:nth-child(2) {
  opacity: 0;
}

#navbarCheckbox:checked ~ .navbar .navbar-icon span:nth-child(3) {
  transform: translateY(0) rotate(45deg);
}



/* Your existing CSS styles here */

/* Show the dropdown content when the "SOLUTION" link is hovered or clicked */
#solution-dropdown:hover + .dropdown-content,
#solution-dropdown:focus + .dropdown-content,
.dropdown-content:hover {
    display: block;
}

/* Hide the checkbox input (for accessibility) */
#solution-dropdown {
    display: none;
}

/* Adjust dropdown content for vertical alignment */
.dropdown-content {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
    display: none;
}

/* Add margin to separate submenu items */
.dropdown-content a {
    margin: 2% 0;
}



/* Media query for screens smaller than 1000px */
@media (max-width: 1000px) {

  /* Styles for the navbar */
  .navbar {
    position: fixed;
    top: 2vh;
  }
}





/* Responsive font size adjustment for screens <= 600px */
@media (max-width: 600px) {
  /* Styling for the links in the menu list */
  .menu-list a {
    margin: 2%;
    text-decoration: none;
    color: #ffffff;
    font-size: 25px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
  }
  }