/* ---------computer--------- */

@media screen and (max-width:1200px) {
    .shape_main {
        --p-x: 80px;
        --p-y: 60px
    }

    :root {
        --navbar-size: 60px;
    }

    .nav_section nav ul li a i {
        font-size: 22px;
    }
}

/* --------laptop------ */


@media screen and (max-width:990px) {
    .shape_main {
        --p-x: 50px;
        --p-y: 50px
    }

    :root {
        --navbar-size: 60px;
    }

    .nav_section nav ul li a i {
        font-size: 22px;
    }

    .x-center {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .shape_main main .home .img_shape {
        width: 100%;
        display: block;
    }

    .shape_main main .home .img_shape .banner_img {
        scale: 0.95;
    }

    .banner_details {
        width: 100%;
    }

    .shape_main .shape {
        width: 85vh;
    }

    .banner_details .banner_content h1 {
        font-size: 40px;
    }

    /* ----------about-------- */
    .about .about_details {
        width: 100%;
    }

    .about .about_img {
        width: 100%;
    }

    .service .service_flex .service_item {
        width: 50%;
    }


    /* --------resume--------- */

    .my_skill .skill_flex .skill_item {
        width: 30%;
    }

    .my_skill .skill_flex .skill_item .skill_card {
        width: 105px;
        height: 105px;
    }


    /* ---------portfolio--------- */

    .my_portfolio .portfolio_flex .portfolio_item {
        width: 50%;
    }


    /* ---------blog---------- */

    .my_blog .blog_flex .blog_card{
        width: 50%;
    }

    /* --------contact--------- */
    .contact_flex{
        flex-direction: column;

    }
    .contact_flex .get_in_touch{
        width: 100%;
    }
    .contact_flex .form_main{
        width: 100%;
    }

}






/* --------Tablet---------- */

@media screen and (max-width:768px) {

    .shape_main main section {
        padding: 16px 12px;
    }

    .shape_main {
        --p-x: 20px;
        --p-y: 20px
    }

    .shape_main {
        padding: var(--p-y) var(--p-x);
        padding-bottom: calc(var(--navbar-size) * 1.25 + var(--p-y));
    }

    .nav_section {
        top: unset;
        right: unset;
        bottom: 0;
        left: 0;
        width: 100%;
        height: unset;
        padding: 0;
    }

    .nav_section nav {
        height: unset;
        width: 100%;
        border-radius: 10px 10px 0 0;
    }

    .nav_section nav ul {
        flex-direction: row;
    }

    .nav_section nav ul li:nth-child(1).active~.indicator {
        transform: translate(calc(var(--navbar-size) * 0));
    }

    .nav_section nav ul li:nth-child(2).active~.indicator {
        transform: translate(calc(var(--navbar-size) * 1));
    }

    .nav_section nav ul li:nth-child(3).active~.indicator {
        transform: translate(calc(var(--navbar-size) * 2));
    }

    .nav_section nav ul li:nth-child(4).active~.indicator {
        transform: translate(calc(var(--navbar-size) * 3));
    }

    .nav_section nav ul li:nth-child(5).active~.indicator {
        transform: translate(calc(var(--navbar-size) * 4));
    }

    .nav_section nav ul li:nth-child(6).active~.indicator {
        transform: translate(calc(var(--navbar-size) * 5));

    }

    .nav_section nav ul .indicator {
        left: unset;
        top: calc(-1 * var(--navbar-size) / 2);
    }

    .nav_section nav ul .indicator::before {
        left: -22px;
        top: 50%;
        border-top-right-radius: 20px;
        box-shadow: 0 -10px var(--bg-color);
    }

    .nav_section nav ul .indicator::after {
        left: unset;
        bottom: unset;
        right: -22px;
        top: 50%;
        border-top-left-radius: 20px;
        box-shadow: 0 -10px var(--bg-color);
    }

    .nav_section nav ul .active {
        transform: translateY(-50%);
    }

    .shape_main .shape {
        width: 70vh;
    }

    .nav_section nav ul li .trip {
        top: unset;
        right: unset;
        left: 50%;
        bottom: calc(100% + 10px);
        transform: translate(-50%);
    }

    .nav_section nav ul li .trip::after {
        top: unset;
        right: unset;
        left: 50%;
        bottom: -8px;
        transform: translate(-50%);
        border-width: 20px 10px 0 10px;
        border-color: var(--bg-color-2) transparent transparent transparent;
    }

    .banner_details .banner_content h1 {
        font-size: 32px;
    }

    .button {
        padding: 8px 16px;
    }

    /* ----------about-------- */
    .heading_main .sec_title h2 {
        font-size: 80px;
    }

    .service .service_flex .service_item {
        width: 100%;
    }

    .service .service_flex .service_card h4 {
        font-size: 18px;
    }

    .service .service_flex .service_card p {
        font-size: 15px;
    }

    .service .service_flex .service_card span {
        font-size: 32px;
    }

    .about .about_details .about_details_text h4 {
        font-size: 32px;
    }

    .about .about_details .about_details_text p {
        font-size: 15px;
    }

    .about .about_details .about_details_text .personal_details ul li p {
        font-size: 15px;
    }


    /* ------------resume---------- */

    .resume .education_main {
        width: 100%;
    }

    .resume .education_main .resume_heading h3 {
        font-size: 22px;
    }

    .resume .education_main .resume_heading span {
        font-size: 22px;
    }

    .resume .education_main .education_item .education_card h4 {
        font-size: 20px;
    }

    .resume .education_main .education_item .education_card h5 {
        font-size: 18px;
    }


    /* -------portfoilo-------- */
    .my_portfolio .portfolio_flex .portfolio_item .portfolio_card h3 {
        font-size: 16px;
    }

    .shape_main main section {
        padding: 16px;
    }


    /* ---------blog---------- */

    .my_blog .blog_flex .blog_card{
        width: 100%;
    }
    .my_blog .blog_flex .blog_card .blog_box .blog_content a h4{
        font-size: 20px;
    }

    
}







@media screen and (max-width:620px) {
    .my_portfolio .portfolio_flex .portfolio_item {
        width: 100%;
    }
}



@media screen and (max-width:576px) {

    /* ----------about-------- */

    .heading_main .sec_title h2 {
        font-size: 64px;
    }

    .heading_main .sec_title h3 {
        font-size: 20px;
    }

    .about .about_details .about_details_text .personal_details {
        display: block;
    }

    .about .about_details .about_details_text .personal_details ul li {
        margin-bottom: 0px;
    }

    .about .about_img .profile_photo {
        border-radius: 130px 0px;
    }


    /* --------resume--------- */

    .my_skill .skill_flex .skill_item {
        width: 50%;
    }


    /* -------------contact------------ */

    .form_main .name_flex {
        flex-direction: column;
    }
    .form_main .form_name{
        width: 100%;
    }
    .get_in_touch .contact_details ul li .contact_logo {
        width: 50px;
        height: 50px;
        font-size: 24px;
        line-height: 50px;
    }
    .get_in_touch .contact_details ul li .contact_content h5{
        font-size: 16px;
    }
    .get_in_touch .contact_details ul li .contact_content h6{
        font-size: 14px;
    }

}





/* --------Mobile---------- */

@media screen and (max-width:420px) {
    .about .about_details .about_details_text .about_info {
        display: block;
    }

    /* --------resume-------- */
    .my_skill .skill_flex .skill_item .skill_card {
        width: 90px;
        height: 90px;
    }

    .my_skill .skill_flex .skill_item .skill_card .pertentage {
        font-size: 15px;
    }

    /* ----------about-------- */

    .heading_main .sec_title h2 {
        font-size: 42px;
    }

    .heading_main .sec_title h3 {
        font-size: 16px;
    }

    /* -------------contact---------- */

    .contact_flex .form_main{
        flex-direction: column;
    }
    .form_main .form_name{
        width: 100%;
    }


}

@media screen and (max-width:390px) {
    .banner_details .banner_content .social {
        flex-direction: column;
    }

    .social_media {
        justify-content: flex-start;
        margin: 0;
    }

    :root {
        --navbar-size: 50px;
    }

    .nav_section nav ul li a i {
        font-size: 18px;
    }

    .banner_details .banner_content h1 {
        font-size: 28px;
    }




    /* -------portfolio------- */

    .my_portfolio .portfolio_flex .portfolio_item .portfolio_card .portfolio_btn .icon_btn {
        display: none;
    }
    /* ---------blog---------- */

    .my_blog .blog_flex .blog_card .blog_box .blog_content a h4{
        font-size: 18px;
    }
    .my_blog .blog_flex .blog_card .blog_box .blog_content p{
        font-size: 14px;
    }


    /* ----------contact--------- */

    .form_main .label_name label{
        font-size: 15px;
    }
    

}