/* ========== HEADER & NAVIGATION ========== */

header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--secondary-bg);
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 6px var(--shadow-light);
  z-index: 999;
  transition: height 0.3s ease;
  padding: 10px 0;
  
  * {
    padding: 0;
    margin: 0;
  }

  .website-logo {
    position: absolute;
    left: var(--padding-main);
    display: flex;
    align-items: center;
  }

  .logo {
    height: 2em;
  }

  .website-name {
    padding-left: 10px;
    font-size: var(--font-size-website-title);
    font-weight: bold;
    color: var(--primary-color);
  }

  @media (max-width: 1024px) {
    .website-name {
      display: none;
    }
  }

  nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5%;
  }

  li {
    position: relative;
    transition: color 0.3s ease;

    span{
      display: inline-block;
      transition: transform 0.3s ease;
    }
  }

  li:hover span {
    transform: translateY(-4px);
  }
  
  li::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 4px;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
  }
  
  li:hover {
    color: var(--primary-color);
  }

  li:hover::after {
    width: 25%;
    left: 37.5%;
  }

  li.active {
    color: var(--primary-color);
  }

  li.active::after {
    width: 100%;
    left: 0;
  }

  li.active:hover::after {
    width: 75%;
    left: 12.5%;
  }

  .page-title {
    display: none;
    animation: slideOut 0.3s ease;
  }
  
  .page-title.active {
    display: block;
    margin-top: 10px;
    animation: slideIn 0.3s ease;
  }
}