/* Palette: Dark Void, Neon Purple, Neon Green, Cyan */
:root {
    --bg: #050505;
    --panel-bg: #0D0D0D;
    --purple: #BF00FF;
    --green: #00FF99;
    --cyan: #00F3FF;
    --text: #E0E0E0;
    
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Circuit Background */
.circuit-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(191, 0, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(191, 0, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Header */
.hub-header { padding: 20px 0; border-bottom: 1px solid var(--purple); background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(5px); position: sticky; top: 0; z-index: 1000; box-shadow: 0 0 15px rgba(191, 0, 255, 0.2); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); letter-spacing: 2px; text-shadow: 0 0 5px var(--purple); }
.neon-purple { color: var(--purple); }

.tech-nav a { margin-left: 20px; font-family: var(--font-head); font-size: 0.9rem; color: #888; letter-spacing: 1px; }
.tech-nav a:hover, .tech-nav a.active { color: var(--green); text-shadow: 0 0 8px var(--green); }

.status-indicator { font-family: monospace; font-size: 0.8rem; color: var(--green); border: 1px solid var(--green); padding: 2px 8px; margin-left: 20px; }
.green-dot { display: inline-block; width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 5px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

.mobile-btn { display: none; background: transparent; border: 1px solid var(--purple); color: var(--purple); padding: 5px 10px; font-family: monospace; cursor: pointer; }

/* Mobile Terminal */
.mobile-terminal { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: var(--bg); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-left: 2px solid var(--green); }
.mobile-terminal.active { right: 0; }
.close-terminal { position: absolute; top: 20px; right: 20px; background: none; border: 1px solid var(--text); color: var(--text); padding: 5px 10px; font-family: monospace; cursor: pointer; }
.mobile-terminal a { font-family: var(--font-head); font-size: 2rem; margin: 15px 0; color: var(--text); }
.mobile-terminal a:hover { color: var(--green); }

@media (max-width: 900px) {
    .tech-nav, .status-indicator { display: none; }
    .mobile-btn { display: block; }
}

/* Hero */
.hero-fusion { height: 85vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: center; }

.glitch-text { font-family: var(--font-head); color: var(--cyan); font-size: 1.2rem; letter-spacing: 3px; position: relative; display: inline-block; margin-bottom: 20px; }
.hero-text h1 { font-family: var(--font-head); font-size: 4rem; line-height: 1.1; margin-bottom: 30px; text-transform: uppercase; }
.neon-green { color: var(--green); text-shadow: 0 0 10px var(--green); }
.hero-text p { font-size: 1.2rem; color: #AAA; margin-bottom: 40px; border-left: 3px solid var(--purple); padding-left: 20px; }

.btn-circuit { background: transparent; color: var(--green); border: 2px solid var(--green); padding: 15px 40px; font-family: var(--font-head); font-weight: 700; cursor: pointer; transition: 0.3s; display: inline-block; box-shadow: 0 0 10px rgba(0, 255, 153, 0.2); text-transform: uppercase; }
.btn-circuit:hover { background: var(--green); color: var(--bg); box-shadow: 0 0 20px var(--green); }
.btn-hollow { border: 1px solid #555; color: #AAA; padding: 15px 30px; font-family: var(--font-head); margin-left: 15px; }
.btn-hollow:hover { border-color: var(--purple); color: var(--purple); }

.ai-brain { width: 300px; height: 300px; background: radial-gradient(circle, var(--purple), transparent); filter: blur(40px); animation: brainPulse 5s infinite alternate; margin: 0 auto; }
@keyframes brainPulse { 0% { opacity: 0.5; transform: scale(0.8); } 100% { opacity: 0.8; transform: scale(1.1); } }

/* Matrix Grid */
.section-head { margin-bottom: 60px; display: flex; align-items: center; gap: 20px; }
.section-head h2 { font-family: var(--font-head); font-size: 2.5rem; color: var(--text); }
.scan-line { height: 2px; background: var(--cyan); flex: 1; position: relative; box-shadow: 0 0 5px var(--cyan); }
.scan-line.left { width: 100px; flex: none; margin: 20px 0 40px; }

.matrix-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-box { background: var(--panel-bg); border: 1px solid #222; padding: 30px; transition: 0.3s; position: relative; overflow: hidden; }
.tech-box:hover { border-color: var(--purple); box-shadow: 0 0 15px rgba(191, 0, 255, 0.3); }
.tech-box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--purple); transform: translateX(-100%); transition: 0.3s; }
.tech-box:hover::before { transform: translateX(0); }
.icon { font-size: 2.5rem; margin-bottom: 20px; }
.tech-box h3 { font-family: var(--font-head); color: var(--cyan); margin-bottom: 10px; font-size: 1.1rem; }

/* Data Stream */
.data-stream { background: var(--panel-bg); color: var(--green); font-family: monospace; padding: 10px 0; overflow: hidden; border-top: 1px solid #333; border-bottom: 1px solid #333; margin-top: 50px; }
.stream-content { white-space: nowrap; animation: stream 20s linear infinite; }
@keyframes stream { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* About */
.about-interface { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.interface-text h1 { font-family: var(--font-head); font-size: 3rem; line-height: 1.1; }
.binary-list { list-style: none; margin-top: 30px; font-family: monospace; color: var(--purple); font-size: 1.2rem; }
.hologram-circle { width: 250px; height: 250px; border: 2px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 20px var(--cyan); position: relative; margin: 0 auto; }
.hologram-circle::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 200px; height: 200px; border: 1px dashed var(--purple); border-radius: 50%; animation: spin 10s linear infinite; }
@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* Solutions */
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.module-card { background: var(--panel-bg); border: 1px solid #333; }
.module-card.highlight { border-color: var(--green); box-shadow: 0 0 10px rgba(0, 255, 153, 0.1); }
.mod-header { background: #1a1a1a; padding: 15px; font-family: var(--font-head); color: var(--text); font-size: 0.9rem; border-bottom: 1px solid #333; }
.mod-body { padding: 30px; }
.mod-body ul { list-style: none; margin-top: 20px; font-family: monospace; color: #888; }

/* Contact Console */
.contact-console { max-width: 800px; margin: 0 auto; background: #080808; border: 1px solid var(--purple); font-family: monospace; box-shadow: 0 0 30px rgba(191, 0, 255, 0.1); }
.console-header { background: var(--purple); color: var(--bg); padding: 10px; font-weight: 700; }
.blinking-cursor { animation: blink 1s infinite; }
.console-body { padding: 40px; color: var(--cyan); }
.contact-info { margin-bottom: 30px; border-bottom: 1px dashed #333; padding-bottom: 20px; }

.neon-form .input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.neon-form input, .neon-form select, .neon-form textarea { width: 100%; background: #111; border: 1px solid #333; color: var(--text); padding: 15px; font-family: monospace; margin-bottom: 20px; }
.neon-form input:focus, .neon-form select:focus, .neon-form textarea:focus { border-color: var(--green); outline: none; color: var(--green); }
.full { width: 100%; margin-top: 10px; }

/* Legal */
.legal-terminal { max-width: 800px; margin: 0 auto; font-family: monospace; color: #AAA; }
.legal-terminal h1 { font-family: var(--font-head); color: var(--text); }

/* Footer */
.hub-footer { border-top: 1px solid #222; padding: 60px 0 20px; margin-top: 100px; font-family: monospace; }
.footer-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.f-node h4 { color: var(--purple); margin-bottom: 5px; }
.f-links a { margin-left: 20px; color: #666; transition: 0.3s; }
.f-links a:hover { color: var(--cyan); }
.copyright { text-align: center; font-size: 0.7rem; color: #444; }

@media (max-width: 900px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { border-left: none; padding-left: 0; }
    .matrix-grid, .about-interface, .modules-grid, .neon-form .input-row { grid-template-columns: 1fr; }
    .footer-row { flex-direction: column; gap: 20px; text-align: center; }
}