@media (max-width: 1440px) {
    /* ! home */
    main {
        grid-template-columns: 60% 40%;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.9rem;
    }
    .buttons {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    .CTA {
        width: 160px;
        height: 40px;
        font-size: 0.8rem;
    }
    .hero-right {
        background-position: center;
    }
}
@media (max-width: 1024px) {
    /* ! home */
    .hero-right {
        background-position: center ;
    }
    /* ! contact */
    body {
        padding: 1.5rem;
    }
    form {
        padding: 2.5rem 4rem;
    }
    /* ! thank you */
    #thank-you-title {
        font-size: 4rem;
    }  
    #thank-you-subtitle {
        font-size: 2.5rem;
    }
}
@media (max-width: 800px) {
    /* ! contact */
    form {
        padding: 2.5rem;
    }
    /* ! thank you */
    #thank-you-title {
        font-size: 3rem;
    }  
    #thank-you-subtitle {
        font-size: 2.4rem;
    }
}
@media (max-width: 768px) {
    /* ! global */
    .site-nav ul {
        font-size: 0.9rem;
        gap: 0.8rem;
    }
    .name {
        font-size: 1.1rem;
    }
    /* ! home */
    body {
        position: relative;
        padding: 2rem;
    }
    main {
        display: flex;
        width: 100%;
        height: 100%;
    }
    .hero-left {
        justify-content: center;
        align-items: center;
        text-align: center;
        height: 100%;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.9rem;
    }
    .hero-right {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: 100vw;
        background-image: url("about.jpg");
        background-size: cover;
        background-position-y: center;
        background-position-x: -20%;
        background-repeat: no-repeat;
        opacity: 0.3;
    }
    /* ! portfolio */
    .gallery a {
        width: calc(50% - 10px);
    }
    /* ! contact */
    main {
        flex-direction: column;
        height: 100%;
        margin-top: 0rem;
    }
    .contact-title {
        font-size: 2.5rem;
    }
    .contact-text {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .contact-cards {
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }
    .contact-card {
        width: calc(50% - 8px)
    }
    form {
        width: 100%;
    }
}
@media (max-width: 700px) {
    /* ! home */
    .hero-right {
        background-position: -20%;
    }
    /* ! contact */
    .contact-card {
        width: 100%;
        height: 100px;
        padding: 1rem;
        align-items: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    .contact-card-info {
        align-items: center;
    }
}
@media (max-width: 650px) {
    /* ! home */
    .hero-right {
        background-position: -10%;
    }
}
@media (max-width: 600px) {
    /* ! home */
    .hero-right {
        background-position: 20%;
    }
    /* ! thank you */
    #thank-you-title {
        font-size: 2rem;
    }  
    #thank-you-subtitle {
        font-size: 1.8rem;
    }
    #thank-you-paragraph {
        font-size: 1rem;
    }
}
@media (max-width: 515px) {
    /* ! global */
    .site-nav ul {
        font-size: 0.8rem;
        gap: 0.7rem;
    }
    /* ! home */
    .hero-right{
        background-position-x: 30%;
    }
    /* ! contact */
    .subtitle {
        font-size: 1rem;
    }
}
@media (max-width: 490px) {
    /* ! global */
    .name {
        font-size: 1rem;
        text-align: center;
    }
    /* ! home */
    body {
        padding: 1rem;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.4rem;
    }
}
@media (max-width: 450px) {
    /* ! global */
    .site-nav ul {
        font-size: 0.7rem;
    }
    /* ! contact */
    .contact-title {
        font-size: 2rem;
    }
    form {
        padding: 2rem;
    }
}
@media (max-width: 430px) {
    /* ! global */
    .name {
        font-size: 0.8rem;
    }
    .site-nav ul {
        font-size: 0.6rem;
    }
    /* ! portfolio */
    .gallery a {
        width: calc(100% - 10px);
    }
    /* ! contact */
    .contact-title {
        font-size: 1.5rem;
    }
    .contact-subtitle {
        font-size: 0.9rem;
    }
}
@media (max-width: 385px) {
    /* ! global */
    .name {
        font-size: 0.7rem;
    }
    .site-nav ul {
        font-size: 0.6rem;
    }
    /* ! home */
    .hero-title {
        font-size: 1.3rem;
    }
    .hero-subtitle {
        font-size: 0.8rem;
    }
    /* ! portfolio */
    .cat-nav {
        height: 2rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    .cat-nav ul {
        font-size: 0.7rem;
    }
    /* ! thank you */
    #thank-you-title {
        font-size: 1.8rem;
    }  
    #thank-you-subtitle {
        font-size: 1.5rem;
    }
    #thank-you-paragraph {
        font-size: 1rem;
    }
}
@media (max-width: 360px) {
    /* ! global */
    .name {
        font-size: 0.6rem;
    }
    .site-nav ul {
        font-size: 0.5rem;
    }
    /* ! home */
    .hero-title {
        font-size: 1.3rem;
    }
    .hero-subtitle {
        font-size: 0.7rem;
    }
    .CTA {
        width: 120px;
        font-size: 0.7rem;
    }
    /* ! portfolio */
    .cat-nav ul {
        font-size: 0.6rem;
    }
    /* ! contact */
    .contact-title {
        font-size: 1.2rem;
    }
    .contact-subtitle {
        font-size: 0.8rem;
    }
    /* ! thank you */
    #thank-you-title {
        font-size: 1.5rem;
    }  
    #thank-you-subtitle {
        font-size: 1.4rem;
    }
    #thank-you-paragraph {
        font-size: 0.8rem;
    }
}
@media (max-width: 330px) {
    /* ! global */
    .name {
        font-size: 0.5rem;
        letter-spacing: 4px;
    }
    .site-nav ul {
        font-size: 0.5rem;
    }
}