/* Skills Section Styles */
.skills {
    position: relative;
    padding: 2.5rem 0;
    min-height: 100vh;
}

.skills .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

/* Skill Category */
.skill-category {
    --card-glow-color-rgb: 245, 11, 102;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform: translateZ(0);
    position: relative;
    overflow: hidden;
}

.skill-category::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
            rgba(var(--card-glow-color-rgb, 245, 11, 102), 0.35),
            rgba(var(--card-glow-color-rgb, 245, 11, 102), 0.15) 35%,
            rgba(var(--card-glow-color-rgb, 245, 11, 102), 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    mix-blend-mode: screen;
}

.skill-category:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.skill-category:hover::after {
    opacity: 1;
}

.skill-category__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.skill-category__header i {
    font-size: 1.125rem;
    color: var(--primary);
    width: 1.5rem;
    text-align: center;
}

.skill-category h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Skill Items */
.skill-items {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.skill-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--foreground);
}

.skill-percentage {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

/* Progress Bar */
.skill-progress {
    width: 100%;
    height: 6px;
    background: var(--muted);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.skill-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--chart-2));
    border-radius: var(--radius);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: width;
    transform: translateZ(0);
}

.skill-progress__bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    transform: translateZ(0);
}

.skill-progress__bar.animate::after {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        transform: translate3d(-100%, 0, 0);
    }
    100% {
        transform: translate3d(100%, 0, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills {
        padding: 2rem 0;
    }

    .skills .container {
        padding: 0 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .skill-category {
        padding: 1rem;
        gap: 0.875rem;
    }

    .skill-category__header {
        gap: 0.5rem;
        padding-bottom: 0.625rem;
    }

    .skill-category__header i {
        font-size: 1rem;
        width: 1.375rem;
    }

    .skill-category h3 {
        font-size: 0.9375rem;
    }

    .skill-items {
        gap: 0.75rem;
    }

    .skill-item {
        gap: 0.375rem;
    }

    .skill-name {
        font-size: 0.75rem;
    }

    .skill-percentage {
        font-size: 0.6875rem;
    }

    .skill-progress {
        height: 5px;
    }
}

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

    .skills-grid {
        gap: 0.875rem;
        margin-top: 1.25rem;
    }

    .skill-category {
        padding: 0.875rem;
        gap: 0.75rem;
    }

    .skill-category__header {
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .skill-category__header i {
        font-size: 0.9375rem;
        width: 1.25rem;
    }

    .skill-category h3 {
        font-size: 0.875rem;
    }

    .skill-items {
        gap: 0.625rem;
    }

    .skill-name {
        font-size: 0.6875rem;
    }

    .skill-percentage {
        font-size: 0.625rem;
    }

    .skill-progress {
        height: 4px;
    }
}