* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    appearance: none;
    text-decoration: none;

    background: rgba(30, 31, 34, 1);
    color: rgba(255, 255, 255, 1);

    font-family: "Ubuntu", sans-serif;

    transition: color .15s ease-in-out, background .15s ease-in-out;
}
a {
    cursor: pointer;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;

    min-height: 100vh;
}

hr {
    width: 90%;
    height: 1px;

    background: rgba(60, 62, 68, 1);
    border: none;
}

header {
    padding: 2rem 0;
    margin: 0 auto;

    width: 100%;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 4;

    background: linear-gradient(180deg, rgba(30, 31, 34, 1) 0%, rgba(30, 31, 34, 0) 100%);
}
header.bottom {
    top: unset;
    bottom: 0;

    transform: rotateX(180deg);
}
header div {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 0 auto;

    width: 84%;
    max-width: 100rem;

    background: transparent;

    transition: transform .15s ease-in-out;
}
header div.hidden {
    transform: translateY(-200%);

    transition: transform .15s ease-in-out;
}
header div a {
    padding: .5rem;
    margin: 0 0 0 4rem;

    font-size: 32px;
    font-weight: 600;

    background: transparent;
}
header div nav {
    background: transparent;
}
header div nav a {
    margin: 0 1rem;

    font-size: 20px;
    font-weight: 500;
}
header div nav a:hover {
    color: rgba(255, 255, 255, .4);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10rem;

    margin: 0 auto;

    width: 65%;
    max-width: 77rem;
}

main .hero {
    display: flex;
    align-items: center;
    gap: 8rem;

    width: 100%;
}
main .hero .text {
    width: 49%;
    max-width: 38rem;
}
main .hero .text h1 {
    margin: 2rem 0;

    font-size: 44px;
    font-weight: 600;
    line-height: 53px;
}
main .hero .text h1 span:first-child {
    color: rgba(249, 230, 144, 1);
}
main .hero .text h1 span:last-child {
    color: rgba(170, 143, 250, 1);
}
main .hero .text ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    justify-content: space-evenly;

    margin: 0 0 0 1rem;
}
main .hero .text ul li {
    color: rgba(255, 255, 255, .7);
    font-size: 20px;
    font-weight: 300;
    line-height: 27px;
}
main .hero .image {
    position: relative;

    width: 41%;
    max-width: 500px;

    aspect-ratio: 1/1;
}
main .hero .image img {
    position: relative;
    z-index: 3;

    width: 100%;

    background: transparent;
}
main .hero .image svg {
    position: absolute;
    z-index: 2;
    top: -23%;
    left: -22%;

    width: 150%;
    height: auto;

    background: transparent;
    filter: drop-shadow(10px 10px 0 rgba(0, 0, 0, .75));

    fill: rgb(170, 143, 250, .6);
}
main .hero .image svg:last-child {
    z-index: 1;
    top: -16%;
    left: -21%;

    filter: drop-shadow(10px 10px 0 rgba(255, 255, 255, .75));

    fill: rgba(249, 230, 144, .6);
}

main article {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    margin: auto;

    width: 80%;
    max-width: 80%;
}
main article h1 {
    margin: 0 0 0 1rem;

    font-size: 38px;
    font-weight: 600;
}
main article p {
    font-size: 20px;
    font-weight: 300;
    line-height: 27px;
}
main article p a {
    color: rgba(170, 143, 250, 1);
    text-decoration: underline;
}

main .work article {
    margin: auto auto 15rem auto;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
main .work article:last-child {
    margin: auto;
}
main .work article.inverted {
    flex-direction: row-reverse;
}
main .work article .text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
/* main .work article .text .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;

    width: fit-content;

    padding: .9rem 3rem;
    margin: 0 0 0 1rem;

    border: none;
    background: rgba(170, 143, 250, 1);
    border-radius: 2rem;

    font-size: 18px;
    font-weight: 500;

    cursor: pointer;
}
main .work article .text .btn:hover {
    background: rgba(170, 143, 250, .4);
}
main .work article .text .btn svg {
    width: 16px;
    height: auto;

    background: transparent;

    fill: rgba(255, 255, 255, 1);
} */
main .work article .slideshow {
    position: relative;

    min-width: 61%;
    width: 100%;
    aspect-ratio: 16 / 9;

    border-radius: 2rem;
    box-shadow: 10px 10px 0 0 rgba(0, 0, 0, .75);

    overflow: hidden;
}
main .work article .slideshow .images {
    width: 100%;
    height: auto;

    display: flex;
    flex-direction: row;

    animation: flex-direction 0.5s ease-in-out;
}
main .work article .slideshow .images.second {
    flex-direction: row-reverse;

    animation: flex-direction 0.5s ease-in-out;
}
main .work article .slideshow .images img {
    width: 100%;
    height: auto;

    border-radius: 2rem;
    background: transparent;

    transition: z-index .15s ease-in-out, transform .15s ease-in-out;
}
main .work article .slideshow .images img:last-child {
    transform: translateX(0);

    transition: z-index .15s ease-in-out, transform .15s ease-in-out;
}
main .work article .slideshow .images.second img {
    transform: translateX(-100%);

    transition: z-index .15s ease-in-out, transform .15s ease-in-out;
}
main .work article .slideshow .images.second img:last-child {
    transform: translateX(100%);

    transition: z-index .15s ease-in-out, transform .15s ease-in-out;
}
main .work article .slideshow .prev, main .work article .slideshow .next {
    position: absolute;
    top: 50%;
    left: 5px;
    z-index: 3;

    width: auto;

    padding: 8.5px 16px;
    margin-top: -22px;

    color: rgba(255, 255, 255, 1);
    font-weight: bold;
    font-size: 18px;

    border: none;
    border-radius: 2rem;
    background: rgba(0, 0, 0, .5);

    transition: 0.6s ease;

    user-select: none;
    cursor: pointer;
}
main .work article .slideshow .next {
    left: unset;
    right: 5px;
}
main .work article .slideshow .prev:hover, main .work article .slideshow .next:hover {
    color: rgba(255, 255, 255, .4);

    background: rgba(0, 0, 0, .3);
}

footer {
    padding: 3rem 0;
    margin: 10rem 0 0 0;

    background: rgba(15, 16, 17, 1);

    font-size: 18px;
    font-weight: 300;

    position: relative;
    z-index: 5;
}
footer div {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: auto;

    width: 61%;
    max-width: 72rem;

    background: transparent;
}
footer div span, footer div a {
    background: transparent;
}
footer div a:hover {
    color: rgba(255, 255, 255, .4);
}

@media screen and (max-width: 1440px) {
    main .hero .text ul {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 1fr);
    }

    main .work article, main .work article.inverted {
        flex-direction: column;
    }
    main .work article .image {
        display: none;
    }
}
@media screen and (max-width: 1023px) {
    header div {
        width: 100%;
    }

    main {
        width: 80%;

        gap: 8rem;
    }
    main .hero {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 6rem;
    }
    main .hero .text {
        width: 100%;
    }
    main .hero .text h1, main article h1, main article p {
        text-align: center;
    }
    main .hero .text ul {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr;
    }
    main .hero .image {
        width: 70%;
    }

    main .work article {
        margin: auto auto 10rem auto;
    }
    main .work article .text {
        align-items: center;
    }

    footer {
        margin: 8rem 0 0;
    }
    footer div {
        width: 80%;
    }
}
@media screen and (max-width: 670px) {
    header div {
        justify-content: center;
    }
    header div a {
        display: none;
    }
    header div nav {
        display: flex;
    }
    header div nav a {
        display: block;
    }

    main {
        gap: 5rem;

        margin: 9rem auto 0;
    }

    main .hero {
        gap: 4rem;
    }
    main .hero .text h1 {
        font-size: 38px;
    }
    main .hero .text ul {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 1fr);
        justify-items: center;
    }

    main article h1 {
        font-size: 30px;
    }
    main .work article .slideshow {
        min-width: 135%;
    }

    footer {
        padding: 2rem 0 1rem;
        margin: 5rem 0 0;
    }
    footer div {
        flex-direction: column;
        gap: 2rem;
    }

    main article p, main .hero .text ul li {
        font-size: 18px;
    }
    main .work article .text button, footer {
        font-size: 16px;
    }
}