:root {
    --deep-gray: #0a0a0a;
    --glass-gray: rgba(255, 255, 255, 0.05);
    --accent: #ffffff;
    --subtle-gray: #888;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
}

.navbar.scrolled {
    height: 70px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    cursor: pointer;
    transition: 0.4s ease;
}

.logo span {
    color: var(--subtle-gray);
    transition: 0.4s;
}

.logo:hover {
    letter-spacing: 5px;
}

.logo:hover span {
    color: #ff0055;
}

/* Color Shift on Hover */

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-item {
    text-decoration: none;
    color: var(--subtle-gray);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
    position: relative;
}

.nav-item:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff0055;
    transition: 0.5s;
}

.nav-item:hover {
    color: var(--accent);
}

.nav-item:hover:after {
    width: 100%;
}

/* Professional Search */
.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--glass-gray);
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 0;
    transition: 0.5s;
}

.search-wrapper:hover input,
.search-wrapper input:focus {
    width: 150px;
}

.search-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.6;
}


/* Mobile Menu Button Style */
.menu-btn {
    display: none;
    /* Desktop par chupa rahega */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
}

.btn-line {
    width: 30px;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}


@media screen and (max-width: 768px) {

    /* 1. Container setup */
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* Logo left aur nav-right (menu-btn) ko extreme corners par rakhega */
        width: 100%;
        padding: 0 20px;
        position: relative;
        /* Search ki absolute centering ke liye zaroori hai */
        height: 100%;
    }

    /* 2. Logo - Hamesha Left par rahega */
    .logo {
        position: relative;
        z-index: 10001;
    }

    /* 3. Search Bar - Bilkul Screen ke Center mein */
    /* Humne search-wrapper ko nav-right se "detach" karke center kiya hai */
    .search-wrapper {
        position: absolute;
        left: 52%;
        top: 50%;
        transform: translate(-50%, -50%);
        /* Absolute center alignment */
        margin: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        padding: 5px 10px;
        display: flex;
        align-items: center;
    }

    /* Mobile par search input ki width adjust karein */
    .search-wrapper input {
        width: 0;
        /* Click/Hover par expand hoga */
        transition: 0.3s ease;
    }

    .search-wrapper:focus-within input,
    .search-wrapper:hover input {
        width: 80px;
    }

    /* 4. Nav-Right Container - Ismein sirf Menu-Btn hoga mobile par */
    .nav-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        /* Three lines ko extreme right par push karega */
    }

    /* 5. Three Lines (Menu Button) - Top Right Corner */
    .menu-btn {
        display: flex;
        /* Mobile par show hoga */
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 10001;
        padding-left: 10px;
    }

    .btn-line {
        width: 25px;
        height: 2px;
        background: #ffffff;
        transition: 0.3s ease;
    }

    /* 6. Sidebar (Transparent & Reflected) */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Bahar slide hoga */
        width: 75%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.3);
        backdrop-filter: blur(25px) saturate(160%);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
        /* Slide in */
    }
}