/* ===================================
   Floating Social Menu (Ring Style)
   =================================== */

.floating-social-menu {
    position: fixed;
    bottom: 110px;
    right: 30px;
    z-index: 998;
}

.social-menu-trigger {
    width: 60px;
    height: 60px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 111, 71, 0.6);
    border-radius: 50%;
    color: #E0C097;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(139, 111, 71, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.social-menu-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 98px,
            rgba(139, 111, 71, 0.08) 98px,
            rgba(139, 111, 71, 0.08) 100px),
        repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 48px,
            rgba(107, 78, 46, 0.1) 48px,
            rgba(107, 78, 46, 0.1) 50px);
    background-size: 100px 100%, 50px 50px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: multiply;
    border-radius: 50%;
}

.social-menu-trigger::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    animation: woodShine 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
}

.social-menu-trigger:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow:
        0 8px 35px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(139, 111, 71, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.08);
}

.social-menu-trigger:hover::after {
    animation: woodShine 2s ease-in-out infinite;
}

.social-menu-trigger i {
    position: relative;
    z-index: 2;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: #E0C097;
}

.floating-social-menu.active .social-menu-trigger {
    transform: rotate(45deg);
    background: rgba(30, 30, 30, 0.95);
    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(139, 111, 71, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.floating-social-menu.active .social-menu-trigger:hover {
    transform: rotate(45deg) scale(1.1);
    box-shadow:
        0 8px 35px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(139, 111, 71, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.08);
}

.social-menu-items {
    position: absolute;
    bottom: 0;
    right: 0;
    pointer-events: none;
}

.social-menu-item {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: scale(0);
    bottom: 5px;
    right: 5px;
    pointer-events: none;
}

.floating-social-menu.active .social-menu-item {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* Ring positioning - 5 items in a circular pattern */
/* Ring positioning - Fanning Up and Left to avoid bottom cutout */
.floating-social-menu.active .social-menu-item[data-index="0"] {
    transform: translate(0px, -140px) scale(1);
    transition-delay: 0.05s;
}

.floating-social-menu.active .social-menu-item[data-index="1"] {
    transform: translate(-50px, -125px) scale(1);
    transition-delay: 0.1s;
}

.floating-social-menu.active .social-menu-item[data-index="2"] {
    transform: translate(-95px, -90px) scale(1);
    transition-delay: 0.15s;
}

.floating-social-menu.active .social-menu-item[data-index="3"] {
    transform: translate(-125px, -45px) scale(1);
    transition-delay: 0.2s;
}

.floating-social-menu.active .social-menu-item[data-index="4"] {
    transform: translate(-140px, 10px) scale(1);
    transition-delay: 0.25s;
}

/* Individual icon colors */
.social-menu-item:nth-child(1) {
    background: linear-gradient(135deg, #EA4335 0%, #D32F2F 100%);
    color: white;
}

.social-menu-item:nth-child(2) {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.social-menu-item:nth-child(3) {
    background: linear-gradient(135deg, #E1306C 0%, #C13584 100%);
    color: white;
}

.social-menu-item:nth-child(4) {
    background: linear-gradient(135deg, #0077B5 0%, #005582 100%);
    color: white;
}

.social-menu-item:nth-child(5) {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
    color: white;
}

.social-menu-item:hover {
    transform: translate(var(--hover-x, 0), var(--hover-y, 0)) scale(1.15);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Hover transforms for each item */
/* Hover transforms for each item */
.floating-social-menu.active .social-menu-item[data-index="0"]:hover {
    --hover-x: 0px;
    --hover-y: -140px;
}

.floating-social-menu.active .social-menu-item[data-index="1"]:hover {
    --hover-x: -50px;
    --hover-y: -125px;
}

.floating-social-menu.active .social-menu-item[data-index="2"]:hover {
    --hover-x: -95px;
    --hover-y: -90px;
}

.floating-social-menu.active .social-menu-item[data-index="3"]:hover {
    --hover-x: -125px;
    --hover-y: -45px;
}

.floating-social-menu.active .social-menu-item[data-index="4"]:hover {
    --hover-x: -140px;
    --hover-y: 10px;
}

/* Pulse animation for trigger button */
@keyframes socialPulse {

    0%,
    100% {
        box-shadow:
            0 5px 25px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(156, 39, 176, 0.5),
            0 0 50px rgba(171, 71, 188, 0.4);
    }

    50% {
        box-shadow:
            0 5px 25px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(156, 39, 176, 0.7),
            0 0 60px rgba(171, 71, 188, 0.6),
            0 0 0 10px rgba(156, 39, 176, 0.1);
    }
}

.social-menu-trigger {
    animation: socialPulse 2s infinite, nebulaFloat 8s ease-in-out infinite;
}

.floating-social-menu.active .social-menu-trigger {
    animation: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-social-menu {
        bottom: 90px;
        right: 20px;
    }

    .social-menu-trigger {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .social-menu-item {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* Adjust ring positioning for mobile */
    /* Adjust ring positioning for mobile - Up/Left Fan */
    .floating-social-menu.active .social-menu-item[data-index="0"] {
        transform: translate(0px, -110px) scale(1);
    }

    .floating-social-menu.active .social-menu-item[data-index="1"] {
        transform: translate(-45px, -95px) scale(1);
    }

    .floating-social-menu.active .social-menu-item[data-index="2"] {
        transform: translate(-80px, -65px) scale(1);
    }

    .floating-social-menu.active .social-menu-item[data-index="3"] {
        transform: translate(-105px, -25px) scale(1);
    }

    .floating-social-menu.active .social-menu-item[data-index="4"] {
        transform: translate(-115px, 20px) scale(1);
    }
}