* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  
  }
  
  body {
    font-family: 'Work Sans', sans-serif;
    background-color: #fefefe;
  }
  
  /* burger icon */
  
  .burger {
    display: inline-block;
    cursor: pointer;
    z-index: 2;
  }
  
  .bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 5px;
  }
  
  .change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    transform: rotate(-45deg) translate(-9px, 6px);
    background-color: white;
  }
  
  .change .bar2 {
    opacity: 0;   
    background-color: white;
  }
  
  .change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
      background-color: white;
  }
  
  /* wraper */
  
  .wrapper {
    list-style-type: none;
    background-color: chocolate;
    overflow: hidden;
    top: 0;
    position: fixed;
    width: 100%;
    z-index: 1;
  }
  
  .container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  nav {
    padding: 10px 20px;
    box-shadow: 1px 2px 10px 2px rgba(0,0,0,.1);
    background-color: white;
  }
  
  nav .brand a {
    font-size: 3.4rem;
    text-decoration: none;
    font-weight: 1050;
    color: aqua;
  }

  .font{
    font-family: 'Sigmar', cursive;
  }
  
  .bg-sidebar {
    top: 0;
    right: -100%;
    bottom: 0;
    width: 100%;
    position: fixed;
    background: rgba(0,0,0,.1);
    transition: .3s;
    visibility: hidden;
  }
  
  .bg-sidebar.change {
    right: 0;
    visibility: visible;
    display: block;
  }
  
  nav ul {
      display: flex;
      position: fixed;    
      background-color:#505050;
      top: 0;
      bottom: 0;
      right: -300px;
      width: 300px;
      transition: .5s;
      align-items: flex-start;
      flex-direction: column;
  }
  
  nav ul.change {
      right: 0;
      transition: .5s;
  }
  
  nav ul li {
    list-style: none;
    padding: 20px 15px;
  }
  
  nav ul li a {
    color: white;
    font-size: 1.2rem;
      text-decoration: none;
  }
  
  @media screen and (min-width: 960px) {
  
    .bg-sidebar.change {
     right: 0;
     visibility: hidden;
     display: none;
    }
  
    .burger {
      display: none;
    }
  
    nav {
      position: relative;
    }
  
    nav ul {
      display: flex;
        position: relative;    
        background-color:unset;
        top: unset;
        bottom: unset;
        right: unset;
        width: unset;
        flex-direction: row;
    }
  
    nav ul li {
      padding: 10px 15px;
  
    }
  
    nav ul li:hover::after {
      content: "";
      display: block;
      width: 100%;
      height: 3px;
      transition: .3s;
      background-color: black;
      transform: translateY(20px);
    }
  
  
    nav ul li a {
      color: black;
      font-size: 1.1rem;
    }
  
    nav ul li:last-child {
      font-weight: 550;
    }
  }
  
  @media screen and (min-width: 1200px) {
    .container-flex {
     width: 100%;
     max-width: 1024px;
     margin: auto;
     display: flex;
    justify-content: space-between;
    align-items: center;
    }

/* Styling untuk hamburger menu */
.burger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}

.burger div {
  width: 30px;
  height: 4px;
  background-color: black;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Animasi tombol hamburger */
.burger.open .bar1 {
  transform: translateY(9px) rotate(45deg);
}
.burger.open .bar2 {
  opacity: 0;
}
.burger.open .bar3 {
  transform: translateY(-9px) rotate(-45deg);
}

/* Sidebar styling */
.sidebar {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100vh;
  background: white;
  transition: 0.3s ease-in-out;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sidebar.active {
  right: 0;
}

/* Background overlay saat sidebar aktif */
.bg-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.bg-sidebar.active {
  opacity: 1;
  visibility: visible;
}
