
/* Loading custom fonts from the local project folder */
@font-face {
    font-family: 'LeoReproMono-Regular';
    src: url('./fonts/LeoReproMono-Regular.woff2') format('woff2'),
            url('./fonts/LeoReproMono-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LeoReproMono-Medium';
    src: url('./fonts/LeoReproMono-Medium.woff2') format('woff2'),
            url('./fonts/LeoReproMono-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

:root {
    --accent: #7cfc00;
    --bg: #000000;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg);
    color: white;
    font-family: 'LeoReproMono-Regular', Roboto, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: url("./assets/galaxy.jpg") no-repeat center center;
    background-size: cover;
    z-index: 0;
    transform: scale(1);
    will-change: transform;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    mix-blend-mode: screen;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    background: radial-gradient(circle, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.ui-content {
    text-align: center;
    pointer-events: auto;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ui-content.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

h1 {
    font-family: 'LeoReproMono-Regular', monospace;
    font-weight: 200;
    letter-spacing: 6px;
    width: 74%;
    max-width: 900px;
    margin: 0 auto 40px;
    text-transform: uppercase;
    font-size: 1.4rem;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 0 4px 12px rgba(0,0,0,0.9);
}

.btn-warp {
    font-family: 'LeoReproMono-Regular', monospace;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 18px 45px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(1.5px);
    position: relative;
    overflow: hidden;
}

.btn-warp:hover {
    border-color: white;
    background: white;
    color: black;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

#registration-header {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(-10px);
    z-index: 30;
    pointer-events: auto;
    text-align: center;
}

.reg-text {
    font-family: monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    line-height: 1.5;
    text-transform: uppercase;
}

.reg-text b {
    color: var(--accent);
    font-weight: normal;
}

.reg-link {
    color: rgba(124, 252, 0, 1);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.reg-link:hover {
    border-bottom-color: var(--accent);
}

#agency-footer {
    position: fixed;
    bottom: 50px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    z-index: 30;
    pointer-events: auto;
    transition: filter 0.3s ease;
}

.agency-logo {
    height: 25px;
    width: auto;
    object-fit: contain;
}

#agency-footer.warping-active {
    filter: blur(0.5px);
}

.footer-row {
    display: flex;
    justify-content: center;
    align-items:  baseline;
    gap: 24px;
}


.logo-hero {
    height: 60px;
    margin-bottom: 5px;
}

.logo-pub {
    height: 15px;
}

#agency-footer.warping-active .agency-logo {
    animation: warpShake 0.1s linear infinite;
}

@keyframes warpShake {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-1px, -1px); }
    20% { transform: translate(1px, 1px); }
    30% { transform: translate(-2px, 0px); }
    40% { transform: translate(2px, 2px); }
    50% { transform: translate(-1px, 1px); }
    60% { transform: translate(1px, -2px); }
    70% { transform: translate(-2px, -1px); }
    80% { transform: translate(2px, 1px); }
    90% { transform: translate(1px, -1px); }
    100% { transform: translate(0, 0); }
}

#star-hud {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 20;
}

.hud-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 400px;
    height: 100px;
    overflow: visible;
    transform: translateY(-50%);
}

.hud-text-container {
    position: absolute;
    left: 144px;
    top: -26px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hud-title {
    color: white;
    font-weight: 300;
    font-size: 1.6rem;
    white-space: nowrap;
    text-transform: uppercase;
}

.hud-title-accent {
    color: var(--accent);
    font-weight: 400;
}

.hud-coords {
    color: var(--accent);
    font-family: 'LeoReproMono-Medium', monospace;
    font-size: 1rem;
    letter-spacing: 1px;
    min-height: 1.2rem;
    line-height: 1.4;
}

#hud-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}

@media (pointer: fine) {
    body, html {
        cursor: none;
    }

    body.cursor-landed,
    html.cursor-landed {
        cursor: default;
    }

    body.cursor-landed.show-custom-cursor,
    html.cursor-landed.show-custom-cursor {
        cursor: none;
    }

    #warp-trigger,
    .agency-logo {
        cursor: none;
    }

    #custom-cursor {
        position: fixed;
        left: 0;
        top: 0;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 1px solid #7CFC00;
        pointer-events: none;
        transform: translate(-50%, -50%);
        z-index: 9999;
        opacity: 0;
        animation: cursorPulse 1.8s ease-in-out infinite;
        box-shadow: 0 0 10px rgba(124, 252, 0, 0.5),
                    0 0 4px rgba(124, 252, 0, 0.8) inset;
    }

    #custom-cursor.cursor-landed {
        display: none;
    }

    #custom-cursor.cursor-landed.cursor-plus {
        display: block;
        opacity: 1;
    }

    #custom-cursor.cursor-plus {
        width: 16px;
        height: 16px;
        border: none;
        box-shadow: none;
        animation: none;
    }

    #custom-cursor.cursor-plus::before,
    #custom-cursor.cursor-plus::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background-color: #7CFC00;
        box-shadow: 0 0 10px rgba(124, 252, 0, 0.6);
    }

    #custom-cursor.cursor-plus::before {
        width: 2px;
        height: 18px;
    }

    #custom-cursor.cursor-plus::after {
        width: 18px;
        height: 2px;
    }

    @keyframes cursorPulse {
        0% {
            transform: translate(-50%, -50%) scale(0.9);
            opacity: 0.9;
            box-shadow: 0 0 10px rgba(124, 252, 0, 0.6),
                        0 0 4px rgba(124, 252, 0, 0.8) inset;
        }
        50% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
            box-shadow: 0 0 16px rgba(124, 252, 0, 0.8),
                        0 0 6px rgba(124, 252, 0, 1) inset;
        }
        100% {
            transform: translate(-50%, -50%) scale(0.9);
            opacity: 0.9;
            box-shadow: 0 0 10px rgba(124, 252, 0, 0.6),
                        0 0 4px rgba(124, 252, 0, 0.8) inset;
        }
    }
}

@media (max-width: 600px) {
    html, body {
        height: 100vh;
        height: -webkit-fill-available;
    }
    
    h1 { 
        font-size: 1rem; 
        letter-spacing: 3px; 
        width: 80%;
        padding: 0 5%;
    }
    
    #registration-header { 
        flex-direction: column; 
        top: 20px; 
        gap: 10px; 
        text-align: center; 
        padding: 0 10px;
    }
    
    .reg-text {
        font-size: 0.65rem;
    }
    
    .hud-text-container { 
        left: 43px;
        top: -122px;
        white-space: normal; 
    }

    #landing-ui{
        margin-bottom: 60px;
    }

    .hud-title { font-size: 1.1rem; white-space: normal; }
    .hud-title-accent { display: block; }
    .hud-coords { font-size: 0.6rem; white-space: normal; width: 180px; }
    #agency-footer { gap: 8px; bottom: 20px; padding: 0 10px; }
    .footer-row { gap: 15px; }
    .logo-hero { height: 60px; }
    .logo-tiny { height: 12px; }
}