:root {
    /* Color Palette */
    --primary-color: #4f46e5;
    /* Indigo */
    --secondary-color: #f59e0b;
    /* Amber */
    --accent-color: #10b981;
    /* Emerald */
    --background-color: #ffffff;
    /* White */
    --surface-color: #f9fafb;
    /* Light gray */
    --text-color: #111827;
    /* Dark gray */
    --text-light-color: #6b7280;
    /* Medium gray */
    --error-color: #ef4444;
    /* Red */
    --success-color: #22c55e;
    /* Green */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



.navbar {
    background-color: rgb(2, 139, 244);
    /* background: rgba(255, 255, 255, 0.98); */
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    color: white;
}

.nav-container {

    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fffefe;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: purple;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;

}

.nav-menu a:hover,
.nav-menu a.active {
    color: red;
    transform: translateY(-2px);

}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background-color: rgb(102, 126, 234);
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Demo content */
.demo-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.demo-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.demo-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.demo-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Close button for mobile menu */
.nav-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: purple;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-close:hover {

    color: #667eea;
    transform: rotate(90deg);
}

/* Mobile Side Panel Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-close {
        display: block;
    }

    .nav-menu {
        position: fixed;
        right: -250px;
        top: 0;
        flex-direction: column;
        background: rgb(0, 145, 255);
        width: 250px;
        height: 100vh;
        text-align: left;
        transition: all 0.3s ease;
        padding: 80px 0 30px 0;
        gap: 5px;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 18px 25px;
        display: block;
        border-radius: 0;
        margin: 0;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
        width: 100%;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(54, 90, 255, 0.1);
        border-left-color: #667eea;
        transform: translateX(-3px);
        color: rgb(115, 0, 255);
    }

    .nav-menu a::after {
        display: none;
    }

    .demo-content h1 {
        font-size: 2rem;
    }

    .demo-content p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-logo {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Auth dropdown base */
.nav-auth-btn {
    background: none;
    border: none;
    color: white;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-auth-btn .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #667eea;
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 150px;
    z-index: 1002;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li button,
.dropdown-menu li a {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: white;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.dropdown-menu li button:hover,
.dropdown-menu li a:hover {
    background: rgba(102, 126, 234, 0.2);
}