/* Skills Section - Modern & Responsive Design */
.skills-section {
    padding: 30px 5% 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.skills-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: gradientShift 3s ease-in-out infinite;
}

.section-subtitle {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.8);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Skill Category */
.skill-category {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out;
}

.skill-category:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 20px 40px -10px rgba(139, 92, 246, 0.2),
        0 0 0 1px rgba(139, 92, 246, 0.1);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.category-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    font-size: 1rem;
    transition: all 0.2s ease;
    /* Reduced from 0.3s */
}

.skill-category:hover .category-icon {
    transform: rotate(10deg) scale(1.1);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
}

.category-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    flex: 1;
}

.category-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    flex: 1;
    margin-left: 1rem;
}

/* Skills List */
.skills-list {
    display: grid;
    gap: 0.6rem;
}

/* Skill Item */
.skill-item {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    padding: 0.6rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* Reduced from 0.3s */
    position: relative;
    overflow: hidden;
}

.skill-item:hover {
    transform: translateX(8px);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 25px -8px rgba(139, 92, 246, 0.3);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.skill-icon {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    /* Reduced from 0.3s */
}

.skill-item:hover .skill-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
}

.skill-info {
    flex: 1;
}

.skill-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.8rem;
}



/* Skill Tags */
.skill-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    padding: 0.15rem 0.5rem;
    border-radius: 16px;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.skill-item:hover .tag {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    transform: scale(1.05);
}

/* Skills Summary */
.skills-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.summary-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out;
}

.summary-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 30px -10px rgba(139, 92, 246, 0.2);
}

.summary-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.summary-card:hover .summary-icon {
    transform: rotate(10deg) scale(1.1);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
}

.summary-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.1rem;
}

.summary-content p {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.65rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}





/* Ensure skill items are visible by default */
.skill-item {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0.875rem;
    }
}

@media (max-width: 768px) {
    .skills-section {
        padding: 20px 4% 15px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .skill-category {
        padding: 0.75rem;
    }

    .section-header {
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: clamp(1.3rem, 3vw, 1.8rem);
    }

    .section-subtitle {
        font-size: 0.75rem;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .category-line {
        width: 100%;
        margin-left: 0;
        margin-top: 0.3rem;
    }

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

    .summary-card {
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .skills-section {
        padding: 15px 3% 12px;
    }

    .section-header {
        margin-bottom: 0.75rem;
    }

    .skill-category {
        padding: 0.6rem;
    }

    .skill-item {
        padding: 0.4rem;
    }

    .skills-list {
        gap: 0.4rem;
    }

    .skill-header {
        gap: 0.4rem;
        margin-bottom: 0.25rem;
    }

    .skill-tags {
        gap: 0.3rem;
    }

    .tag {
        padding: 0.1rem 0.4rem;
        font-size: 0.6rem;
    }

    .summary-card {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
        padding: 0.5rem;
    }

    .summary-content h4 {
        font-size: 0.85rem;
    }

    .summary-content p {
        font-size: 0.6rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .skill-category {
        border-color: #8b5cf6;
        background: rgba(139, 92, 246, 0.1);
    }

    .skill-item {
        border-color: #8b5cf6;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .skill-category,
    .skill-item,
    .summary-card,
    .skill-icon,
    .category-icon,
    .summary-icon {
        transition: none;
        animation: none;
    }

    .progress-bar::after {
        animation: none;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .skills-section {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.95));
    }
}