@font-face {
    font-family: "Zealandia";
    src: url(fonts/PNAZealandia-Light.woff);
}

html,body {
    height: 100%;
    overflow-x: hidden
}

body {
    background-color: #010101;
    color: #CBCBCB;
    font-family: "Maven Pro", sans-serif;

    display: grid;
    grid-template-rows: auto 1fr;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

p {
    font-size: 1.2rem;
    color: #9d9d9d;
}

*,*:after,*:before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: -1;
}

header {
    z-index: 20;
    display: flex;
    justify-content: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 1rem;
    padding-top: 4rem;
    width: min(100%, 64rem);
}

.logo {
    font-size: 2rem;
    user-select: none;
}

.nav-list {
    list-style-type: none;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.nav-item {
    font-weight: 600;
    padding-inline: 2rem;
    padding-block: 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: 300ms;
}

.nav-item span {
    display: inline-block;
    transition: 300ms;
}

@media screen and (min-width: 80rem) {

    .nav-item:hover {
        background-color: #D58AD235;
        border: 1px solid #D58AD2;
    }

    .nav-item:hover span {
        transform: translateY(-2px) translateX(-2px);
    }

}

@media screen and (max-width: 80rem) {
    nav {
        padding-top: 1rem;
    }

    .nav-list {
        gap: 0;
    }

    .nav-item {
        font-size: 0.8rem;
        padding-inline: 1rem;
    }
}

.links {
    list-style-type: none;
    display: flex;
    gap: 2rem;
    justify-content: end;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 1rem;
}

#cards-container {
    position: relative;
    width: min(100%, 48rem);
    height: 32rem;
}

.card {
    position: absolute;
    width: min(100%, 48rem);
    height: 32rem;
    background-color: #171219;
    border: 1px solid #565656;
    border-radius: 16px;

    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

h1 {
    font-family: "Zealandia", sans-serif;
}

.tags-container {
    display: flex;
    gap: 2rem;
}

.tag {
    background-color: #9747ff30;
    padding-inline: 1.2rem;
    padding-block: 0.4rem;
    border-radius: 2rem;
    border: 0.2px solid #9747FF;
}

.links-container {
    display: flex;
    gap: 2rem;
}

.link {
    color: currentColor;
    display: flex;
    align-items: center;
}

.card.center {
    transform: scale(1) translateX(0);
    opacity: 1;
}

.card.side {
    opacity: 0.7;
    cursor: pointer;
}

.card.left {
    transform: scale(0.6) translateX(-90%) perspective(5000px) rotateY(20deg) rotateX(20deg);
}

.card.right {
    transform: scale(0.6) translateX(90%) perspective(5000px) rotateY(-20deg) rotateX(20deg);
}

.card.bottom {
    transform: scale(0) translateX(0);
    opacity: 0;
}

.card.with-transition {
    transition: 400ms linear 50ms;
}

@media screen and (max-width: 80rem) {
    #cards-container {
        height: 26rem;
    }

    .card {
        height: 26rem;
        gap: 2rem;
        padding: 2rem;
    }

    .card h1 {
        font-size: 1.6rem;
    }

    .link {
        font-size: 0.8rem;
    }
}

.carousel-nav {
    display: flex;
    gap: 2rem;
}

.carousel-nav-btn {
    cursor: pointer;
    background-color: #fff;
    border-radius: 64rem;
    height: 3rem;
    width: 3rem;
    display: grid;
    place-items: center;
    border: none;

    transition: 400ms ease-in-out;
}

.carousel-nav-btn:hover {
    transform: scale(1.1);
}

#shadow-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 40%;

    background: linear-gradient(transparent, #010101);
}

#shadow-top {
    position: absolute;
    left: 0;
    right: 0;
    top: 40%;

    height: 40%;

    background: linear-gradient(#010101, transparent);
}

#shadow-ceiling {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;

    height: 60%;

    background: linear-gradient(#171219, transparent);
}

#floor {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    bottom: 0;
    overflow: hidden;
}

.floor-container {
    position: relative;
    height: 100%;
    width: 100%;
    border-top: 0.2px solid #D58AD2;
}

.triangle {
    --height: 0px;
    --width: 0px;

    position: absolute;
    bottom: 0;
    left: 0; 
    right: 0; 
    margin-left: auto; 
    margin-right: auto;
    border: 1px solid #D58AD2;

    transform: perspective(500px) rotateX(80deg);

    height: var(--height);
    width: var(--width);
}

.line {
    --height: 0px;

    position: absolute;
    bottom: 0;
    left: 0; 
    right: 0;
    border-top: 1px solid #D58AD2;

    height: var(--height);
}

#contact {
    position: absolute;
    background-color: #010101;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;

    z-index: 10;

    transform: translateY(100%);
    transition: 500ms ease-out;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 6rem;

    padding: 1rem;
}

#contact.show {
    transform: translateY(0);
    opacity: 1;
}

#contact.dissolve {
    opacity: 0;
    transform: translateY(0);
}

#contact.hide {
    transition-duration: 0ms;
    opacity: 0;
    transform: translateY(100%);
}

.bio {
    font-family: "Zealandia", sans-serif;
    font-size: 2.4rem;
    text-align: center;
    color: #fff;
    width: min(100%, 64rem);
    align-self: center
}

@media screen and (max-width: 80rem) {
    .bio {
        font-size: 1.2rem;
    }
}

.send-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.send {
    color: #010101;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: .5rem 1rem;
    width: min(100%, 32rem);
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    cursor: pointer;
    font-size: 1.2rem;
}

.email {
    color: #9d9d9d;
}