
/* Scroll to Top Button Animations */
#scrollToTop.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Shine Animation */
@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

.animate-shine {
    animation: shine 1s ease-in-out;
}

/* Pulse Animation for WhatsApp */
@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.animate-ping {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Ripple Effect on Click */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.ripple-effect {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

#scrollToTop:active .ripple-effect {
    animation: ripple 0.6s ease-out;
}

/* Bouncing Arrow Animation */
@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

#scrollToTop.show svg {
    animation: bounce-arrow 2s ease-in-out infinite;
}

/* Rotate on Hover */
#scrollToTop:hover svg {
    animation: none;
    transform: translateY(-4px) rotate(360deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Gradient Background Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#scrollToTop {
    background: linear-gradient(135deg, rgb(220, 182, 32), rgb(90, 150, 60), rgb(119, 178, 84));
    background-size: 200% 200%;
}

#scrollToTop:hover {
    animation: gradient-shift 3s ease infinite;
}

/* Progress Ring (Optional Advanced Feature) */
#scrollToTop::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgb(119, 178, 84) var(--scroll-progress, 0deg),
        transparent var(--scroll-progress, 0deg)
    );
    z-index: -1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    #scrollToTop {
        right: 22px;
        width: 50px;
        height: 50px;
        bottom: 75px;
    }
    
    a[href*="wa.me"] {
        width: 50px;
        height: 50px;
        bottom: 20px;
    }
}