@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Poppins:wght@400;500&display=swap');

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: rgba(30, 41, 59, 0.7); /* Glass effect */
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    transition: color 0.3s ease;
}
 
 .logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: all 0.4s ease;
}

/* Hover par main text color change */
.logo:hover {
    color: #38bdf8; 
    transform: translateY(-2px); /* Halka sa upar move hoga */
}

/* Coding blue span color */
.logo span {
    color: #38bdf8;
    transition: color 0.4s ease;
}

/* Hover par span ka color change (optional) */
.logo:hover span {
    color: #fff;
}

/* Animated Underline (The "Code Loader" effect) */
.logo::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #38bdf8;
    transition: width 0.4s ease;
}

.logo:hover::after {
    width: 100%;
}


.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

 
/* Mobile Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: #1e293b;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 55%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }
    .nav-links li {
        margin: 20px 10px;
    }
     
    .burger {
        display: block;
    }
}

.nav-active {
    transform: translateX(0%);
}
.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; /* Coding font */
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* Hover par text color change */
.nav-links a:hover {
    color: #38bdf8;
}

/* Animated Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #38bdf8;
    transition: width 0.3s ease;
}

/* Hover karne par line left se right expand hogi */
.nav-links a:hover::after {
    width: 100%;
}

/* Mobile view ke liye thora sa spacing */
@media screen and (max-width: 768px) {
    .nav-links a {
        font-size: 1.2rem;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%; /* Padding thori kam ki taake sleek lage */
    
    /* Premium Glassmorphism Background */
    background: rgba(15, 23, 42, 0.75); 
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    
    /* Fixed Positioning */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;

    /* Bottom Border & Glow Effect */
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 
                0 1px 0 rgba(56, 189, 248, 0.1); /* Halka sa blue glow niche */
    
    transition: all 0.4s ease;
}

/* Jab page scroll ho to background thora aur dark ho jaye (Optional JS required) */
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    padding: 10px 10%;
    border-bottom: 1px solid rgba(56, 189, 248, 0.4);
}


@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        width: 60%;
        background: rgba(15, 23, 42, 0.98); /* Deep dark background */
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        
        /* Smooth Transition Fix */
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out; 
        z-index: 999;
        border-left: 1px solid rgba(56, 189, 248, 0.2);
    }

    .nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
        z-index: 1001;
        position: relative;
    }

    /* Burger Lines - No Cross Animation */
    .burger div {
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px;
        transition: 0.3s;
        border-radius: 3px;
    }

    /* Hover par sirf color change ho, cross na bany */
    .burger:hover div {
        background-color: #38bdf8;
    }
}