* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Helvetica Neue',sans-serif;
}
body {
    overflow-x: hidden;
}
h1 {
    color: white;
}

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    padding: 25px 25px;
    position: fixed;
    float: right;
    width: 100%;
    z-index: 100;
}

.logo{
    font-size: 24px;
    color:#fff;
    font-weight: bold;
}

.logo a{
    text-decoration: none;
    color: white;
}

.toggle-button{
    display: flex;
    flex-direction: column;
    cursor:pointer;
}

.toggle-button .bar{
    width: 35px;
    height: 4px;
    border-radius: 5px;
    background-color: #fff;
    margin: 3px 0px;
    display: none;

}


.nav-links{
    list-style:none;
    display: flex;
}

.nav-links li{
    margin-right: 100px;
    padding-left: 25px;
    padding-right: 15px;
    margin-top: 20px;
}

.nav-links li a{
    color: #fff;
    text-decoration: none;
    font-size: 24px;
}

.nav-links li a:hover{
    color: #1f376b;
}

#layoutHome{
    width: 100%;
    height: 100vh;
    z-index: -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);
    background-color: black;
}

#layoutHome item{
    border: 1px solid green;
    width: 100px;
    height: 100px;
    background-color: green;
}

#main {
    grid-column: 2 / 4;
    grid-row: 3;
    display: flex;
    flex-direction: column-reverse;
    padding: 20px;
}


#mainTitles {
    grid-column: 2 / 4;
    grid-row: 4;
    padding: 20px;
}
#mainTitles h1 {
    font-style: italic;
    font-weight: 200;
}

#icons{
    padding: 10px;
    padding-top: 20px;
}
#icons img {
    width: 60px;
    height: auto;
    padding-right: 15px;
}

#aboutMe{
    height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    place-items: center;
}

#about1 {
    grid-row: 2 / 4;
    grid-column: 2 / 4;
    place-items: center;
    text-align: center;
}



#fifth h2 {
    text-align: center;
    padding-bottom: 12px;
}

#projects{
    min-height: calc(100vh - 100px);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto; /* or auto */
    position: relative;
    color: black;
    gap: 8em;
    margin-bottom: 124px;
}

.project-card {
    min-height: 500px;
    width: 100%;
    height: 100%;
    margin: 16px;
    place-items: center;
}

.projectImg {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

#tictactoeimg {
    background-image: url('images/tictactoeImg.png');
}

#weatherimg {
    background-image: url('images/weatherimg.png');
}

#libraryimg {
    background-image: url('images/libraryimg.png');
}

#calculatorimg {
    background-image: url('images/calculatorimg.png');
}

#battleshipimg{
    background-image: url('images/battleshipsimg.png');
}

#kanbanimg {
    background-image: url('images/kanbanimg.png');
}

#multiformimg {
    background-image: url('images/multiformimg.png');
}

.project-card {
  transition: transform 0.2s ease;
}
.project-card:hover {
  transform: translateY(-6px);
}


@media screen and (max-width: 1080px){
    #layoutHome{
        font-size: 24px;
    }

    .item #icons img{
        width: 100px;
        height: auto;
    }

    .navbar{
        padding: 20px 25px;
    }
    .nav-links{
        display: none;
        flex-direction: column;
        position: absolute;
        width: 100%;
        background-color: #71a1f4;
        padding: 25px;
        top: 100%;
        left: 0;
    }

    .nav-links li{
        padding: 12px 0px;
    }

    .nav-links a{
        display: block;
    }

    .toggle-button{
        display: flex;
    }
    .toggle-button .bar{
        width: 35px;
        height: 4px;
        border-radius: 5px;
        background-color: #fff;
        margin: 3px 0px;
        display: block;
    }    

    .nav-links.active{
        display: block;
    }

    #aboutMe {
        font-size: 32px;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    #layoutHome {
        grid-row: 0 / 5;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 1fr)
    }

    #about1 {
        grid-row: 1;
        grid-column: 1;
    }

    #main {
        grid-row: 1;
    }
    
    #mainTitles{
        grid-row: 2;
    }

    #projects {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    }
    .project-card {
        min-height: 500px;
    }
}