.floating-menu {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    padding: 10px 0;
    gap: 5px;
    background: var(--primary-color);
    z-index: 888;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Added smooth box shadow */
}

.floating-menu::before,
.floating-menu::after {
    content: " ";
    position: absolute;
    width: 110%;
    height: 10%;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.floating-menu::before {
    right: -8%;
    top: -9.5%;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.floating-menu::after {
    right: -10%;
    bottom: -9.5%;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.floating-menu img {
    width: 80%;
    max-height: 20px;
}

.floating-menu small {
    text-align: center;
    font-weight: 600;
}

.floating-menu a {
    transform: scale(1);
    transition: transform 0.3s ease;
    background-color: var(--primary-color);
    width: 80%;
    padding: 5px;
}

.floating-menu a:hover {
    transform: scale(1.1);
    background-color: var(--font-color);
    border-radius: 5px;
}

@media (max-width: 1024px) {
    .floating-menu {
        display: none;
    }
}
