/* Features: Box-Sizing Fix, Glassmorphism Navbar, Animated Nav Links, Sleek Pill Buttons, Optimized Mobile Dropdown */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #050505;
    color: #ffffff;
    overflow-x: hidden; 
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.logo a {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.logo a span {
    color: #38bdf8;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #38bdf8;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

.auth-buttons-desktop {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-buttons-mobile {
    display: none;
}

.btn-login, .btn-register, .btn-logout {
    padding: 8px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 110px;
}

.btn-login, .btn-logout {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover, .btn-logout:hover {
    border-color: #38bdf8;
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.05);
}

.btn-register {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #000000;
    border: none;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
    color: #ffffff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(10px);
        text-align: center;
        overflow-y: auto;
        max-height: 0;
        opacity: 0;
        padding: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid transparent;
    }
    
    .nav-links.active {
        max-height: 80vh;
        opacity: 1;
        padding: 30px 0 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a {
        display: inline-block;
        font-size: 16px;
        padding: 5px 0;
    }
    
    .auth-buttons-desktop {
        display: none;
    }
    
    .auth-buttons-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 10px;
        width: 100%;
    }

    .auth-buttons-mobile .btn-login, 
    .auth-buttons-mobile .btn-register, 
    .auth-buttons-mobile .btn-logout {
        width: 80%;
        max-width: 250px;
        padding: 12px 24px;
    }
    
    .hamburger {
        display: flex;
    }
}