/*  Making nav bar responsive */

@media(max-width:1368px) {


    .about_text p {
        font-size: 1.5rem;
    }

    .image img {
        width: 100vw;
        height: 60vh;
    }

    .button_section {
        width: 100%;
        gap: 12px;
        top: 50%;
        justify-content: center;
    }

    .skill_box img {
        width: 15vw;
        height: 15vh;
        justify-content: space-around;
    }

}

@media(max-width:750px) {
    .about_text p {
        font-size: 1rem;
    }

    .button_section {
        top: 40%;
    }
}

@media(max-width: 610px) {
    #menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 70vh;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 100;
        transition: all 0.4s ease-in-out;
        background-color: rgba(0, 0, 0, 0.626);
    }

    /* nav bar */
    #nav_bar {
        width: 100vw;
    }

    #menu li {
        margin-top: 40px;
    }

    #menu li a {
        padding: 10px;
        color: white;
        font-weight: 400;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }

    .open-menu,
    .close-menu {
        display: block;
    }

    #check:checked~#menu {
        right: 0;
    }

    .about_text h4 {
        font-size: 1rem;
    }

    .about_text h1 {
        font-size: 1.5rem;
    }

    .about_text p {
        font-size: 0.9rem;
    }



    #About {
        top: 0;
    }

    .button_section {
        justify-content: start;
    }

    .button_section a {
        padding: 5px;
    }

    /* skill section responsive code */
}

#project {
    padding: 20px;
}

.section-p1 {
    margin: 40px 0;
}

.pro-contaner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.pro {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
}

.pro img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.des {
    margin-top: 10px;
}

.star i {
    color: #f39c12;
}

/* Responsive Design */

@media (max-width: 1200px) {
    .pro {
        flex: 1 1 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .pro {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .pro {
        flex: 1 1 100%;
    }

    .pro img {
        max-width: 100%;
        height: auto;
    }

}