/* Navigation Menu - Premium Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Premium Glass Effect */
    background: #1e293b;
    /* Lighter shade (Slate-800) */
    /* Removed backdrop-filter */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

.navbar.scrolled {
    background: #1e293b;
    /* Lighter shade */
    /* Removed backdrop-filter */
    padding: 16px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sticky Scroll-Away Effect */
.navbar.navbar-hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tag {
    font-size: 0.75rem;
    color: #e11d48;
    /* Red Accent */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.nav-link svg {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    width: 18px;
    height: 18px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link:hover svg {
    color: #ffffff;
    transform: scale(1.1);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link.active svg {
    color: #e11d48;
    /* Red Accent */
}

/* Auth Buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn-register-nav {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-register-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-register-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.4);
}

.btn-register-nav:hover::before {
    opacity: 1;
}

/* Profile Button */
.btn-profile-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 6px 16px 6px 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-profile-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.profile-initials {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.profile-name {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-logout {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-logout:hover {
    color: #fca5a5;
    background: rgba(127, 29, 29, 0.2);
}

/* Mobile Button */
.mobile-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bar {
    width: 24px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bar span {
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar {
        padding: 16px 0;
    }

    .nav-links {
        display: none;
        /* Hide standard nav on mobile/tablet */
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        /* High opacity for readability */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 24px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        align-items: stretch;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.open {
        right: 0;
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 8px;
        background: rgba(255, 255, 255, 0.03);
    }

    .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-btn {
        display: block;
    }

    .nav-auth {
        gap: 8px;
    }

    .profile-name {
        display: none;
    }

    .btn-login {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .bar.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background: #e11d48;
    }

    .bar.open span:nth-child(2) {
        opacity: 0;
    }

    .bar.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background: #e11d48;
    }
}

/* Font */
.navbar {
    font-family: 'Inter', 'Poppins', sans-serif;
}