/* ========================
    Base
======================== */
:root {
    --main-font: "Montserrat", sans-serif;
    --color-1: #FFF;
    --color-2: #0C1215;
    --color-3: #364349;
    --color-4: #132639;
    --color-5: #AAA;
    --color-6: #000;
    --color-7: rgba(0, 0, 0, 0);
    --gradient-background: linear-gradient(120deg, var(--color-2), var(--color-4));
    --black-transparent-gradient: linear-gradient(var(--color-7), var(--color-6));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    margin: 0;
    padding: 0;
}

body {
    scroll-behavior: smooth;
    font-family: var(--main-font);
    font-size: 100%;
    line-height: normal;
    background: var(--color-2);
    color: var(--color-1);
}

a {
    text-decoration: none;
    color: var(--color-1);
}

/* ========================
    Loader
======================== */

.loader {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: var(--color-2);
    z-index: 9999;
    transition: all 1s ease;
}

.loader video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    scale: 110%;
}

/* ========================
    Scrollbar
======================== */
html {
    scrollbar-width: none;
}

body {
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* ========================
    Animate on Scroll
======================== */
.anim-scroll {
    opacity: 0;
    transition: all 0.3s ease, opacity 1s ease;
}

.visible {
    opacity: 1;
}

/* ========================
    Navbar
======================== */
nav {
    position: fixed;
    display: flex;
    justify-content: center;
    width: 100%;
    top: 0;
    z-index: 100;
    background: transparent;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s ease, background 1s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1920px;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.nav-link {
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--color-3);
}

/* ========================
    Header
======================== */
header {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    transition: all 0.3s ease;
}

.intro {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-arrow {
    position: absolute;
    bottom: 1rem;
    animation: bounce 3s infinite ease-in-out;
    transition: all 1s ease;
}

.intro-arrow path {
    animation: bounce-color 3s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1rem);
    }
}

@keyframes bounce-color {

    0%,
    100% {
        fill: var(--color-1);
    }

    50% {
        fill: var(--color-3);
    }
}

/* ========================
    Main
======================== */
main {
    display: flex;
    justify-content: center;
    width: 100%;
    background: var(--gradient-background);
    white-space: nowrap;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 70%;
    max-width: 1500px;
    min-height: 100vh;
    padding: 10rem 0;
}

.main-container h1 {
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
}

.mod-list-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    background: var(--color-1);
}

.mod-list-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.mod-list-container:hover img {
    scale: 105%;
}

.mod-list-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: var(--black-transparent-gradient);
    z-index: 1;
}

.mod-list-action {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: end;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    z-index: 2;
}

.mod-list-title-desc {
    display: flex;
    flex-direction: column;
}

.mod-list-title {
    font-size: 2rem;
    font-weight: 900;
}

.view-mod {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 7.5rem;
    height: 2rem;
    cursor: pointer;
    overflow: hidden;
    font-weight: 700;
    background: var(--color-1);
    color: var(--color-2);
    border-radius: 1rem;
    box-shadow: 0 0.25rem var(--color-2);
    transition: all 0.3s ease;
}

.view-mod:focus {
    background: var(--color-3);
    color: var(--color-1);
    transform: translateY(0.2rem);
    box-shadow: 0 0.05rem var(--color-1);
}

.view-mod::before {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    background: var(--color-3);
    transition: all 0.3s ease;
}

.view-mod:focus::before {
    width: 100%;
}

.view-mod span {
    z-index: 1;
}

/* ========================
    Footer
======================== */
footer {
    display: flex;
    justify-content: center;
    width: 100%;
    background: var(--color-2);
    font-size: 0.75rem;
    font-weight: 700;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1920px;
    padding: 0.5rem 2rem;
}

.footer-social-container {
    display: flex;
    gap: 0.5rem;
}

.footer-social-container a {
    width: 1.5rem;
    height: 1.5rem;
}

.footer-social-container path {
    transition: all 0.3s ease;
}

.footer-social-container svg:hover path {
    stroke: var(--color-3);
}

/* ========================
    Responsive - Bigger than 1440px
======================== */
@media only screen and (min-width: 1440px) {
    .mod-list-container {
        height: 25rem;
    }
}

/* ========================
    Responsive - Tablet
======================== */
@media only screen and (max-width: 1024px) {
    .main-container {
        width: 80%;
        padding: 3rem 0;
    }

    .mod-list-container {
        height: 15rem;
    }
}

/* ========================
    Responsive - Mobile
======================== */
@media only screen and (max-width: 600px) {
    nav {
        font-size: 0.75rem;
    }

    .nav-container,
    .footer-container {
        padding: 0.5rem 1.5rem;
    }

    nav svg {
        height: 2rem;
    }

    .intro-arrow {
        width: 30px;
        bottom: 3rem;
    }

    .main-container {
        width: 100%;
        padding: 2rem 0 1rem;
    }

    .main-container h1 {
        margin-bottom: 0;
        font-size: 1rem;
    }

    .mod-list-container {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .mod-list-title-desc {
        font-size: 0.5rem;
    }

    .mod-list-title {
        font-size: 1rem;
        font-weight: 900;
    }

    .view-mod {
        width: 5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }

    footer {
        font-size: 0.5rem;
    }

    .footer-social-container a,
    .footer-social-container a svg {
        width: 1rem;
        height: 1rem;
    }
}