/**
 * SKILLS COMPONENT
 * 
 * Modern tech stack layout with attractive icons
 */

/* Animations */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes cardGlow {
    0% {
        box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.6);
    }
    100% {
        box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes cardClick {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 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 Filters */
.skills-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(var(--primary-color-rgb), 0.3);
    background: transparent;
    color: var(--text-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    pointer-events: none;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.15);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.4);
    transform: scale(1.02);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 150px));
    gap: 2rem;
    position: relative;
    z-index: 1;
    justify-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

/* Skill Card */
.skill-card {
    background: var(--card-bg);
    border: 2px solid rgba(var(--primary-color-rgb), 0.15);
    border-radius: 16px;
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 150px;
    height: 150px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Background gradient effect on hover */
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-12px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 16px 32px rgba(var(--primary-color-rgb), 0.25);
}

.skill-card:active {
    animation: cardClick 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Skill Icon */
.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card:hover .skill-icon {
    transform: scale(1.2) rotate(8deg);
    filter: drop-shadow(0 4px 8px rgba(var(--primary-color-rgb), 0.3));
}

.skill-card:active .skill-icon {
    animation: iconPulse 0.4s ease;
}

/* Custom Icon for text-based skills */
.skill-icon .custom-icon {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
}

.skill-card:hover .skill-icon .custom-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Skill Name */
.skill-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.skill-card:hover .skill-name {
    color: var(--primary-color);
    font-weight: 700;
}

/* Skills are shown by default */
.skill-card {
    display: flex !important;
}

/* Dark Theme Overrides */
.dark-theme .skill-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dark-theme .skill-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 16px 32px rgba(var(--primary-color-rgb), 0.3);
}

.dark-theme .skill-name {
    color: #e8e8e8;
}

.dark-theme .skill-card:hover .skill-name {
    color: var(--primary-color);
}

.dark-theme .filter-btn {
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.dark-theme .filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
    color: #34ffb4;
    border-color: #34ffb4;
}
.dark-theme .skill-tag[data-level="intermediate"] {
    color: #7cb8ff;
    border-color: #7cb8ff;
}
.dark-theme .skill-tag[data-level="exploring"] {
    color: #c7a6ff;
    border-color: #c7a6ff;
}
.dark-theme .skill-tag[data-level="familiar"],
.dark-theme .skill-tag.aws-service {
    color: #ffd580;
    border-color: #ffd580;
}

/* 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));
    }
}
