* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

html{
    overflow-x: hidden;
}

:root {
    --bg-color: #081b29;
    --second-bg-color: black;
    --text-color: white;
    --main-color: aqua;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 10% 4rem;
    background: transparent;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 40px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: .3s ease-in-out;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    animation: showRight 1s ease forwards;
}

.logo:hover {
    transform: scale(1.05);
}

.navbar a {
    font-size: 27px;
    text-align: right;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px;
    transition: .3s;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    animation: showRight 1.5s ease forwards;
    
}

.navbar a:hover, 
.navbar a.active {
    color: var(--main-color);
}

.home {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 15rem 12%;
}

.home-content {
    max-width: 700px;
}

.home-content h1 {
    position: relative;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
}

.home-content h1::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    animation: showRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content h3 {
    position: relative;
    font-weight: 700;
    color: var(--main-color);
}

.home-content h3::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    animation: showRight 1s ease forwards;
    animation-delay: 1.4s;
}

.home-content p {
    position: relative;
    margin: 20px 0 40px;
    line-height: 1.3;
}

.home-content p::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 101%;
    height: 101%;
    background: var(--bg-color);
    animation: showRight 1s ease forwards;
    animation-delay: 1.8s;
}

.home-content .btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 345px;
    height: 50px;
}

.home-content .btn-box::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -4%;
    width: 108%;
    height: 140%;
    background: var(--bg-color);
    animation: showRight 1s ease forwards;
    animation-delay: 1.9s;
    z-index: 2;
}

.btn-box a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    background: var(--main-color);
    border: 1px solid var(--main-color);
    border-radius: 8px;
    font-size: 19px;
    color: var(--second-bg-color);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.btn-box a:hover::before  {
    width: 100%;
}

.btn-box a:hover {
    /* Text */
    color: var(--main-color);
}

.btn-box a:nth-child(2) {
    background: transparent;
    /* Text */
    color: var(--main-color);
}

.btn-box a:nth-child(2):hover {
    /* Text */
    color: var(--second-bg-color);
}

.btn-box a:nth-child(2)::before {
    background: var(--main-color);
}

/*KEYFRAMES ANIMATION */
@keyframes showRight {
    100% {
        width: 0;
    }
}

/*MENU ICON*/
#menu-icon{
    font-size: 4rem;
    color: var(--text-color);
    display: none;
}
#menu-icon:hover{
    color: var(--main-color);
}

@media(max-width:1024px){
    #menu-icon{
        display: block;
    }

    .navbar{
        position: absolute;
        top: 100%;
        right: 0%;
        width: 40%;
        padding: 1rem 3rem;
        background-color: rgba(0, 0, 0, 0.8);
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        border-bottom-left-radius: 2rem;
        display: none;
    }
    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem;
        color: var(--text-color);
    }
    .navbar.active{
        display: block;
    }
    .navbar.active::before{
        animation-duration: 0s;
    }
    .home{
        flex-direction: column-reverse;
        margin: 5rem 0;
        gap: 5rem;
    }
    .home-content{
        align-items: center;
        text-align: center;
    }
}

/*SCROLLBAR */

::-webkit-scrollbar{
    width: 15px;
}

::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
::-webkit-scrollbar-track{
    background-color: var(--bg-color);
    width: 50px;
}

/*PAGE NOT FOUND*/
.notfound {
    margin-top: 25%;
    text-align: center;
}

.notfound-content h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
}

.notfound-content h3 {
    font-weight: 700;
    color: var(--main-color);
}

.notfound-content p {
    margin: 20px 0 40px;
}