@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body{
    background: #0B0C10;
    width: 100%;
}
/* ==================Nav-bar===================== */
.nav-bar{
    display: flex;
    height: 7vh;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    color: #C5C6C7;
    background-color: rgba(0,0,0,0.4);
    animation: nav 2s ease-in;
    animation-fill-mode: forwards;
}

@keyframes nav {
    0% {
        opacity: 0;
        box-shadow: none;
    } 90%{
        box-shadow: 0 0 10px #C5C6C7;
    }
     100% {
        opacity: 1;
        box-shadow: 0 1px 10px #C5C6C7;
    }
}

.nav-logo{
    display: flex;
    align-items: center;
}

.nav-logo p{
    padding: 0.2rem;
    display: flex;
    font-size: 2.6vh;
    transition: 0.5s;
}

.nav-logo p:hover {
    color: white;
    cursor:default;
    text-shadow: 0 1px 10px #66fcf1, 0 1px 20px #66fcf1, 0 1px 30px #66fcf1;
}

.logo{
    padding-left: 0.2rem; padding-right: 0.2rem;
    border-radius: 3rem;
    width: 4vh;
    height: 4vh;
    transition: 1s;
}

.logo:hover {
    background-color: white;
    box-shadow: 0px 0px 40px white, 0px 0px 80px white, 0px 0px 110px white;
}

nav ul{
    display: flex;
    list-style: none;
    text-decoration: none;
}

.menu a{
    position: relative;
    text-decoration: none;
    color: #c5c6c7;
    margin: 0.5em;
    letter-spacing: 0.1em;
    font-size: 2.5vh;
    padding: 0.5vh;
}

.menu a::after{
    content: "";
    position: absolute;
    background-color: #66fcf1;
    height: 3px;
    width: 0;
    left: 0;
    bottom: -1px;
    transition: 0.5s;
}

.menu a:hover::after{
    width: 100%;
}
.menu a:hover{
    color: white;
    text-shadow: 0 0 20px;
}

@media screen and (max-width: 480px){
    .nav-bar {
        width: 100%;
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .nav-logo {
        font-size: 1.5rem;
        size: 5rem;
        letter-spacing: 2px;
        margin: 0;
    }
}
/* ========================================== */

.container {
    height: 88vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.box {
    height: 45vh;
    width: 45vh;
    background: #75798527;
    box-shadow: 0 0 0 2px whitesmoke;
    border-radius: 0.5rem;
    margin: 2.5vh;
    transition: 0.5s;
}

.box:hover {
    transform: translateY(-5px);
    background: #1F2833;
    box-shadow: 0 0 30px #66FCF1, 0 0 60px #66FCF1, 0 0 80px #66FCF1;
}

.box h1 {
    text-transform: uppercase;
    font-size: 30px;
    display: flex;
    justify-content: center;
    margin-top: 20vh;
    transition: 1s;
}

.box:hover h1 {
    transform: translateY(-2vh);
}

.box p {
    text-transform: capitalize;
    font-size: 24px;
    opacity: 0;
    transition: 1s;
    display: flex;
    justify-content: center;
    transform: translateY(4vh);
}

.box:hover p {
    opacity: 1;
    transform: translateY(0);
}


/* ===================footer=================== */
footer{
    background-color: rgba(0,0,0,0);
    height: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #C5C6C7;
    font-size: 2.6vh;
    animation: footer 2.25s ease-out;
    animation-fill-mode: forwards;
}

@keyframes footer {
    0%{
        opacity: 0;
    } 100% {
        opacity: 1;
    }
}
/* ============================================= */
/* ==================Scroolbar================== */


::-webkit-scrollbar{
    width: 0.75em;
}

::-webkit-scrollbar-track{
    border-radius: 100vw;
    background: #1f2833;
}

::-webkit-scrollbar-thumb{
    background: rgba(128, 128, 128, 0.753);
    border-radius: 100vw;
}

::-webkit-scrollbar-thumb:hover{
    background: #c5c6c7c4;   
}


/* --------------------media-queries----------------------- */


@media(max-width: 1024px) {
    html{
        font-size: 30%;
        max-width: 100vw;
    }

    .nav-bar {
        display: block;
        height: 24vh;
        text-align: right; 
    }

    .nav-logo {
        transform: translateX(3vh) translateY(9vh);
        font-weight: bold;
        max-width: 97vw;
    }

    .nav-logo p {
        font-weight: bold;
        font-size: 2vh;
    }

    nav ul li{
        line-height: 4vh;
        transform: translateY(-3.5vh);
    }

    nav ul{
        display: block;
        list-style: none;
        text-decoration: none;
    }

    .container {
        height: 100vh;
        margin: 5vh 0 2vh 0;
        display: block;
        width: 100%;
    }

    .box {
        width: 100%;
        display: inline-block;
        margin: 2vh 0 2vh 0;
    }
}
