.glass-card {
    width: 60px;
    height: auto;
    padding-bottom: 15px;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 15px 3px rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    left: -50px;
    overflow: hidden;
    z-index: 2;
    transition: left 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.glass-card.show {
    left: 20px;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.8),
        transparent,
        rgba(255, 255, 255, 0.3)
    );
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-icon {
    margin: 15px auto 12px;
}

.twitter-icon, .github-icon, .kaggle-icon, .medium-icon, .linkedin-icon, .contact-icon, .audio-icon {
    margin: 12px auto;
}

.nav-icon:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

.nav-icon.bubble-click {
    animation: bubbleEffect 0.6s ease-out;
}

.nav-icon[title] {
    position: relative;
}

.nav-icon[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 55px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease-out forwards;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes tooltipFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

@keyframes bubbleEffect {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.3);
        box-shadow:
            0 8px 25px rgba(255, 255, 255, 0.3),
            0 0 20px rgba(255, 255, 255, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    40% {
        transform: scale(0.9);
    }
    60% {
        transform: scale(1.1);
    }
    80% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

.navbar-toggle {
    position: fixed;
    top: 40%;
    left: 75px;
    transform: translateY(-50%);
    z-index: 1000;
    transition: left 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0.9;
}

.navbar-toggle.navbar-open {
    left: 95px;
}

.toggle-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.toggle-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.toggle-arrow svg {
    transition: transform 0.3s ease;
}

.navbar-toggle.navbar-open .toggle-arrow svg {
    transform: rotate(180deg);
}

.glass-card.show ~ .nav-arrow.left-1,
.glass-card.show ~ .nav-arrow.left-2 {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
