/* NAVIGATION.CSS - Zaktualizowany z nową paletą kolorów */

/* Główny pasek nawigacyjny */
.navigation-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: none;
}

/* Biały pasek pod elementami po scroll */
.navigation-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-nav-light);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border-bottom: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    z-index: -1;
}

/* Pokaż biały pasek po scroll */
.navigation-bar.scrolled::after {
    opacity: 1;
    transform: translateY(0);
}

/* Animowane logo z spacjami */
.animated-logo {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.1em;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.animated-logo:hover {
    color: var(--color-accent);
    transform: scale(1.02);
}

.logo-static {
    display: inline;
    margin-right: 0.3em;
}

.logo-animated {
    display: inline;
    position: relative;
    min-width: 220px;
}

.logo-word {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    letter-spacing: 0.1em;
}

.logo-word.active {
    opacity: 1;
    transform: translateY(0);
}

.logo-word.exit {
    opacity: 0;
    transform: translateY(-10px);
}

/* Navigation - Burger */
.nav-burger {
    width: 35px;
    height: 25px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    z-index: 1002;
    position: relative;
}

.nav-burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-burger:hover .nav-burger-line {
    background-color: var(--color-accent);
}

.nav-burger:hover {
    transform: scale(1.1);
}

/* Animacja burgera do X */
.nav-burger.active .nav-burger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background-color: var(--color-primary);
}

.nav-burger.active .nav-burger-line:nth-child(2) {
    opacity: 0;
}

.nav-burger.active .nav-burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background-color: var(--color-primary);
}

/* Menu overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-overlay);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu panel */
.menu-panel {
    position: fixed;
    top: 100px;
    right: 40px;
    width: 350px;
    height: 450px;
    background: var(--bg-primary);
    border-radius: 25px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-light);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 50px 40px 30px 40px;
    transform-origin: calc(100% - 25px) 25px;
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-panel.active {
    transform: scale(1);
    opacity: 1;
}

/* Menu items */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 1;
    justify-content: center;
}

.menu-item {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 300;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    display: block;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.menu-item:hover::after,
.menu-item.active::after {
    width: 100%;
}

.menu-item:hover {
    color: var(--color-accent);
    transform: translateY(20px) translateX(5px);
}

.menu-item.active {
    color: var(--color-accent);
    font-weight: 500;
}

/* Animacje pojawiania się menu items */
.menu-panel.active .menu-item {
    opacity: 1;
    transform: translateY(0);
}

.menu-panel.active .menu-item:nth-child(1) { 
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s; 
}
.menu-panel.active .menu-item:nth-child(2) { 
    transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s; 
}
.menu-panel.active .menu-item:nth-child(3) { 
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s; 
}
.menu-panel.active .menu-item:nth-child(4) { 
    transition: opacity 0.3s ease 0.25s, transform 0.3s ease 0.25s; 
}
.menu-panel.active .menu-item:nth-child(5) { 
    transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s; 
}
.menu-panel.active .menu-item:nth-child(6) { 
    transition: opacity 0.3s ease 0.35s, transform 0.3s ease 0.35s; 
}

/* Menu footer */
.menu-footer {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
}

.menu-contact {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease 0.6s;
}

.menu-panel.active .menu-contact {
    opacity: 1;
    transform: translateY(0);
}

/* Responsywność */
@media (max-width: 768px) {
    .navigation-bar {
        padding: 0 30px;
        height: 70px;
    }

    .animated-logo {
        font-size: 1.5rem;
    }

    .logo-animated {
        min-width: 180px;
    }

    .nav-burger {
        width: 30px;
        height: 22px;
    }

    .menu-panel {
        width: 280px;
        height: 380px;
        right: 30px;
        top: 90px;
        padding: 40px 30px 25px 30px;
    }

    .menu-item {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .navigation-bar {
        padding: 0 20px;
        height: 60px;
    }

    .animated-logo {
        font-size: 1.3rem;
    }

    .logo-animated {
        min-width: 150px;
    }

    .nav-burger {
        width: 28px;
        height: 20px;
    }

    .menu-panel {
        width: 250px;
        height: 350px;
        right: 20px;
        top: 80px;
        padding: 30px 25px 20px 25px;
    }

    .menu-item {
        font-size: 1.5rem;
    }
}