@font-face {
    font-family: 'Press Start 2P';
    src: url('../assets/fonts/PressStart2P-Regular.ttf') format('truetype');
}

:root {
    --void-black: #0a0a0a;
    --deep-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --text-gray: #9a9a9a;
    --text-white: #d4d4d4;
    --accent-cyan: #4a9da6;
    --accent-red: #a64a4a;
    --border-dim: #333333;
    --glow-cyan: rgba(74, 157, 166, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Press Start 2P', monospace;
    background-color: var(--void-black);
    color: var(--text-white);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    font-size: 11px;
}

/* Scanline Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        transparent 1px,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 3px
    );
    z-index: 9999;
    animation: scanline-flicker 0.1s infinite;
}

@keyframes scanline-flicker {
    0% { opacity: 0.95; }
    50% { opacity: 1; }
    100% { opacity: 0.95; }
}

/* Vignette Effect */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 9998;
}

/* Noise Texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dim);
    z-index: 1000;
}

.header-glitch {
    font-size: 18px;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 4px;
    position: relative;
    text-shadow: 
        0 0 10px var(--glow-cyan),
        2px 2px 0 var(--accent-cyan),
        -2px -2px 0 var(--accent-red);
    animation: glitch-text 5s infinite;
}

@keyframes glitch-text {
    0%, 90%, 100% {
        text-shadow: 
            0 0 10px var(--glow-cyan),
            2px 2px 0 var(--accent-cyan),
            -2px -2px 0 var(--accent-red);
    }
    91%, 93% {
        text-shadow: 
            0 0 10px var(--glow-cyan),
            -2px 2px 0 var(--accent-cyan),
            2px -2px 0 var(--accent-red);
    }
    94%, 96% {
        text-shadow: 
            0 0 10px var(--glow-cyan),
            2px -2px 0 var(--accent-cyan),
            -2px 2px 0 var(--accent-red);
    }
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 10px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--glow-cyan);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-separator {
    color: var(--border-dim);
    font-size: 10px;
}

/* Main Content */
main {
    position: relative;
    min-height: 100vh;
    padding-top: 150px;
    z-index: 2;
}

section {
    display: none;
    min-height: calc(100vh - 150px);
    padding: 40px 20px;
    opacity: 0;
    animation: fade-in 1s ease-in-out forwards;
}

section.active {
    display: block;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home Section */
.hero-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 20px;
}

.glitch-text {
    font-size: 32px;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: 6px;
    position: relative;
    display: inline-block;
}

.subtitle {
    font-size: 10px;
    color: var(--text-gray);
    letter-spacing: 3px;
    margin-bottom: 60px;
    opacity: 0.7;
}

.manifesto {
    margin: 60px auto;
    max-width: 700px;
    text-align: left;
    padding: 40px;
    border: 1px solid var(--border-dim);
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(5px);
}

.manifesto-line {
    font-size: 11px;
    line-height: 2.2;
    color: var(--text-white);
    opacity: 0;
    animation: text-appear 0.8s ease-in-out forwards;
}

.manifesto-line:nth-child(1) { animation-delay: 0.2s; }
.manifesto-line:nth-child(2) { animation-delay: 0.4s; }
.manifesto-line:nth-child(3) { animation-delay: 0.6s; }
.manifesto-line:nth-child(4) { animation-delay: 0.8s; }
.manifesto-line:nth-child(5) { animation-delay: 1s; }
.manifesto-line:nth-child(6) { animation-delay: 1.2s; }
.manifesto-line:nth-child(7) { animation-delay: 1.4s; }
.manifesto-line:nth-child(8) { animation-delay: 1.6s; }
.manifesto-line:nth-child(9) { animation-delay: 1.8s; }
.manifesto-line:nth-child(10) { animation-delay: 2s; }
.manifesto-line:nth-child(11) { animation-delay: 2.2s; }
.manifesto-line:nth-child(12) { animation-delay: 2.4s; }

@keyframes text-appear {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.enter-prompt {
    margin-top: 60px;
    font-size: 12px;
    color: var(--accent-cyan);
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enter-prompt:hover {
    text-shadow: 0 0 20px var(--glow-cyan);
    transform: scale(1.05);
}

.blink-cursor {
    animation: blink 1.5s infinite;
}

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

/* Entries Section */
.entries-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    font-size: 20px;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 4px;
}

.title-bracket {
    color: var(--accent-cyan);
}

.entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.entry-card {
    background: var(--deep-gray);
    border: 1px solid var(--border-dim);
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.entry-card:hover::before {
    opacity: 0.5;
}

.entry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.entry-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 9px;
    color: var(--text-gray);
}

.entry-separator {
    opacity: 0.5;
}

.entry-type {
    color: var(--accent-cyan);
}

.entry-title {
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.entry-preview {
    font-size: 10px;
    line-height: 2;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.entry-preview p {
    margin-bottom: 12px;
}

.entry-footer {
    text-align: right;
}

.read-more {
    font-size: 9px;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.entry-card:hover .read-more {
    text-shadow: 0 0 10px var(--glow-cyan);
}

/* Empty Entry Card */
.entry-empty {
    background: transparent;
    border: 1px dashed var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.entry-empty::before {
    display: none;
}

.entry-empty:hover {
    transform: none;
    box-shadow: none;
}

.entry-empty-content {
    text-align: center;
    opacity: 0.3;
}

.empty-symbol {
    font-size: 40px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.entry-empty-content p {
    font-size: 9px;
    color: var(--text-gray);
    letter-spacing: 2px;
}

/* About Section */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-content {
    margin-top: 40px;
}

.about-block {
    margin-bottom: 60px;
    padding: 40px;
    border: 1px solid var(--border-dim);
    background: rgba(26, 26, 26, 0.5);
}

.about-line {
    font-size: 11px;
    line-height: 2.2;
    color: var(--text-white);
    margin-bottom: 5px;
}

.tech-info {
    padding: 30px;
    background: var(--deep-gray);
    border-left: 3px solid var(--accent-cyan);
}

.tech-line {
    font-size: 10px;
    color: var(--text-gray);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.status-active {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--glow-cyan);
}

.status-value {
    color: var(--text-white);
}

/* Footer */
footer {
    position: relative;
    padding: 40px 20px;
    border-top: 1px solid var(--border-dim);
    background: var(--void-black);
    z-index: 2;
}

.footer-content {
    text-align: center;
    font-size: 9px;
    color: var(--text-gray);
    letter-spacing: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-separator {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    .header-glitch {
        font-size: 14px;
        margin-bottom: 10px;
    }

    nav {
        gap: 10px;
    }

    .nav-link {
        font-size: 8px;
        padding: 3px 6px;
    }

    .glitch-text {
        font-size: 24px;
    }

    .manifesto {
        padding: 20px;
    }

    .manifesto-line {
        font-size: 10px;
    }

    .entries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 16px;
    }

    .entry-title {
        font-size: 12px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--void-black);
}

::-webkit-scrollbar-thumb {
    background: var(--border-dim);
    border: 1px solid var(--void-black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}
