@media (max-width: 1439px) {

    /* Nav */
    .nav {
        margin-inline: auto;
        width: fit-content;
        max-width: calc(100% - 2rem);
        padding: 1.5rem 3rem;
        margin-bottom: 2.5rem;
    }

    /* Layout */
    .container {
        grid-template-columns: 320px 1fr;
        column-gap: 2rem;
        padding: 1rem 1.5rem 2rem;
    }

    .right {
        grid-area: right;
        min-width: 0;
    }

    .left {
        width: 100%;
        margin-left: 0;
        padding: 1.5rem;
    }

    .left .first {
        width: 100%;
        height: auto;
        aspect-ratio: 240 / 310;
        object-fit: cover;
    }

    .left h1 {
        font-size: 2rem;
        padding-bottom: 2rem;
    }

    .left p {
        font-size: 1rem;
    }

    /* Big titles */
    .texts-home h1,
    .project__texts__project-title,
    .journey__texts__journey-title,
    .skills__texts__skills-title,
    .contact__texts__contact-title {
        font-size: clamp(3rem, 7vw, 7rem);
    }

    .project__texts__project-title,
    .journey__texts__journey-title,
    .skills__texts__skills-title,
    .contact__texts__contact-title {
        margin-bottom: 2rem;
    }

    /* Home */
    .home {
        margin-bottom: 5rem;
    }

    .texts-home {
        margin-bottom: 3rem;
    }

    .texts-home p {
        width: 90%;
        font-size: 1.1rem;
    }

    .statics-home {
        gap: 3rem;
        margin-bottom: 3rem;
    }

    .statics h2 {
        font-size: clamp(3rem, 5vw, 6rem);
    }

    .statics p {
        width: 100%;
        font-size: 1.1rem;
    }

    .statics:nth-child(2) h2 {
        width: auto;
    }

    .statics:last-child {
        left: 0;
    }

    .cards-home {
        gap: 1.5rem;
    }

    .cards-home .card:first-child,
    .cards-home .card:last-child {
        flex: 1;
        padding: 3rem 1.5rem;
        margin-right: 0;
    }

    .cards-home .card h1 {
        position: static;
        width: auto;
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .cards-home .card p {
        position: static;
        font-size: 1.3rem;
    }

    /* Projects */
    .project {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .project img {
        width: 160px;
        flex-shrink: 0;
    }

    .project-texts p {
        width: 100%;
    }

    .projects-button {
        position: static;
        left: auto;
        width: fit-content;
        margin-left: auto;
        margin-bottom: 5rem;
    }

    /* Journey */
    .journey-texts {
        padding: 1.5rem;
    }

    .journey-texts h2 {
        font-size: 2rem;
    }

    .journey-texts p {
        width: 100%;
    }

    /* Skills */
    .skills-parent {
        gap: 1rem;
        align-items: flex-start;
    }

    .left-vertical,
    .right-vertical {
        flex: 1;
        min-width: 0;
    }

    .skill {
        padding: 1rem;
    }

    .img-skill {
        width: 60px;
        flex-shrink: 0;
    }

    .right-vertical .skill:first-child h2 {
        width: 100%;
        font-size: 1.1rem;
    }

    .nameAndEmail {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .name,
    .email,
    .message {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .name,
    .email {
        flex: 1;
        min-width: 0;
    }

    .name label,
    .email label,
    .message label {
        position: static;
    }

    .name input,
    .email input {
        position: static;
        width: 100%;
        margin-bottom: 0;
    }

    .message textarea {
        position: static;
        width: 100%;
        margin-bottom: 1.5rem;
        resize: vertical;
    }

    .submit button {
        position: static;
        width: 100%;
        padding: 0.9rem 1rem;
    }
}


@media (max-width: 1079px) {

    .nav {
        padding: 1.25rem 2.5rem;
        margin-top: 1.5rem;
    }

    .nav ul nav {
        gap: 2.5rem;
    }

    .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "right";
        padding: 1rem 2rem 2rem;
    }

    /* Profile card */
    .left {
        position: static;
        display: grid;
        grid-template-columns: 200px 1fr;
        column-gap: 2rem;
        align-items: center;
        text-align: left;
        margin-bottom: 3rem;
    }

    .left .first {
        grid-column: 1;
        grid-row: 1 / span 3;
        margin-bottom: 0;
    }

    .left h1,
    .left p,
    .left .icons {
        grid-column: 2;
    }

    .left h1 {
        font-size: 2.4rem;
        padding-bottom: 1rem;
    }

    .left p {
        margin-bottom: 1.25rem;
    }

    .icons {
        justify-content: flex-start;
    }

    /* Titles */
    .texts-home h1,
    .project__texts__project-title,
    .journey__texts__journey-title,
    .skills__texts__skills-title,
    .contact__texts__contact-title {
        font-size: clamp(4rem, 8vw, 6rem);
    }

    .texts-home p {
        width: 80%;
    }

    .project img {
        width: 180px;
    }

    .skill {
        padding: 1.5rem;
    }
}


@media (max-width: 809px) {

    /* Nav */
    .nav {
        width: auto;
        margin: 1rem 1rem 1.5rem;
        padding: 1rem;
    }

    .nav ul nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem 1.25rem;
    }

    .nav a {
        font-size: 0.9rem;
    }

    /* Layout */
    .container {
        padding: 0.5rem 1rem 2rem;
    }

    .left {
        display: block;
        text-align: center;
        padding: 1.5rem 1.25rem;
        margin-bottom: 2.5rem;
    }

    .left .first {
        display: block;
        width: 200px;
        max-width: 100%;
        margin: 0 auto 1rem;
    }

    .left h1 {
        font-size: 2rem;
        padding-bottom: 1.25rem;
    }

    .icons {
        justify-content: center;
    }

    /* Titles */
    .texts-home h1,
    .project__texts__project-title,
    .journey__texts__journey-title,
    .skills__texts__skills-title,
    .contact__texts__contact-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .project__texts__project-title,
    .journey__texts__journey-title,
    .skills__texts__skills-title,
    .contact__texts__contact-title {
        margin-bottom: 1.5rem;
    }

    /* Home */
    .home {
        margin-bottom: 4rem;
    }

    .texts-home {
        margin-bottom: 2.5rem;
    }

    .texts-home p {
        width: 100%;
        font-size: 1rem;
    }

    .statics-home {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .statics {
        flex: 1;
        min-width: 0;
    }

    .statics h2 {
        font-size: clamp(2.2rem, 11vw, 3.5rem);
    }

    .statics p {
        font-size: 0.95rem;
    }

    .cards-home {
        flex-direction: column;
    }

    .cards-home .card:first-child,
    .cards-home .card:last-child {
        padding: 2rem 1.25rem;
    }

    .cards-home .card h1 {
        font-size: 1.4rem;
    }

    .cards-home .card p {
        font-size: 1.15rem;
    }

    /* Projects */
    .project {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 1rem;
    }

    .project img {
        width: 100%;
    }

    .project-texts h2 {
        top: 0;
        margin-bottom: 0.5rem;
    }

    .projects-button {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-bottom: 4rem;
    }

    /* Journey */
    .journey-texts {
        padding: 1rem;
    }

    .journey-texts h2 {
        font-size: 1.6rem;
    }

    /* Skills */
    .skills-parent {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-bottom: 3rem;
    }

    .left-vertical,
    .right-vertical {
        flex: none;
        width: 100%;
    }

    .skill {
        margin-bottom: 0.5rem;
    }

    .project:hover,
    .journey-texts:hover,
    .skill:hover {
        transform: none;
    }

    /* Contact form */
    .nameAndEmail {
        flex-direction: column;
        gap: 1.25rem;
    }
}