/* About Page - Expertise Section */

/* ======= Expertise Section ======= */
.expertise-section {
    padding: 4rem 0;
    background-color: var(--color-background);
    position: relative;
    overflow-x: hidden;
    box-sizing: border-box;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* Tabs Navigation */
.expertise-tabs-container {
    margin-top: 4rem;
    width: 100%;
}

.expertise-tabs {
    background-color: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-surface);
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
    padding: 0;
}

.tab-button {
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1 1 0;
    min-width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
}

.tab-button i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.tab-button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    display: none;
}

.tab-button:hover {
    color: var(--color-text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.tab-button.active {
    color: var(--color-text-primary);
    border-bottom: 3px solid var(--color-primary);
}

.tab-button.active::after {
    transform: scaleX(1);
    display: none;
}

.tab-button.active i {
    color: var(--color-primary);
}

/* Tab Content */
.tab-content-container {
    position: relative;
    min-height: 500px;
}

.tab-content {
    display: none;
    padding: 3rem;
}

.tab-content.active {
    display: block;
    animation: fadeContent 0.5s ease forwards;
}

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

/* Expertise Content Layout */
.expertise-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
}

.expertise-main {
    width: 100%;
}

.expertise-main h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.expertise-main p {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.expertise-details {
    width: 100%;
    display: grid;
    gap: 2rem;
}

/* Skill Bars */
.skill-category h4,
.technology-stack h4,
.key-projects h4 {
    font-size: 1.2rem;
    color: var(--color-text-primary);
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 1rem;
}

.skill-category h4::before,
.technology-stack h4::before,
.key-projects h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.skill-bars {
    display: grid;
    gap: 1.25rem;
}

.skill-bar {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) 2fr;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.skill-label {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.skill-progress {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0; /* Will be set by JS */
    background: var(--gradient-primary);
    border-radius: 4px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.progress-value {
    position: absolute;
    right: 0;
    top: -22px;
    font-size: 0.85rem;
    color: var(--color-primary);
}

/* Technology Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tags span {
    background-color: rgba(0, 255, 178, 0.1);
    color: var(--color-primary);
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 178, 0.2);
}

/* Expertise Visual */
.expertise-visual {
    width: 100%;
}

/* Project Chips */
.project-chips {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.key-projects {
    margin-top: 1.5rem;
}

.key-projects h4 {
    position: relative;
    color: var(--color-text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.key-projects h4::before {
    content: "";
    width: 3px;
    height: 16px;
    background: var(--color-primary);
    margin-right: 0.5rem;
    border-radius: 2px;
}

.project-chip {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
}

.project-chip-inner {
    padding: 0.65rem 0.75rem;
    display: flex;
    align-items: center;
    word-break: break-word;
    font-size: 0.9rem;
}

.chip-marker {
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background-color: var(--color-primary);
    margin-right: 0.5rem;
    box-shadow: 0 0 6px var(--color-primary);
}

/* Responsive Adjustments */
@media (max-width: 1100px) {
    .expertise-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .skill-bar {
        grid-template-columns: 1fr 2fr;
    }
}

@media (max-width: 768px) {
    .expertise-section {
        padding: 2rem 0;
    }

    .expertise-section .section-container {
        padding: 0 1rem;
        display: flex !important;
        flex-direction: column !important;
    }

    .expertise-section .section-header {
        order: -1 !important;
        margin-bottom: 2rem !important;
    }

    .section-container {
        padding: 0 1rem;
    }

    .expertise-tabs-container {
        margin-top: 2rem;
    }
    
    .expertise-tabs {
        border-radius: 8px;
    }
    
    .tab-nav {
        justify-content: flex-start;
        gap: 0.25rem;
        padding: 0.5rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        flex: 0 0 auto;
        scroll-snap-align: start;
        border-radius: 6px;
        border-bottom: none;
        background-color: rgba(255, 255, 255, 0.05);
        min-width: max-content;
    }
    
    .tab-button i {
        margin-right: 0.35rem;
        font-size: 1rem;
    }
    
    .tab-button.active {
        background-color: var(--color-primary);
        color: var(--color-text-primary);
        border-bottom: none;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .expertise-main h3 {
        font-size: 1.3rem;
    }
    
    .expertise-main p {
        font-size: 0.95rem;
    }

    .skill-bar {
        grid-template-columns: 1fr;
    }

    .skill-label {
        margin-bottom: 0.25rem;
    }

    .tech-tags {
        gap: 0.5rem;
    }

    .tech-tags span {
        font-size: 0.75rem;
        padding: 0.25rem 0.65rem;
        white-space: nowrap;
    }

    .key-projects {
        margin-top: 1.25rem;
    }
    
    .project-chips {
        gap: 0.5rem;
    }
    
    .project-chip-inner {
        padding: 0.5rem 0.65rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .expertise-section {
        padding: 1.5rem 0;
    }

    .section-container {
        padding: 0 0.75rem;
    }
    
    .expertise-tabs-container {
        margin-top: 1.5rem;
    }
    
    .tab-nav {
        padding: 0.5rem 0.5rem 0.75rem;
    }
    
    .tab-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 4px;
    }
    
    .tab-button i {
        font-size: 0.9rem;
        margin-right: 0.25rem;
    }

    .expertise-main h3 {
        font-size: 1.2rem;
    }

    .skill-category h4,
    .technology-stack h4,
    .key-projects h4 {
        font-size: 1rem;
    }

    .tab-content {
        padding: 1rem 0.75rem;
    }

    .tech-tags {
        gap: 0.35rem;
    }

    .tech-tags span {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .key-projects h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .project-chip-inner {
        padding: 0.45rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .chip-marker {
        width: 5px;
        height: 5px;
        min-width: 5px;
        margin-right: 0.4rem;
    }
}

/* Removes the side-by-side layout from tablet size and up */
@media (min-width: 769px) {
    .expertise-content {
        grid-template-columns: 1fr;
    }
} 