/* Go to Top Button Styles */

.go-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color, #3498db), var(--primary-color, #2c3e50));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.go-to-top-btn:hover {
    background: linear-gradient(135deg, var(--primary-color, #2c3e50), var(--accent-color, #e74c3c));
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.go-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-to-top-btn:active {
    transform: translateY(-2px) scale(0.95);
}

.go-to-top-btn i {
    transition: transform 0.2s ease;
}

.go-to-top-btn:hover i {
    transform: translateY(-2px);
}

/* Pulse animation when button first appears */
.go-to-top-btn.pulse {
    animation: pulseEffect 0.6s ease-out;
}

@keyframes pulseEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
    .go-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .go-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Ensure button doesn't interfere with footer content */
@media screen and (max-height: 600px) {
    .go-to-top-btn {
        bottom: 15px;
        right: 15px;
    }
} 