/**
 * SKILLS COMPONENT
 * 
 * Modern and attractive styling for skills section
 */

/* Skills Section */
.skills {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-color-alt) 100%);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.skills::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(var(--primary-color-rgb), 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Skills Content Container */
.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

/* Skills Category */
.skills-category {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.skills-category:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Category Header */
.category-header {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.2) 0%, rgba(var(--primary-color-rgb), 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.skills-category:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
}

.skills-category h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

/* Skills Tag Cloud */
.skills-tag-cloud {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
    position: relative;
}

/* Individual Skill Tag - Base Styles */
.skill-tag {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: rgb(29, 78, 216);
}

.skill-tag:hover {
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.25) 0%,
        rgba(59, 130, 246, 0.15) 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 4px 12px rgba(var(--primary-color-rgb), 0.15),
        0 2px 4px rgba(var(--primary-color-rgb), 0.1);
}

/* Animation for skill tags */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-tag {
    animation: fadeInUp 0.6s ease backwards;
}

/* Dark Theme Overrides for Skills Section */
.dark-theme .skill-tag{
    color: #7cb8ff;
    border-color: #7cb8ff;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .skills-content {
        grid-template-columns: 1fr;
    }
    
    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .skills-category h3 {
        font-size: 1.5rem;
    }
    
    .skills-tag-cloud {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
