* {
  box-sizing: border-box;
}

body {
    background-color: #0A0E1E;
    font-family: "Montserrat", sans-serif;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    min-height: 100dvh;
    padding: 0 auto;
}

header {
    display: flex;
}

nav {
    display: flex;
    justify-content: center;
    justify-content: space-between;
    align-items: center;
}

.navigation {
    display: flex;
    justify-content: space-between;
    width: 80%;
    /* margin-top: 5%; */
    margin: 2% auto;
}

.nav_items {
    display: inline;
    list-style: none;
    color: #FFFFFF;
    margin: 20px
}

main {
    width: 80%;
    margin: 0 auto;
}

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

.main_logo {
    display: inline;
    width: 20px;
}

/* Here's the hero section for desktop */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 80vh;
}

.big-body {
    font-size: 2.25rem;
    font-weight: 200;
}

.hero-left{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.hero-right {
    display:flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    overflow: hidden;
    width: auto;
    height: 100%;
    margin-top: auto;
}

.project-widget {
    border: solid 1px #d9d9d930;
    width: 100%;
    height: 440px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

.project-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    align-items: flex-start;
}

.impact-section {
    display: flex;
    flex-direction: column;
}

.impact {
    color: #00E7FF;
    letter-spacing: 0.22rem;
    font-weight: 700;
    margin: 0
}

.impact-metric {
    font-size: 43px;
    font-weight: 300;
    margin: 0;
}

.impact-description {
    font-weight: 300;
    margin: 0;
}

.project-image-container {
    display:flex;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    width: auto;
    height: 100%;
    margin-top: auto;

}

.project-image {
    display: flex;
    flex-direction: column;
    justify-content: end;
    /* padding-top: 10%;
    padding-right: 10%; */
    /* padding-left: 10%; */
    align-items: center;
    object-fit: contain;
    width: auto;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

h1 {
    font-size: 56px;
    color: #FFFFFF;
}

h2 {
    font-size: 44px;
    color: #FFFFFF;
}

h3 {
    font-size: 36px;
    color: #FFFFFF;
}

p {
    color: #FFFFFF;
}

.social-icon {
    width: 45px;
    margin-right: 20px;
    margin-top: 30px;
}

footer {
    text-align: center;
    font-size: .75rem;
}

@media (max-width: 402px) {
    body {
        background-color: #0A0E1E;
        font-family: "Montserrat", sans-serif;
        margin: 0;
        display: flex;
        justify-content: center;
        min-height: 100dvh;
        width: 80%;
        padding: 0;
        margin: auto;
    }

    h1 {
        font-size: 48px;
    }
    
    h2 {
        font-size: 36px;
        color: #FFFFFF;
    }
    
    h3 {
        font-size: 28px;
    }

    p {
        font-size: 12px;
    }

    .big-body {
        font-size: 16px;
        font-weight: 200;
    }

    main {
        width: 80%;
        /* margin: 10%; */
    }

    .hero {
        display: grid;
        grid-template-columns: 1fr;
        width: 80vh;
    }

    .hero-right {
        display: none;
    }

    .impact-metric {
        font-size: 27px;
    }

    .project-widget {
        /* display: flex;
        flex-direction: column;
        justify-content: start; */
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        width: 100%;
        height: 70vh;

    }

    .project-image {
        align-items: center;
        object-fit: contain;
        overflow: hidden;
    }

    .project-image-container {
        overflow: hidden;
        width: 100%;
        height: auto;
        margin-top: auto;
        object-fit: contain;
    }

    .navigation {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 0 auto;
    }
}

@media (min-width: 402px) and (max-width: 980px) {
    p {
        font-size: 12px;
    }

    .big-body {
        font-size: 16px;
        font-weight: 200;
    }

    main {
    width: 80%;
    margin: 10%;
    }

    .hero {
    display: grid;
    grid-template-columns: 1fr;
    height: 80vh;
    }

    .hero-right {
        display: none;
    }

      .impact-metric {
        font-size: 27px;
    }

        .project-widget {
        /* display: flex;
        flex-direction: column;
        justify-content: start; */
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        width: 100%;
        height: 70vh;

    }
}
