@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300&display=swap');


.container{
    width: 100%;
    overflow-x: hidden;
    transform-style: preserve-3d;
}

.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    height: 3rem;
}

.menu{
    max-width: 72rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;

    /* border: 1px solid white; */
}

.logo{
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 4rem;
}
.logo a{
    text-decoration: none;
    color: white;
}
.logo a:hover{
    color: rgb(138, 12, 12);
}

.logo span{
    font-weight: 300;
}

.hamburger-menu{
    height: 4rem;
    width: 3rem;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: flex-end;

}

.bar{
    width: 1.9rem;
    height: 1.5px;

    border-radius: 2px;
    background-color: #eee;
    transition: .5s ;
    position: relative;
}

.bar::before, .bar::after{
    content: "";

    position: absolute;
    width: inherit;
    height: inherit;
    background: #eee;
    transition: .5s;
}

.bar::before{
    transform: translateY(-9px);
}

.bar::after{
    transform: translateY(9px);
}

.container.active .bar{
    transform: rotate(360deg);
    background-color: transparent;
}

.main{
    position: relative;

    width: 100%;
    left: 0;
    z-index: 5;
    overflow: hidden;
    transform-origin: left;
    transition: .5s;
}

header{
    min-height: 100vh;
    width: 100%;
    background: url("./bg.jpg") no-repeat top center / cover;
    position: relative;
}

.overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #0000006b;

    display: flex;
    justify-content: center;
    align-items: center;
}

.inner{
    max-width: 45rem;
    text-align: center;
    color: #fff;

    padding: 0 2rem;
}

.title{
    font-size: 4rem;
}

.btn{
    margin-top: 1rem;
    padding: .6rem 1.8rem;
    background-color: #29b546;
    border: none;outline: none;
    border-radius: 25px;

    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
}

.container.active .bar::before{
    transform: translateY(0) rotate(45deg);
}
.container.active .bar::after{
    transform: translateY(0) rotate(-45deg);
}

.container.active .main{
    cursor: pointer;
    transform: perspective(1300px) rotateY(20deg) translateZ(190px) scale(.5);
}

.links{
    position: absolute;
    width: 40%;
    right: 0;
    top: 0;
    height: 100vh;

    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

ul{
    list-style: none;
}

.links a{
    text-decoration: none;
    color: #eee;

    padding: .7rem 0;

    display: inline-block;
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;

    letter-spacing: 1px;
    transition: .3s;
    transform: translateY(10px);

    animation: hide .5s forwards ease;
}

.links a:hover{
    transform: scale(1.05);
    color: rgb(138, 12, 12);
}

.container.active .links a{
    animation: appear .5s forwards ease var(--i);
}

@keyframes appear{
    from{
        opacity: 0;
        transform: translateY(10px);
    }to{
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes hide{
    from{
        opacity: 1;
        transform: translateY(0px);
    }
    to{
        opacity: 0;
        transform: translateY(10px);
    }
}

.shadow{
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background: black;
    transform-style: preserve-3d;
    transform-origin: left;
    transition: .5s;
    z-index: -1;

    border: 2px solid black;
}

.shadow.one{
    z-index: -1;
    opacity: 0.15;
}

.shadow.two{
    z-index: -2;
    opacity: .1;
}

.container.active .shadow.one{
    transform: perspective(1300px)
                rotateY(20deg)
                translateZ(215px)
                scale(.5);
}

.container.active .shadow.two{
    transform: perspective(1300px)
                rotateY(20deg)
                translateZ(120px)
                scale(.5);
}

.container.active .main:hover + .shadow.one{
    transform: perspective(1300px)
                rotateY(20deg)
                translateZ(230px)
                scale(.5);
}
.container.active .main:hover + .shadow.two{
    transform: perspective(1300px)
                rotateY(20deg)
                translateZ(230px)
                scale(.5);
}

.container.active .main:hover{
    transform: perspective(1300px)
                rotateY(20deg)
                translateZ(340px)
                scale(.5)
    ;
}