/* Skills Section */
.skills {
    position: relative;
    background: var(--gradient-bg);
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 49%, rgba(0, 217, 255, 0.02) 50%, transparent 51%);
    pointer-events: none;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.skill-category {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    animation: fadeInUp 0.8s ease-out;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(0, 217, 255, 0.3);
}

.skill-category:nth-child(2n)::before {
    background: var(--gradient-secondary);
}

.skill-category:nth-child(3n)::before {
    background: var(--gradient-tertiary);
}

.category-title {
    font-size: var(--fs-h3);
    font-family: var(--font-tech);
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.category-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.skill-category:nth-child(2n) .category-icon {
    background: var(--gradient-secondary);
}

.skill-category:nth-child(3n) .category-icon {
    background: var(--gradient-tertiary);
}

.technologies-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.technology-item {
    position: relative;
}

.tech-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.tech-name {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.tech-icon {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
    animation-delay: calc(var(--index) * 0.2s);
}

.tech-level {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    font-family: var(--font-tech);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

.technology-item:nth-child(2n) .progress-fill {
    background: var(--gradient-secondary);
}

.technology-item:nth-child(3n) .progress-fill {
    background: var(--gradient-tertiary);
}

.technology-item:nth-child(4n) .progress-fill {
    background: linear-gradient(135deg, var(--accent-warning), var(--accent-purple));
}

/* 3D Skill Icons */
.skill-3d-container {
    perspective: 1000px;
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.skill-3d-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    position: relative;
}

.skill-3d-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    transform: translateZ(-10px);
    opacity: 0.5;
}

.skill-3d-icon:hover {
    transform: rotateY(180deg) rotateX(20deg);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.skill-3d-icon:nth-child(2n) {
    background: var(--gradient-secondary);
}

.skill-3d-icon:nth-child(3n) {
    background: var(--gradient-tertiary);
}

.skill-3d-icon:nth-child(4n) {
    background: linear-gradient(135deg, var(--accent-warning), var(--accent-purple));
}

/* Pulse Effect for Skills */
.skill-category.in-view .tech-icon {
    animation: techPulse 1.5s ease-in-out infinite;
}

/* Responsive Skills */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .skill-category {
        padding: var(--spacing-md);
    }
    
    .category-title {
        font-size: var(--fs-body);
    }
    
    .skill-3d-container {
        gap: var(--spacing-xs);
    }
    
    .skill-3d-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .technologies-list {
        gap: var(--spacing-sm);
    }
}
