/* Początek sekcji nav */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 20px 50px;
    z-index: 1000;
    transition: background 0.4s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

a.logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    animation: slideInLeft 1s forwards;
    text-decoration: none;
    display: inline-block;
  }
  
  

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f39c12;
    transition: width 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Hamburger menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    z-index: 1001;
}

/* Responsywność */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 18px;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
/* Koniec sekcji nav */
.hamburger.active i::before {
    content: "\f00d"; /* Ikona "X" w Font Awesome */
}
.nav-links li a i {
    font-size: 18px;
    color: #fff;
    transition: color 0.3s ease;
  }
  
  .nav-links li a:hover i {
    color: #f39c12;
  }
  