/* Media Query for screens with a max-width of 1400px */
@media screen and (max-width: 1400px) {
    #profile {
        height: 83vh;
        margin-bottom: 6rem;
    }

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

/* Media Query for screens with a max-width of 1200px */
@media screen and (max-width: 1200px) {
    /* Navigation */
    #desktop-nav {
        display: none;
    }

    #hamburger-nav {
        background-color: var(--color-background);
        display: flex;
        position: sticky;
        top: 0;
        height: 15vh;
        width: 100%;
        align-items: center;
        z-index: 1000;
    }

    /* Profile Section */
    .profile-container {
        margin: 10px 0;
    }

    .profile-container h2 {
        font-size: 2rem;
        line-height: 1.2;
        transition: 0.2s ease-in-out;
        color: var(--color-text);
        flex-wrap: nowrap;
    }

    .profile-container p {
        font-size: 1.5rem;
    }

    #profile, #skills, #projects, #contact {
        padding-top: 30%;
        margin: 0 auto;
    }

    .profile-container, .skills-content-1, .contact-content {
        margin: 0 auto;
        display: block;
    }

    section {
        height: fit-content;
        margin: 0 5%;
    }

    /* Buttons */
    .btn {
        padding: 6px 12px;
        font-size: 12px;
        height: 50%;
        width: 50%;
    }

    /* Skills Section */
    .skills-tools-icons {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Contact Form */
    .contact-form input, .contact-form textarea {
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Cards Section */
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: unset;
    }

    .card p:first-of-type {
        font-size: 0.5em;
    }

    .card p:nth-of-type(2) {
        font-size: 0.45em;
    }

    #projects .cards {
        grid-template-columns: repeat(1, 1fr);
        gap: 30px 10%;
    }

    /* Contact Info */
    .contact-info {
        max-width: 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    /* Contact Form Inputs */
    .contact-form {
        width: 100%;
        align-items: unset;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        width: 100%;
        box-sizing: border-box;
    }

    .contact-form textarea {
        resize: none;
    }
}
