@media screen and (max-width: 1400px) {

  #profile-section {
        height: 60vh;
    }
}

@media screen and (max-width: 1200px) {

    header {
        width: 100vw;
    }

    #about {
        padding-bottom: 8rem;
    }

    #profile-pic-bg-wrapper {
        width: 13rem;
        height: 13rem;
    }

    #profile-pic-shape-wrapper {
    width: 56%;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 4rem;
    }

    .profile-h3 {
        font-size: 1.5rem;
    }

    .hero-desc {
        max-width: 100%;
        font-size: .9rem;
    }

    .project-display-container {
        flex-basis: 300px;
    }

    .contact-container {
        grid-template-rows: auto auto;
        grid-template-columns: auto auto;
        grid-row-gap: 4rem;
        align-items: flex-start;
    }

    .contact-btn-container {
        grid-row-start: 2;
    }

    .contact-title {
        grid-column: 1 / span 2;
    }

}

@media screen and (max-width: 1081px) {

    .title {
        font-size: 2.5rem;
    }

    .about-container {
        flex-wrap: wrap;
    }

    button, button p {
        font-size: .7rem;
    }

    .email-btn {
        width: 12rem;
        height: 4rem;
    }

    .cv-btn {
        width: 9rem;
    }
    
    .contact-container .title {
        grid-row: 1 / span 2;
    }

    .contact-links-container {
        grid-row: 2;
    }

    .hero-desc {
        font-size: .8rem;
    }

    .hero-name {
       font-size: 2rem;
    }

    .nav-links {
        left: 10rem;
    }

    .nav-links li {
        margin-right: 2rem;
    }

    .project-display-container {
        flex: 30rem 15rem 20rem;
    }


    .proj-img-container {
        height: 10rem;
    }

}

@media screen and (max-width: 850px) {

    .hero-section {
        grid-template-rows: repeat(3, auto);
        grid-template-columns: auto auto;
        grid-auto-rows: 0;
    }

    .hero-btn-container {
        grid-column: 1;
        grid-row: 3;
    }

    .hero-btn-container button {
        width: 7rem;
        height: 3rem;
    }

    .hero-name {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-desc {
        grid-column: 1;
        grid-row: 2;
    }

    #profile-pic-bg-wrapper {
        width: 10rem;
        height: 10rem;
    }

    #profile-pic-shape-wrapper {
    width: 56%;
    }

    .profile-h3 {
        font-size: 1.2rem;
    }

}

@media screen and (max-width: 700px) {


    button p {
        font-size: .7rem;
    }

    .section__text__p2 {
        font-size: 1.25rem;
    }
    .title {
        font-size: 2rem;
    }

    .skill__title, .logo__title {
        font-size: .75rem;
    }

    header {
        height: 7rem;
    }

    header.shrunk .shrunk-bg {
        height: 13rem;
        width: 10rem;
    }
    
    header.shrunk .nav-links {
        visibility: hidden;
        transform: translateY(-150px);
        transition: none;
        opacity: 0;
    }
    
    header.shrunk.menu-open .shrunk-bg {
        height: 24rem;
    }

    header.shrunk.menu-open .nav-links {
        visibility: visible;
        transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
        opacity: 1;
        left: 0;
        top: 10rem;
        transition: all 0.3s ease;
    }

    #desktop-nav {
        height: 7rem;
    }

    .nav-links li a {
        font-size: .7rem;
    }

    header.shrunk .logo {
        top: 2.4rem;
        font-size: 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    header.shrunk #hamburger-menu {
        display: flex;
    }

    #about, #projects, #contact {
        padding: 0 4rem;
    }

    #about {
        padding-bottom: 4rem;
    }

    .project-section-container {
        justify-content: center;
    }

    .hero-section {
        padding: 3rem;
        grid-template-columns: auto auto;
        grid-template-rows: repeat(3, auto);
    }

    .hero-name {
        grid-column: 1 /span 2;
        grid-row: 1;
        font-size: 1.7rem;
    }

    .hero-desc {
        grid-column: 1;
        grid-row: 2;
    }

    .hero-btn-container {
        grid-column: 1 /span 2;
        grid-row: 3;
    }

    #profile-container-right {
        grid-column: 2;
        grid-row: 2;
    }

    #profile-pic-bg-wrapper {
        width: 9rem;
        height: 9rem;
    }

    #profile-pic-shape-wrapper {
    width: 56%;
    }

    .profile-h3 {
        font-size: 1.1rem;
    }

}

@media screen and (max-width: 600px) {

    #contact {
        height: auto;
        margin-top: 6rem;
    }
    .contact-container {
        grid-template-rows: auto auto auto;
        grid-template-columns: auto;   
        max-width: 100%;
    }

    .contact-btn-container {
        grid-row: 2;
        flex-direction: row;
        gap: 2rem;
    }

    .contact-links-container {
        grid-row: 3;
    }

    .hero-name {
        grid-column: 1 / span 2;
        grid-row: 1;
        font-size: 1.7rem;
    }

    .hero-desc {
        grid-column: 1 / span 2;
        grid-row: 2;
    }

    .hero-btn-container {
        grid-column: 1;
        grid-row: 3;
        flex-direction: column;
        gap: 1rem;
    }

    #profile-container-right {
        grid-column: 2;
        grid-row: 3;
    }

    p {
        font-size: .8rem;
    }
    
}