/**
 * Bright Infosystem Website
 *
 * @file tech_stack_section.css
 * @description Styles for the Tech Stack section with horizontal tooltip-style tabs.
 * @version 2.1 (Mobile Scrollbar Fix)
 */

.tech-stack-section { padding: 100px 20px; }
.tech-stack-container { max-width: 1100px; margin: 0 auto; }
.tech-stack-header { text-align: center; }

.tech-stack-layout {
    margin-top: 50px;
}

.tech-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: -1px; /* To overlap the content border */
    position: relative;
    z-index: 2;
}

.tab-link {
    background: var(--secondary-color);
    border: 1px solid var(--dark-divider-color);
    border-bottom: none;
    color: var(--text-color);
    padding: 15px 30px;
    border-radius: 15px 15px 0 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}
.tab-link.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}
/* Tooltip arrow */
.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-right: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    z-index: -1;
}

.tech-content-wrapper {
    background-color: var(--secondary-color);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--accent-color);
    position: relative;
}

.tech-tab-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.tech-tab-content.active {
    display: grid;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tech-item {
    background-color: var(--bg-color);
    border: 1px solid var(--dark-divider-color);
    padding: 20px;
    border-radius: 12px;
    color: var(--primary-color);
}
.tech-item h4 { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 0 0 8px 0; }
.tech-item h4 i { color: var(--text-color); }
.tech-item p { font-size: 14px; color: var(--text-color); line-height: 1.6; margin: 0; }

@media (max-width: 768px) {
    .tech-tabs {
        flex-wrap: wrap; /* Allow tabs to wrap instead of scrolling */
        justify-content: center;
        margin-bottom: 20px; /* Add space between tabs and content */
    }
    .tab-link {
        border-bottom: 1px solid var(--dark-divider-color); /* Add bottom border back */
    }
    .tab-link.active {
         border-bottom-color: var(--accent-color);
    }
    .tab-link.active::after {
        display: none; /* Hide tooltip arrow on mobile */
    }
    .tech-content-wrapper {
        border-top-color: var(--dark-divider-color);
    }
    .tech-tab-content {
        grid-template-columns: 1fr;
    }
}

