.skills {
    min-height: 100vh;
    background: #000000;
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 70% 90%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    z-index: 0;
}

.skills-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.skills-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.skills-title {
    font-size: clamp(50px, 10vw, 100px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 100px;
    letter-spacing: 8px;
    color: #ffffff;
    text-transform: uppercase;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: 
        fadeInUp 0.8s ease-out forwards,
        titleGlitch 5s infinite;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.1);
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    perspective: 1000px;
}

.skill-card {
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skill-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    z-index: 0;
}

.skill-card:hover::before {
    transform: translateX(100%);
}

.skill-card:hover {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(255, 255, 255, 0.15);
}

.skill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.skill-card:hover .skill-icon {
    opacity: 1;
    transform: scale(1.2) rotate(5deg);
}

.skill-name {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.1);
}

.skill-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.6s ease;
}

.skill-card:hover .skill-name::after {
    width: 100%;
}

.skill-details {
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.skill-description {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 25px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.05);
}

.skill-card:hover .skill-description {
    opacity: 1;
    color: #ffffff;
}

.skill-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    backdrop-filter: none;
}

.skill-card:hover .tech-tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    color: #ffffff;
}

.skill-level {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.level-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #aaaaaa);
    border-radius: 2px;
    transform: translateX(-100%);
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.skill-card.visible .level-fill {
    transform: translateX(0);
}

.skills-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.skill-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    animation: floatSkill 25s infinite linear;
}

@keyframes floatSkill {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(150px, 150px);
    }
    50% {
        transform: translate(0, 300px);
    }
    75% {
        transform: translate(-150px, 150px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.skill-fullstack {
    grid-column: 1 / -1;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.skill-fullstack::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.1)
    );
    border-radius: 6px;
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.skill-fullstack .skill-name {
    font-size: 48px;
    margin-bottom: 20px;
}

.skill-fullstack .skill-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .skills-content {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .skills {
        padding: 80px 15px;
    }
    
    .skills-title {
        margin-bottom: 80px;
        letter-spacing: 4px;
    }
    
    .skill-card {
        padding: 30px;
        min-height: 250px;
    }
    
    .skill-name {
        font-size: 28px;
    }
    
    .skill-fullstack .skill-name {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .skills-title {
        font-size: 40px;
        margin-bottom: 60px;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .skill-card {
        padding: 25px;
    }
    
    .skill-name {
        font-size: 24px;
    }
    
    .skill-fullstack .skill-name {
        font-size: 32px;
    }
}