/* ======================================================
** Variables
====================================================== */
:root {
    --color-bg: #161a17;
    --color-content: #f0f0f0;
    --txt-spacing-top: 2.5rem;
    --txt-spacing-bttm: 1rem;

    font-size: 15px;
    line-height: 1;
}

@media (min-width: 768px) {
    :root {
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    :root {
        font-size: 18px;
    }
}



/* ======================================================
** Base Theme Styles
====================================================== */
body {
    background-color: var(--color-bg);
    color: var(--color-content);
    font-family: "Montserrat", sans-serif;
    background-image: url(https://images-assets.nasa.gov/image/PIA08653/PIA08653~orig.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    min-height: calc(100dvh - 94px);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #000;
    opacity: 0.35;
}



/*
** Text Content
*/
@font-face {
    font-family: 'Witch of Thebes';
    src: url('/assets/fonts/Witch_of_Thebes.woff2') format('woff2'),
         url('/assets/fonts/Witch_of_Thebes.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.js-variable-font--eldritch {
    font-family: 'Witch of Thebes', fantasy;
}

.js-variable-font--human {
    font-family: "Montserrat", sans-serif;
}

.txt-left {
    text-align: left;
}

.txt-center {
    text-align: center;
}

.txt-right {
    text-align: right;
}

.txt-grp {
    word-break: break-word;
    text-wrap: pretty;
}

.txt-grp *:last-child {
    margin-bottom: 0;
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6,
p, .p {
    padding: 0;
    margin: 0;
    margin-bottom: var(--txt-spacing-bttm);
}

h1, .h1 {
    font-size: 2.5em;
}

h2, .h2 {
    font-size: 2.25em;
}

h3, .h3 {
    font-size: 2em;
}

h4, .h4 {
    font-size: 1.75em;
}

h5, .h5 {
    font-size: 1.5em;
}

h6, .h6 {
    font-size: 1.25em;
}

:is(p, .p) + :is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6) {
    margin-top: var(--txt-spacing-top);
}

p, .p {
    font-size: 1em;
    line-height: 1.6;
}

@media (min-width: 768px) {
    h1, .h1,
    h2, .h2,
    h3, .h3,
    h4, .h4,
    h5, .h5,
    h6, .h6,
    p, .p {
        margin-bottom: var(--txt-spacing-bttm);
    }

    h1, .h1 {
        font-size: 3em;
    }
    
    h2, .h2 {
        font-size: 2.65em;
    }
    
    h3, .h3 {
        font-size: 2.3em;
    }
    
    h4, .h4 {
        font-size: 1.95em;
    }
    
    h5, .h5 {
        font-size: 1.6em;
    }
    
    h6, .h6 {
        font-size: 1.25em;
    }
    
    :is(p, .p) + :is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6) {
        margin-top: var(--txt-spacing-top);
    }
    
    p, .p {
        font-size: 1em;
    }
}

@media (min-width: 992px) {
    h1, .h1,
    h2, .h2,
    h3, .h3,
    h4, .h4,
    h5, .h5,
    h6, .h6,
    p, .p {
        margin-bottom: var(--txt-spacing-bttm);
    }

    h1, .h1 {
        font-size: 6em;
    }
    
    h2, .h2 {
        font-size: 4.25em;
    }
    
    h3, .h3 {
        font-size: 3.5em;
    }
    
    h4, .h4 {
        font-size: 3em;
    }
    
    h5, .h5 {
        font-size: 2.25em;
    }
    
    h6, .h6 {
        font-size: 1.5em;
    }
    
    :is(p, .p) + :is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6) {
        margin-top: var(--txt-spacing-top);
    }
    
    p, .p {
        font-size: 1em;
    }
}



/*
** Glass Theme
*/
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.1), inset 0 0 6px 3px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.2), transparent );
}

.glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient( 180deg, rgba(255, 255, 255, 0.2), transparent, rgba(255, 255, 255, 0.1) );
}



/* ======================================================
** Structural Elements
====================================================== */

/*
** Main Nav
*/
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    margin-top: 15px;
    z-index: 100;
}

.container {
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .main-nav > .container {
        width: unset;
    }

    .main-nav .row {
        width: unset;
    }
}

.main-nav__wrapper {
    padding: 20px 35px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav__link {
    color: var(--color-content);
    text-decoration: none;
}

.main-nav__ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 50px;
    visibility: hidden;
    opacity: 0;
    height: 0;
    position: absolute;
    transition: all 400ms ease;
}

.main-nav__font-toggle-track {
    width: 40px;
    height: 20px;
    border-radius: 1000px;
    position: relative;
    cursor: pointer;
    padding: 2px;
}

.main-nav__font-toggle-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 100ms ease;
}

.js-main-nav__font-toggle-track--eldritch .main-nav__font-toggle-color {
    background-color: rgb(151, 88, 223);
    opacity: 0.4;
}

.js-main-nav__font-toggle-track--human .main-nav__font-toggle-color {
    background-color: rgb(26, 249, 176);
    opacity: 0.2;
}

.main-nav__font-toggle-btn {
    position: absolute;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 1000px;
    transition: all 100ms ease;
}

.js-main-nav__font-toggle-track--eldritch .main-nav__font-toggle-btn {
    left: 1px;
}

.js-main-nav__font-toggle-track--human .main-nav__font-toggle-btn {
    left: calc(100% - 23px);
}

.main-nav__font-toggle-btn-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0.2;
}

.main-nav__mobile-nav-toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    row-gap: 8px;
    cursor: pointer;
}

.main-nav__mobile-nav-toggle-bar {
    width: 55px;
    height: 5px;
    border-radius: 600px;
    transition: all 400ms ease;
}

.active .main-nav__mobile-nav-toggle-bar:first-child {
    transform-origin: center;
    transform: translate(0px, 15px) rotateZ(45deg);
}

.active .main-nav__mobile-nav-toggle-bar:last-child {
    transform-origin: center;transform: translate(0px, -15px) rotateZ(-45deg);
}

.active .main-nav__mobile-nav-toggle-bar:nth-child(2) {
    opacity: 0;
    visibility: hidden;
    transform-origin: center;
    transform: rotateZ(90deg);
}

.main-nav__mobile-nav-wrapper {
    position: relative;
    visibility: hidden;
    opacity: 0;
    height: 0;
    transition: all 400ms ease;
    margin-top: 10px;
    border-radius: 20px;
    padding: 35px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav__mobile-nav-wrapper .main-nav__ul {
    position: relative;
    height: auto;
    flex-direction: column;
    row-gap: 35px;
}

.main-nav__wrapper:has(.main-nav__mobile-nav-toggle.active) + .main-nav__mobile-nav-wrapper {
    visibility: visible;
    opacity: 1;
    height: calc(100dvh - 121px);
}

.main-nav__wrapper:has(.main-nav__mobile-nav-toggle.active) + .main-nav__mobile-nav-wrapper .main-nav__ul {
    visibility: visible;
    opacity: 1;
}

@media (min-width: 992px) {
    .main-nav__wrapper {
        column-gap: 50px;
    }

    .main-nav__mobile-nav-toggle,
    .main-nav__mobile-nav-wrapper {
        display: none;
    }

    .main-nav__ul {
        position: relative;
        visibility: visible;
        opacity: 1;
        height: auto;
    }
}

.mobile-nav-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #000;
    opacity: 0;
    z-index: 9;
    transition: opacity 400ms ease;
}

body:has(.main-nav__mobile-nav-toggle.active) .mobile-nav-overlay {
    display: block;
    opacity: 0.75;
}



/*
** Main Content
*/
.main-content {
    margin-top: calc(76px + 35px);
}



/* ======================================================
** Blocks
====================================================== */

/*
** Welcome Section
*/
.welcome-sect__wrapper {
    padding: 30px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    border-radius: 20px;
}

@media (min-width: 768px) {
    .welcome-sect__wrapper {
        padding: 35px 45px;
    }
}

@media (min-width: 992px) {
    .welcome-sect__wrapper {
        padding: 55px 75px;
    }
}