.skills {
    margin-top: 120px;
    padding: 5rem 9%;
    background-color: black;
    color: white;
    text-align: center;
}

.skills h2 {
    font-size: 3.5rem;
    margin-bottom: 5rem;
    color: #db1f1f;
}

.skills-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.skill {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 2rem;
    text-align: center;
    opacity: 0; /* Start invisible */
    transform: scale(0); /* Start small */
    animation: scaleIn 0.5s forwards; /* Apply animation */
}

/* Animation delay for each skill */
.skill:nth-child(1) { animation-delay: 0.1s; }
.skill:nth-child(2) { animation-delay: 0.2s; }
.skill:nth-child(3) { animation-delay: 0.3s; }
.skill:nth-child(4) { animation-delay: 0.4s; }
.skill:nth-child(5) { animation-delay: 0.5s; }
.skill:nth-child(6) { animation-delay: 0.6s; }
.skill:nth-child(7) { animation-delay: 0.7s; }
.skill:nth-child(8) { animation-delay: 0.8s; }
.skill:nth-child(9) { animation-delay: 0.9s; }
.skill:nth-child(10) { animation-delay: 1.0s; }
.skill:nth-child(11) { animation-delay: 1.1s; }
.skill:nth-child(12) { animation-delay: 1.2s; }

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.circle {
    position: relative;
    width: 100%;
    height: 100%;
}

.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: #121212;
    border-radius: 50%;
    z-index: 1;
}

.outer-circle {
    position: relative;
    width: 100%;
    height: 100%;
    background: conic-gradient(#db1f1f calc(var(--progress) * 1%), #999 calc(var(--progress) * 1%));
    border-radius: 50%;
    transition: background 0.5s ease; /* Add transition for smooth effect */
}

.skill-label {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    color: white;
    z-index: 2;
}

.percentage {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    z-index: 2;
}

