/* ==========================================
   SOCIAL MEDIA WIDGET (EXPANDABLE)
========================================== */
.social-widget {
    position: fixed;
    bottom: 30px;
    /* Default position when scroll button is hidden */
    right: 30px;
    z-index: 999;
    transition: bottom 0.4s ease;
    /* Smooth transition when moving */
}

/* Move up when scroll button appears */
.social-widget.moved-up {
    bottom: 100px;
}

.social-trigger {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.social-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.social-links {
    position: absolute;
    bottom: 60px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.social-widget:hover .social-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: scale(1.15);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

/* Individual social media colors on hover */
.social-links a:nth-child(1):hover {
    background: #1877f2;
    border-color: #1877f2;
}

/* Facebook */
.social-links a:nth-child(2):hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

/* Twitter */
.social-links a:nth-child(3):hover {
    background: #e4405f;
    border-color: #e4405f;
}

/* Instagram */
.social-links a:nth-child(4):hover {
    background: #ff0000;
    border-color: #ff0000;
}

/* YouTube */
.social-links a:nth-child(5):hover {
    background: #0077b5;
    border-color: #0077b5;
}

/* LinkedIn */

/* ==========================================
   SCROLL TO TOP BUTTON
========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
========================================== */
@media (max-width: 768px) {
    .social-widget {
        bottom: 20px;
        right: 20px;
    }

    .social-widget.moved-up {
        bottom: 85px;
    }

    .social-trigger {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}