/* Modern Navigation Menu Styles - Merged with Header */

nav {
    background: transparent;
   margin-top: 20px;
    padding: 0;
    
}

nav .nav {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

nav .nav-item {
    position: relative;
    margin: 0;
}

nav .nav-link {
    display: block;
    padding: 16px 28px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover effect with underline animation */
nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff 0%, #4fd1ff 100%);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(79, 209, 255, 0.5);
}

nav .nav-link:hover::before {
    width: 80%;
}

nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Active/Current page style */
nav .nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

nav .nav-link.active::before {
    width: 80%;
    background: linear-gradient(90deg, #ffffff 0%, #4fd1ff 100%);
    box-shadow: 0 0 15px rgba(79, 209, 255, 0.8);
}

/* Ripple effect on click - hidden by default to avoid small dot */
nav .nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    /* hide visually by default (no tiny dot) */
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.25s ease;
}

nav .nav-link:active::after {
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    nav .nav {
        flex-wrap: wrap;
        gap: 2px;
    }
    
    nav .nav-link {
        padding: 14px 20px;
        font-size: 0.95rem;
        color:aliceblue
    }
}

@media (max-width: 768px) {
    nav {
        border-radius: 8px;
    }
    
    nav .nav {
        flex-direction: column;
        width: 100%;
    }
    
    nav .nav-item {
        width: 100%;
    }
    
    nav .nav-link {
        padding: 14px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    nav .nav-link:hover {
        transform: translateY(0);
        transform: translateX(5px);
    }
}

/* Alternative Modern Design - Glass Morphism Effect */
.nav-glass {
    background: rgba(0, 51, 102, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Alternative Design - Minimal with Separators */
.nav-minimal .nav {
    gap: 0;
}

.nav-minimal .nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* Icon support (if you want to add icons) */
nav .nav-link i {
    margin-right: 8px;
    font-size: 1.1rem;
}
