
#skills {
    min-height: 100vh;
    padding: 100px 0;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.skill-category-header {
    grid-column: 1 / -1;
    margin: 1.5rem 0 0.8rem 0;
    text-align: center;
    position: relative;
}

.skill-category-header:first-child {
    margin-top: 0;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    z-index: 2;
}

.skill-category-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    z-index: 1;
}

#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(var(--primary-color-rgb), 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(var(--primary-color-rgb), 0.05) 0%, transparent 50%);
    pointer-events: none;
}

#skills .skills-title {
    font-family: var(--font-special);
    background: linear-gradient(to right, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.skills-title span {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#skills .skills-text {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 1.5rem auto 0;
    text-align: center;
    font-family: var(--font-body);
    line-height: 1.6;
    max-width: 700px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}


#skills .technical-skills {
    margin: 4rem auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    max-width: 1200px;
    padding: 0 2rem;
    position: relative;
}

/* Loading Progress Indicator */
.skills-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    transition: all 0.5s ease-out;
}

.skills-loading-progress {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.loading-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

.loading-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
}

.loading-percentage {
    color: var(--primary-color);
    font-weight: 700;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@media screen and (max-width: 1200px) {
    #skills .technical-skills {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

@media screen and (max-width: 1024px) {
    #skills .technical-skills {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .technical-skills .skill {
        padding: 0.9rem;
    }
    
    .skill .icon img {
        width: 40px;
        height: 40px;
    }
}

.technical-skills .skill {
    padding: 0.8rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(var(--primary-color-rgb), 0.12);
    position: relative;
    overflow: hidden;
    animation: skillBounce 4s ease-in-out infinite;
}

@keyframes skillBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.technical-skills .skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb), 0.05), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.technical-skills .skill:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(var(--primary-color-rgb), 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--primary-color-rgb), 0.25);
    background: rgba(255, 255, 255, 0.95);
}

.technical-skills .skill:hover::before {
    left: 100%;
}

.skill .info {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.skill .skill-percentage {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    min-width: 42px;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    text-align: center;
    opacity: 0;
    transform: translateX(20px) scale(0.8);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.3);
    letter-spacing: 0.3px;
    position: relative;
}

.skill .skill-percentage.animate {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.skill .icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.skill .icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--primary-color-rgb), 0.05));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.skill:hover .icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skill:hover .icon::before {
    opacity: 1;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon i {
    font-size: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon i.n8n-icon {
    color: #8b5cf6;
}

[data-theme="dark"] .icon i.n8n-icon {
    color: #a78bfa;
}





/* .skill .info .skill-info {
    display: flex;
    justify-content: space-between;
} */

.skill-info .subject {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.skill:hover .skill-info .subject {
    color: var(--primary-color);
    transform: translateX(2px);
}

.skill .info .skill-progress {
    position: relative;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, rgba(var(--primary-color-rgb), 0.1) 0%, rgba(var(--primary-color-rgb), 0.2) 100%);
    border-radius: 20px;
    transform: scaleX(0);
    transform-origin: left;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: visible;
    transition: all 0.3s ease;
}

.skill .info .skill-progress.animate {
    animation: animateProgress 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.skill .info .skill-progress:hover {
    transform: scaleX(1) scaleY(1.1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(var(--primary-color-rgb), 0.2);
}

.skill-progress span {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
    border-radius: 20px;
    color: white;
    font-weight: 600;
    width: 0%;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(var(--primary-color-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.skill-progress span.animate {
    width: var(--target-width);
    transition: width 1.5s 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-progress span::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
    border-radius: 20px;
}

.skill-progress span.animate::after {
    animation: shimmer 2s infinite 1s;
}

.skill-progress span:hover {
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb), 0.6);
    filter: brightness(1.1);
}

@keyframes animateProgress {
    100% {
        transform: scaleX(1);
    }
}

@keyframes animateProgressWidth {
    0% {
        width: 0%;
    }
    100% {
        width: var(--target-width);
    }
}

@keyframes bounceIn {
    0% {
        transform: translateX(20px) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translateX(-5px) scale(1.1);
        opacity: 0.8;
    }
    70% {
        transform: translateX(2px) scale(0.95);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}




@keyframes showText {
    100% {
        opacity: 1;
    }
}












.skill-progress.html5 span {
    --target-width: 95%;
}

.skill-progress.css3 span {
    --target-width: 90%;
}

.skill-progress.js span {
    --target-width: 100%;
}

.skill-progress.jquery span {
    --target-width: 100%;
}

.skill-progress.ajax span {
    --target-width: 75%;
}

.skill-progress.php span {
    --target-width: 88%;
}

.skill-progress.mysql span {
    --target-width: 85%;
}

.skill-progress.mongodb span {
    --target-width: 78%;
}

.skill-progress.laravel span {
    --target-width: 82%;
}

.skill-progress.wordpress span {
    --target-width: 92%;
}

.skill-progress.woocomerce span {
    --target-width: 87%;
}

.skill-progress.git span {
    --target-width: 90%;
}

.skill-progress.github span {
    --target-width: 88%;
}

.skill-progress.react span {
    --target-width: 75%;
}

.skill-progress.python span {
    --target-width: 70%;
}

.skill-progress.java span {
    --target-width: 72%;
}

.skill-progress.R span {
    --target-width: 65%;
}

.skill-progress.jupyter span {
    --target-width: 68%;
}

.skill-progress.perfex span {
    --target-width: 100%;
}

.skill-progress.codeigniter span {
    --target-width: 100%;
}

.skill-progress.n8n span {
    --target-width: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}








@media screen and (max-width: 1450px) {
    #skills .skills-title {
        font-size: 2.2rem;
    }

    #skills .skills-text {
        font-size: 1rem;
        margin: 1.2rem auto 0;
        line-height: 1.5;
        max-width: 600px;
    }

    #skills .technical-skills {
        max-width: 1000px;
        gap: 4rem;
        padding: 0 1.5rem;
    }

    .skill .icon {
        width: 65px;
        height: 65px;
    }

    .left .skill,
    .right .skill {
        padding: 1rem;
        gap: 1rem;
    }
}

@media screen and (max-width: 1200px) {
    #skills {
        padding: 80px 0;
    }

    #skills .skills-title {
        font-size: 2rem;
    }

    #skills .skills-text {
        font-size: 0.95rem;
        max-width: 550px;
        padding: 0 1rem;
    }

    #skills .technical-skills {
        gap: 3rem;
        padding: 0 1rem;
    }

    .left .skill,
    .right .skill {
        padding: 1rem 0.8rem;
    }

    .skill .icon {
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 992px) {
    #skills {
        padding: 60px 0;
    }

    #skills .technical-skills {
        flex-direction: column;
        gap: 2rem;
        max-width: 600px;
    }

    .technical-skills .left,
    .technical-skills .right {
        width: 100%;
    }

    .left .skill,
    .right .skill {
        padding: 1.2rem;
        gap: 1.2rem;
    }

    .skill .icon {
        width: 65px;
        height: 65px;
    }
}

@media screen and (max-width: 768px) {
    #skills {
        padding: 4rem 1rem;
    }

    #skills .skills-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    #skills .skills-text {
        font-size: 0.9rem;
        margin: 1rem auto 2rem;
        max-width: 90%;
        padding: 0 1.5rem;
    }

    #skills .technical-skills {
        margin: 3rem auto;
        padding: 0 1rem;
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .technical-skills .skill {
        padding: 1rem;
        gap: 1rem;
    }

    .skill .icon {
        width: 50px;
        height: 50px;
        padding: 6px;
    }

    .skill .icon img {
        width: 30px;
        height: 30px;
    }

    .skill .icon i {
        font-size: 1.8rem;
    }

    .skill-info .subject {
        font-size: 0.9rem;
    }

    .skill .info .skill-progress {
        height: 8px;
    }

    .skill .skill-percentage {
        font-size: 1rem;
        min-width: 40px;
    }

    .skill-category-header {
        margin: 1.5rem 0 0.8rem 0;
    }

    .category-title {
        font-size: 1rem;
        padding: 0 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    #skills {
        padding: 40px 0;
    }

    #skills .skills-title {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    #skills .skills-text {
        font-size: 0.85rem;
        margin: 0.8rem auto 0;
        padding: 0 1rem;
        line-height: 1.5;
    }

    #skills .technical-skills {
        margin: 2.5rem auto;
        padding: 0 1rem;
        gap: 1.2rem;
    }

    .technical-skills .skill {
        padding: 0.8rem;
        gap: 0.8rem;
        border-radius: 12px;
    }

    .skill .icon {
        width: 50px;
        height: 50px;
        padding: 5px;
    }

    .skill .icon i {
        font-size: 1.5rem;
    }

    .skill-info .subject {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .skill .info .skill-progress {
        height: 7px;
    }

    .skill-progress span::after {
        font-size: 0.7rem;
        padding: 6px 10px;
        top: -35px;
        right: -6px;
        min-width: 40px;
    }

    .skill-category-header {
        margin: 1.2rem 0 0.6rem 0;
    }

    .category-title {
        font-size: 0.9rem;
        padding: 0 0.6rem;
        letter-spacing: 0.5px;
    }
}