/* ========================================
   Vertical Navigation (Right Side) - Accordion Style
   ======================================== */

.vertical-nav {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    padding-right: 0;
    max-width: 100vw;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 3rem;
    width: clamp(30px, 3vw, 40px);
    height: 100%;
    cursor: pointer;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease;
    background: rgba(0, 0, 0, 0.2);
    border-left: 1px solid var(--line-color);
    overflow: hidden;
}

/* Nav position classes */
.vertical-nav.nav-top .nav-item {
    align-items: flex-start;
    padding-top: 3rem;
    padding-bottom: 0;
}

.vertical-nav.nav-center .nav-item {
    align-items: center;
    padding-bottom: 0;
}

.vertical-nav.nav-bottom .nav-item {
    align-items: flex-end;
    padding-bottom: 3rem;
}

.nav-item:hover {
    width: clamp(80px, 10vw, 120px);
    background: rgba(0, 0, 0, 0.5);
}

.nav-item.active {
    background: rgba(0, 0, 0, 0.4);
}

.nav-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 0;
    background: var(--accent-gold);
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover .nav-line,
.nav-item.active .nav-line {
    height: 100%;
    box-shadow: 0 0 15px rgba(201, 169, 98, 0.5);
}

.nav-text {
    position: absolute;
    white-space: nowrap;
    font-size: clamp(0.65rem, 1vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    transition: opacity 0.5s ease, color 0.3s ease;
    opacity: 1;
}

.nav-item:hover .nav-text {
    color: var(--accent-gold);
}

/* Animation */
@keyframes lineGrow {
    from {
        height: 0;
    }

    to {
        height: 100%;
    }
}