/* About Section Tabs Mobile Fix */
/* Ensures tabs work properly on mobile devices */

.about-tabs {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
    z-index: 10;
}

.about-tab {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    outline: none;
    position: relative;
    z-index: 10;
}

.about-tab:active {
    opacity: 0.7;
}

/* FORCE RESET - Remove all underlines by default */
.about-section .about-tab::after,
.about-section .about-tabs .about-tab::after {
    content: '' !important;
    position: absolute !important;
    bottom: -1px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: #000000 !important;
    transition: width 0.3s ease !important;
    display: block !important;
    visibility: hidden !important;
}

/* Only show underline on active tab */
.about-section .about-tab.active::after,
.about-section .about-tabs .about-tab.active::after {
    width: 100% !important;
    visibility: visible !important;
}

/* Explicitly hide underline on non-active tabs */
.about-section .about-tab:not(.active)::after,
.about-section .about-tabs .about-tab:not(.active)::after {
    width: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
}

.about-content-text {
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block !important;
    opacity: 1;
    animation: fadeInContent 0.4s ease;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    .about-tabs {
        gap: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    
    .about-tab {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 5px 15px;
    }
    
    .tab-content {
        min-height: 200px;
    }
}
