/* Responsive Design */

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: end;
        padding: 10px 20px;
    }

    .home-section{
        flex-direction: column;
        align-items: center;
        height: 90vh;
    }
    .photo-container{
        width: 80vw;
    }

    .nav .right ul li a {
        position: relative;
        margin: 20px 0;
    }

    .nav .right ul li {
        margin: 10px 15px;
    }

    .nav .right ul {
        flex-direction: column;
    }

    .nav .right {
        background-color: rgba(30, 30, 44);
        height: 90vh;
        position: absolute;
        left: -65%;
        transition: all 0.8s ease-in-out;
    }

    header {
        justify-content: center;
        max-height: 15vh;
    }

    .menu {
        display: inline-flex;
        cursor: pointer;
    }

    .close-menu {
        display: inline-flex;
    }

    .edu-details {
        padding: 15px;
        margin: 10px;
        margin-top: 70px;
    }

    .edu-details h2,
    .edu-details h3 {
        font-size: 1.2rem;
    }

    .edu-details p {
        font-size: 0.9rem;
    }

    .skill-section {
        padding: 20px 15px;
    }

    .skill-section h2 {
        font-size: 35px;
    }

    .skill-section h3 {
        font-size: 24px;
    }

    .skill-section .front-end p,
    .skill-section .back-end p {
        font-size: 16px;
        padding: 8px 15px;
        width: 117px;
    }

    .skill-section .tools .names-tools {
        margin: 30px;
    }

    .database ul,
    .other ul,
    .design-tools ul {
        margin-left: 40px;
    }

    .main-project .project-title img,
    .mini-project .project-title img {
        align-items: center;
        height: 50%;
    }

    .projects .project-container .main-project .project-title{
        align-items: center;
    }
   
 
}

@media (max-width: 720px) {
    .img-container .self {
        width: 460px;
        right: -25px;
    }

    .section1 {
        height: 95vh;
    }
    .section3{
        margin-top: 150px;
    }

    .edu-details h2,
    .edu-details h3 {
        font-size: 32px;
    }

    .edu-details p {
        font-size: 20px;
    }

    .skill-section {
        margin: 20px auto;
        margin-top: 0;
        width: 90%;
    }

    .section2 {
        padding-top: 0;
    }

    .edu-details {
        margin-top: 50px;
    }

    .edu-details li {
        margin-bottom: 25px;
    }

    .skill-section h3 {
        padding-left: 50px;
    }

    .skill-section .tools .names-tools {
        margin: 30px 60px;
    }

    .database ul,
    .other ul,
    .design-tools ul {
        margin-left: 50px;
    }

    /* .contact-section {
        margin-bottom: 300px;
    } */

    .contact-container {
        flex-direction: column;
    }

    .contact-form {
        padding: 0;
        margin: 0;
    }

    .contact-form {
        margin: 10px 0;
    }
    .skill-section .front-end p,
    .skill-section .back-end p {
        font-size: 13px;
    }

    .contact-form button {
        margin: auto;
    }

    .mail-phone .mail-img img {
        right: -25px;
        top: -60px;
    }

    .projectHr {
        width: 90%;
        margin: 50px auto;
    }
    hr {
        width: 90%;
        margin: 30px auto;
    }

    .mini-project .project-title {
        text-align: center;
    }
    .main-project-link a, .mini-project-link a {
        font-size: 15px;
        padding: 13px 15px;
        width: 154px;
        margin: 10px 8px;
    }
    .mail-phone .mail-img {
        min-width: 150px;
        min-height: 150px;
    }
    .upper-left{
        display: none;
    }
    .new_footer .down .left{
        grid-template-columns: 1fr 1fr;
    }
    .new_footer .down .left ul{
        gap: 20px;
        margin-bottom: 20px;
    
 }
}

@media (max-width: 400px){
    /* .contact-container */
    #projects{
        padding: 20px 10px;
    }
    .skill-section{
        width: 90%;
    }
    .pro-lang{
        display: block;
    }

    .nav .left h1{
        font-size: 20px;
    }
    .edu-details{
        margin: auto;
    }
    .skill-section .tools .names-tools{
        margin: 30px 5px;
    }
    .projects .project-container, .projects .project-container2{
        padding: 10px;
    }
    .project-container .project-description , .project-container .inside-heading,.project-container .inside-heading p,.project-container2 .project-description,.project-container2 .mini-project .project-section .inside-heading,.project-container2 .inside-heading p{
            margin: 2px 10px;
    }
    .contact .contact-container{
        padding-left: 35px;
    }

}