/* ===== MICROSOFT-STYLE SOLUTIONS TABS SECTION ===== */

.solutions-tabs-section {
    padding: 80px 0;
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.solutions-tabs-section .section-header {
    margin-bottom: 60px;
}

.solutions-tabs-section .section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.solutions-tabs-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== TAB NAVIGATION ===== */

.tabs-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Segoe UI', system-ui, sans-serif;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-width: fit-content;
}

.tab-btn:hover {

    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #0078d4, #00bcf2);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.3);
    transform: translateY(-2px);
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

/* ===== TAB CONTENT ===== */

.tabs-content {
    position: relative;
    min-height: 400px;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tab-content-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 120, 212, 0.3);
}

/* ===== TEXT CONTENT ===== */

.tab-text-content {
    padding-right: 20px;
}

.tab-text-content h3 {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.tab-text-content p {
    font-size: 1rem;
    color: #0078d4;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-stat {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 188, 242, 0.1), rgba(0, 120, 212, 0.05));
    border: 1px solid rgba(0, 188, 242, 0.2);
    border-radius: 12px;
    text-align: center;
}

.tab-stat .stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #00bcf2;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 188, 242, 0.3);
}

.tab-stat .stat-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: lowercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* ===== IMAGE CONTENT ===== */

.tab-image-desktop {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.tab-image-desktop:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

.tab-image-desktop img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.tab-image-mobile {
    display: none;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Extra Wide Screens */
@media (min-width: 1600px) {
    .tabs-navigation {
        max-width: 1400px;
        gap: 8px;
    }
    
    .tab-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* Large Desktop */
@media (max-width: 1400px) {
    .tabs-navigation {
        max-width: 100%;
        padding: 6px;
    }
    
    .tab-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .solutions-tabs-section {
        padding: 60px 0;
    }
    
    .tabs-navigation {
        max-width: 100%;
        gap: 6px;
        padding: 6px;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}
    
    .tab-content-grid {
        gap: 40px;
        padding: 30px;
    }
    
    .tab-text-content h3 {
        font-size: 1.7rem;
    }
    
    .tab-stat .stat-number {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .solutions-tabs-section {
        padding: 50px 0;
    }
    
    .solutions-tabs-section .section-title {
        font-size: 2rem;
    }
    
    .solutions-tabs-section .section-subtitle {
        font-size: 1rem;
    }
    
    .tabs-navigation {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 8px;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        margin-bottom: 8px;
    }
    
    .tab-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
        text-align: center;
    }
    
    .tab-text-content {
        padding-right: 0;
    }
    
    .tab-text-content h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .tab-image-desktop {
        display: none;
    }
    
    .tab-image-mobile {
        display: block;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .tab-image-mobile img {
        width: 100%;
        height: auto;
        border-radius: 12px;
    }
    
    .tab-stat .stat-number {
        font-size: 2.2rem;
    }
    
    .tab-stat .stat-text {
        font-size: 0.85rem;
    }
}

/* ===== DARK/LIGHT MODE SUPPORT ===== */

[data-theme="light"] .solutions-tabs-section {
    background: #f8fafc;
}

[data-theme="light"] .tabs-navigation {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .tab-btn:hover {

    background-clip: text;
    color: #3B82F6;
}

[data-theme="light"] .tab-content-grid {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tab-content-grid:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .tab-stat {
    background: rgba(0, 188, 242, 0.08);
    border: 1px solid rgba(0, 188, 242, 0.15);
}

@media (max-width: 768px) {
    [data-theme="light"] .tab-btn {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* ===== ACCORDION STYLING ===== */

.tab-accordion {
    width: 100%;
    margin: 0;
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 120, 212, 0.1);
    margin-bottom: 0;
}

[data-theme="dark"] .accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.accordion-header:hover {
    background: rgba(0, 120, 212, 0.05);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 8px;
}

[data-theme="dark"] .accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    flex: 1;
    padding-right: 20px;
}

.accordion-icon {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    color: #0078d4;
}

.accordion-content {
    padding: 0 0 20px 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    display: none;
}

.accordion-item.active .accordion-content {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive for accordion */
@media (max-width: 768px) {
    .tab-main-image {
        margin-bottom: 20px;
    }
    
    .accordion-header {
        padding: 15px 0;
    }
    
    .accordion-header h3 {
        font-size: 1rem;
        padding-right: 15px;
    }
    
    .accordion-content {
        padding: 0 0 15px 0;
        font-size: 0.9rem;
    }
    
    .accordion-header:hover {
        padding-left: 5px;
        padding-right: 5px;
    }
}
