@import url(./variables.css);

.section-skills{
    margin-top: 4em;
    position: relative;
    display: flex;
    justify-content: center ;
    align-items: center;
    padding: 40px 40px;
    min-height: 100vh;
    background: var(--bg-primary-opacity);

}

.section-skills::before{
    
    content: '';
    position: absolute;
    top: 45%;
    left: 0;

    width: 100%;
    height: 50px;
    background: var(--bg-primary);
}

.container-skills{
    margin-top: 1.5rem;
    margin-bottom: 5rem;
    width: 900px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.container-skills .card-skills{
    position: relative;
    width: 250px;
    height: 300px;
    text-align: center;
    z-index: 10;
    margin: 30px 20px 80px;

}

.container-skills .card-skills .box{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    border-radius:10px ;
}

.percent{
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    z-index: 10;
}

.percent .number{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.percent .number h2{
    color: var(--text-ternary);
    font-weight: 700;
    font-size: 50px;

}

.percent .number h2 span{
    font-size: 24px;
}

.text-card{
    position: absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 30px 20px 10px;
    background: crimson;
    border-radius: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) ;
    z-index: 1;
    pointer-events: none;
    transition: bottom 0.5s, z-index 0s, transform 0.5, padding 0.5s;
    color: #fff;

}

.card-skills:hover .text-card{
    bottom:  -70px;
    z-index: 11;
    transform: translateX(-50%) translateY(-50px);
    padding: 10px 20px 10px;

}

.card-skills:nth-child(1) .text-card{
    background: crimson;
}
.card-skills:nth-child(2) .text-card{
    
    background: #2F9AFF;
}
.card-skills:nth-child(3) .text-card{
    background: #F7E018;
}

.card-skills:nth-child(4) .text-card{
    background: #F16524;
}

.card-skills:nth-child(5) .text-card{
    background: #8A94C2;
}

.card-skills:nth-child(6) .text-card{
    width: 80%;
    background: var(--color-senary);
    
}

.percent svg{
    display: relative;
    width: 150px;
    height: 150px;
    
}

.percent svg circle{
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 10;
    stroke: var(--color-opacity);
    transform: translate(5px ,5px);
    stroke-linecap: round;
}


.percent svg circle:nth-child(2){
   
    stroke: var(--text-primary);
    stroke-dasharray: 440px;
    stroke-dashoffset:440px;
}

.card-skills:nth-child(1) svg circle:nth-child(2){
    stroke-dashoffset: calc(440px - (440px * 85)/100);
}


.card-skills:nth-child(2) svg circle:nth-child(2){
    stroke-dashoffset: calc(440px - (440px * 75)/100);
}

.card-skills:nth-child(3) svg circle:nth-child(2){
    stroke-dashoffset: calc(440px - (440px * 70)/100);
}


.card-skills:nth-child(4) svg circle:nth-child(2){
    stroke-dashoffset: calc(440px - (440px * 75)/100);
}

.card-skills:nth-child(5) svg circle:nth-child(2){
    stroke-dashoffset: calc(440px - (440px * 65)/100);
}

.card-skills:nth-child(6) svg circle:nth-child(2){
    stroke-dashoffset: calc(440px - (440px * 70)/100);
}

.section-title{
    position: absolute;
    top: 1rem;
    text-transform: capitalize;
    font-size: 2rem;
    color: var(--text-quinary);
    
}

.skills-others{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 30px;
    position: absolute;
    bottom: 1rem;
    height: 6rem;
}



.skills-others .tooltip svg{
    
    fill: var(--text-primary) !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
}

.others{
    
    margin: 0 1rem;
}