/* === NAVBAR OGÓLNY === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 3000;
}

/* === HAMBURGER === */
.hamburger {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3100;
    overflow: visible;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #1a1a1a;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Gdy menu jest aktywne - hamburger biały */
.hamburger.active span {
    background-color: #ffffff;
}

/* 🔹 Animacja po kliknięciu — rozjazd na boki */
.hamburger.active span:nth-child(1) {
    transform: translateX(8px); /* górna w prawo */
}

.hamburger.active span:nth-child(2) {
}

.hamburger.active span:nth-child(3) {
    transform: translateX(-8px); /* dolna w lewo */
}

/* Efekt hovera — delikatne rozjaśnienie */
.hamburger:hover span {
    background-color: #333;
}

/* Hover na białym hamburgerze (gdy menu otwarte) */
.hamburger.active:hover span {
    background-color: rgba(255, 255, 255, 0.7);
}

/* 🔹 Animacja – efekt schodków */
.hamburger.active span:nth-child(1) {
    transform: translateX(8px);
}
.hamburger.active span:nth-child(2) {
}
.hamburger.active span:nth-child(3) {
    transform: translateX(-8px);
}

.hamburger:hover span {
    background-color: #333;
}

/* === MENU BOCZNE === */
.menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 15vw;
    min-width: 220px;
    height: 100vh;
    background-color: rgb(177, 70, 71);
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    transform: translateX(100%); /* 👈 domyślnie ukryte */
    transition: transform 0.4s ease;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.menu.active {
    transform: translateX(0);
}

.menu a {
    font-family: 'Futura', 'Futura PT', 'Century Gothic', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
    color: #ffffff;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

.menu a:hover {
    opacity: 0.6;
}

/* Mobile fix */
@media (max-width: 768px) {
    .menu {
        width: 15vw;
    }
}

.menu-credits {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;

    font-family: 'Futura', 'Futura PT', 'Century Gothic', sans-serif;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.55);

    display: flex;
    flex-direction: column;
    gap: 4px;
    letter-spacing: 1px;
}

.menu-credits .credit-name {
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.menu-credits a {
    font-size: 0.5rem;
    text-decoration: none;
    color: rgba(255,255,255,0.55);
}

.menu-credits a:hover {
    opacity: 0.7;
}
