@media screen and (min-width: 767px) and (max-width: 1023px) {
    h1 {
        font-size: 4rem;
        width: 100%;
        letter-spacing: 0.1rem;
    }

    section#hero p {
        width: 90%;
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    section#hero .button {
        width: 20rem;
    }

    section#about h2 {
        font-size: 3rem;
    }

    section#about p {
        text-align: center;
        width: 70%;
        font-size: 1.25rem;
    }

    section#about p:nth-of-type(1) {
        font-size: 1.5rem;
    }

    section#portfolio img {
        width: 100%;
    }

    section#portfolio .portfolio-text h3 {
        font-size: 2rem;
    }

    section#portfolio p {
        font-size: 1.3rem;
    }

    section#services h2 {
        font-size: 3rem;
    }

    section#services p {
        margin: 0 auto;
        text-align: center;
        font-size: 1.3rem;
        width: 90%;
    }

    footer #footer-container {
        margin: 0 auto;
        justify-content: space-a;
        width: 80%;
    }

    footer .footer-logo h2 {
        font-size: 2rem;

    }

    footer .footer-logo p {
        font-size: 1.3rem;
        margin: 1rem;
        text-align: center;
    }

    footer .footer-social {
        width: initial;
        text-align: left;
    }

    footer .social-icons {
        justify-content: inherit;
    }
}


@media screen and (min-width: 1024px) {
    section#hero {
        gap: 5rem
    }

    section#hero h1 {
        font-size: 5.5rem;
        width: 50% !important;
    }

    section#hero p {
        width: 70%;
        font-size: 2.5rem;
    }

    section#hero .button {
        width: 30%;
        font-size: 1.7rem;
    }

    section#about h2 {
        font-size: 5rem;
        min-width: 100%;
    }

    section#about p {
        text-align: center;
        width: 70%;
        font-size: 2rem;
        font-weight: 300;
        margin-bottom: 2rem;
    }

    section#about p:nth-of-type(1) {
        font-size: 2.4rem;
    }

    section#portfolio {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 2rem;
    }

    section#portfolio h2 {
        font-size: 5rem;
        flex-basis: 100%;
        flex-shrink: 0;
    }

    section#portfolio article {
        width: 40%;
        background-color: #1a2c42;
        padding: 2rem;
        border-radius: 1rem;
        margin-bottom: 5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
        min-height: 565px;
    }

    section#portfolio img {
        border-radius: .5rem;
        height: 300px;
        width: 100%;
        object-fit: cover;
    }

    section#portfolio .portfolio-text {
        margin: 0;
        width: 100%;
    }

    section#services {
        margin-bottom: 10rem;
    }

    section#services h2 {
        font-size: 5rem;
    }

    section#services p {
        margin: 0 auto;
        font-size: 2rem;
        width: 80%;
        text-align: center;
    }

    #footer-container {
        width: 60%;
        margin: 0 auto;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);

    }

    .footer-logo {
        width: 100%;
        grid-column: 1 / span 3;
    }

    footer .footer-logo h2 {
        font-size: 1.5rem;
    }

    .footer-logo p {
        margin: 0 auto;
        font-size: 1.3rem;
        text-align: center;
        width: 50%;
    }

    .footer-nav {
        grid-column: 3;
        justify-self: flex-end;
    }

    .footer-contact {
        grid-row: 2;
    }

    .footer-social {
        width: initial;
        grid-column: 2;
        grid-row: 2;
    }

    .footer-copyright {
        grid-column: 1 / span 3;
    }

}