
header {
  position: fixed;
  top: 1.2rem;
  left: 0;
  right: 0;
  z-index: 1111;
}

header > nav {
  background-color: #BF3100;
  padding: 1rem 2rem;
  width: 90%;
  border-radius: 6px;
  margin: 0 auto;
  transition: 1s ease-in-out;
  opacity: 1;
}

header > nav.hidden {
  opacity: 0;
}

.nav-ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-ul > li {
  margin-right: 1rem;
  position: relative;
}

.nav-ul > li > a {
  color: #fff;
  text-decoration: none;
}

.nav-services {
  position: relative;
}

.services-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
}

.services-dropdown a {
  color: #000;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.services-dropdown a:hover,
.services-dropdown a:focus {
  background-color: #f1f1f1;
}

.nav-services:focus-within .services-dropdown,
.nav-services:hover .services-dropdown {
  display: block;
}

.nav-services > a:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}


header > nav > ul > li {
  margin-right: 1rem;
}

nav > a > img {
  width: 5rem;
}

nav > button {
  display: none;
}

/* .navigation {
  display: none;
} */

.navigation {
  background: hsl(0 0% 0% /0.8);
  transition: transform 350ms ease-out;
}

.toggle {
  z-index: 11111111;
}

/* side menu */
.navigation {
  position: fixed;
  flex-direction: column;
  justify-content: initial;
  gap: 2rem;
  inset: 0 0 0 73%;
  padding: 10rem 2rem;
  transform: translateX(100%);
  z-index: 111111;
  transition: transform 350ms ease-out, opacity 350ms ease-out;
  opacity: 0; /* Start hidden */
  visibility: hidden; /* Also set to hidden */
}

.navigation {
  background: hsl(0 0% 0% /0.8);
  transition: all 350ms ease-out;
}

.navigation[data-visible="true"] {
  transform: translateX(0%);
  opacity: 1; /* Fade in */
  visibility: visible; /* Make it visible */
}

/* .navigation[data-visible="true"] {
  transform: translateX(0%);
  transition: all 350ms ease-out;
} */

.navigation {
  inset: 0 0 0 40%;
}

@media (max-width: 48em) {
  .navigation {
    inset: 0 0 0 40%;
  }
  .nav-ul {
    display: none;
  }

  nav > button {
    display: block;
    background: transparent;
    color: #fff;
  }

  nav > a > img {
    width: 2.5rem;
  }
}

@media (max-width: 48em) and (max-width: 64em) {
  .nav-ul {
    display: none;
  }
}
