@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary: #2575dd;
    --secondary: #dedede;
    --black: black;
    --white: rgb(248, 248, 248);
    --text-dark: rgb(37, 37, 37);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--white);
    transition: background-color 0.3s ease;
}
body.dark {
    --white: #161616;
    --black: white;
    --secondary: #303030;
    --text-dark: rgb(248, 248, 248);
    transition: background-color 0.3s ease;

    #logo {
        filter: invert(1);
    }

    .mini-navbar {
        border-left: rgba(218, 218, 218, 0.192) solid 1px;
    }
}


h2 {
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--black);
}

span.hl {
    color: var(--primary);
}


.mainbanner {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: black;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding-bottom: 6rem;
}

.mini-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 2.4rem;
    padding: 0.5rem 0.7rem;
    color: black;
    font-size: 0.8rem;

    .menu-list {
        display: flex;
        gap: 0.5rem;

        > span {
            padding-right: 0.5rem;
            cursor: pointer;
            border-right: 1px solid #00000026;
        }

        > span:last-child {
            border-right: 0;
        }

        .main-btn {
            background-color: var(--black);
            padding: 0.5rem 1rem;
            border-radius: 1rem;
            color: var(--white);
        }

        .on-scroll {
            opacity: 0;
        }
    }
}
#logo {
    padding: 0.5rem;
    height: calc(100% - 0.5rem);
}

.mini-header > div {
    display: flex;
    align-items: center;
    width: 30%;
    height: 100%;
}
.mini-header > div:last-child {
    justify-content: flex-end;
}

.action-stream-placeholder {
    width: 40%;
}

.action-stream {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    position: fixed;
    left: 50%;
    top: 0.2rem;
    transform: translateX(-50%);
    
}
.action-stream-btn {
    position: relative;
    z-index: 100;
    background-color: var(--secondary);
    color: var(--black);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 1.5rem 1.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    user-select: none;       /* Standard */
    -webkit-user-select: none; /* Chrome/Safari/Opera */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
}
.action-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    opacity: 0;
    transform: translateX(0) scale(0.8);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1;

    div {
        color: var(--black);
        background-color: var(--secondary);
        width: 2rem;
        height: 2rem;
        border-radius: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.8rem;
        cursor: pointer;
    }
}
.action-menu.left {
    transform: translateX(100%) scale(0.8);
    transition: all 0.5s;
}
.action-menu.right {
    transform: translateX(-100%) scale(0.8);
    transition: all 0.3s;
}
.action-stream.active .action-menu.left {
    opacity: 1;
    pointer-events: auto;
    animation: appInLeft 0.3s ease;
    transform: scale(1);
    transition: all 0s;
}
.action-stream.active .action-menu.right {
    opacity: 1;
    pointer-events: auto;
    animation: appInRight 0.5s ease;
    right: 0;
    transform: scale(1);
    transition: all 0s;
}
@keyframes appInRight {
    0% {
        transform: translateX(-100%) scale(0.8);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes appInLeft {
    0% {
        transform: translateX(100%) scale(0.8);
    }
    100% {
        transform: scale(1);
    }
}

.theme {
    .bi-sun-fill {
        display: none;
    }
}
body.dark .theme {
    .bi-sun {
        display: none;
    }
    .bi-sun-fill {
        display: block;
    }
}

.title-banner {
    width: calc(100% - 4rem);
    padding: 8rem 2rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    h1 {
        font-size: 3.5rem;
        font-weight: 700;
        color: var(--black);
    }
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background-color: var(--secondary);
    color: var(--black);

    a {
        color: var(--black);
        text-decoration: none;
    }
}
.nav-item i {
    transition: all 0.3s ease;
    position: relative;
    left: 0;
}
.nav-item span {
    transition: all 0.3s ease;
}
.nav-item:hover {
    position: relative;
}
.nav-item:hover i {
    position: relative;
    animation: center 0.5s ease;
    left: calc(50% - 0.5rem);
}
.nav-item i::before {
    transform: scale(1);
    transition: all 0.2s ease;
}
.nav-item:hover i::before {
    transform: scale(1.5);
    transition: all 0.4s ease;
}
.nav-item:hover span {
    opacity: 0;
    transition: all 0.1s ease;
}


.mini-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-left: rgba(0, 0, 0, 0.192) solid 1px;
    padding: 0.25rem 0.25rem 0.25rem 1.5rem;
}

.experience-banner {

    .experience {
        width: calc(100% - 8rem);
        padding: 2rem;
        margin: 2rem;
        display: flex;
        background-color: rgb(219, 219, 219);

        div {
            width: 60%;

            img {
                width: 100%;
            }
        }
    }
}


@media screen and (max-width: 1000px) {
    .desktop {
        display: none;
    }

    .title-banner {
        padding-top: 3rem;
        h1 {
            font-size: 2.5rem;
        }
        .nav-item {
            display: flex;
            flex-direction: column;
        }
        .mini-navbar {
            display: none;
        }
    }

    .nav-item:hover {
        height: 100%;
    }
    .nav-item:hover i {
        position: relative;
        left: 0;
        top: 0;
        transform: translateY(calc(50%));
    }
    .nav-item:hover i::before {
        transition: all 0.3s ease;
    }
    .nav-item:hover i {
        transition: all 0.3s ease;
    }
}