/* Services Tabs Styles */
.services-tabs {
    padding: 6rem 1rem;
    background: #f8f9fa;
}

.services-tabs .container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-tabs h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'TildaSans', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    position: relative;
}

.services-tabs h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    margin: 1rem auto 0;
}

/* Service Tabs Navigation - Enhanced styling */
.service-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 16px;
    font-family: 'TildaSans', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 135, 237, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(42, 135, 237, 0.15);
}

.tab-button.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    box-shadow: 0 8px 25px rgba(42, 135, 237, 0.25);
    transform: translateY(-2px);
}

.tab-icon {
    font-size: 2rem;
    line-height: 1;
}

.tab-text {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.tab-count {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
}

.tab-button.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Service Tabs Content */
.service-tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Responsive Design */
@media (max-width: 768px) {
    .services-tabs {
        padding: 4rem 1rem;
    }
    
    .services-tabs h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-tabs-nav {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .tab-button {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .service-tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-button {
        min-width: auto;
    }
}

/* No JavaScript Fallback */
.no-js .service-tabs-nav {
    display: none;
}

.no-js .tab-pane {
    display: block;
    margin-bottom: 3rem;
}
