﻿/* Premium Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FF4081, #71296D);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 32px rgba(255, 64, 129, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
}

    .scroll-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .scroll-to-top:hover {
        box-shadow: 0 12px 40px rgba(255, 64, 129, 0.4);
        background: linear-gradient(135deg, #FF80AB, #71296D);
    }

    .scroll-to-top:active {
        transform: scale(0.95);
    }

    .scroll-to-top::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #FF4081, #71296D, #483F76);
        border-radius: 50%;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .scroll-to-top:hover::before {
        opacity: 1;
    }

    .scroll-to-top i {
        transition: transform 0.3s ease;
    }

/* Pulse animation */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 8px 32px rgba(255, 64, 129, 0.3);
    }

    50% {
        box-shadow: 0 8px 32px rgba(255, 64, 129, 0.6);
    }

    100% {
        box-shadow: 0 8px 32px rgba(255, 64, 129, 0.3);
    }
}

.scroll-to-top.pulse {
    animation: pulse-glow 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 18px;
    }
}
