/* -------------------------------------------------------
   BASE
------------------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Source Code Pro', monospace;
    background: #000;
    color: #fff;
}

/* -------------------------------------------------------
   BACKGROUND — gradient + scanlines
------------------------------------------------------- */
body {
    background-color: #000;
    background-image:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.04) 0px,
            rgba(255,255,255,0.04) 6px,
            rgba(0,0,0,0) 6px,
            rgba(0,0,0,0) 8px
        ),
        linear-gradient(
            90deg,
            #000000 0%,
            #290045 33%,
            #00453f 66%,
            #000000 100%
        );
    background-size: auto, cover;
}

/* -------------------------------------------------------
   LAYOUT
------------------------------------------------------- */
.container {
    display: flex;
    justify-content: center;     /* horizontal center */
    align-items: flex-start;     /* top alignment */
    padding: 60px 16px 40px;     /* nice breathing room */
    min-height: 100vh;
    box-sizing: border-box;
}


/* -------------------------------------------------------
   ABOUT BOX
------------------------------------------------------- */
.about-box {
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 24px;
    border-radius: 6px;
    max-width: 720px;
    width: 100%;
    text-align: left;
}

/* -------------------------------------------------------
   TEXT
------------------------------------------------------- */
.title {
    font-size: 2.3em;
    margin: 0 0 6px;
    color: #0ff;
    text-align: center;
}

.subtitle {
    font-size: 1.3em;
    margin: 0 0 16px;
    color: #aaa;
    text-align: center;
}

.body-text {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* -------------------------------------------------------
   BUTTONS
------------------------------------------------------- */
.button-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    padding: 12px;
    background: #0ff;
    color: #000;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn:active {
    transform: translateY(-2px);
    box-shadow: 0 0 8px rgba(0,255,255,0.6);
}

.btn.secondary {
    background: #033;
    color: #0ff;
}

.btn.secondary:hover,
.btn.secondary:active {
    background: #044;
    box-shadow: 0 0 6px rgba(0,255,255,0.4);
}

/* -------------------------------------------------------
   LINKS
------------------------------------------------------- */
.link-row {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.text-link {
    position: relative;
    color: #0ff;
    text-decoration: none;
    font-size: 1em;
    opacity: 0.9;
    transition: opacity 0.15s ease;
}

.text-link:hover,
.text-link:active {
    opacity: 1;
}

.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: #0ff;
    transition: width 0.2s ease;
}

.text-link:hover::after,
.text-link:active::after {
    width: 100%;
}

/* -------------------------------------------------------
    SET FONT FOR INTERACTIVE ELEMENTES 
------------------------------------------------------- */
button,
.btn,
.text-link {
    font-family: 'Source Code Pro', monospace;
}


/* -------------------------------------------------------
   MICRO-GLITCH ANIMATION
------------------------------------------------------- */
.btn:hover {
    animation: microglitch 0.12s linear;
}

@keyframes microglitch {
    0%   { transform: translateX(0); }
    40%  { transform: translateX(-1px); }
    80%  { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

/* -------------------------------------------------------
   DESKTOP ENHANCEMENTS
------------------------------------------------------- */
@media (min-width: 900px) {
    .about-box {
        padding: 32px;
    }

    .button-row {
        flex-direction: row;
        justify-content: center;
    }

    .btn {
        min-width: 140px;
    }
}

/* -------------------------------------------------------
   HERO TERMINAL — fixed size, no overflow, no container bleed
------------------------------------------------------- */
.hero-terminal {
    width: 100%;
    max-width: 100%;
    height: 260px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(0,255,255,0.25);
    border-radius: 6px;
    padding: 20px;
    margin: 30px 0;
    box-shadow:
        0 0 12px rgba(0,255,255,0.15),
        inset 0 0 12px rgba(0,255,255,0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: 'Source Code Pro', monospace;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* CRT scanline overlay */
.hero-terminal::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 2px,
        rgba(0,0,0,0) 2px,
        rgba(0,0,0,0) 4px
    );
    opacity: 0.4;
}

/* -------------------------------------------------------
   TERMINAL TEXT — off‑white + chromatic aberration
------------------------------------------------------- */
.terminal-output,
.terminal-prompt,
#terminal-input {
    color: #CCCCCC;
    text-shadow:
        1px 0px rgba(255, 0, 0, 0.75),     /* red fringe */
        -1px 0px rgba(0, 128, 255, 0.75);  /* blue fringe */
}

/* Terminal output area — scrollable */
.terminal-output {
    font-size: 1em;
    line-height: 1.4;
    white-space: pre-wrap;

    height: calc(100% - 40px);
    overflow-y: auto;
    padding-right: 4px;
    box-sizing: border-box;

    scrollbar-width: none; /* Firefox */
}

.terminal-output::-webkit-scrollbar {
    display: none; /* Chrome, Edge, Safari */
}

/* Input row */
.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Source Code Pro', monospace;
    font-size: 1em;
    caret-color: #ccc;
}

/* -------------------------------------------------------
Basic overlay
------------------------------------------------------- */
/* Blur background when overlay is active */
.page-wrapper.blurred {
    filter: blur(6px);
    transition: filter 0.3s ease;
}


/* Make sure overlay stays sharp */
#overlay-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99999;
}


.heshup-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.heshup-overlay video {
    width: auto;
    height: auto;

    max-width: 100vw;   /* shrink if too wide */
    max-height: 100vh;  /* shrink if too tall */

    display: block;
}

