#skills {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2b002f 80%);
}

#skills::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 25%, rgba(255, 0, 127, 0.05) 2px, transparent 2px),
                radial-gradient(circle at 75% 75%, rgba(255, 102, 178, 0.05) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: moveParticles 30s linear infinite;
    z-index: 0;
}

@keyframes moveParticles {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 100px 100px, -100px -100px; }
}

.carousel-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: -30px auto;
    padding: 20px;
    overflow: hidden;
    text-align: center;
    border-radius: 16px;
}

.carousel {
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;     
    background: linear-gradient(145deg, #111, #222);
    border: 2px solid #ff007f50;
    border-radius: 20px;
    padding: 40px 60px;
    opacity: 0.9;
    transform: scale(0.95);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.carousel-slide.active {
    transform: scale(1);
    box-shadow: 0 0 15px #ff007f80, 0 0 20px #ff66b280;
}

.carousel-slide h3 {
    font-size: 26px;
    margin-bottom: 25px;
    text-shadow: 0 0 8px #fffafc, 0 0 16px #e6509b;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0 10px;
}

.skill {
    flex: 0 0 150px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;
    border: 2px solid #ff007f80;
    border-radius: 14px;
    box-shadow: 0 0 10px #ff007f30;
    transition: all 0.4s ease;
    animation: floatSkill 3s ease-in-out infinite;
}

@keyframes floatSkill {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px) rotate(-1deg); }
}

.skill:hover {
    transform: translateY(-10px) scale(1.08) rotate(2deg);
    border-color: #ff66b2;
    box-shadow: 0 0 25px #ff007f, 0 0 50px #ff66b2;
}

.skill img {
    height: 70px;
    transition: transform 0.3s ease;
}

.skill:hover img {
    transform: scale(1.15);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ff007f;
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #ff3399;
    box-shadow: 0 0 25px #ff007f, 0 0 20px #ff66b2;
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    background: #555;
    border-radius: 50%;
    cursor: pointer;
    animation: blink 2s infinite ease-in-out;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #ff007f;
    transform: scale(1.4);
    animation: none;
}

@keyframes blink {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}


@media (max-width: 992px) {
    .carousel-container {
        max-width: 700px;
        padding: 15px;
    }
    .carousel-slide {
        padding: 35px 25px;
    }
    .skill {
        flex: 0 0 120px;
        height: 95px;
    }
    .skill img {
        height: 55px;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        padding: 30px 20px;
    }
    .carousel-slide h3 {
        font-size: 22px;
    }
    .skills-list {
        gap: 10px;
    }
    .skill {
        flex: 0 0 110px;
        height: 85px;
    }
    .skill img {
        height: 50px;
    }
    .carousel-btn {
        font-size: 24px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        margin-top: -10px;
    }
    .carousel-slide {
        padding: 25px 15px;
    }
    .carousel-slide h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    .skills-list {
        gap: 8px;
    }
    .skill {
        flex: 0 0 90px;
        height: 75px;
    }
    .skill img {
        height: 40px;
    }
    .carousel-btn {
        font-size: 20px;
        padding: 8px;
    }
    .indicator {
        width: 10px;
        height: 10px;
    }
}
