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

body {
    /* Black to Red Radial Fade */
    background: radial-gradient(circle, #450000 0%, #000000 85%);
    background-color: #000000;
    
    color: #ff0000;
    font-family: 'Courier New', Courier, monospace;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-transform: lowercase;
}

/* CRT Scanlines Layer */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.4) 50%
    );
    background-size: 100% 3px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.5;
}

/* Grainy Noise Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.06;
    pointer-events: none;
    z-index: 11;
}

/* Centered Layout */
.container {
    position: relative;
    z-index: 15;
    text-align: center;
    padding: 20px;
}

/* Main ASCII Title */
.main-title {
    font-size: 9px;
    line-height: 1.1;
    white-space: pre;
    color: #ff0000;
    text-shadow: 0 0 15px #ff0000;
    margin-bottom: 10px;
    display: inline-block;
    animation: flicker 3s infinite;
}

.subtitle {
    font-size: 14px;
    letter-spacing: 10px;
    color: #ff0000;
    margin-bottom: 50px;
    opacity: 0.7;
}

/* Nav Link Styling */
nav {
    display: flex;
    gap: 35px;
    justify-content: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 2px;
    transition: all 0.3s ease-in-out;
}

nav a:hover {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
    letter-spacing: 6px;
    transform: scale(1.05);
}

/* Footer Watermark */
footer {
    position: fixed;
    bottom: 25px;
    width: 100%;
    text-align: center;
    z-index: 20;
}

.watermark {
    font-size: 12px;
    color: #333333;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Subtle Flicker Animation */
@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    52% { opacity: 1; }
    100% { opacity: 1; }
}
