/* Social Widget Styles */
.social-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    font-family: 'Arial', sans-serif;
}

.social-main-button {
    width: 60px;
    height: 60px;
    background: #2c3e50;
    border-radius: 50% 0 0 50%;
    box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    line-height: 60px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 2;
    display: block; /* Always visible */
}

.social-main-button:hover {
    background: #34495e;
    transform: translateY(-50%) translateX(-5px);
}

.social-buttons {
    position: absolute;
    right: -200px;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px 0 0 25px;
    box-shadow: -3px 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(5px);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
}

.social-widget.active .social-buttons {
    right: 60px;
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.social-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(1);
    position: relative;
    overflow: hidden;
}

.social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.social-button:hover {
    transform: scale(1.1) translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-button:hover::before {
    left: 100%;
}

/* Font Awesome icons fix */
.fa-brands, .fas {
    display: inline-block !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* Individual button colors with modern gradients */
.fb { background: linear-gradient(135deg, #3b5998, #4c70ba); }
.yt { background: linear-gradient(135deg, #ff0000, #ff5e5e); }
.tw { background: linear-gradient(135deg, #000000, #3d3d3d); }
.ig { background: linear-gradient(135deg, #e1306c, #f77737); }
.wa { background: linear-gradient(135deg, #25d366, #5af78d); }
.li { background: linear-gradient(135deg, #0077b5, #00a0e9); }

/* Tooltip on hover */
.social-button::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.social-button:hover::after {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* Mobile and Tablet Styles */
@media (max-width: 1024px) {
    .social-widget {
        right: -15px;
    }
    
    .social-main-button {
        display: block;
    }
    
    .social-buttons {
        right: -200px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-50%) scale(0.9);
    }
    
    .social-widget.active .social-buttons {
        right: 60px;
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) scale(1);
    }
    
    .social-button {
        transform: scale(0.9);
        opacity: 0;
        transition: all 0.3s ease, opacity 0.2s ease;
    }
    
    .social-widget.active .social-button {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animation for desktop icons */
@media (min-width: 1025px) {
    .social-button {
        animation: float 3s ease-in-out infinite;
    }
    
    .social-button:nth-child(1) { animation-delay: 0.1s; }
    .social-button:nth-child(2) { animation-delay: 0.2s; }
    .social-button:nth-child(3) { animation-delay: 0.3s; }
    .social-button:nth-child(4) { animation-delay: 0.4s; }
    .social-button:nth-child(5) { animation-delay: 0.5s; }
    .social-button:nth-child(6) { animation-delay: 0.6s; }
    
    @keyframes float {
        0%, 100% { transform: translateY(0) scale(1); }
        50% { transform: translateY(-8px) scale(1.05); }
    }
}