/* Navbar Styles */
header {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(108, 99, 255, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
    font-size: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-cta {
    background: var(--accent);
    margin-left: 1.5rem;
}

.nav-cta:hover {
    background: #e04d6d;
    transform: translateY(-2px);
}

/* Dark/Light Mode Toggle */
.theme-toggle-container {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.theme-label {
    color: white;
    margin-right: 10px;
    font-size: 0.9rem;
}

.theme-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    margin-left: 0;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 34px;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .theme-slider {
    background-color: rgba(0, 0, 0, 0.3);
}

input:checked + .theme-slider:before {
    transform: translateX(24px);
    background-color: var(--accent);
}

.theme-icons {
    position: absolute;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 8px;
    pointer-events: none;
}

.theme-icons i {
    color: white;
    font-size: 0.8rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgb(62, 96, 155, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 2rem;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    nav ul li a {
        display: block;
        padding: 0.8rem 1rem;
        border-radius: 5px;
    }
    
    .theme-toggle-container {
        margin: 1rem 0 0 1rem;
    }
}