#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-red); /* Uses your brand red */
    color: #ffffff;
    border: none;
    border-radius: 50%; /* Perfect Circle */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    
    /* Centering the icon */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Animation defaults */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999;
}

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

#back-to-top:hover {
    background-color: #000; /* Black on hover */
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Mobile Tweak: Slightly smaller */
@media (max-width: 768px) {
    #back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}