/* Skills Section */
.skills-section {
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 30px;
    padding: 50px;
    margin: 30px auto;
    width: 95%;
    position: relative;
}

/* Skills Header */
.skills-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.skills-header p {
    font-size: 18px;
    color: #cccccc;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.skills-header p::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #8eff54; /* var(--primary) */
    margin: 25px auto 0;
    border-radius: 2px;
}

.skills-header .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.skills-header .section-title h2 {
    font-size: 32px;
    font-weight: 600;
    color: #fff; /* var(--foreground) */
    white-space: nowrap;
}

.skills-header .title-tag {
    background: #8eff54; /* var(--primary) */
    color: #1a1a1a; /* var(--bg-darker) */
    font-size: 16px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 15px;
    margin-left: 0;
    margin-right: 0;
    letter-spacing: 1px;
    display: inline-block;
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1140px;
    margin: 0 auto;
}

.skill-item {
    position: relative;
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-icon {
    height: 24px;
    width: 24px;
    background-color: rgba(142, 255, 84, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8eff54;
    font-size: 12px;
}

.skill-name {
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
}

.skill-percentage {
    color: #8eff54;
    font-weight: 600;
    font-size: 14px;
}

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

.skill-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #8eff54;
    border-radius: 5px;
    transition: width 0s;
}

.skill-progress.animate-progress::before {
    width: var(--progress-width);
    transition: width 1.5s ease-in-out;
}

/* Responsive adjustments for tablets */
@media (max-width: 1100px) {
    .skills-header .section-title h2 {
        font-size: 28px;
    }
    .skills-header p {
        font-size: 16px;
    }
    .skills-content {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 4vw;
    }
}

/* Full Mobile Compatibility */
@media (max-width: 768px) {
    .skills-section {
        padding: 30px;
    }
    .skills-header {
        margin-bottom: 30px;
    }
    .skills-header .section-title h2 {
        font-size: 24px;
    }
    .skills-header p {
        font-size: 14px;
    }
    .skills-header p::after {
        margin: 20px auto 0;
    }
    .skills-content {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 2vw;
    }
}

@media (max-width: 480px) {
    .skills-header .section-title h2 {
        font-size: 22px;
    }
    .skills-header .title-tag {
        font-size: 14px;
        padding: 4px 12px;
    }
    .skills-header p {
        font-size: 13px;
    }
    .skill-name {
        font-size: 14px;
    }
    .skill-percentage {
        font-size: 12px;
    }
    .skill-icon {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
}