/* ===== ANIMUS INTERFACE STYLES ===== */
/* CSS Variables for Theme Colors */
:root {
    --primary: #00ffff;
    --primary-glow: rgba(0, 255, 255, 0.7);
    --secondary: #ff00ff;
    --secondary-glow: rgba(255, 0, 255, 0.7);
    --dark-bg: #0a0a14;
    --darker-bg: #050510;
    --grid-color: rgba(0, 255, 255, 0.1);
    --text-color: #e0e0ff;
    --text-glow: rgba(224, 224, 255, 0.8);
    --terminal-bg: rgba(10, 15, 30, 0.8);
    --card-bg: rgba(15, 20, 40, 0.6);
    --glitch-red: #ff003c;
    --glitch-blue: #00ccff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Segoe UI', monospace;
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 80, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 200, 0.05) 0%, transparent 20%);
}

/* Animus Grid Background */
#animus-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    transform-origin: center;
    will-change: transform, background-position;
}

/* CRT Scanline Effect */
#crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* Container */
.animus-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 0;
}

/* Glitch Title */
.glitch-container {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.animus-title {
    font-size: 4.5rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-shadow: 
        0 0 10px var(--primary-glow),
        0 0 20px var(--primary-glow),
        0 0 30px var(--primary-glow);
    position: relative;
    animation: titlePulse 4s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

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

.glitch-text::before {
    animation: glitch-1 2.5s infinite linear alternate-reverse;
    color: var(--glitch-red);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 2s infinite linear alternate-reverse;
    color: var(--glitch-blue);
    z-index: -2;
}

@keyframes glitch-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0% { transform: translate(0); }
    10% { transform: translate(2px, -1px); }
    30% { transform: translate(-3px, 0); }
    50% { transform: translate(-1px, 2px); }
    70% { transform: translate(1px, -2px); }
    90% { transform: translate(-2px, 1px); }
    100% { transform: translate(0); }
}

/* Subtitle */
.subtitle-container {
    margin-top: 2rem;
}

.subtitle-line {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.subtitle-line:nth-child(1) { animation-delay: 0.5s; }
.subtitle-line:nth-child(2) { animation-delay: 1s; }
.subtitle-line:nth-child(3) { animation-delay: 1.5s; }

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

.pulse-text {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
    animation: pulse 2s infinite;
}

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

/* Terminal */
.terminal-container {
    background: var(--terminal-bg);
    border: 1px solid var(--primary);
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.terminal-header {
    background: rgba(0, 20, 40, 0.9);
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.terminal-title {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.terminal-body {
    padding: 2rem;
    min-height: 200px;
}

.terminal-line {
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    opacity: 0;
    animation: typeIn 0.5s forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.8s; }
.terminal-line:nth-child(2) { animation-delay: 1.3s; }
.terminal-line:nth-child(3) { animation-delay: 1.8s; }
.terminal-line:nth-child(4) { animation-delay: 2.3s; }

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

.prompt {
    color: var(--primary);
    margin-right: 10px;
}

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

.highlight {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Primary CTA Button */
.cta-container {
    text-align: center;
    margin: 3rem 0;
}

.animus-btn {
    display: inline-block;
    position: relative;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1.2rem 3rem;
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    overflow: hidden;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 1;
}

.animus-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 
        0 0 20px var(--primary-glow),
        0 0 40px var(--primary-glow),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-3px);
}

.animus-btn:active {
    transform: translateY(-1px);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-glow);
    opacity: 0;
    filter: blur(20px);
    z-index: 1;
    transition: opacity 0.3s;
}

.animus-btn:hover .btn-glow {
    opacity: 0.6;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.pulse {
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 255, 255, 0); }
}

/* Navigation Cards */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    margin: 3rem 0;
}

.nav-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.nav-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 255, 0.3);
}

.nav-card:hover .nav-glow {
    opacity: 1;
}

.nav-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.nav-title {
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.nav-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
}

.nav-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

/* Status Footer */
.status-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    width: 100%;
    max-width: 900px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.status-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

.status-value {
    font-size: 1.1rem;
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .animus-title {
        font-size: 2.5rem;
        letter-spacing: 0.2em;
    }
    
    .subtitle-line {
        font-size: 1rem;
    }
    
    .terminal-body {
        padding: 1.5rem;
    }
    
    .nav-cards {
        grid-template-columns: 1fr;
    }
    
    .status-footer {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .animus-container {
        padding: 1rem;
    }
    
    .animus-title {
        font-size: 2rem;
    }
    
    .animus-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* Existing timeline styles - enhanced */
.timeline-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    align-items: center;
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 255, 0.2);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: left 0.5s ease;
}

.timeline-card:hover::before {
    left: 100%;
}

/* Sync Overlay Styles (for timelines page) */
#sync-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 20, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.sync-box {
    width: 90%;
    max-width: 500px;
    border: 2px solid var(--primary);
    padding: 3rem;
    text-align: center;
    box-shadow: 
        0 0 30px var(--primary-glow),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    background: rgba(10, 15, 30, 0.9);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.sync-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        transparent 30%,
        rgba(0, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: syncSweep 3s linear infinite;
}

@keyframes syncSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-bar {
    height: 10px;
    background: rgba(0, 255, 255, 0.2);
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 5px;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: loadFake 2s ease forwards;
    border-radius: 5px;
}

@keyframes loadFake {
    0% { width: 0%; }
    100% { width: 100%; }
}

.sync-text {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--primary);
    animation: pulse 1.5s infinite;
}

/* Button enhancements for existing pages */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 10px;
}

.btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-2px);
}

/* Link hover animations */
a:not(.animus-btn, .btn) {
    color: var(--primary);
    text-decoration: none;
    position: relative;
}

a:not(.animus-btn, .btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

a:not(.animus-btn, .btn):hover::after {
    width: 100%;
}

/* ===== MEMORY CONTENT STYLES ===== */

.memory-content {
    text-align: left;
}

.memory-block {
    margin-top: 2rem;
    line-height: 1.7;
}

.memory-block h3 {
    color: var(--primary);
    margin: 1rem 0;
    text-shadow: 0 0 8px var(--primary-glow);
}

.memory-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 0 25px rgba(0,255,255,0.25);
}

.memory-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.memory-list li {
    margin-bottom: 0.4rem;
    opacity: 0.9;
}

.flag-block {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255,0,60,0.1);
    border: 1px solid var(--glitch-red);
    color: var(--glitch-red);
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    text-align: center;
    box-shadow: 0 0 20px rgba(255,0,60,0.4);
}

.memory-block.danger h3 {
    color: var(--glitch-red);
    text-shadow: 0 0 10px rgba(255,0,60,0.8);
}
.memory-block.danger {
    border-left: 4px solid var(--glitch-red);
    padding-left: 1rem;
}

.flag-redacted {
    color: #ff003c;
    letter-spacing: 0.2em;
    text-align: center;
    filter: blur(1.5px);
}

.flag-real {
    display: none;
    color: #00ffff;
    text-align: center;
    margin-top: 2rem;
}

.flag-real.reveal {
    display: block;
    animation: glitch 0.8s;
}
