/* Back to Top Button Styles */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
}

.back-to-top-btn:active {
    transform: translateY(-3px) scale(1.05);
}

/* Add subtle pulse animation */
.back-to-top-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .back-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Alternative style for pages with different themes */
.back-to-top-btn.theme-dark {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    box-shadow: 0 4px 15px rgba(31, 41, 55, 0.4);
}

.back-to-top-btn.theme-dark:hover {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    box-shadow: 0 8px 25px rgba(31, 41, 55, 0.6);
}
/* 
Footer back to top link styling */
.footer-back-to-top {
    color: #3b82f6 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.footer-back-to-top:hover {
    color: #1d4ed8 !important;
    text-decoration: none !important;
}