html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Matches offset in JS */
}
.floating-nav {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.menu-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.nav-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-menu button {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    color: #333;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-menu button:hover {
    background: #f0f0f0;
}

.menu-icon {
    fill: #333;
    width: 24px;
    height: 24px;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    background: #f0f0f0;
}

@media (max-width: 768px) {
    .floating-nav {
        bottom: 1rem;
        right: 1rem;
    }
}

