@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Varela+Round&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

@font-face {
  font-family: 'Masina Sans';
  src: url('path-to-font/MasinaSans-Regular.woff2') format('woff2'),
       url('path-to-font/MasinaSans-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  background: transparent;
  font-family: 'Roboto';
}

a {
    text-decoration: none;
}

/* header  */
#header {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
}

#header .header {
  min-height: 8vh;
  background-color: rgba(31, 30, 30, 0.7);
  transition: 0.3s ease background-color;
}

#header .nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: 1300px;
  padding: 0 10px;
  margin: 0px auto;
}

#header .hamburger {
    border: 3px solid white;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    margin-right: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    transform: scale(0.8);
}

#header .hamburger:after {
  content: "";
  border: 3px solid white;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  position: absolute;
  animation: hamburger-puls 1s ease infinite;
}

@keyframes hamburger-puls {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

#header .hamburger .bar {
  background-color: white;
  height: 2px;
  width: 30px;
  position: relative;
  z-index: -1;
}

#header .hamburger .bar::before,
#header .hamburger .bar::after {
  content: "";
  background-color: white;
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  transition: 0.3s ease top, bottom;
}

#header .hamburger .bar::after {
  top: 8px;
}

#header .hamburger .bar::before {
  bottom: 8px;
}

#header .hamburger.active .bar::before {
  bottom: 0;
}

#header .hamburger.active .bar::after {
  top: 0;
}

.brand h1 {
  font-size: 20px;
  color: white;
  margin-bottom: 0;
  padding: 0.5rem 0;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
}

.menu li {
  position: relative;
}

.menu .submenu li {
  border-bottom: 1px solid #595656;
}

.menu .submenu li:first-child {
  border-top: 1px solid #595656;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.2rem;
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  display: block;
  padding: 20px;
}

/* .menu li a:hover {
  color: rgb(14, 181, 28);
} */

.submenu {
  display: none;
  flex-direction: column;
  background: #333;
}

.menu li a.active, .menu li a:hover {
  color: #0eb51c;  /* Your highlight color */
  font-weight: bold; /* Optional */
}


.has-submenu.active .submenu {
  display: flex;
}

.has-submenu {
  position: relative;
}

/* Submenu hidden by default */
.submenu {
  display: none;
  position: absolute;
  background: #333;
  top: 100%;
  left: 0;
  list-style: none;
  min-width: 160px;
}

.submenu li a {
  padding: 10px 16px;
  font-size: 1.2rem;
}

.submenu li a:hover {
  background: rgba(255, 255, 255, 0.1);
}


@media (min-width: 769px) {
  .has-submenu:hover .submenu {
    display: block;
  }
}


@media (max-width: 768px) {
  .menu {
    flex-direction: column;
  }

  .menu > li {
    width: 100%;
    top: 8rem;
  }

  .submenu {
    position: relative;
    top: 0;
    display: none;
    background: #1f1f1f;
  }

  .has-submenu.active .submenu {
    display: block;
  }
}


/* .hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  padding: 16px;
  background: #111;
  color: white;
} */

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .menu > li > a {
    font-size: 15px;
    padding: 15px;
  }

  .menu.active {
    display: block;
    position: absolute;
  }
}

/* Desktop: show submenu on hover */
@media (min-width: 769px) {
  .has-submenu:hover .submenu {
    display: block;
  }

  #header .hamburger {
    display: none;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .menu {
    list-style-type: none;
    background-color: #1f1e1e;
    height: 100vh;
    width: 100vw;
    position: absolute;
    left: 100%;
    top: 0;
    z-index: 1;
    overflow-x: hidden;
    transition: 0.3s ease left;
  }

  .menu.active {
    left: 0;
  }

  .submenu {
    position: static;
  }

  .has-submenu.active .submenu {
    display: flex;
    flex-direction: column;
    background-color: #2d2b2b;
  }

  .has-submenu.active .submenu li {
    border-bottom: 1px solid #595656;
  }

  .has-submenu.active .submenu li:first-child {
    border-top: 1px solid #595656;
  }

  .hamburger {
    display: block;
    background: #111;
    color: white;
    font-size: 24px;
    padding: 12px 16px;
    cursor: pointer;
  }
}