/* Palette: Lab White, Deep Navy, Electric Cyan */
:root {
    --bg: #F0F4F8;
    --navy: #0B1E3B;
    --cyan: #00F0FF;
    --grey: #AABBCB;
    --white: #FFFFFF;
    
    --font-head: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--navy);
    font-family: var(--font-head);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Grid */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--grey) 1px, transparent 1px),
    linear-gradient(90deg, var(--grey) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Header */
.lab-header { padding: 20px 0; background: rgba(240, 244, 248, 0.9); backdrop-filter: blur(5px); border-bottom: 1px solid rgba(11, 30, 59, 0.1); position: sticky; top: 0; z-index: 1000; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.8rem; font-weight: 700; color: var(--navy); letter-spacing: 2px; }
.cyan { color: #00B3CC; } /* Darker cyan for light bg readability */

.status-indicator { font-family: var(--font-mono); font-size: 0.8rem; color: #00B3CC; border: 1px solid #00B3CC; padding: 2px 8px; animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.tech-nav a { margin-left: 20px; font-weight: 600; font-family: var(--font-mono); font-size: 1rem; color: var(--navy); }
.tech-nav a:hover, .tech-nav a.active { color: #00B3CC; }

.mobile-trigger { display: none; background: none; border: none; font-family: var(--font-mono); font-size: 1.2rem; cursor: pointer; color: var(--navy); }

/* Mobile Interface */
.mobile-interface { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--navy); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; transform: translateX(100%); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.mobile-interface.active { transform: translateX(0); }
.close-interface { position: absolute; top: 20px; right: 20px; background: none; border: 1px solid var(--cyan); color: var(--cyan); padding: 10px; font-family: var(--font-mono); cursor: pointer; }
.mobile-interface a { font-family: var(--font-mono); font-size: 2rem; color: var(--white); margin: 15px 0; }
.mobile-interface a:hover { color: var(--cyan); }

@media (max-width: 900px) {
    .tech-nav, .status-indicator { display: none; }
    .mobile-trigger { display: block; }
}

/* Hero */
.hero-lab { height: 85vh; display: flex; align-items: center; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: center; }

.code-tag { font-family: var(--font-mono); color: var(--navy); background: rgba(0, 240, 255, 0.2); padding: 5px; display: inline-block; margin-bottom: 20px; font-size: 0.9rem; }
.hero-data h1 { font-size: 4.5rem; line-height: 0.95; margin-bottom: 30px; letter-spacing: -1px; text-transform: uppercase; }
.hero-data p { font-size: 1.2rem; margin-bottom: 40px; max-width: 500px; border-left: 4px solid var(--cyan); padding-left: 20px; }

.lab-actions { display: flex; gap: 20px; }
.btn-cyan { background: var(--cyan); color: var(--navy); padding: 15px 30px; font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; border: none; cursor: pointer; transition: 0.3s; box-shadow: 5px 5px 0 rgba(11, 30, 59, 0.2); }
.btn-cyan:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(11, 30, 59, 0.3); }
.btn-border { border: 2px solid var(--navy); color: var(--navy); padding: 13px 30px; font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; }
.btn-border:hover { background: var(--navy); color: var(--white); }

/* Visual Atom */
.spinning-atom { width: 300px; height: 300px; border: 2px solid var(--navy); border-radius: 50%; position: relative; animation: spin 10s linear infinite; margin: 0 auto; }
.spinning-atom::before, .spinning-atom::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 2px solid var(--navy); border-radius: 50%; }
.spinning-atom::before { transform: rotate(60deg); }
.spinning-atom::after { transform: rotate(120deg); }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Radar / Tech */
.section-head { display: flex; align-items: center; gap: 20px; margin-bottom: 60px; }
.section-head h2 { font-size: 2.5rem; white-space: nowrap; margin: 0; }
.scan-line { width: 100%; height: 2px; background: var(--navy); position: relative; }
.scan-line::after { content: ''; position: absolute; right: 0; top: -4px; width: 10px; height: 10px; background: var(--cyan); }
.scan-line.left { width: 100px; margin: 20px 0 40px; }

.tech-grid, .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tech-card { background: var(--white); border: 1px solid var(--grey); padding: 30px; transition: 0.3s; position: relative; overflow: hidden; }
.tech-card:hover { border-color: var(--cyan); box-shadow: 0 0 20px rgba(0, 240, 255, 0.2); }
.tech-icon { font-family: var(--font-mono); font-size: 2rem; color: var(--cyan); font-weight: 700; margin-bottom: 20px; border: 2px solid var(--navy); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.tech-card a { font-family: var(--font-mono); font-size: 0.9rem; margin-top: 20px; display: inline-block; font-weight: 700; }

/* Ticker */
.data-ticker { background: var(--navy); color: var(--cyan); padding: 10px 0; overflow: hidden; font-family: var(--font-mono); border-top: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); margin: 50px 0; }
.ticker-content { white-space: nowrap; animation: ticker 20s linear infinite; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* About */
.lab-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.lab-text h1 { font-size: 3rem; line-height: 1; }
.stats-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.matrix-cell { background: var(--white); border: 1px solid var(--navy); padding: 20px; text-align: center; }
.matrix-cell strong { font-size: 2.5rem; color: var(--cyan); -webkit-text-stroke: 1px var(--navy); }
.lab-graphic img { filter: grayscale(100%) contrast(1.2); border: 5px solid var(--white); box-shadow: 10px 10px 0 var(--navy); }

/* Testimonials */
.data-card { background: var(--white); padding: 30px; border: 1px dashed var(--navy); }
.data-card.active { border-style: solid; border-color: var(--cyan); background: #F0FDFF; }
.card-header { font-family: var(--font-mono); border-bottom: 1px solid var(--grey); padding-bottom: 10px; margin-bottom: 15px; font-weight: 700; }
.role { font-family: var(--font-mono); font-size: 0.8rem; color: #666; margin-top: 15px; display: block; }

/* Contact Terminal */
.terminal-container { background: var(--navy); color: var(--bg); border-radius: 8px; overflow: hidden; max-width: 800px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.terminal-header { background: #08162b; padding: 10px 20px; font-family: var(--font-mono); font-size: 0.8rem; display: flex; align-items: center; gap: 8px; color: #888; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #FF5F56; } .yellow { background: #FFBD2E; } .green { background: #27C93F; }
.terminal-body { padding: 40px; font-family: var(--font-mono); }
.contact-info { margin-bottom: 30px; color: var(--cyan); }

.tech-form .input-group { margin-bottom: 20px; }
.tech-form label { display: block; margin-bottom: 5px; color: #888; font-size: 0.8rem; }
.tech-form input, .tech-form select, .tech-form textarea { width: 100%; background: rgba(255,255,255,0.1); border: 1px solid #333; color: var(--white); padding: 10px; font-family: var(--font-mono); }
.tech-form input:focus { border-color: var(--cyan); outline: none; }
.full { width: 100%; margin-top: 10px; }

/* Legal */
.protocol-doc { max-width: 800px; margin: 0 auto; background: var(--white); padding: 60px; border: 1px solid var(--navy); }

/* Footer */
.lab-footer { background: var(--navy); color: var(--white); padding: 60px 0 20px; margin-top: 100px; font-family: var(--font-mono); }
.footer-row { display: flex; justify-content: space-between; margin-bottom: 40px; }
.f-node h4 { color: var(--cyan); margin-bottom: 5px; }
.f-links a { color: #888; margin-left: 20px; }
.f-links a:hover { color: var(--cyan); }
.copyright { text-align: center; font-size: 0.8rem; border-top: 1px solid #333; padding-top: 20px; color: #666; }

@media (max-width: 900px) {
    .hero-grid, .tech-grid, .lab-layout, .grid-3 { grid-template-columns: 1fr; }
    .hero-data h1 { font-size: 3rem; }
    .footer-row { flex-direction: column; gap: 20px; text-align: center; }
}