@media all and (min-width: 300px) and (max-width: 320px){
    #main-container{
        width: 100%;
        overflow-x: hidden;
        margin-left: 0 !important;
    }
    
    main{
        margin-left: 10px;
        margin-right: 10px;
    }
    body{
        overflow-x: hidden;
    }
    h1{
        font-size: 25px;
    }
    header{
        justify-content: center;
    }
    header>nav {
        display: none;
    }
    #logo {
        text-align: center;

    }
    main>section:first-child{
        top: 100px;
        height: max-content;
        text-align: center;
        /*width: 99%;*/
    }
    main>section:first-child>div{
        margin-right: 0;
    }
    main>section:first-child>div>p{
        margin-left: 20px;
        margin-right: 20px;
    }
    main>section:first-child>img{
        display: none;
    }
    /* about me */

    main>section:nth-child(2){
        height: 296vh;
        position: relative;
        text-align: center;
    }

    main>section:nth-child(2)>div{
        width: 320px;
    }


    /* skills */
    main>section:nth-child(3){
        height: 266vh;
    }
    .programming-container,
    .tools {
        display: flex;
        overflow-x: auto; /* Allow horizontal scrolling */
        scroll-snap-type: x mandatory;
    }

    .programming-container > img,
    .tools > img {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .programming-container > img {
        margin-right: 10px; /* Add some spacing between images */
    }
    
    .design, .mobile, .web, .software{
        position: absolute;
        left: 100px;

    }
    .design{
        top: 170px;
    }
    .mobile{
        position: absolute;
        top: 510px;

    }
    .web{
        position: absolute;
        top: 850px;

    }
    .software{
        top: 1200px;

    }
    /* main>section:nth-child(3)>div:nth-child(2)>div>div>div:nth-child(3){
        position: absolute;
    } */
    .line-img {
        position: static;
        rotate: 180;
    }
    /* projetcts */

    main>section:nth-child(4){
        height: 200vh;
    }
    .projects-2nd-row{
        display: none;
    }
    .project-img{
        width: 300px;
    }
    .assignment-asset{
        width: 300px;
        height: 300px;
    }
    /* Activities */

    main>section:nth-child(5) > div > img {
        width: 400px;
    }
    main>section:nth-child(5) > div > p {
        font-size: 25px;
    }

    /* Galllery */
    /* Survices */
    main>section:nth-child(7){
        height: 250vh;
    }

    /* Contact */
    main>section:nth-child(8){
        height: 85vh;
    }
    main>section:nth-child(8) > h1 {
        margin-bottom: 50px;
    }
    .contact{
        flex-wrap: wrap;
    }
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea {
        width: 200px;
        padding: 10px;
        border-radius: 20px;
        margin-bottom: 20px;
    }
    .contact-info{
        height: 270px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .contact{
        margin-top: 40px;
    }
}
/* Mobile Medium 320-375 */
@media all and (min-width: 320px) and (max-width: 375px){
    #main-container{
        width: 100%;
        overflow-x: hidden;
        margin-left: 0 !important;
    }
    
    main{
        margin-left: 10px;
        margin-right: 10px;
    }
    body{
        overflow-x: hidden;
    }
    h1{
        font-size: 25px;
    }
    header{
        justify-content: center;
    }
    header>nav {
        display: none;
    }
    #logo {
        text-align: center;

    }
    main>section:first-child{
        top: 100px;
        height: max-content;
        text-align: center;
        /*width: 99%;*/
    }
    main>section:first-child>div{
        margin-right: 0;
    }
    main>section:first-child>div>p{
        margin-left: 20px;
        margin-right: 20px;
    }
    main>section:first-child>img{
        display: none;
    }
    /* about me */

    main>section:nth-child(2){
        height: 296vh;
        position: relative;
        text-align: center;
    }

    main>section:nth-child(2)>div{
        width: 320px;
    }


    /* skills */
    main>section:nth-child(3){
        height: 266vh;
    }
    .programming-container,
    .tools {
        display: flex;
        overflow-x: auto; /* Allow horizontal scrolling */
        scroll-snap-type: x mandatory;
    }

    .programming-container > img,
    .tools > img {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .programming-container > img {
        margin-right: 10px; /* Add some spacing between images */
    }
    
    .design, .mobile, .web, .software{
        position: absolute;
        left: 100px;

    }
    .design{
        top: 170px;
    }
    .mobile{
        position: absolute;
        top: 510px;

    }
    .web{
        position: absolute;
        top: 850px;

    }
    .software{
        top: 1200px;

    }
    /* main>section:nth-child(3)>div:nth-child(2)>div>div>div:nth-child(3){
        position: absolute;
    } */
    .line-img {
        position: static;
        rotate: 180;
    }
    /* projetcts */

    main>section:nth-child(4){
        height: 200vh;
    }
    .projects-2nd-row{
        display: none;
    }
    .project-img{
        width: 300px;
    }
    .assignment-asset{
        width: 300px;
        height: 300px;
    }
    /* Activities */

    main>section:nth-child(5) > div > img {
        width: 400px;
    }
    main>section:nth-child(5) > div > p {
        font-size: 25px;
    }

    /* Galllery */
    /* Survices */
    main>section:nth-child(7){
        height: 230vh;
    }

    /* Contact */
    main>section:nth-child(8){
        height: 150vh;
    }
    main>section:nth-child(8) > h1 {
        margin-bottom: 50px;
    }
    .contact{
        flex-wrap: wrap;
    }
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea {
        width: 250px;
        padding: 10px;
        border-radius: 20px;
        margin-bottom: 20px;
    }
    .contact-info{
        height: 270px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .contact-info>div>p{
        font-size: 13px;
    }
    .contact{
        margin-top: 40px;
    }
}
/* Mobile Large 375-325 */
@media all and (min-width: 375px) and (max-width: 426px){
    #main-container{
        width: 100%;
        overflow-x: hidden;
        margin-left: 0 !important;
    }
    
    main{
        margin-left: 10px;
        margin-right: 10px;
    }
    body{
        overflow-x: hidden;
    }
    h1{
        font-size: 25px;
    }
    header{
        justify-content: center;
    }
    header>nav {
        display: none;
    }
    #logo {
        text-align: center;

    }
    main>section:first-child{
        top: 100px;
        height: 138vh;
        text-align: center;
        /*width: 99%;*/
    }
    main>section:first-child>div>p{
        margin-left: 30px;
        margin-right: 30px;
    }
    main>section:first-child>div{
        margin-right: 0;
    }
    main>section:first-child>img{
        display: none;
    }
    /* about me */

    main>section:nth-child(2){
        height: 296vh;
        position: relative;
        text-align: center;
    }

    main>section:nth-child(2)>div{
        width: 320px;
    }


    /* skills */
    main>section:nth-child(3){
        height: 266vh;
    }
    .programming-container,
    .tools {
        display: flex;
        overflow-x: auto; /* Allow horizontal scrolling */
        scroll-snap-type: x mandatory;
    }

    .programming-container > img,
    .tools > img {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .programming-container > img {
        margin-right: 10px; /* Add some spacing between images */
    }
    
    .design, .mobile, .web, .software{
        position: absolute;
        left: 100px;

    }
    .design{
        top: 170px;
    }
    .mobile{
        position: absolute;
        top: 510px;

    }
    .web{
        position: absolute;
        top: 850px;

    }
    .software{
        top: 1200px;

    }
    /* main>section:nth-child(3)>div:nth-child(2)>div>div>div:nth-child(3){
        position: absolute;
    } */
    .line-img {
        position: static;
        rotate: 180;
    }
    /* projetcts */

    main>section:nth-child(4){
        height: 200vh;
    }
    .projects-2nd-row{
        display: none;
    }
    .project-img{
        width: 300px;
    }
    .assignment-asset{
        width: 300px;
        height: 300px;
    }
    /* Activities */

    main>section:nth-child(5) > div > img {
        width: 400px;
    }
    main>section:nth-child(5) > div > p {
        font-size: 25px;
    }

    /* Galllery */
    /* Survices */
    main>section:nth-child(7){
        height: 250vh;
    }

    /* Contact */
    main>section:nth-child(8){
        height: 135vh;
    }
    main>section:nth-child(8) > h1 {
        margin-bottom: 50px;
    }
    .contact{
        flex-wrap: wrap;
    }
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea {
        width: 300px;
        padding: 10px;
        border-radius: 20px;
        margin-bottom: 20px;
    }
    .contact-info{
        height: 270px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .contact{
        margin-top: 40px;
    }
}
/* Tab medium 425-768 */
@media all and (min-width: 427px) and (max-width: 768px){
    #main-container{
        width: 100%;
        overflow-x: hidden;
        margin-left: 0 !important;
    }
    
    main{
        margin-left: 10px;
        margin-right: 10px;
    }
    body{
        overflow-x: hidden;
    }
    h1{
        font-size: 20px;
    }
    header{
        justify-content: center;
    }
    header>nav {
        display: none;
    }
    #logo {
        text-align: center;

    }
    main>section:first-child{
        top: 100px;
        height: 195vh;
        text-align: center;
    }
    main>section:first-child>div {
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    main>section:first-child>div>img{
        margin: 30px;
        display: block;
        width: 350px;
        height: auto;
        box-shadow: 7px 8px 4px 0px rgba(0, 0, 0, 0.25);
        border-radius: 35px;
    }
    main>section:first-child>div>p{
        margin-left: 70px;
        margin-right: 70px;
        font-size: 15px !important;
    }
    main>section:first-child>div{
        margin-right: 0;
    }
    main>section:first-child>img{
        display: none;
    }
    /* about me */

    main>section:nth-child(2){
        height: 290vh;
    }

    main>section:nth-child(2)>div{
        width: 320px;
    }


    /* skills */
    main>section:nth-child(3){
        height: 200vh;
    }
    .programming-container,
    .tools {
        display: flex;
        overflow-x: auto; /* Allow horizontal scrolling */
        scroll-snap-type: x mandatory;
    }

    .programming-container > img,
    .tools > img {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .programming-container > img {
        margin-right: 10px; /* Add some spacing between images */
    }
    
    .design, .mobile, .web, .software{
        position: absolute;
        left: 150px;

    }
    .design{
        top: 170px;
    }
    .mobile{
        top: 170px;
        left: 440px;

    }
    .web{
        top: 510px;

    }
    .software{
        top: 510px;
        left: 440px;

    }
    /* main>section:nth-child(3)>div:nth-child(2)>div>div>div:nth-child(3){
        position: absolute;
    } */
    .line-img {
        position: static;
        rotate: 180;
    }
    /* projetcts */

    main>section:nth-child(4){
        height: 170vh;
    }
    .projects-2nd-row{
        display: none;
    }
    .project-img{
        width: 300px;
    }
    .assignment-asset{
        width: 300px;
        height: 300px;
    }
    /* Activities */

    main>section:nth-child(5) > div > img {
        width: 600px;
    }
    main>section:nth-child(5) > div > p {
        font-size: 30px;
    }

    /* Galllery */
    /* Survices */
    main>section:nth-child(7){
        height: 140vh;
    }

    /* Contact */
    main>section:nth-child(8){
        height: 125vh;
    }
    main>section:nth-child(8) > h1 {
        margin-bottom: 50px;
    }
    .contact{
        flex-wrap: wrap;
    }
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea {
        width: 300px;
        padding: 10px;
        border-radius: 20px;
        margin-bottom: 20px;
    }
    .contact-info{
        height: 270px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .contact-form{
        justify-content: center;
    }
    .contact{
        margin-top: 40px;
    }
    fieldset{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
/* Tab Large 768-978*/
@media all and (min-width: 768px) and (max-width: 978px){
    #main-container{
        width: 100%;
        overflow-x: hidden;
        margin-left: 0 !important;
    }
    
    main{
        margin-left: 10px;
        margin-right: 10px;
    }
    body{
        overflow-x: hidden;
    }
    h1{
        font-size: 20px;
    }
    header{
        justify-content: center;
    }
    header>nav {
        display: none;
    }
    #logo {
        text-align: center;

    }
    main>section:first-child{
        top: 100px;
        height: 165vh;
        text-align: center;
    }
    main>section:first-child>div {
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    main>section:first-child>div>img{
        margin: 30px;
        display: block;
        width: 350px;
        height: auto;
        box-shadow: 7px 8px 4px 0px rgba(0, 0, 0, 0.25);
        border-radius: 35px;
    }
    main>section:first-child>div>p{
        margin-left: 70px;
        margin-right: 70px;
        font-size: 15px !important;
    }
    main>section:first-child>div{
        margin-right: 0;
    }
    main>section:first-child>img{
        display: none;
    }
    /* about me */

    main>section:nth-child(2){
        height: 200vh;
        position: relative;
        text-align: center;
    }

    main>section:nth-child(2)>div{
        width: 320px;
    }


    /* skills */
    main>section:nth-child(3){
        height: 165vh;
    }
    .programming-container,
    .tools {
        display: flex;
        overflow-x: auto; /* Allow horizontal scrolling */
        scroll-snap-type: x mandatory;
    }

    .programming-container > img,
    .tools > img {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .programming-container > img {
        margin-right: 10px; /* Add some spacing between images */
    }
    
    .design, .mobile, .web, .software{
        position: absolute;
        left: 150px;

    }
    .design{
        top: 170px;
    }
    .mobile{
        top: 170px;
        left: 440px;

    }
    .web{
        top: 510px;

    }
    .software{
        top: 510px;
        left: 440px;

    }
    /* main>section:nth-child(3)>div:nth-child(2)>div>div>div:nth-child(3){
        position: absolute;
    } */
    .line-img {
        position: static;
        rotate: 180;
    }
    /* projetcts */

    main>section:nth-child(4){
        height: 170vh;
    }
    .projects-2nd-row{
        display: none;
    }
    .project-img{
        width: 300px;
    }
    .assignment-asset{
        width: 300px;
        height: 300px;
    }
    /* Activities */

    main>section:nth-child(5) > div > img {
        width: 600px;
    }
    main>section:nth-child(5) > div > p {
        font-size: 30px;
    }

    /* Galllery */
    /* Survices */
    main>section:nth-child(7){
        height: 140vh;
    }

    /* Contact */
    main>section:nth-child(8){
        height: 125vh;
    }
    main>section:nth-child(8) > h1 {
        margin-bottom: 50px;
    }
    .contact{
        flex-wrap: wrap;
    }
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea {
        width: 300px;
        padding: 10px;
        border-radius: 20px;
        margin-bottom: 20px;
    }
    .contact-info{
        height: 270px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .contact-form{
        justify-content: center;
    }
    .contact{
        margin-top: 40px;
    }
    fieldset{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
/* laptop small 978-1024 */
@media all and (min-width: 978px) and (max-width: 1024px){
    header>nav>ul>li{
        padding: 8px;
        font-size: 14px;
    }
        
    main>section:first-child{
        height: 110vh;
    }
    main>section:first-child>div>h1{
        font-size: 28px;
    }
    main>section:first-child>div>p{
        font-size: 18px;
    }
    main>section:first-child>img{
        height: 480px;
    }

    /* about me */
    main>section:nth-child(2){
        height: max-content;
    }
    main>section:nth-child(2)>div{
        width: 366px;
    }

    /* skills */
    main>section:nth-child(3){
        height: max-content;
    }
    .programming-container{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .programming-container>img{
        margin-bottom: 20px;
    }

    /* projects */

    main>section:nth-child(4){
        height: max-content;
    }
    main>section:nth-child(4)>section>div:nth-child(2) {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    #my-projects{
        display: flex;
        flex-direction: column;
    }
    /* services */

    main>section:nth-child(7){
        height: max-content;
    }
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea {
        width: 400px;
        padding: 10px;
        border-radius: 20px;
        margin-bottom: 20px;
    }
}
/* laptop medium 1024-1440 */
@media all and (min-width: 1025px) and (max-width: 1440px){
    main>section:first-child{
        height: 90vh;
    }
    main>section:first-child>div>h1{
        font-size: 35px;
    }
    main>section:first-child>div>p{
        font-size: 23px;
    }
    main>section:first-child>img{
        height: 500px;
    }
    /* about */
    main>section:nth-child(2){
        height: max-content;
    }
    main>section:nth-child(2)>div{
        width: 366px;
        height: 520px;
    }

    /* skills */
    main>section:nth-child(3){
        height: max-content;
    }

    /* projects */

    main>section:nth-child(4){
        height: max-content;
    }

    /* Activities */

    main>section:nth-child(5){
        height: 85vh;
    }

    /* services */

    main>section:nth-child(7){
        height:max-content;
    }
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea {
        width: 350px;
        padding: 10px;
        border-radius: 20px;
        margin-bottom: 20px;
    }
}
@media all and (min-width: 1024px) and (max-width: 1161px) {
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea {
        width: 400px;
        padding: 10px;
        border-radius: 20px;
        margin-bottom: 20px;
    }
}

@media all and (max-width:768px){
    .hamber {
        display: block;
        z-index: 100;
    }

    .hamber.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamber.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamber.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .navMenu {
        position: fixed;
        left: -100%;
        top: 7px;
        gap: 0;
        flex-direction: column;
        background-color: black;
        opacity: 0.8;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        z-index: 100;

    }

    .nav-item {
        margin: 16px 0;

    }

    .navMenu.active {
        left: 0;
    }
}