/* -------------------- Root / Global Variables -------------------- */
:root {
    --black: #000000FF;
    --dark: #111111FF;
    --mid: #333333FF;

    --accent-home: #00FFAAFF;
    --accent-contact: #FFAA00FF;
    --accent-services: #00AAFFFF;
    --accent-about: #FF00AAFF;
    --accent-store: #AA00FFFF;

    --text-spacing: 2px;
    --hover-transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}

/* -------------------- Universal -------------------- */
html, body {
    padding: 0;
    margin: 0;
    height: 100%;
}

html {
    color: var(--black);
}

body {
    position: relative;

    background-image:
        url("/assets/background_dark.png"),
        linear-gradient(180deg, var(--dark), var(--page-accent));

    background-attachment: fixed;

    background-size: cover;
    background-position: center;

    font-family: Video;
    font-weight: lighter;
    font-variant: small-caps;
    font-size: 20px;

    display: flex;
    flex-direction: column;

    width: 100%;
    min-height: 100vh;
}

nav button {
    all: unset;
    display: flex;
}

.overlay-black {
    position: fixed; /* FIX */
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    z-index: 9999;

    background-color: black;

    animation: fadeIn 1s ease forwards;

    pointer-events: none;
}

.overlay-black.done {
    display: none;
}

@keyframes fadeIn {
    from{
        opacity: 1;
    }
    to{
        opacity: 0;
    }
}

h1 {
    display: flex;

    font-size: 50px;
    font-weight: normal;

    letter-spacing: 10px;

    width: 100%;

    margin: 0;
    height: fit-content;

    justify-content: center;
}

hr {
    width: 100%;
    height: 0;

    border: 1 solid #FFFFFF;
    margin: 20px 0;
}

/* -------------------- Page Accent -------------------- */
.home-page { --page-accent: var(--accent-home); }
.contact-page { --page-accent: var(--accent-contact); }
.services-page { --page-accent: var(--accent-services); }
.about-me-page { --page-accent: var(--accent-about); }
.store-page { --page-accent: var(--accent-store); }

/* -------------------- Main -------------------- */
main {
    color: #FFFFFF;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    background-color: var(--dark);

    width: 70%;
    height:max-content;
    padding: 25px;
    
    gap: 25px;

    align-self: center;
    justify-items: center;

    border-left: 0.25em solid var(--page-accent);
    border-right: 0.25em solid var(--page-accent);
}

/* -------------------- Header -------------------- */
header {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* -------------------- Navigation -------------------- */
nav {
    background-color: var(--black);

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 50px;
    padding: 8px 50px;
}

.nav-left,
.nav-center,
.nav-right {
    display: flex;
    gap: 15px;
}

.nav-center a {
    height: 56px;
}

/* -------------------- Nav Buttons -------------------- */
.nav-button {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 8px;
    padding: 6px 10px;

    border: 1px solid var(--page-accent);
    border-radius: 8px;

    color: var(--page-accent);

    background-image: linear-gradient(0deg, var(--dark), hsl(from var(--page-accent) h s l / 0.3));

    letter-spacing: var(--text-spacing);
    text-decoration: none;

    box-shadow:
        inset 1.5px 1.5px 0 rgba(255,255,255,0.75),
        4px 4px 0 rgba(0,0,0,0.75);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nav-button:hover {
    box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.75),
    0 0 10px color-mix(in srgb, var(--page-accent) 70%, white),
    0 0 20px color-mix(in srgb, var(--page-accent) 40%, black);
}

.nav-center a {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-button:hover, .nav-center a:hover {
    transform: scale(1.15);
    cursor: pointer;
}

.nav-button:active {
    transform: translateY(2px) scale(1.1);

    box-shadow:
        inset 0 4px 6px rgba(0,0,0,0.4);
}

/* -------------------- Notification Banner -------------------- */
.notification-banner h2 {
    display: block;

    font-size: 20px;
    font-weight: lighter;

    letter-spacing: var(--text-spacing);
    text-align: center;

    color: var(--black);
    background-color: #FFAA00FF;

    width: 100%;
    padding: 2px 0;
    margin: 0;
}

/* -------------------- Footer Bar -------------------- */
footer {
    display: flex;

    justify-content: space-evenly;
    align-items: center;

    background-color: var(--black);

    width: 100%;
    padding: 50px 0 25px;

    font-size: 28px;
}

/* -------------------- Footer Buttons -------------------- */
.footer-button {
    position: relative;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    width: 150px;
    gap: 5px;
    padding: 6px;

    border-radius: 8px;

    letter-spacing: var(--text-spacing);
    text-decoration: none;

    transition: var(--hover-transition);
}

.footer-button:hover {
    transform: scale(1.15);
    cursor: pointer;
}

.footer-button img {
    position: absolute;

    top: -40px;
    left: 50%;
    transform: translateX(-50%);

    width: 85px;
    height: 85px;

    z-index: 0;
    pointer-events: none;
}

.footer-button span {
    position: relative;
    z-index: 1;

    transform: translateY(5px);

    background-image:
        linear-gradient(0deg,#00000000,#000000CC,#00000000);
}

/* -------------------- Social Base -------------------- */
.footer-button {
    border: 2px solid;

    color: var(--social-color);

    text-shadow: 1.5px 1.5px 0 var(--shadow);

    background-image:
        linear-gradient(0deg, var(--grad), #00000000);

    border-image: var(--border) 1;
}

/* -------------------- Social Platforms -------------------- */

.youtube {
    --social-color: #FF0000FF;
    --grad: #FF000066;
    --shadow: #FFCCCCFF;

    --border: linear-gradient(0deg,#FF0000FF,#FF9999FF);
}

.twitch {
    --social-color: #6441A5FF;
    --grad: #6441A566;
    --shadow: #CB7CEBFF;

    --border: linear-gradient(45deg,#6441A5FF,#9B59B6FF);
}

.discord {
    --social-color: #5865F2FF;
    --grad: #5865F266;
    --shadow: #AABBFCCC;

    --border: linear-gradient(45deg,#5865F2FF,#7289DAFF);
}

.tiktok {
    --social-color: #222222FF;
    --grad: #00999966;

    text-shadow:
        -1px -1px 0 #25F4EEFF,
        1px  1px 0 #FE2C55FF;

    --border: linear-gradient(30deg,#25F4EEFF,#FE2C55FF);
}

.instagram {
    --social-color: #FF2FB3FF;
    --grad: #F5852966;
    --shadow: #F0C3DFFF;

    --border: linear-gradient(30deg,#DD2A7BFF,#8134AFFF,#F58529FF);
}

/* -------------------- Page Specific -------------------- */

/* Home Page */


/* Contact Page */


/* Services Page */


/* -- Portfolio Card -- */
.portfolio-card {
    display: flex;
    justify-items: center;
    gap: 25px;

    width: 700px;
    height: fit-content;

    padding: 2px;

    text-decoration: none;
    color: inherit;

    border: 1px solid var(--page-accent);
    border-radius: 12px;

    background-image: linear-gradient(
        90deg,
        color-mix(in srgb, var(--page-accent) 10%, var(--mid)),
        var(--dark)
    );

    box-shadow:
        inset 1.5px 1.5px 0 rgba(255,255,255,0.6),
        5px 5px 10px rgba(0,0,0,0.75);

    transition:
        transform 0.25s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.25s ease;
}

.portfolio-card img {
    flex-shrink: 0;

    width: 320px;
    height: 200px;
    object-fit: cover;

    border: 5px solid #000000;
    border-radius: 10px;

    box-shadow: 5px 5px 10px #00000099;

    display: block;

    margin: 10px;
}

.portfolio-card figure {
    display: flex;
    flex-direction: row;

    height: fit-content;

    margin: 0;

    flex: 1;
}

/* Title */
.portfolio-card figcaption {
    display: flex;
    flex-direction: column;

    color: #FFFFFF;
    margin: 0;
    font-size: 1.2em;
    letter-spacing: var(--text-spacing);

    width: 100%;

    text-align: center;
    justify-content: center;
}

/* Subtitle */
.portfolio-card figcaption span {
    font-size: 0.8em;
    color: #AAAAAA;
    margin-top: 5px;
}

/* Hover */
.portfolio-card:hover {
    transform: scale(1.04);

    box-shadow:
        inset 2px 2px 0 rgba(255,255,255,0.7),
        0 0 10px color-mix(in srgb, var(--page-accent) 70%, white),
        0 0 25px color-mix(in srgb, var(--page-accent) 40%, black),
        4px 4px 0 rgba(0,0,0,0.75);
}

/* Click */
.portfolio-card:active {
    transform: scale(1.01) translateY(2px);

    box-shadow:
        inset 0 4px 6px rgba(0,0,0,0.4);
}


.main-portfolio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 75%;

    justify-items: center;
    align-items: start;
}

.main-portfolio article, .page-title {
    grid-column: span 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
}

.main-portfolio img {
    display: block;
    margin: 0 auto;
}

.main-portfolio-item figure {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
}