nav {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 60px;
    background: rgba(15, 15, 20, 0.9);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.3, 0, 0, 1.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(60, 60, 70, 0.3);
    transform-origin: left center;
}

nav:hover {
    width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 110, 241, 0.15);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.05, 0.7, 0.1, 1.0);
    border-bottom: 1px solid rgba(60, 60, 70, 0.2);
    text-decoration: none;
    height: 50px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background-color: rgba(0, 110, 241, 0.15);
}

.nav-item:active {
    background-color: rgba(0, 110, 241, 0.25);
}

.nav-item.active {
    background-color: rgba(0, 110, 241, 0.2);
    border-left: 3px solid #006EF1;
    padding-left: 15px;
}

.nav-item.active i,
.nav-item.active span {
    color: #006EF1;
}

.nav-item i {
    font-size: 16px;
    width: 24px;
    text-align: center;
    display: inline-block;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 1;
    position: relative;
    transition: all 0.3s cubic-bezier(0.05, 0.7, 0.1, 1.0);
}

.nav-item:hover i {
    color: #006EF1;
    transform: scale(1.1);
}

.nav-item span {
    margin-left: 15px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.05, 0.7, 0.1, 1.0);
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

nav:hover .nav-item span {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation for menu items */
nav:hover .nav-item:nth-child(2) span {
    transition-delay: 0.02s;
}

nav:hover .nav-item:nth-child(3) span {
    transition-delay: 0.04s;
}

nav:hover .nav-item:nth-child(4) span {
    transition-delay: 0.06s;
}

nav:hover .nav-item:nth-child(5) span {
    transition-delay: 0.08s;
}

nav:hover .nav-item:nth-child(6) span {
    transition-delay: 0.10s;
}

nav:hover .nav-item:nth-child(7) span {
    transition-delay: 0.12s;
}

nav:hover .nav-item:nth-child(8) span {
    transition-delay: 0.14s;
}

nav:hover .nav-item:nth-child(9) span {
    transition-delay: 0.16s;
}