* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

@font-face {
    font-family: Arial, Helvetica, sans-serif;
    src: url();
}


.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    padding: 0 2rem;
    gap: 0 1.5rem;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

main {
    margin-top: 6rem;
}


header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 2rem 2rem 0;
    height: 6rem;
}

header nav ul {
    display: inline-flex;
    gap: 0.2rem;
    background-color: #074759;
    padding: 5px;
    border-radius: 2rem;
    color: #FFFFFF;
}

header nav ul li {
    display: flex;
}

header nav ul li img {
    display: block;
    height: 1.2rem;
}

.logo-link {
    color: #FFFFFF;
}

.logo-link:hover {
    color: #074759;
}

.logo {
    display: block;
    height: 1.2rem;
}

header nav ul a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 2rem;
    border-radius: 2rem;
}

header nav ul a:hover {
    background-color: #D3E9EF;
    color: #074759;
}

header nav ul li:nth-child(2) {
    text-align: center;
}

header nav ul li:nth-child(3) {
    text-align: right;
}

.home .home-hero {
    height: calc(100vh - 6rem);
    grid-column: 4 / span 9;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 2rem;
}

.home .home-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.about .section-text {
    font-size: 2.5rem;
    padding: 2rem;
    padding-bottom: 17rem;
    color: #074759;
}

.about .about-item-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #074759;
    margin-bottom: 4rem;
}

.about .about-item {
    font-size: 1.25rem;
    grid-column: span 3;
    color: #074759;
}

.bordered-list {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 4rem;
}

.bordered-list-item {
    border-top: 1px solid #074759;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.bordered-list-item:last-child {
    border-bottom: 1px solid #074759;
}

.education-grid {
    display: grid;
    grid-template-columns: 2fr 3.5fr;
    row-gap: 2.5rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 2fr 3.5fr;
    row-gap: 1.5rem;
    margin-bottom: 3rem;
}

.projects-grid {
    margin-top: 10rem;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.projects-card {
    display: grid;
    gap: 1rem;
}

.projects-card img {
    width: 100%;
    filter: grayscale(1);
    transform: filter 0.25s ease;
}

.projects-card img:hover {
    filter: grayscale(0%);
}

.projects-card p {
    color: #074759;
    font-weight: bold;
    font-size: large;
}

.project-main {
    padding: 2.5rem 2rem;
}

.project-main h1 {
    color: #074759;
    font-weight: bold;
    font-size: xx-large;
    top: 9rem;
    position: sticky;
}

.project-grid {
    margin-top: 2rem;
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 4fr;
    gap: 2rem;
}

.project-info {
    position: sticky;
    top: 15rem;
    align-self: start;
}

.project-info p {
    color: #074759;
}

.project-info-row {
    display: grid;
    grid-template-columns: 1fr 3fr;
    padding: 1rem 0rem;
    border-bottom: 1px solid #074759;
}

.project-imgs {
    display: grid;
    gap: 1.5rem;
}

.project-imgs img {
    width: 100%;
}

@media (max-width: 980px) {
    .project-grid {
        grid-template-columns: 2fr;
        padding: 2rem;
    }

    .project-info {
        position: static;
    }

    .project-main h1 {
        position: static;
        padding-left: 1.5rem;
    }

    .project-info-row {
        grid-template-columns: 2fr 3fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about .about-item{
        grid-column: span 12;
    }

    .about .about-item-title{
        margin-bottom: 2.5rem;
    }

    .education-grid{
        margin-bottom: 4rem;
    }

    .about .section-text{
        font-size: 2rem;
        text-justify: auto;
        padding-bottom: 10rem;
    }
}