
/* --- PREMIUM NAVIGATION CSS --- */
:root {
    --primary-brand: #3b55e6; /* Your Brand Color */
    --primary-light: #eff2fe; /* Very light version of brand color */
    --text-dark: #1e293b;
    --text-grey: #64748b;
    --white: #ffffff;
}

.premium-nav-container {
    background: var(--white);
    padding: 15px 0;
    width: 100%;
    position: relative;
    z-index: 10;
}

.premium-nav-wrapper {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center; /* Center on desktop */
    gap: 20px; /* Space between cards */
}

/* THE CARD DESIGN */
.service-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--white);
    border: 1px solid #e2e8f0; /* Subtle border */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* TEXT STYLING */
.service-card .text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.service-card .title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.service-card .subtitle {
    font-size: 11px;
    color: var(--text-grey);
    font-weight: 400;
    margin-top: 2px;
}

/* ICON STYLING */
.service-card .icon-box {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 8px;
    color: var(--primary-brand);
    transition: all 0.3s ease;
}

.service-card svg {
    width: 22px;
    height: 22px;
    fill: currentColor; /* Allows color change via CSS */
}

/* --- HOVER STATES --- */
.service-card:hover {
    transform: translateY(-3px); /* Lifts up slightly */
    box-shadow: 0 10px 20px rgba(59, 85, 230, 0.1);
    border-color: var(--primary-brand);
}

/* --- ACTIVE STATE --- */
.service-card.active {
    background: var(--primary-brand);
    border-color: var(--primary-brand);
    box-shadow: 0 8px 15px rgba(59, 85, 230, 0.25);
}

.service-card.active .title,
.service-card.active .subtitle {
    color: var(--white);
}

.service-card.active .subtitle {
    opacity: 0.8;
}

.service-card.active .icon-box {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

@media (max-width: 768px) {
    
    .premium-nav-container {
        
        padding: 0 0;
    }        

    .premium-nav-wrapper {
        justify-content: flex-start; 
        overflow-x: auto;
        padding-bottom: 10px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        gap: 12px;
    }
    
    .premium-nav-wrapper::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        min-width: auto;
        padding: 10px 16px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .service-card .subtitle {
        display: none; 
    }
}
