/* Tabs Styling for Skills Section */
.skills-tabs-container {
    width: 100%;
    margin-bottom: 50px;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(105, 48, 195, 0.3);
    transform: translateY(-3px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

.skills-grid-tab {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    justify-content: space-between;
}

.skill-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(105, 48, 195, 0.15);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.skill-item i {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.skill-item span {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.skill-bottom {
    width: 100%;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skill-progress {
    width: 85%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 1s ease-in-out;
    width: 0;
}

.skill-level {
    font-size: 0.9rem;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    height: 20px;
    line-height: 20px;
    display: block;
    padding: 0 5px;
    text-align: center;
}

/* Tab indicator animation */
.tabs-indicator {
    text-align: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    animation: pulseIndicator 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tabs-indicator i {
    font-size: 0.8rem;
    animation: slideIndicator 1.5s infinite;
}

@keyframes pulseIndicator {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes slideIndicator {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* Highlight active tab more clearly */
.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(105, 48, 195, 0.3);
    transform: translateY(-3px);
}

/* Add visual click affordance to tabs */
.tab-btn:not(.active)::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-btn:not(.active):hover::after {
    opacity: 1;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .tabs-nav {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .skills-grid-tab {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .skill-item {
        padding: 20px 15px;
        min-height: 160px;
    }
    
    .skill-item i {
        font-size: 2rem;
    }
    
    .skill-item span {
        font-size: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .tabs-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .skills-grid-tab {
        grid-template-columns: 1fr;
    }
}

/* Light theme styles */
body:not(.dark-theme) .tab-btn {
    background-color: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body:not(.dark-theme) .tab-btn:hover {
    background-color: rgba(0, 113, 227, 0.05);
    border-color: rgba(0, 113, 227, 0.15);
}

body:not(.dark-theme) .tab-btn.active {
    background: #0071e3;
    color: white;
    border-color: transparent;
}

body:not(.dark-theme) .skill-item {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body:not(.dark-theme) .skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 113, 227, 0.3);
}

body:not(.dark-theme) .skill-item span {
    color: #1d1d1f;
}

body:not(.dark-theme) .skill-progress {
    background-color: rgba(0, 0, 0, 0.05);
}

body:not(.dark-theme) .skill-level {
    background: linear-gradient(90deg, #0071e3, #40a9ff);
} 