/* =============================================
   BACK TO TOP BUTTON
   ============================================= */

.back-to-top {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #F6AD55, #ED8936);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #ED8936, #DD6B20);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(237, 137, 54, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Arrow icon animation */
.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

/* Pulse animation when near footer */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(237, 137, 54, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(237, 137, 54, 0.7);
    }
}

.back-to-top.pulse {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}