/* ═══════════════════════════════════════════
   RedStamp404 — Ortak Stiller
   ═══════════════════════════════════════════ */

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

:root {
    --bg: #090909;
    --bg-card: #101011;
    --bg-card-hover: #141415;
    --border: #2b2b2b;
    --border-hover: #3a3a3a;
    --red: #ff3e3e;
    --red-glow: rgba(255, 62, 62, 0.45);
    --red-dim: #8a2020;
    --red-subtle: rgba(255, 62, 62, 0.06);
    --text: #ebebeb;
    --text-muted: #ababab;
    --text-dim: #555;
    --green: #00ff41;
    --font-pixel: 'Press Start 2P', monospace;
    --font-vt: 'VT323', monospace;
    --font-mono: 'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-mono);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scanlines */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent 0px, transparent 2px,
        rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* Noise grain */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dim); }

a { color: var(--red); text-decoration: none; transition: all 0.3s ease; }
a:hover { text-shadow: 0 0 8px var(--red-glow); }

/* ═══ NAVIGATION ═══ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 0 40px;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9000;
    background: rgba(9,9,9,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(43,43,43,0.4);
}

.nav-logo {
    font-family: var(--font-pixel);
    font-size: 10px;
    color: var(--red);
    text-shadow: 0 0 20px var(--red-glow), 2px 2px 0 #000;
    letter-spacing: 1px;
}

.nav-links { display: flex; gap: 28px; align-items: center; }

.nav-links a {
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--red);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--text-muted); text-shadow: none; }
.nav-links a:hover::after { width: 100%; }

.nav-burger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    width: 36px; height: 36px;
    cursor: pointer;
    font-family: var(--font-vt);
    font-size: 20px;
    line-height: 1;
}

/* ═══ VHS STAMP ═══ */
.vhs {
    position: fixed;
    bottom: 14px; right: 18px;
    font-family: var(--font-vt);
    font-size: 13px;
    color: var(--text-dim);
    z-index: 8000;
    opacity: 0.5;
    pointer-events: none;
}

.vhs .rec {
    color: var(--red);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* ═══ FOOTER ═══ */
footer {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 40px 48px;
    border-top: 1px solid rgba(43,43,43,0.3);
    text-align: center;
}

.social {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 14px;
}

.social a {
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.social a:hover { color: var(--text-muted); text-shadow: none; }

.copy {
    font-size: 11px;
    color: var(--text-dim);
    opacity: 0.6;
}

/* ═══ ANIMATIONS ═══ */
@keyframes heroGlitch {
    0% { opacity: 0; transform: translateY(-8px) skewX(-2deg); filter: blur(2px); }
    25% { opacity: 1; transform: translateY(0) skewX(1deg); }
    50% { transform: skewX(-0.5deg); }
    100% { transform: skewX(0); filter: blur(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes staggerIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .nav { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px; left: 0; right: 0;
        background: rgba(9,9,9,0.96);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        gap: 16px;
        backdrop-filter: blur(16px);
    }
    .nav-burger { display: block; }
    footer { padding: 24px 20px 40px; }
}
