@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

.max-width{
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

.skills{
    font-family: 'Poppins', sans-serif;
}

.skills .skills-content
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

section .title{
    position: relative;
    text-align: center;
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: 'Ubuntu', sans-serif;
    color: white;
}

section .title::before{
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 3px;
    background: #111;
    transform: translateX(-50%);
}

section .title::after{
    position: absolute;
    bottom: -8px;
    left: 50%;
    font-size: 20px;
    color: crimson;
    padding: 0 5px;
    background: #fff;
    transform: translateX(-50%);
}

.skills .title::after{
    content: "what i know";
}

.skills .skills-content .column{
    width: calc(50% - 30px);
}

.skills .skills-content .left .text{
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.skills .skills-content .left p{
    text-align: justify;
    color: white;
    font-size: 30;
}

.skills .skills-content .left a{
    display: inline-block;
    background: crimson;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 16px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid crimson;
    transition: all 0.3s ease;
}

.skills .skills-content .left a:hover{
    color: crimson;
    background: none;
}

.skills .skills-content .right .bars{
    margin-bottom: 15px;
}

.skills .skills-content .right .info{
    display: flex;
    margin-bottom: 5px;
    align-items: center;
    justify-content: space-between;
}

.skills .skills-content .right span{
    font-weight: 500;
    font-size: 18px;
    color: white;
}

.skills .skills-content .right .line{
    height: 5px;
    width: 100%;
    background: lightgrey;
    position: relative;
}

.skills .skills-content .right .line::before{
    content: "";
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: crimson;
}

.skills-content .right .html::before{
    width: 90%;
}

.skills-content .right .css::before{
    width: 60%;
}

.skills-content .right .js::before{
    width: 80%;
}

.skills-content .right .php::before{
    width: 50%;
}

.skills-content .right .mysql::before{
    width: 70%;
}

.skill-per {
    height: 14px;
    background: #d13639;
    border-radius: 3px;
    position: relative;
    animation: fillBars 2.5s 1;
}

.skill-per::before {
    content: attr(per);
    position: absolute;
    padding: 4px 6px;
    background: #f1f1f1;
    border-radius: 4px;
    font-size: 12px;
    top: -35px;
    right: 0;
    transform: translateX(50%);
}

.skill-per::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f1f1f1;
    top: -20px;
    right: 0;
    transform: translateX(50%) rotate(45deg);
    border-radius: 2px;
}

@keyframes fillBars {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}


@media screen and (max-width: 768px) {


    .max-width {
        max-width: fit-content;
        padding: 2px;
        margin: auto;
    }
    
    .skills{
        font-family: 'Poppins', sans-serif;
    }
    
    .skills .skills-content
    {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        justify-content:space-around;
    }
    
    section .title{
        position: relative;
        text-align: center;
        font-size: 50px;
        font-weight: 500;
        margin-bottom: 30px;
        padding-bottom: 20px;
        font-family: 'Ubuntu', sans-serif;
        color: white;
    }
    
    section .title::before{
        content: "";
        position: absolute;
        bottom: 0px;
        left: 50%;
        width: 180px;
        height: 3px;
        background: #111;
        transform: translateX(-50%);
    }
    
    section .title::after{
        position: absolute;
        bottom: -8px;
        left: 50%;
        font-size: 20px;
        color: crimson;
        padding: 0 5px;
        background: #fff;
        transform: translateX(-50%);
    }
    
    .skills .title::after{
        content: "what i know";
    }

    .skills .skills-content .column{
        width: calc(100% - 30px);
    }

    .skills .skills-content .left .text{
        font-size: 30px;
        font-weight: 600;
        margin-bottom: 10px;
        color: white;
    }
    
    .skills .skills-content .left p{
        text-align:justify;
        color: white;
        font-size: 15;
    }

    .skills .skills-content .left a{
        display: inline-block;
        background: crimson;
        color: #fff;
        font-size: 18px;
        font-weight: 500;
        padding: 8px 16px;
        margin-top: 20px;
        border-radius: 6px;
        border: 2px solid crimson;
        transition: all 0.3s ease;
    }

    .skills .skills-content .left a:hover{
        color: crimson;
        background: none;
    }

    .skills .skills-content .right .bars{
        margin-bottom: 15px;
    }

    .skills .skills-content .right .info{
        display: flex;
        margin-bottom: 5px;
        margin-top: 2px;
        align-items: center;
        justify-content:space-around;
    }

    .skills .skills-content .right span{
        font-weight: 500;
        font-size: 15px;
        color: white;
    }

    .skills .skills-content .right .line{
        height: 5px;
        width: 100%;
        background: lightgrey;
        position: relative;
    }

    .skills .skills-content .right .line::before{
        content: "";
        position: absolute;
        height: 100%;
        left: 0;
        top: 0;
        background: crimson;
    }

    .skills-content .right .html::before{
        width: 90%;
    }

    .skills-content .right .css::before{
        width: 60%;
    }

    .skills-content .right .js::before{
        width: 80%;
    }

    .skills-content .right .php::before{
        width: 50%;
    }
    
    .skills-content .right .mysql::before{
        width: 70%;
    }
    
    .skill-per {
        height: 14px;
        background: #d13639;
        border-radius: 3px;
        position: relative;
        animation: fillBars 2.5s 1;
    }
    
    .skill-per::before {
        content: attr(per);
        position: absolute;
        padding: 2px 2px;
        background: #f1f1f1;
        border-radius: 4px;
        font-size: 12px;
        top: -35px;
        right: 0;
        transform: translateX(50%);
    }
    
    .skill-per::after {
        content: "";
        position: absolute;
        width: 10px;
        height: 10px;
        background: #f1f1f1;
        top: -20px;
        right: 0;
        transform: translateX(50%) rotate(45deg);
        border-radius: 2px;
    }
    
    @keyframes fillBars {
        from {
            width: 0;
        }
    
        to {
            width: 100%;
        }
    }
    
}