/* Services Tabs Styling */
.services-tabs-container {
    width: 100%;
}

/* Tab Navigation */
.service-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    min-width: fit-content;
}

.service-tab:hover {
    background: rgba(255, 136, 25, 0.1);
    color: #FF8819;
    border-color: rgba(255, 136, 25, 0.3);
    transform: translateY(-2px);
}

.service-tab.active {
    background: #FF8819 !important;
    color: #000000 !important;
    border-color: #FF8819;
    box-shadow: 0 4px 20px rgba(255, 136, 25, 0.3);
    text-shadow: none !important;
}

.service-tab i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.service-tab:hover i {
    transform: scale(1.1);
}

.service-tab.active i {
    color: #000000 !important;
    text-shadow: none !important;
}

.service-tab.active span {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Ensure all child elements of active service tabs have black text and no shadow */
.service-tab.active * {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Tab Content */
.tab-content-container {
    position: relative;
    width: 100%;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease-out;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Tab Navigation */
@media (max-width: 768px) {
    .service-tab {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .service-tab span {
        display: none;
    }
    
    .service-tab i {
        font-size: 1.25rem;
    }
    
    /* Show text on active tab on mobile */
    .service-tab.active span {
        display: inline;
    }
    
    .service-tab.active {
        min-width: auto;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .service-tab {
        padding: 0.5rem;
        border-radius: 0.5rem;
    }
    
    .service-tab.active {
        padding: 0.5rem 1rem;
    }
}

/* Enhanced Glass Card for Tab Content */
.tab-content .glass-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Service Item Hover Effects */
.tab-content .space-y-4 > div {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tab-content .space-y-4 > div:hover {
    background: rgba(51, 65, 85, 0.6) !important;
    border-color: rgba(255, 136, 25, 0.3);
    transform: translateX(5px);
}

/* Scrollbar Hide for Tab Navigation */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Loading State for Tab Content */
.tab-content.loading {
    opacity: 0.5;
    pointer-events: none;
}

.tab-content.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 136, 25, 0.3);
    border-radius: 50%;
    border-top-color: #FF8819;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
