#art {
    width: 75%;
    position: absolute;
    left: 50%;
    top: 45rem;
    transform: translate(-50%, -50%);
    z-index: -1;
}

#art-mobile {
    width: 70%;
    margin: 3rem auto 2rem 1rem;
    display: none;
}

.home {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.home .intro {
    width: 60%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home .intro div {
    display: flex;
}

.home .intro .title {
    font-size: 5.4rem;
    font-weight: 500;
    color: #000;
    margin: 2rem 10rem 0 10rem;
}

.home .intro .cta {
    font-size: 2.5rem;
    font-weight: 300;
    color: #000;
    margin: 0 10rem 2rem 10rem;
}

.home .intro div a {
    font-size: 2rem;
    font-weight: 500;
    color: #fff;
    background-color: #000;
    margin: 1rem;
    padding: 1rem 2rem 1rem 2rem;
    border-radius: 0.3rem;
    box-shadow: -0.6rem 0.6rem 0 0 #9ddcff;
    transition:
        transform 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
}

.home .intro a:hover {
    transform: translate(0.2rem, -0.2rem);
    box-shadow: -0.8rem 0.8rem 0 0 #9ddcff;
}

.tools {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 14rem;
    background-color: #000;
}

.tools div {
    align-items: center;
    justify-content: space-around;
    display: flex;
    width: 50%;
    height: 100%;
}

.tools div p {
    font-size: 2.4rem;
    color: #fff;
}

.services {
    width: 100%;
    height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services .arrow {
    transform: translateY(-1.2rem) rotate(5deg);
    width: 8rem;
}

.services .title {
    font-family: var(--custom-font), system-ui;
    font-size: var(--title-font-size);
    background-color: #ffc9f0;
    box-shadow: 0.5rem 0.5rem #00000030;
    height: 10rem;
    display: flex;
    align-items: center;
    margin: 10rem 0 0 0;
}

.services ul {
    width: 65%;
    height: 80%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    justify-items: center;
    align-items: center;
}

.services ul li {
    height: 30rem;
    width: 27.4rem;
    display: flex;
}

.flip-card {
    padding: 2rem;
    perspective: 1000px;
}

.flip-card:nth-child(1) {
    transform: rotate(-5deg);
}

.flip-card:nth-child(2) {
    transform: rotate(2.5deg);
}

.flip-card:nth-child(3) {
    transform: rotate(-5deg);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 0.5rem;
    box-shadow: 0.5rem 0.5rem #00000030;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0.5rem;
}

.flip-card-front p {
    margin: auto;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-front p {
    width: 60%;
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    font-family:
        Space Grotesk,
        system-ui;
}

.flip-card-back ul {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flip-card-back ul li {
    width: 100%;
    display: flex;
    margin: 0.5rem;
}

.flip-card-back ul li p {
    width: 100%;
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
    font-family:
        Space Grotesk,
        system-ui;
}

.services ul li:nth-child(1) .flip-card-front,
.services ul li:nth-child(1) .flip-card-back {
    background-color: #c77adb;
    border: 0.3rem solid #87329c;
}

.services ul li:nth-child(2) .flip-card-front,
.services ul li:nth-child(2) .flip-card-back {
    background-color: #ff905c;
    border: 0.3rem solid #c74608;
}

.services ul li:nth-child(3) .flip-card-front,
.services ul li:nth-child(3) .flip-card-back {
    background-color: #9ddcff;
    border: 0.3rem solid #006eab;
}

.services ul li:nth-child(3) p {
    width: 80%;
}

.portfolio {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 20rem 0;
}

.portfolio .arrow {
    transform: translateY(-3rem) rotate(-40deg);
    width: 5rem;
}

.portfolio .title {
    font-family: var(--custom-font), system-ui;
    font-size: var(--title-font-size);
    background-color: #ffc9f0;
    box-shadow: 0.5rem 0.5rem #00000030;
    height: 10rem;
    display: flex;
    align-items: center;
    margin: 10rem 0 0 0;
}

.portfolio ul {
    width: 85%;
    height: 80%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    align-items: center;
    margin: 0 0 2rem 0;
}

.portfolio ul li {
    width: 40rem;
    height: 41.5rem;
    display: flex;
    padding: 1.5rem;
    margin: 4rem;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    background-color: #fff;
    border: 0.3rem solid #000;
    border-radius: 0.5rem;
    box-shadow: 0.5rem 0.5rem #00000030;
    transition: all 0.2s ease-in-out;
}

.portfolio ul li:hover {
    transform: scale(1.1);
}

.portfolio ul li a img {
    width: 100%;
    margin: 0 0 1.5rem 0;
}

.portfolio ul li a div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portfolio ul li a div .name {
    font-size: 2.3rem;
    font-weight: 500;
    color: #000;
}

.portfolio ul li a div .tag {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    border: 0.2rem solid #000;
    border-radius: 0.2rem 2.2rem 2.2rem 2.2rem;
    padding: 0.5rem 1rem 0.5rem 1rem;
}

.portfolio ul li:nth-child(1) a div .tag {
    background-color: #5ab5e8;
}

.portfolio ul li:nth-child(2) a div .tag {
    background-color: #ff905c;
}

.portfolio ul li:nth-child(3) a div .tag {
    background-color: #c77adb;
}

.portfolio ul li:nth-child(4) a div .tag {
    background-color: #ff905c;
}

.portfolio ul li:nth-child(5) a div .tag {
    background-color: #c77adb;
}

.portfolio ul li:nth-child(6) a div .tag {
    background-color: #5ab5e8;
}

.contact {
    width: 100%;
    height: 30rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
    background-color: #000;
}

.contact .logo {
    display: flex;
}

.contact .nav {
    display: flex;
}

.contact .nav a {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin: 0 1rem 0 1rem;
}

.contact .links {
    display: flex;
}

.contact .links a {
    margin: 0 1.5rem 0 1.5rem;
}

@media (orientation: portrait) {
    #art {
        display: none;
    }

    #art-mobile {
        display: block;
    }

    .home .intro {
        width: 90%;
    }

    .home .intro .title,
    .home .intro .cta {
        text-align: left;
    }

    .home .intro div {
        margin: 0 0 5rem 0;
    }

    .home .intro div a {
        margin: 2rem;
    }

    .home .intro .title {
        font-size: 2.4rem;
        margin: 0 3rem 3rem 3rem;
    }

    .portfolio ul li {
        width: 34rem;
        height: 34.5rem;
    }

    .portfolio ul li a div .name {
        font-size: 1.8rem;
    }

    .portfolio ul li a div .tag {
        font-size: 1rem;
    }

    .home .intro .cta {
        font-size: 2rem;
        margin: 0 3rem 3rem 3rem;
    }

    .tools {
        height: 5rem;
    }

    .tools div {
        width: 80%;
    }

    .tools div p {
        font-size: 1.6rem;
    }

    .services {
        height: 150vh;
    }

    .services ul {
        display: flex;
        flex-direction: column;
    }

    .portfolio {
        height: 350vh;
    }

    .portfolio ul {
        height: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
    }

    .contact {
        height: 50rem;
        display: flex;
        flex-direction: column;
    }

    .contact .nav {
        display: flex;
        flex-direction: column;
    }

    .contact .nav a {
        margin: 1rem auto 1rem auto;
    }

    .contact .links {
        width: 80%;
    }

    .contact .links a {
        margin: 2rem auto 2rem auto;
    }

    .contact .logo {
        margin: auto;
    }
}