:root {
    --bg-base: #0a0a0d;
    --bg-surface: #121218;
    --neon-violet: #8a2be2;
    --neon-violet-glow: rgba(138, 43, 226, 0.5);
    --neon-accent: #9400d3;
    --text-primary: #f0f0f5;
    --text-secondary: #9a9aa5;
    
    /* 3D Shadows for dark mode */
    --shadow-outer: 8px 8px 20px rgba(0, 0, 0, 0.8), -4px -4px 15px rgba(255, 255, 255, 0.04);
    --shadow-inner: inset 4px 4px 10px rgba(0, 0, 0, 0.8), inset -2px -2px 8px rgba(255, 255, 255, 0.02);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, .nav-btn, .terminal-title, .loader-text, .step-number, .pgp-key {
    font-family: 'JetBrains Mono', monospace;
}

/* Base 3D Classes */
.3d-box {
    background: var(--bg-surface);
    box-shadow: var(--shadow-outer);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.02);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}
.3d-inner {
    background: #08080a;
    box-shadow: var(--shadow-inner);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.01);
}

/* Ambient Violet Background */
.ambient-background {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(148, 0, 211, 0.04) 0%, transparent 50%);
    z-index: -3;
}
.perspective-grid {
    position: fixed;
    bottom: -10vh; left: 0; width: 100vw; height: 60vh;
    background-image: 
        linear-gradient(rgba(138, 43, 226, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 0, 211, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(700px) rotateX(70deg);
    transform-origin: bottom center;
    z-index: -2;
    animation: grid-move 20s linear infinite;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
@keyframes grid-move { 0% { background-position: 0 0; } 100% { background-position: 0 50px; } }
.scanline {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%);
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 13, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* THE ULTIMATE 3D LOGO FIX - Eye Catching */
.logo-container {
    perspective: 1200px;
    display: flex;
    align-items: center;
}
.premium-logo {
    height: 70px;
    /* Removed invert and screen blends since the new logo is already 3D and has purple glow */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8)) drop-shadow(0 0 15px rgba(138,43,226,0.6));
    transform: rotateX(15deg) rotateY(-5deg) scale(1.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.premium-logo:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.2) translateZ(40px);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.9)) drop-shadow(0 0 25px rgba(138,43,226,0.9));
}

/* Navigation */
.nav { display: flex; gap: 2rem; align-items: center; }
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.nav-link:hover { color: var(--text-primary); text-shadow: 0 0 8px rgba(138, 43, 226, 0.6); }

/* SOS Red Link */
.sos-link {
    color: #ff003c !important;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255,0,60,0.6);
    animation: pulse-text 2s infinite;
}
@keyframes pulse-text { 0%, 100% { text-shadow: 0 0 8px rgba(255,0,60,0.6); } 50% { text-shadow: 0 0 20px rgba(255,0,60,1); } }

/* 3D Nav Button */
.nav-btn {
    padding: 0.6rem 1.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: var(--bg-surface);
    border-radius: 6px;
    box-shadow: var(--shadow-outer);
    border: 1px solid rgba(138, 43, 226, 0.4);
    transition: all 0.3s;
}
.nav-btn:hover {
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.6), inset -1px -1px 3px rgba(255,255,255,0.05), 0 0 20px var(--neon-violet-glow);
    color: var(--neon-violet);
    border-color: var(--neon-violet);
}

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 0 5%; text-align: center; }
.badge { display: inline-block; padding: 0.5rem 1.2rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: #d1a3ff; margin-bottom: 2rem; background: var(--bg-surface); box-shadow: var(--shadow-outer); border: 1px solid rgba(138,43,226,0.3); }
.hero-title { font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 900; line-height: 1.1; letter-spacing: -1px; margin-bottom: 1.5rem; color: #ffffff; text-shadow: 6px 6px 15px rgba(0,0,0,0.9); }
.text-violet { color: #e6ccff; text-shadow: 0 0 15px rgba(138,43,226,0.5), 0 0 30px rgba(138,43,226,0.3), 3px 3px 6px rgba(0,0,0,0.9); }
.subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 3rem; font-weight: 400; }

/* Main Button */
.btn-primary {
    background: var(--bg-surface);
    color: #fff;
    padding: 1.2rem 3rem;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 8px;
    border: 1px solid rgba(138, 43, 226, 0.5);
    box-shadow: var(--shadow-outer);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-outer), 0 15px 30px rgba(138, 43, 226, 0.3);
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Common Section Layout */
.workflow-section, .mission-section, .secure-drop-section, .about-section, .articles-section, .contact-section {
    padding: 6rem 6%;
}
.section-header { margin-bottom: 4rem; text-align: center; }
.section-header h2 { font-size: 2.2rem; font-weight: 700; letter-spacing: 3px; color: var(--text-primary); text-shadow: 3px 3px 6px rgba(0,0,0,0.6); }
.section-desc { color: var(--text-secondary); margin-top: 1rem; font-size: 1.1rem; }
.separator { width: 80px; height: 4px; background: var(--neon-violet); margin: 1.5rem auto 0; border-radius: 2px; box-shadow: 0 0 15px var(--neon-violet-glow); }

/* About Section */
.about-container {
    max-width: 900px; margin: 0 auto; padding: 4rem; text-align: center;
    border-left: 4px solid var(--neon-violet);
}
.about-container h2 { margin-bottom: 2rem; color: #fff; font-size: 2rem; }
.about-container p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.9; }

/* Articles & Investigations Section */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.column-title { font-size: 1.5rem; color: #d1a3ff; margin-bottom: 2rem; border-bottom: 1px solid rgba(138,43,226,0.2); padding-bottom: 1rem; }
.article-card { padding: 2.5rem; margin-bottom: 2rem; }
.article-date { font-family: 'JetBrains Mono'; font-size: 0.8rem; color: var(--neon-violet); margin-bottom: 1rem; display: block; }
.article-badge { display: inline-block; background: rgba(138,43,226,0.1); color: var(--neon-violet); border: 1px solid var(--neon-violet); padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.7rem; font-weight: 800; margin-bottom: 1rem; }
.article-card h4 { font-size: 1.4rem; color: #fff; margin-bottom: 1rem; }
.article-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; }
.read-more { color: #fff; text-decoration: none; font-weight: 700; font-family: 'JetBrains Mono'; transition: color 0.3s; }
.read-more:hover { color: var(--neon-violet); text-shadow: 0 0 10px rgba(138,43,226,0.5); }
.investigation-card { border-left: 3px solid var(--neon-violet); }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } }

/* WORKFLOW SECTION */
.workflow-container { display: flex; flex-direction: column; gap: 3rem; position: relative; max-width: 800px; margin: 0 auto; }
.workflow-line { position: absolute; top: 0; bottom: 0; left: 40px; width: 3px; background: rgba(138,43,226,0.2); z-index: -1; }
.workflow-line::after { content: ''; position: absolute; top: 0; left: -1px; width: 5px; height: 60px; background: var(--neon-violet); box-shadow: 0 0 15px var(--neon-violet); border-radius: 3px; animation: flow-down 3s infinite linear; }
@keyframes flow-down { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.workflow-step { display: flex; align-items: stretch; gap: 2rem; perspective: 1000px; }
.step-number { flex-shrink: 0; width: 80px; height: 80px; background: var(--bg-surface); box-shadow: var(--shadow-outer); border: 1px solid rgba(138,43,226,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; color: #fff; text-shadow: 0 0 15px rgba(138,43,226,0.8); z-index: 1; }
.step-card { flex-grow: 1; padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; filter: drop-shadow(0 0 10px rgba(138,43,226,0.4)); }
.step-card h3 { font-size: 1.4rem; color: #fff; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-secondary); font-size: 1rem; }
.step-card strong { color: #d1a3ff; }

/* SOS SECTION (RED NEON) */
.sos-section { padding: 8rem 5%; display: flex; justify-content: center; }
.sos-container { background: #120303; border: 2px solid #ff003c; padding: 5rem 4rem; text-align: center; max-width: 900px; box-shadow: var(--shadow-outer), 0 0 40px rgba(255,0,60,0.2), inset 0 0 30px rgba(255,0,60,0.1); position: relative; overflow: hidden; }
.sos-glitch-bg { position: absolute; top:0; left:0; width:100%; height:100%; background: repeating-linear-gradient(0deg, rgba(255,0,60,0.05) 0px, rgba(255,0,60,0.05) 1px, transparent 1px, transparent 2px); z-index: 0; pointer-events: none; }
.sos-title { color: #ff003c; font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; letter-spacing: 2px; text-shadow: 0 0 20px #ff003c, 0 0 40px #ff003c; margin-bottom: 1rem; position: relative; z-index: 1; }
.sos-separator { width: 100px; height: 5px; background: #ff003c; margin: 0 auto 2rem; box-shadow: 0 0 20px #ff003c; position: relative; z-index: 1; }
.sos-desc { color: #ffcccc; font-size: 1.2rem; margin-bottom: 3rem; position: relative; z-index: 1; max-width: 700px; margin-left: auto; margin-right: auto; }
.btn-sos { background: #ff003c; color: #fff; font-family: 'JetBrains Mono', monospace; font-weight: 900; font-size: 1.3rem; padding: 1.5rem 3rem; border: none; border-radius: 8px; cursor: pointer; box-shadow: 0 10px 30px rgba(255,0,60,0.5), inset 0 2px 10px rgba(255,255,255,0.5); position: relative; z-index: 1; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); animation: pulse-sos 2s infinite; }
.btn-sos:hover { transform: scale(1.05); background: #fff; color: #ff003c; box-shadow: 0 15px 50px rgba(255,0,60,0.8), 0 0 80px rgba(255,0,60,1); }
@keyframes pulse-sos { 0%, 100% { box-shadow: 0 0 20px rgba(255,0,60,0.5); } 50% { box-shadow: 0 0 50px rgba(255,0,60,0.8); } }

/* Secure Drop Terminal */
.terminal-container { width: 100%; max-width: 900px; margin: 0 auto; overflow: hidden; }
.terminal-header { background: #08080a; padding: 1.2rem 1.5rem; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.03); }
.terminal-dots { display: flex; gap: 8px; margin-right: 20px; }
.terminal-dots span { width: 12px; height: 12px; border-radius: 50%; box-shadow: var(--shadow-inner); }
.terminal-dots span:nth-child(1) { background: #ff4757; } .terminal-dots span:nth-child(2) { background: #ffa502; } .terminal-dots span:nth-child(3) { background: #2ed573; }
.terminal-title { color: #667; font-size: 0.9rem; letter-spacing: 1px; }
.terminal-body { padding: 4rem; }
.drop-info h3 { margin-bottom: 0.5rem; color: #fff; font-size: 1.5rem; }
.drop-info p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 3rem; }
.form-group { position: relative; margin-bottom: 2rem; }
.cyber-input { width: 100%; background: var(--bg-base); border: none; box-shadow: var(--shadow-inner); color: var(--text-primary); padding: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 1rem; border-radius: 8px; transition: box-shadow 0.3s; }
.cyber-input:focus { outline: none; box-shadow: var(--shadow-inner), 0 0 0 2px rgba(138,43,226,0.6); }
.cyber-file-upload { display: block; padding: 4rem; text-align: center; cursor: pointer; transition: all 0.3s; }
.cyber-file-upload:hover { box-shadow: var(--shadow-inner), 0 0 0 2px rgba(138,43,226,0.4); }
.cyber-file-upload input { display: none; }
.upload-icon { display: block; font-size: 3rem; color: var(--neon-violet); margin-bottom: 1rem; filter: drop-shadow(0 0 10px rgba(138,43,226,0.5)); }
.upload-text { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; color: #fff; }
.upload-sub { color: #666; font-size: 0.9rem; }
.file-list { margin-top: 1rem; font-family: 'JetBrains Mono'; font-size: 0.9rem; color: #2ed573; }
.submit-btn { width: 100%; padding: 1.5rem; justify-content: center; font-size: 1.1rem; }
.encryption-status { margin-top: 2rem; padding: 3rem; }
.loader-text { color: #2ed573; font-size: 1rem; text-shadow: 0 0 8px rgba(46,213,115,0.4); }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
.contact-card { padding: 3rem 2rem; text-align: center; }
.contact-icon { font-size: 3rem; margin-bottom: 1.5rem; filter: drop-shadow(0 0 10px rgba(138,43,226,0.3)); }
.contact-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 1rem; }
.contact-card p { color: var(--neon-violet); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.pgp-key { font-size: 0.85rem !important; word-break: break-all; color: #d1a3ff !important; }
.contact-sub { display: block; color: #666; font-size: 0.85rem; }

/* Article Meta (Date & Views) */
.article-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }
.article-date { color: var(--neon-violet); font-weight: bold; }
.article-views { color: #d1a3ff; background: rgba(138,43,226,0.1); padding: 0.3rem 0.8rem; border-radius: 4px; box-shadow: var(--shadow-inner); }

/* Subscribe Section */
.subscribe-section { padding: 4rem 6%; display: flex; justify-content: center; margin-top: 2rem; }
.subscribe-container { max-width: 800px; padding: 4rem; text-align: center; border-top: 3px solid var(--neon-violet); background: linear-gradient(to bottom, rgba(138,43,226,0.05), transparent); }
.subscribe-icon { font-size: 3.5rem; margin-bottom: 1rem; filter: drop-shadow(0 0 15px rgba(138,43,226,0.6)); }
.subscribe-container h2 { font-size: 2rem; color: #fff; text-shadow: 0 0 10px rgba(138,43,226,0.3); }
.subscribe-container p { color: var(--text-secondary); margin-bottom: 2.5rem; font-size: 1.05rem; line-height: 1.8; }
.subscribe-form { display: flex; gap: 1rem; align-items: stretch; }
.subscribe-form .cyber-input { flex-grow: 1; margin-bottom: 0; }
@media (max-width: 650px) { .subscribe-form { flex-direction: column; } }

/* Footer */
footer { padding: 4rem 6%; background: #050508; border-top: 1px solid #111; text-align: center; }
.footer-logo { height: 45px; filter: invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.2)); opacity: 0.3; transition: opacity 0.3s; margin-bottom: 1rem; }
.footer-logo:hover { opacity: 0.8; }
footer p { color: #555; font-size: 0.9rem; }

/* Animations */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.1, 1, 0.1, 1); }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.reveal-down { opacity: 0; transform: translateY(-30px); transition: all 1s cubic-bezier(0.1, 1, 0.1, 1); }
.reveal-down.active { opacity: 1; transform: translateY(0); }
