:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --dim-color: #ffee00;
    --font-main: 'Courier New', Courier, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000000;
    background-size: 100% 100%;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding: 2rem;
    font-size: 16px;
}



/* Background Animation Layers */
.bg-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
}


@keyframes pulseDots {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    /* Above the header */
    margin-top: 100vh;
    /* Start below the fold */
    padding-top: 2rem;
    /* Add some breathing room */
    background: transparent;
    /* Or add background if text overlaps readability issues, but requested 'replace' usually implies scroll up */
}

/* Typography & Header */
h1,
h2,
h3,
h4 {
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: bold;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -2px;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.site-logo {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 100%;
    width: 600px;
    height: auto;
}

h2 {
    font-size: 1.2rem;
    min-height: 1.5em;
    color: var(--dim-color);
}

#typing-text:empty {
    display: none;
}

.subtitle {
    margin-bottom: 3rem;
    font-style: italic;
    opacity: 0.8;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
    /* Below container */
    padding: 2rem;
    pointer-events: none;
    /* Let clicks pass through if needed, though usually we want to select text? Let's use auto for now, JS will handle opacity */
    pointer-events: auto;
}

/* Sections */
section {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h3 {
    border-bottom: 1px solid var(--dim-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.highlight {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 0 4px;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    border: 1px solid var(--text-color);
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.card:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 var(--dim-color);
}

/* Value List */
.value-list {
    list-style-type: none;
}

.value-list li {
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--dim-color);
    padding-left: 1rem;
}

/* References */
.ref-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.ref-item {
    display: flex;
    justify-content: space-between;
    text-align: right;
    border-bottom: 1px dashed var(--dim-color);
    padding-bottom: 0.5rem;
}

.ref-item span {
    color: var(--dim-color);
}

/* Footer & Animation */
footer {
    text-align: center;
    margin-top: 4rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
    cursor: pointer;
    color: var(--text-color);
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}