/* ------------------------------------------------------------------------- */
/*          MAIN CSS FILE - FONT, SIZE, BODY, PARTICULAR STYLE ETC..         */
/* ------------------------------------------------------------------------- */

@font-face {
    font-family: 'VT323';
    src: url('../../static/fonts/vt323-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../../static/fonts/orbitron-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-accent: #00FF41;
    --color-text: #ffffff;
    --color-bg: #000000;
    --color-surface-hover: #151515;
    --color-border: rgba(255, 255, 255, 1);
    --color-divider: #333333;

    --font-body: 'VT323', 'Courier New', Courier, monospace;
    --font-display: 'Orbitron', sans-serif;

    --duration-fast: 0.3s;
    --duration-medium: 0.5s;
    --duration-slow: 0.8s;
    --duration-navbar: 1s;

    --radius-card: 10px;
    --space-xxs: 0.2rem;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-gap-sm: 20px;
    --space-gap-lg: 40px;
    --space-stack-sm: 10px;
    --space-stack-md: 30px;

    --space-vh-sm: 10vh;
    --space-vh-md: 20vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scrollbar-width: none; /* Hide scrollbar. */
}

body {
    color: var(--color-accent);
    font-family: var(--font-body); /* retro */
    /* font-family: 'Courier New', Courier, monospace; /* alien */
    background-color: var(--color-bg); /* background-color: #0A1A2F; */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    background: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

h1 {
    font-size: 2em;
    margin-bottom: var(--space-stack-sm);
    background: none;
}

li {
    border: none;
    background: none;
    z-index: 1;
}

.image-container {
    z-index: 1;
    background: none;
    max-width: 1000px;
    max-height: 1000px;
    width: 100%;
}

/* ------------------------------------------------------------------------- */
/*                                  STARS                                    */
/* ------------------------------------------------------------------------- */

.star-field {
    z-index: -1;
    position: relative;
    width: 100%;
    height: 100%;
}

.star {
    z-index: -1;
    position: absolute;
    border-radius: 50%;
    background: var(--color-text);
    opacity: 0;
}

.twinkling {
    animation: twinkling 4s infinite alternate;
}

@keyframes twinkling {
    0% { opacity: 0.1; }
    100% { opacity: 1; }
}

/* ------------------------------------------------------------------------- */
/*                              SHOOTING STAR                                */
/* ------------------------------------------------------------------------- */

.shooting-star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
}

.shooting-star {
    z-index: -10;
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-text);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 1;
    animation: shooting-star 1s linear forwards;
}

@keyframes shooting-star {
    0% {
        z-index: -1;
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        z-index: -1;
        transform: translate(50vw, 50vh) scale(2);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ------------------------------------------------------------------------- */

