@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&display=swap');

header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; /* Zmieniamy na fixed, aby było przyklejone */
    top: 0;
    left: 0;
    width: 100%;
    height: 10vh;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    z-index: 90;
  }
  
  .menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
  }
  
  .nav-links li {
    margin-left: 20px;
  }
  
  .nav-links li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.3s ease;
  }
  
  .nav-links li a:hover {
    color: #007bff;
  }
  
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 10px;
  }
  
  .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: transform 0.3s ease-in-out;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  
  /* Style dla mniejszych ekranów */
  @media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px; /* Wysokość nagłówka */
        left: 0;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        text-align: center;
    }
  
    .nav-links.active {
        display: flex;
    }
  
    .nav-links li {
        margin: 15px 0;
    }
  
    .hamburger {
        display: flex;
    }
  }