.about {
    background-color: var(--color-bg-primary);
    min-height: 100vh;
}


/* --------------- about head part ------------------- */
.abt-main {
    margin-top: 9%;
}

.abt h2 {
    color: var(--color-text-primary);
}

.subhead h3 {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding-top: 0.2rem;
    color: var(--color-secondary);
}

.subhead h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: normal;
    padding-top: 0.5rem;
}

.abt-pf-main {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    padding-top: 1.5rem;
}

.abt-pf-desc {
    width: 100%;
    max-width: 600px;
    text-align: left;
    font-family: var(--font-secondary);
    color: var(--color-text-secondary);
    font-size: 1rem;
    padding: 0 10px;
}

.abt-pf-img {
    display: block;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 50%;
    margin: 0.5rem;
}

.abt-pf-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* -------------------------------------------------------- */

/* ------------------ about content part --------------------- */
.abt-content {
    text-align: left;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding: 1.5rem 10px;
}

.abt-ps-blk {
    width: 100%;
    max-width: 600px;
    padding: 0 0.2rem;
}

.abt-ctnt-1 h3 {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-text-primary);
    padding: 0.2rem 0;
}

.abt-ctnt-1 p {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    padding: 0.2rem 0;
}

.abt-ctnt-1 p span {
    color: var(--color-secondary    );
}

.abt-profile {
    padding: 2.5rem 0;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--color-text-primary);
}

.abt-profile-detail {
    padding: 2px 0;
}

.abt-profile-detail span {
    color: var(--color-text-secondary);
}

.skills {
    width: 100%;
    max-width: 600px;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.skill {
    padding-top: 0.8rem;
}

.skill-name {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: var(--color-text-primary);
    padding-bottom: 0.2rem;
}

.skill-bar {
    height: 0.3rem;
    background: #282828;
    border-radius: 3px;
}

.skill-per {
    height: 0.3rem;
    background: var(--color-links);
    border-radius: 5px;
    position: relative;
    animation: fillBars 2.5s 1;
}

.skill-per::before {
    content: attr(per);
    position: absolute;
    padding: 3px 3px;
    background: var(--color-text-secondary);
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 0.6rem;
    color: var(--color-text-primary2);
    top: -35px;
    right: 0;
    transform: translateX(50%) translateY(40%);
}

.skill-per::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-text-secondary);;
    top: -20px;
    right: 0;
    z-index: -22;
    transform: translateX(50%) translateY(60%) rotate(45deg);
    border-radius: 2px;
}

@keyframes fillBars {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}
/* -------------------------------------------------------- */

/* ------------------ about buttons ---------------------- */
.abt-buttons {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    padding: 1.4rem 1rem;
}

.abt-buttons a {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid var(--color-secondary);
    color: var(--color-links);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.7rem;
}

.abt-buttons a::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% - 12px);
    background-color: var(--color-bg-primary);
    transition: 0.3s ease-in-out;
    transform: scaleY(1);
}

.abt-buttons a:hover::before {
    transform: scaleY(0);
}

.abt-buttons a::after {
    content: '';
    position: absolute;
    left: 6px;
    top: -2px;
    height: calc(100% + 4px);
    width: calc(100% - 12px);
    background-color: var(--color-bg-primary);
    transition: 0.3s ease-in-out;
    transform: scaleX(1);
    transition-delay: 0.5s;
}

.abt-buttons a:hover::after {
    transform: scaleX(0);
}

.abt-buttons a span {
    position: relative;
    z-index: 3;
}

.abt-buttons button {
    background-color: none;
    text-decoration: none;
    background-color: var(--color-bg-primary);
    border: none;
}

/* -------------------------------------------------------- */

/* tablet */
@media screen and (max-width: 960px) {
    .page-content {
        max-width: 700px;
    }

    .abt-pf-desc {
        font-size: 1rem;
        max-width: 500px;
    }

    .abt-ps-blk {
        padding: 0 0.5rem;
    }
}

/* mobile */
@media screen and (max-width: 750px) {
    
    .abt-buttons {
        padding: 0.5rem 1rem;
    }

    .skills {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .abt-pf-main {
        padding-top: 0.4rem;
        flex-direction: column;
    }

    .abt-content {
        text-align: left;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        padding: 1rem 10px;
    }
    
    .abt-ps-blk {
        width: 100%;
        max-width: 600px;
    }
    
    .abt-pf-desc {
        font-size: 0.9rem;
        max-width: 500px;
        text-align: center;
    }

    .abt-profile {
        padding: 1.5rem 0;
        font-size: 0.8rem;
    }
    
    .subhead h2 {
        font-size: 1.6rem;
        padding-top: 0.2rem;
    }
}