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

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

.banner
{
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 0 100px;
    display: flex;
    align-items: center;
    background: linear-gradient(#404040, #151415);
}

.banner:before
{
    content: ' ';
    position: absolute;
    top: 0;
    left: 300px;
    width: 400px;
    height: 320px;
    background: #1c2a58;
    z-index: 1;
    transition: 1s;
}

.banner.active:before
{
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #151415;
}

.banner:after
{
    content: ' ';
    position: absolute;
    bottom: 0;
    right: 100px;
    width: 400px;
    height: 200px;
    background: #fdc80d;
    z-index: 1;
    transition: 1s;
}

.banner.active:after
{
    bottom: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #151415;
}

header
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 100px;
}

header .logo
{
    font-size: 2em;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: 0.5s;
    transform-origin: right;
}

.banner.active .logo
{
    transform: scale(0);
    transform-origin: left;
}

.toggle
{
    position: relative;
    width: 30px;
    height: 30px;
    background: url(menu.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px;
    cursor: pointer;
}

.toggle.active
{
    background: url(close.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 25px;
}

.content
{
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.5s;
    transform-origin: right;
}

.banner.active .content
{
    transform: scale(0);
    transform-origin: left;
}

.content .contentBx
{
    max-width: 600px;
}

.content .contentBx h2
{
    font-size: 4em;
    line-height: 1em;
    color: #fff;
    text-transform: uppercase;
}

.content .contentBx p
{
    font-size: 1em;
    color: #fff;
    margin: 20px 0;
}

.content .contentBx a
{
    display: inline-block;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 30px;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.5s;
}

.content .contentBx a:hover
{
    letter-spacing: 2px;
    background: #fff;
    color: #111;
}

.content .imgBx img
{
    max-width: 100%;
    min-width: 400px;
}

.sci
{
    position: absolute;
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: 0.5s;
    transform-origin: right;
}

.banner.active .sci
{
    transform: scale(0);
    transform-origin: left;
}

.sci li
{
    list-style: none;
}

.sci li a
{
    display: inline-block;
    margin-right: 20px;
    filter: invert(1);
    transform: scale(0.6);
}

.menu
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2; 
    /* so the text would be on top */
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;
    transition-delay: 0s;
}

.banner.active .menu
{
    visibility: visible;
    opacity: 1;
    transition-delay: 1s;
}
.menu li
{
    list-style: none;
}

.menu li a
{
    color: #fff;
    text-decoration: none;
    font-size: 2em;
    transition: 0.5s;
}

/* .menu:hover li a
{
    color: #0002;
} */

.menu li:hover a
{
    color: #000;
    background: #fff;
}

.menu li a:before
{
    content: '';
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5em;
    color: rgba(255,255,255,0.5);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 500px;
    transition: letter-spacing 0.5s;
}
.menu li a:hover:before
{
    content: attr(data-text);
    opacity: 1;
    left: 50%;
    letter-spacing: 10px;
    width: 1800px;
    height: 1800px;
}
/* .menu li:nth-child(6n+1) a:before
{
    background: #81ecec;
}
.menu li:nth-child(6n+2) a:before
{
    background: #ff7675;
}
.menu li:nth-child(6n+3) a:before
{
    background: #55efc4;
}
.menu li:nth-child(6n+4) a:before
{
    background: #a29bfe;
}
.menu li:nth-child(6n+5) a:before
{
    background: #fd79a8;
}
.menu li:nth-child(6n+6) a:before
{
    background: #ffeaa7;
} */

@media (max-width: 991px)
{
    header
    {
        padding: 20px 40px;
    }
    .banner
    {
        padding: 40px;
        overflow: hidden;
    }
    .banner:before
    {
        top: 100px;
        left: 0;
        width: 170px;
        height: 310px;
    }
    .banner:after
    {
        bottom: 100px;
        right: 0;
        width: 80px;
        height: 60px;
    }
    .content
    {
        flex-direction: column-reverse;
        margin: 50px 0;
    }
    .content .contentBx
    {
        max-width: 100%;
    }
    .content .imgBx img 
    {
        max-width: 100%;
        min-width: 300px;
    }
    .content .contentBx h2
{
    font-size: 2.5em;
}
}