

/* Floating Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 12px 30px;
    border: 1px solid #333;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-btn {
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.mobile-auth-buttons {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.login-btn {
    color: #e0e0e0;
    border: 1px solid #333;
}

.login-btn:hover {
    color: #ffffff;
    border-color: #555;
}

.signup-btn {
    background: #ffffff;
    color: #000000;
    white-space: nowrap;
}

.signup-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        top: 15px;
        padding: 10px 20px;
        width: calc(100% - 30px);
        max-width: 500px;
    }

    .nav-container {
        justify-content: space-between;
        gap: 0;
    }

    .nav-center {
        gap: 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.95);
        flex-direction: column;
        padding: 20px;
        border-radius: 15px;
        margin-top: 10px;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .auth-buttons {
        display: none;
    }

    .mobile-auth-buttons {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
    }
    .mobile-auth-buttons .auth-btn {
        width: 100%;
        text-align: center;
    }

    .mobile-auth-buttons .auth-btn.signup-btn {
        background: #ffffff;
        color: #000000;
    }

    .menu-toggle {
        display: block;
    }

}

@media (max-width: 480px) {

    .navbar {
        padding: 8px 15px;
    }
}

/* Smooth scroll enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}