/* this is ul nav list in ham menu not hidden >500px device */
.nav__list {
  display: none;
  list-style: none;
  text-align: center;
}

@media (max-width: 500px) {
  /* header container overflow visible */
  .container {
    overflow: visible;
  }
  /* project page, text title on the portfolio */
  .item-text-title {
    font-size: 1rem;
    padding: 0 1rem;
    margin: 5px 0 0 0;
  }
  /* project page, text category on the portfolio */
  .item-text-category {
    text-transform: uppercase;
    font-size: 1.2rem;
    opacity: 0.7;
    margin: 0;
  }
  /* Burger menu styling */
  .menu-btn {
    top: 10px;
    left: 90%;
    position: relative;
    display: block;
    width: 35px;
    height: 30px;
    cursor: pointer;
    z-index: 2;
  }

  .menu-btn__burger {
    width: 100%;
    height: 4px;
    background-color: #ffbc00;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: all 0.3s ease;
  }

  .menu-btn__burger::before,
  .menu-btn__burger::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    background-color: #ffbc00;
    border-radius: 5px;
    transition: all 0.3s ease;
  }

  .menu-btn__burger::before {
    top: -10px; /* Move above the middle bar */
  }

  .menu-btn__burger::after {
    top: 10px; /* Move below the middle bar */
  }

  /* Open state - X shape */
  .menu-btn.open .menu-btn__burger {
    background-color: transparent;
  }

  .menu-btn.open .menu-btn__burger::before {
    transform: rotate(45deg);
    top: 0;
  }

  .menu-btn.open .menu-btn__burger::after {
    transform: rotate(-45deg);
    top: 0;
  }
  /* Toggling the menu */
  .menu-btn.open + .nav {
    left: 0;
  }

  /* Nav styling */
  .nav {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #828282;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 1;
  }

  .nav__list {
    display: inline;
    list-style: none;
    text-align: center;
  }

  .nav__item {
    margin: 15px 0;
  }

  .nav__item a {
    text-decoration: none;
    color: #ffbc00;
    font-size: 20px;
    transition: color 0.3s ease;
  }

  .nav__item a:hover {
    color: #ffbc00;
  }
}
