
/* Navigation */
.nav-menu {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.nav-items {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-row {
    display: contents;
}

.nav-item {
    padding: 12px 25px;
    background: linear-gradient(45deg, #1a1a2e, #2a2a4e);
    border-radius: 31px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 2.5;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #10b981, #059669);
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-item:hover::before {
    left: 0;
}

.nav-item:hover {
    color: white;
    transform: translateY(-2px);
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-menu {
        padding: 0;
    }
    
    .nav-items-container {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }

    .nav-items-container.open {
        max-height: 500px; /* Adjust if menu is taller */
        padding: 15px 0;
    }

    .nav-items {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .nav-row {
        display: flex;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 0 10px;
    }

    .nav-item {
        padding: 12px 8px;
        font-size: 14px;
        border-radius: 20px;
        flex: 1 1 calc(50% - 4px);
        text-align: center;
        white-space: nowrap;
        min-width: 0;
        justify-content: center;
    }
    
    .nav-row .nav-item:only-child {
        flex-basis: calc(100% - 8px);
        max-width: 300px;
        margin: 0 auto;
    }
}
