/* ============================================
   NEUROATOMIC.COM :: VOID STYLESHEET
   Reality Debugging Tools for Post-Human Primates
   ============================================ */

:root {
    /* Core Palette */
    --void-black: #000000;
    --electric-violet: #a020f0;
    --radioactive-green: #00ff41;
    --crimson: #dc143c;
    --bone-white: #f0f0f0;
    
    /* Accent Colors */
    --deep-purple: #6a0dad;
    --neon-cyan: #00ffff;
    --blood-red: #8b0000;
    --ghost-gray: #1a1a1a;
    
    /* Typography */
    --font-mono: 'Courier New', 'OCR A', monospace;
    --font-occult: 'Cinzel', 'Times New Roman', serif;
}

/* ============================================
   BASE RESET & BODY
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--void-black);
    color: var(--bone-white);
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   CRT & GLITCH EFFECTS
   ============================================ */

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scanline-drift 7s linear infinite;
}

@keyframes scanline-drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

.crt-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.03;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="100%" height="100%" filter="url(%23noise)" /></svg>');
    animation: noise-flicker 0.2s infinite;
}

@keyframes noise-flicker {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.06; }
}

/* ============================================
   NEURAL CANVAS BACKGROUND
   ============================================ */

#neuralCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* ============================================
   HERO SECTION
   ============================================ */

#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.terminal-window {
    width: 90%;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--electric-violet);
    box-shadow: 
        0 0 20px var(--electric-violet),
        inset 0 0 20px rgba(160, 32, 240, 0.2);
    margin-bottom: 4rem;
    animation: terminal-boot 1s ease-out;
}

@keyframes terminal-boot {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.terminal-header {
    background: var(--electric-violet);
    color: var(--void-black);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.terminal-btn {
    cursor: pointer;
    padding: 0 0.3rem;
}

.terminal-body {
    padding: 2rem;
    min-height: 300px;
    font-size: 1.1rem;
}

.prompt {
    color: var(--radioactive-green);
    font-weight: bold;
}

#typed-text {
    color: var(--bone-white);
}

.cursor {
    color: var(--radioactive-green);
    animation: cursor-blink 0.8s infinite;
}

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

/* ============================================
   OUROBOROS ATOMIC SYMBOL
   ============================================ */

.ouroboros-atomic {
    width: 300px;
    height: 300px;
    margin: 2rem auto;
    position: relative;
}

.serpent-symbol {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px var(--electric-violet));
}

.rotating {
    animation: rotate-slow 30s linear infinite;
    transform-origin: center;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.8;
        filter: drop-shadow(0 0 10px var(--bone-white));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 30px var(--bone-white));
    }
}

.pulse-core {
    animation: pulse-core 1.5s ease-in-out infinite;
}

@keyframes pulse-core {
    0%, 100% { r: 10; }
    50% { r: 15; }
}

/* ============================================
   TAGLINE & GLITCH
   ============================================ */

.tagline {
    text-align: center;
    font-size: 1.5rem;
    color: var(--radioactive-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2rem;
    padding: 0 2rem;
}

.glitch {
    position: relative;
    animation: glitch-animation 5s infinite;
}

.glitch:before,
.glitch:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch:before {
    animation: glitch-effect-1 3s infinite;
    color: var(--crimson);
    z-index: -1;
}

.glitch:after {
    animation: glitch-effect-2 2s infinite;
    color: var(--electric-violet);
    z-index: -2;
}

@keyframes glitch-animation {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-2px, 0); }
    92% { transform: translate(2px, 0); }
}

@keyframes glitch-effect-1 {
    0%, 90%, 100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    91% { clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%); }
    92% { clip-path: polygon(0 80%, 100% 80%, 100% 100%, 0 100%); }
}

@keyframes glitch-effect-2 {
    0%, 90%, 100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    91% { clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%); }
    92% { clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%); }
}

/* ============================================
   MANIFESTO SECTION
   ============================================ */

#manifesto {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}

.manifesto-container {
    max-width: 900px;
    border: 2px solid var(--crimson);
    background: rgba(139, 0, 0, 0.05);
    padding: 3rem;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.3);
}

.occult-header {
    font-family: var(--font-occult);
    font-size: 2.5rem;
    text-align: center;
    color: var(--electric-violet);
    text-shadow: 0 0 10px var(--electric-violet);
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
}

.manifesto-text p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--radioactive-green);
    line-height: 1.8;
    opacity: 0;
    animation: fade-in-line 0.5s forwards;
}

.manifesto-text p:nth-child(1) { animation-delay: 0.1s; }
.manifesto-text p:nth-child(2) { animation-delay: 0.3s; }
.manifesto-text p:nth-child(3) { animation-delay: 0.5s; }
.manifesto-text p:nth-child(4) { animation-delay: 0.7s; }
.manifesto-text p:nth-child(5) { animation-delay: 0.9s; }
.manifesto-text p:nth-child(6) { animation-delay: 1.1s; }
.manifesto-text p:nth-child(7) { animation-delay: 1.3s; }

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

/* ============================================
   OFFERINGS / ARTIFACTS GRID
   ============================================ */

#offerings {
    padding: 6rem 2rem;
    min-height: 100vh;
}

.artifacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.artifact-card {
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid var(--electric-violet);
    padding: 2rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.artifact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(160, 32, 240, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.artifact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(160, 32, 240, 0.5);
    border-color: var(--radioactive-green);
}

.artifact-card:hover::before {
    opacity: 1;
    animation: card-shimmer 1s ease-in-out;
}

@keyframes card-shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.artifact-card[data-glow="violet"]:hover {
    box-shadow: 0 10px 40px rgba(160, 32, 240, 0.6);
}

.artifact-card[data-glow="green"]:hover {
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.6);
    border-color: var(--radioactive-green);
}

.artifact-card[data-glow="crimson"]:hover {
    box-shadow: 0 10px 40px rgba(220, 20, 60, 0.6);
    border-color: var(--crimson);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 5px var(--radioactive-green));
}

.card-header h3 {
    font-family: var(--font-occult);
    color: var(--bone-white);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.artifact-card p {
    color: var(--bone-white);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-status {
    font-size: 0.85rem;
    color: var(--radioactive-green);
    text-align: right;
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* ============================================
   RAW SHRINE
   ============================================ */

#raw-shrine {
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shrine-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.raw-bust {
    display: flex;
    justify-content: center;
}

.bust-frame {
    width: 250px;
    height: 250px;
    border: 3px solid var(--electric-violet);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 0 30px var(--electric-violet),
        inset 0 0 30px rgba(160, 32, 240, 0.2);
    animation: bust-glow 3s ease-in-out infinite;
}

@keyframes bust-glow {
    0%, 100% {
        box-shadow: 
            0 0 30px var(--electric-violet),
            inset 0 0 30px rgba(160, 32, 240, 0.2);
    }
    50% {
        box-shadow: 
            0 0 60px var(--electric-violet),
            inset 0 0 50px rgba(160, 32, 240, 0.4);
    }
}

.rotating-bust {
    font-size: 4rem;
    font-weight: bold;
    color: var(--radioactive-green);
    text-shadow: 0 0 20px var(--radioactive-green);
    animation: bust-rotate 10s linear infinite;
    font-family: var(--font-occult);
}

@keyframes bust-rotate {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

.raw-quotes {
    position: relative;
}

.glitch-quote {
    font-size: 1.5rem;
    color: var(--bone-white);
    line-height: 1.8;
    font-style: italic;
    border-left: 4px solid var(--electric-violet);
    padding-left: 2rem;
    position: relative;
}

.glitch-quote span {
    display: block;
}

.quote-attribution {
    text-align: right;
    color: var(--radioactive-green);
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
}

/* ============================================
   MODALS
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--void-black);
    border: 3px solid var(--electric-violet);
    padding: 3rem;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 50px var(--electric-violet);
    animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--crimson);
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    color: var(--radioactive-green);
    transform: rotate(90deg);
}

/* ============================================
   SIGIL GENERATOR
   ============================================ */

.sigil-interface {
    margin-top: 2rem;
}

.sigil-instructions {
    color: var(--radioactive-green);
    margin-bottom: 1.5rem;
    text-align: center;
}

#intentionInput {
    width: 100%;
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid var(--radioactive-green);
    color: var(--bone-white);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

#intentionInput:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.generate-btn,
.action-btn {
    background: var(--electric-violet);
    color: var(--bone-white);
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    width: 100%;
    margin-bottom: 1rem;
}

.generate-btn:hover,
.action-btn:hover {
    background: var(--radioactive-green);
    color: var(--void-black);
    box-shadow: 0 0 20px var(--radioactive-green);
    transform: translateY(-2px);
}

#sigilCanvas {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: var(--void-black);
    border: 2px solid var(--electric-violet);
    margin: 2rem auto;
    display: block;
}

.sigil-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    width: auto;
    flex: 1;
}

/* ============================================
   QUIZ INTERFACE
   ============================================ */

.quiz-interface {
    margin-top: 2rem;
}

.quiz-question {
    margin-bottom: 2rem;
}

.quiz-question h3 {
    color: var(--radioactive-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz-option {
    background: rgba(160, 32, 240, 0.1);
    border: 2px solid var(--electric-violet);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-option:hover {
    background: rgba(160, 32, 240, 0.3);
    border-color: var(--radioactive-green);
    transform: translateX(10px);
}

.quiz-option.selected {
    background: var(--electric-violet);
    border-color: var(--bone-white);
}

.quiz-result {
    background: rgba(220, 20, 60, 0.1);
    border: 2px solid var(--crimson);
    padding: 2rem;
    margin-top: 2rem;
}

.quiz-result h3 {
    color: var(--crimson);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ============================================
   AUDIO INTERFACE
   ============================================ */

.audio-interface {
    margin-top: 2rem;
    text-align: center;
}

.audio-interface p {
    color: var(--radioactive-green);
    margin-bottom: 2rem;
}

#audioVisualizer {
    width: 100%;
    height: 100px;
    background: var(--void-black);
    border: 2px solid var(--electric-violet);
    margin-top: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */

#footer {
    background: rgba(26, 26, 26, 0.9);
    border-top: 2px solid var(--electric-violet);
    padding: 3rem 2rem;
    position: relative;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.visitor-counter {
    margin-bottom: 2rem;
}

.counter-label {
    color: var(--radioactive-green);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.counter-digits {
    font-size: 2rem;
    color: var(--crimson);
    text-shadow: 0 0 10px var(--crimson);
    font-weight: bold;
    letter-spacing: 0.2em;
}

.contact {
    margin: 2rem 0;
}

.transmission {
    color: var(--bone-white);
    font-size: 1.1rem;
}

.transmission a {
    color: var(--electric-violet);
    text-decoration: none;
    transition: all 0.3s;
}

.transmission a:hover {
    color: var(--radioactive-green);
    text-shadow: 0 0 10px var(--radioactive-green);
}

.fnord-container {
    margin: 2rem 0;
}

.fnord {
    color: var(--crimson);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 20px var(--crimson);
}

.blink {
    animation: blink-effect 1s infinite;
}

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

.spider {
    position: absolute;
    bottom: 2rem;
    left: -50px;
    font-size: 2rem;
    animation: spider-crawl 60s linear infinite;
}

@keyframes spider-crawl {
    from { left: -50px; }
    to { left: 100%; }
}

.footer-noise {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(160, 32, 240, 0.3);
}

.copyright {
    color: var(--bone-white);
    font-size: 0.9rem;
    opacity: 0.7;
}

.chaos-star {
    display: inline-block;
    animation: rotate-slow 5s linear infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .terminal-window {
        width: 95%;
    }
    
    .terminal-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .ouroboros-atomic {
        width: 200px;
        height: 200px;
    }
    
    .occult-header {
        font-size: 1.8rem;
    }
    
    .manifesto-container {
        padding: 2rem;
    }
    
    .manifesto-text p {
        font-size: 1rem;
    }
    
    .artifacts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .shrine-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .glitch-quote {
        font-size: 1.2rem;
    }
    
    .modal-content {
        padding: 2rem;
        width: 95%;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

.text-violet {
    color: var(--electric-violet);
}

.text-green {
    color: var(--radioactive-green);
}

.text-crimson {
    color: var(--crimson);
}

.glow-violet {
    text-shadow: 0 0 10px var(--electric-violet);
}

.glow-green {
    text-shadow: 0 0 10px var(--radioactive-green);
}

.glow-crimson {
    text-shadow: 0 0 10px var(--crimson);
}

/* ============================================
   CREDIT LINK
   ============================================ */

.credit {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--electric-violet);
    text-align: center;
    margin-top: 1rem;
    text-shadow: 0 0 5px var(--electric-violet);
}

.credit a {
    color: var(--radioactive-green);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    display: inline-block;
}

.credit a:hover {
    text-decoration: none;
    color: var(--bone-white);
    text-shadow: 0 0 10px var(--radioactive-green), 0 0 20px var(--radioactive-green);
    transform: scale(1.05);
}

.credit a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, var(--crimson), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.credit a:hover::before {
    opacity: 0.3;
}
