header {
  display: flex;
  background: white;
  padding: 20px 80px;
  position: relative;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ebebeb;

  .menu-toggle { display: none; }

  .burger-icon {
    top: 20px;
    z-index: 3;
    right: 20px;
    width: 30px;
    height: 20px;
    display: none;
    cursor: pointer;
    position: absolute;


    span {
      width: 100%;
      height: 3px;
      margin: 5px 0;
      display: block;
      background: #222;
      transition: all 0.3s ease;
    }
  }

  .menu-toggle:checked + .burger-icon {
    span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }

    span:nth-child(2) { opacity: 0; }

    span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
  }

  .profile-section {
    gap: 10px;
    align-items: center;
    display: flex;

    :where(a, button) {
      color: white;
      border: none;
      cursor: pointer;
      font-size: 16px;
      font-weight: bold;
      padding: 10px 20px;
      border-radius: 25px;
      text-decoration: none;
      background: var(--kuida-main-color);
    }

    a:last-child { background: none; color: inherit; }

    .profile-icon {
      width: 40px;
      border-radius: 50%;
    }
  }
}

@media(max-width: 768px) {
  header { padding: 20px; flex-wrap: wrap; }

  .logo { margin: auto; }

  .burger-icon { display: block !important; }

  .profile-section {
    top: 60px;
    z-index: 1;
    right: 20px;
    display: none !important;
    padding: 20px;
    background: white;
    border-radius: 8px;
    position: absolute;
    flex-direction: column;
    border: 1px solid #ebebeb;

    :where(a, button) {
      width: 100%;
      text-align: center;
      text-decoration: none;
    }
  }

  .menu-toggle:checked ~ .profile-section { display: flex !important; }
}
