/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,600;0,700;1,400;1,600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=MuseoModerno:wght@300;400&display=swap');

/* CSS Files */
@import "utils.css";
@import "animations.css";

:root
{
    --main-hue: 237;
    --main-saturation: 82%;
    --nav-bg: var(--main-hue), var(--main-saturation), 15%;
    --content-bg: #222;
    --accent-color: 2, 61, 255;
    --main-font: 'Source Sans Pro', sans-serif;
    --logo-font: 'MuseoModerno', cursive;
    --text-color: white;
    --section-title-color: hsl(199, 98%, 48%);
    --nav-height: 80px;
}

*, *::after, *::before
{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body
{
    background: var(--content-bg);
    font-family: var(--main-font);
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
    width: 100%;
}

::-webkit-scrollbar
{
    width: 10px;
}

::-webkit-scrollbar-track
{
    background: hsla(237, 82%, 15%, 1);
}

::-webkit-scrollbar-thumb
{
    background: hsla(237, 82%, 25%, 1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover
{
    background: hsla(237, 83%, 29%, 1);
}

.navbar
{
    position: absolute;
    width: 100%;
    height: var(--nav-height);
    z-index: 9999;
    transition: 0.2s;
    top: 0;
}

.navbar.top-enter
{
    background: hsla(var(--nav-bg), 0.8);
}

.navbar .logo
{
    position: absolute;
    color: var(--text-color);
    font-size: 35px;
    left: 30px;
    font-family: var(--logo-font);
    text-decoration: none;
}

.navbar .nav-links
{
    position: absolute;
    right: 1vw;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 20%;
}

.navbar .nav-links li
{
    padding: 5px 10px;
}

.navbar .nav-links li a
{
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: 200ms;
    filter: drop-shadow(2px 2px #333);
    font-size: 16px;
    padding: 5px 0;
    outline: none;
}

.navbar .nav-links li a::before
{
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    left: 0;
    bottom: 0;
    background: white;
    transform: scaleX(0);
    transition: 200ms;
}

.navbar .nav-links li a:hover::before,
.navbar .nav-links li a:focus::before
{
    transform: scaleX(1);
}

.navbar .menu-icon
{
    position: absolute;
    width: 30px;
    right: 30px;
    cursor: pointer;
    display: none;
}

.navbar .menu-icon .line
{
    background: var(--section-title-color);
    width: 30px;
    height: 3px;
}

.navbar .menu-icon .line:not(:last-child)
{
    margin-bottom: 5px;
}

.section
{
    height: 100vh;
    width: 100%;
}

.section-title
{
    font-size: 40px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 20px var(--section-title-color);
    color: var(--section-title-color);
    text-transform: uppercase;
    letter-spacing: 0;
}

@media screen and (max-width: 800px)
{
    .navbar .menu-icon
    {
        display: block;
    }

    .navbar .nav-links
    {
        position: absolute;
        display: flex;
        flex-direction: column;
        transform: translateY(0);
        height: 30vh;
        width: 100vw;
        top: var(--nav-height);
        right: 0;
        background: hsl(var(--nav-bg));
        padding: 20px;
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.2s;
    }

    .navbar .nav-links.shown
    {
        clip-path: inset(0);
    }

    .nav-links li
    {
        text-align: center;
    }

    .nav-links li a
    {
        filter: none !important;
    }

    .navbar .nav-links li a:active::before
    {
        transform: scaleX(1) !important;
    }
}
