/* Hamburger Lines Styling */
.hamburger {
    display: none; /* Desktop par hidden[cite: 3] */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001; /* Isse menu ke upar dikhega[cite: 3] */
}

.bar {
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Mobile Responsive Logic[cite: 3] */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Mobile pe dikhega[cite: 3] */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Default hidden position[cite: 3] */
        width: 70%; /* Poora screen cover karne ke liye 100% bhi kar sakte hain[cite: 3] */
        height: 100vh;
        background: #1e1e1e; /* Luxury dark look[cite: 3] */
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1000;
        gap: 30px;
    }

    /* Jab JS 'show' class add karega tab menu dikhega[cite: 3] */
    .nav-links.show {
        right: 0;
    }

    /* Hamburger animation to 'X'[cite: 3] */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}



/* Parda (Overlay) jo background ko dhak lega */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Halka kaala parda */
    backdrop-filter: blur(4px);    /* Peeche ka sab blur ho jayega */
    z-index: 999;                  /* Menu se neeche par baaki sabse upar */
    display: none;                 /* Shuru mein hidden */
}

.menu-overlay.active {
    display: block;
}

/* Mobile Menu Transparent Look[cite: 3] */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        /* Glassmorphism look[cite: 3] */
        background: rgba(20, 20, 20, 0.85); 
        backdrop-filter: blur(15px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.show {
        right: 0;
    }
}






