﻿
/* Option 1: Neutral gray button */
.back-to-home-btn {
    background-color: #6b7280; /* Gray-500 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

    .back-to-home-btn:hover {
        background-color: #4b5563; /* Gray-600 */
    }

.float_content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.float-section { 
    padding: 40px 0;
}

h1, h2 {
    color: #2c3e50;
}

/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    }

    .back-to-top:active {
        transform: translateY(-1px) scale(1.05);
    }

    /* Arrow icon */
    .back-to-top::before {
        content: '';
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 12px solid white;
        margin-bottom: 2px;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

        .back-to-top::before {
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-bottom: 10px solid white;
        }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}
