* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

body {
    background-color: green;
}

nav {
    display: flex;
    justify-content: space-between;
    height: 90px;
    width: 100%;
    align-items: center;
}

.nav-left p {
    margin-left: 30px;
    font-size: x-large;
    font-weight: bold;
    color: white;
}

.nav-right a {
    margin-right: 30px;
    text-decoration: none;
    color: white;
    font-size: large;
    font-weight: bold;
    padding-bottom: 5px;
}

.nav-right a:hover {
    color: #77DD77;
    border-bottom: 2px solid #77DD77;;
}

.home {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    width: 100%;
    height: 500px;
    justify-content: center;
}

.home .pic{
    width: 40%;
    height: 400px;
    margin-top: 50px;
}

.pic img {
    width: 100%;
    height: 400px;
}

.home .content {
    width: 40%;
    height: 250px;
    margin-top: 150px;
    margin-left: 20px;
    display: block;
}

.content span {
    color: #77DD77;
    font-size: 20px;
    margin-left: 20px;
    font-weight: bold;
}

.content .first {
    color: white;
    font-size: 27px;
    margin-left: 20px;
    margin-top: 20px;
    font-weight: bold;
}

.content .second {
    color: white;
    font-size: small;
    margin-left: 20px;
    margin-top: 15px;
    font-weight: bold;
}

.about {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    width: 100%;
    height: 500px;
    justify-content: center;
}

.about .content-2 {
    height: 400px;
    width: 40%;
    margin-top: 50px;
}

.content-2  h1 {
    margin-left: 20px;
    font-size: xx-large;
    color: white;
}

.content-2 p {
    color: white;
    font-weight: bold;
    margin: 20px 30px 20px 20px;
    font-size: large;
}

.content-2 span {
    margin-left: 20px;
    color: #77DD77;
    font-weight: bold;
}

.about .pic-2 {
    height: 400px;
    width: 40%;
    margin-top: 50px;
    margin-left: 20px;
}

.pic-2 img {
    width: 100%;
    height: 100%;
}

.skills {
    display: block;
    position: relative;
    width: 100%;
    height: 500px;
    justify-content: center;
    overflow: auto;
}

.skills h3 {
    color: white;
    text-align: center;
    font-size: xx-large;
    margin-top: 15px;
}

.skills .card {
    width: 100%;
    height: 420px;
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card .cards-1 {
    width: 20%;
    height: 400px;
    margin-left: 15px;
    background-color: #77DD77;
    border-radius: 9px;
    display: block;

    transition: width 0.5s, height 0.5s;
}

.card .cards-1:hover {
    width: 22%;
    height: 420px;
    border: 2px solid black;
}

.cards-1 img {
    width: 100%;
    height: 200px;
}

.cards-1 p {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    margin-top: 15px;
    transition-timing-function: 3s;
}

.cards-1 .circles {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.circles .circle {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: grey;
    margin-left: 8px;
    margin-bottom: 20px;
}

.circles .circle:nth-child(1), .circles .circle:nth-child(2), .circles .circle:nth-child(3), .circles .circle:nth-child(4) {
    background: darkblue;
}

.work {
    display: block;
    position: relative;
    width: 100%;
    height: 500px;
    justify-content: center;
    overflow: auto;
}

.work p {
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    color: white;
    font-size: 27px;
    margin-bottom: 15px;
}

.work span {
    font-weight: bold;
    font-size: large;
    margin-left: 35%;
}

.projects {
    width: 100%;
    height: 390px;
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card {
    width: 20%;
    height: 350px;
    margin-left: 15px;
    background-color: #77DD77;
    display: block;
    margin-top: 10px;
    border-radius: 9px;
    transition: width 0.5s, height 0.5s;
}

.project-card a {
    transition: font-size 0.5s, margin-left 0.5s;
}

.project-card img {
    width: 100%;
    height: 170px;
}

.project-card p {
    text-align: center;
    color: black;
    font-size: 18px;
    padding-left: 10px;
    padding-right: 10px;
}

.project-card a {
    text-decoration: none;
    color: blue;
    margin-left: 10px;
    font-weight: bold;
}

.project-card a img {
    margin-left: 10px;
    width: 20px;
    height: 20px;
}

.contact {
    width: 100%;
    height: 150px;
    background-color: darkgreen;
    display: flex;
    justify-content: center;
}

.contact p {
    margin-top: 5%;
    margin-right: 75px;
    font-weight: bold;
    font-size: larger;
    color: #77DD77;
}

@media screen and (max-width: 1023px){
    .about{
        height: 570px;
    }

    .about .pic-2 {
        margin-top: 13%;
    }

    .card .cards-1 {
        width: 28%;
    }

    .card .cards-1:hover {
        width: 30%;
    }

    .work {
        height: 875px;
    }

    .work span {
        margin-left: 25.5%;
    }

    .projects .project-card {
        width: 40%;
        margin-bottom: 15px;
    }

    .project-card:hover {
        width: 42%;
    }

    .contact p {
        margin-left: 5%;
    }
}

@media screen and (max-width: 767px) {
    .nav-left p {
        margin-left: 20px;
    }
    
    .nav-right {
        margin-left: 15px;
        margin-right: 20px;
    }

    .nav-right a {
        font-size: 17px;
        margin-left: 5px;
        margin-right: 5px;
    }

    .home {
        height: 430px;
        width: 100%;
    }

    .home .pic {
        margin-top: 20px;
    } 

    .home .content {
        margin-top: 85px;
    }

    .about {
        width: 100%;
        display: block;
        height: 400px;
    }

    .about .content-2 {
        width: 100%;
        margin-top: 0px;
    }

    .about .pic-2 {
        display: none;
    }

    .skills {
        overflow: hidden;
        width: 100%;
        height: 1350px;
    }

    .skills .card {
        height: auto;
    }

    .card .cards-1 {
        width: 55%;
        margin-bottom: 15px;
    }

    .card .cards-1:hover {
        width: 77%;
    }

    .work {
        width: 100%;
        overflow: hidden;
        height: 1150px;
    }

    .work p {
        font-size: 19px;
    }

    .work span {
        display: none;
    }

    .projects {
        height: auto;
    }

    .projects .project-card {
        width: 55%;
        height: 340px;
        margin-bottom: 10px;
    }

    .contact {
        width: 100%;
        display: block;
        padding-top: 15px;
        padding-bottom: 20px;
        height: auto;
    }

    .contact p {
        margin-left: 25%;
    }
}

@media screen and (max-width: 480px) {
    .nav-left p {
        margin-left: 10px;
    }
    
    .nav-right {
        margin-left: 15px;
    }

    .nav-right a {
        font-size: 17px;
        margin-left: 5px;
        margin-right: 5px;
    }

    .home {
        height: 430px;
        width: 100%;
    }

    .home .pic {
        margin-top: 20px;
    } 

    .home .content {
        margin-top: 85px;
    }

    .about {
        width: 100%;
        display: block;
        height: 475px;
    }

    .about .content-2 {
        width: 100%;
        margin-top: 0px;
    }

    .about .pic-2 {
        display: none;
    }

    .skills {
        overflow: hidden;
        width: 100%;
        height: 1350px;
    }

    .skills .card {
        height: auto;
    }

    .card .cards-1 {
        width: 75%;
        margin-bottom: 15px;
    }

    .card .cards-1:hover {
        width: 77%;
    }

    .work {
        width: 100%;
        overflow: hidden;
        height: 1200px;
    }

    .work p {
        font-size: 19px;
    }

    .work span {
        display: none;
    }

    .projects {
        height: auto;
    }

    .projects .project-card {
        width: 75%;
        height: 360px;
        margin-bottom: 10px;
    }

    .contact {
        width: 100%;
        display: block;
        padding-top: 15px;
        padding-bottom: 20px;
        height: auto;
    }

    .contact p {
        margin-left: 25%;
    }
}

@media screen and (max-width: 400px) {
    .nav-left p {
        margin-left: 10px;
    }
    
    .nav-right {
        margin-left: 15px;
    }

    .nav-right a {
        font-size: 17px;
        margin-left: 5px;
        margin-right: 5px;
    }

    .home {
        height: 430px;
        width: 100%;
    }

    .home .pic {
        margin-top: 20px;
    } 

    .home .content {
        margin-top: 85px;
    }

    .about {
        width: 100%;
        display: block;
        height: 475px;
    }

    .about .content-2 {
        width: 100%;
        margin-top: 0px;
    }

    .about .pic-2 {
        display: none;
    }

    .skills {
        overflow: hidden;
        width: 100%;
        height: 1350px;
    }

    .skills .card {
        height: auto;
    }

    .card .cards-1 {
        width: 75%;
        margin-bottom: 15px;
    }

    .card .cards-1:hover {
        width: 77%;
    }

    .work {
        width: 100%;
        overflow: hidden;
        height: 1200px;
    }

    .work p {
        font-size: 19px;
    }

    .work span {
        display: none;
    }

    .projects {
        height: auto;
    }

    .projects .project-card {
        width: 75%;
        height: 360px;
        margin-bottom: 10px;
    }

    .contact {
        width: 100%;
        display: block;
        padding-top: 15px;
        padding-bottom: 20px;
        height: auto;
    }

    .contact p {
        margin-left: 25%;
    }
}

@media screen and (max-width: 375px) {
    .nav-left p {
        margin-left: 10px;
    }
    
    .nav-right {
        margin-left: 0px;
    }

    .nav-right a {
        font-size: 17px;
        margin-left: 5px;
        margin-right: 0px;
    }

    .home {
        height: 430px;
        width: 100%;
    }

    .home .pic {
        margin-top: 20px;
    } 

    .home .content {
        margin-top: 85px;
    }

    .about {
        width: 100%;
        display: block;
        height: 475px;
    }

    .about .content-2 {
        width: 100%;
        margin-top: 0px;
    }

    .about .pic-2 {
        display: none;
    }

    .skills {
        overflow: hidden;
        width: 100%;
        height: 1350px;
    }

    .skills .card {
        height: auto;
    }

    .card .cards-1 {
        width: 75%;
        margin-bottom: 15px;
    }

    .card .cards-1:hover {
        width: 77%;
    }

    .work {
        width: 100%;
        overflow: hidden;
        height: 1200px;
    }

    .work p {
        font-size: 19px;
    }

    .work span {
        display: none;
    }

    .projects {
        height: auto;
    }

    .projects .project-card {
        width: 75%;
        height: 360px;
        margin-bottom: 10px;
    }

    .contact {
        width: 100%;
        display: block;
        padding-top: 15px;
        padding-bottom: 20px;
        height: auto;
    }

    .contact p {
        margin-left: 25%;
    }
}

@media screen and (max-width: 360px) {
    .nav-left p {
        font-size: large;
    }

    .nav-right a {
        font-size: 15px;
    }

    .about {
        height: 525px;
        margin-top: 40px;
    }

    .home .pic {
        margin-top: 20px;
    } 

    .home .content {
        margin-top: 60px;
    }

    .card .cards-1 {
        width: 75%;
        margin-bottom: 15px;
    }

    .card .cards-1:hover {
        width: 77%;
        border: 1px solid black;
    }

    .work {
        width: 100%;
        overflow: hidden;
        height: 1200px;
    }

    .work p {
        font-size: 19px;
    }

    .work span {
        display: none;
    }

    .projects {
        height: auto;
    }

    .projects .project-card {
        width: 75%;
        height: 360px;
        margin-bottom: 10px;
    }   

    .projects .project-card:first-child {
        height: 340px;
    }

    .contact {
        width: 100%;
        display: block;
        padding-top: 15px;
        padding-bottom: 20px;
        height: auto;
    }

    .contact p {
        margin-left: 15%;
    }
}