/* Professional Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    outline: none;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    transform: translateY(-3px);
}

.scroll-to-top:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.5);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top i {
    animation: arrowBounce 2s infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Mobile responsive */
@media only screen and (max-width: 767px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 90px; /* Just above the sticky buttons */
        right: 15px;
        font-size: 18px;
        z-index: 99999; /* Higher than sticky buttons */
    }
}

@media only screen and (max-width: 480px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 90px; /* Just above the sticky buttons */
        right: 12px;
        font-size: 16px;
        z-index: 99999; /* Higher than sticky buttons */
    }
}

/* Alternative color schemes (commented out, uncomment to use) */

/* Blue Theme */
/*
.scroll-to-top {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    box-shadow: 0 6px 25px rgba(79, 172, 254, 0.6);
}
*/

/* Orange Theme */
/*
.scroll-to-top {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.4);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
    box-shadow: 0 6px 25px rgba(250, 112, 154, 0.6);
}
*/

/* Green Theme */
/*
.scroll-to-top {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
    box-shadow: 0 6px 25px rgba(17, 153, 142, 0.6);
}
*/

/* Dark Theme */
/*
.scroll-to-top {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}
*/
