/* --- Variables --- */
:root {
    --bg-dark: #121212;
    --bg-panel: #1e1e1e;
    --color-blue: #00d2ff;
    --color-blue-dim: #007a94;
    --color-white: #e0e0e0;
    --color-grey: #888888;
    
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --border-glow: 0 0 5px var(--color-blue);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--color-white);
    font-family: var(--font-body);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Header --- */
.tech-header {
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 2px solid var(--color-blue);
    padding: 15px 0;
    position: sticky; top: 0; z-index: 1000;
}

.container { width: 90%; max-width: 1400px; margin: 0 auto; }
.header-grid { display: flex; justify-content: space-between; align-items: center; }

.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 40px; height: 40px; background: var(--color-blue); color: #000; font-weight: bold; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 1.5rem; clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%); }
.logo-text { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; letter-spacing: 2px; }
.blue-text { color: var(--color-blue); }

.system-status { font-family: var(--font-head); font-size: 0.9rem; color: var(--color-grey); display: flex; align-items: center; gap: 5px; }
.status-dot { width: 8px; height: 8px; background: #0f0; border-radius: 50%; display: block; box-shadow: 0 0 5px #0f0; }

.tech-nav { display: flex; gap: 20px; align-items: center; }
.tech-nav a { font-family: var(--font-head); font-weight: 600; color: var(--color-grey); font-size: 1.1rem; }
.tech-nav a:hover, .tech-nav a.active { color: var(--color-blue); text-shadow: var(--border-glow); }

.btn-tech { border: 1px solid var(--color-blue); color: var(--color-blue) !important; padding: 5px 15px; font-family: var(--font-head); transition: 0.3s; }
.btn-tech:hover { background: var(--color-blue); color: #000 !important; box-shadow: var(--border-glow); }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--color-blue); font-size: 1.5rem; cursor: pointer; }

/* --- Mobile Menu --- */
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-dark); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; transform: translateX(100%); transition: 0.3s; border-left: 2px solid var(--color-blue); }
.mobile-overlay.active { transform: translateX(0); }
.close-btn { position: absolute; top: 20px; right: 20px; background: none; border: 1px solid var(--color-blue); color: var(--color-blue); padding: 5px 15px; cursor: pointer; font-family: var(--font-head); }
.mobile-overlay a { font-family: var(--font-head); font-size: 2rem; color: var(--color-white); margin: 10px 0; text-transform: uppercase; }

/* --- Hero --- */
.hero-interface { position: relative; height: 85vh; display: flex; align-items: center; border-bottom: 1px solid var(--color-blue); overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: -2; opacity: 0.4; filter: grayscale(50%); }
.grid-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0, 210, 255, 0.05) 1px, rgba(0, 210, 255, 0.05) 2px); z-index: -1; }

.data-box { background: rgba(30, 30, 30, 0.8); padding: 40px; border: 1px solid var(--color-grey); max-width: 700px; backdrop-filter: blur(5px); position: relative; }
.data-box::before { content: ''; position: absolute; top: -1px; left: -1px; width: 20px; height: 20px; border-top: 3px solid var(--color-blue); border-left: 3px solid var(--color-blue); }
.label { font-family: var(--font-head); color: var(--color-blue); letter-spacing: 2px; font-size: 0.9rem; }
.hero-interface h1 { font-family: var(--font-head); font-size: 4.5rem; line-height: 0.9; margin: 15px 0; text-transform: uppercase; }
.outlined { -webkit-text-stroke: 1px var(--color-white); color: transparent; }
.hero-interface p { font-size: 1.1rem; margin-bottom: 30px; color: #ccc; }

.btn-group { display: flex; gap: 20px; }
.btn { padding: 12px 30px; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; text-align: center; border: none; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn-primary { background: var(--color-blue); color: #000; }
.btn-primary:hover { background: #fff; box-shadow: var(--border-glow); }
.btn-secondary { background: transparent; border: 1px solid var(--color-white); color: var(--color-white); }
.btn-secondary:hover { border-color: var(--color-blue); color: var(--color-blue); }

/* --- Grid --- */
.section-padding { padding: 80px 0; }
.section-head { margin-bottom: 50px; display: flex; align-items: center; gap: 20px; }
.section-head h2 { font-family: var(--font-head); font-size: 2.5rem; margin: 0; }
.tech-line { flex: 1; height: 1px; background: var(--color-blue); opacity: 0.5; }

.matrix-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.tech-card { background: var(--bg-panel); border: 1px solid #333; padding: 30px; transition: 0.3s; position: relative; }
.tech-card:hover, .active-card { border-color: var(--color-blue); box-shadow: 0 0 15px rgba(0, 210, 255, 0.1); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px dashed #444; padding-bottom: 10px; }
.code { font-family: var(--font-head); color: var(--color-grey); font-size: 1.5rem; }
.tech-card h3 { font-family: var(--font-head); font-size: 1.5rem; margin: 0; }
.tech-card p { color: #aaa; font-size: 0.95rem; margin-bottom: 20px; }
.scan-link { color: var(--color-blue); font-family: var(--font-head); font-weight: bold; letter-spacing: 1px; }

/* --- Ticker --- */
.data-ticker { background: var(--color-blue); color: #000; padding: 8px 0; overflow: hidden; font-family: var(--font-head); font-weight: bold; letter-spacing: 1px; }
.ticker-content { white-space: nowrap; animation: tick 20s linear infinite; }
@keyframes tick { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* --- About & Split --- */
.page-title { margin-bottom: 50px; border-left: 4px solid var(--color-blue); padding-left: 20px; }
.page-title h1 { font-family: var(--font-head); font-size: 3rem; margin: 0; line-height: 1; }
.page-title p { color: var(--color-grey); margin-top: 5px; font-family: var(--font-head); }

.split-frame { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.text-module h2 { font-family: var(--font-head); color: var(--color-blue); margin-bottom: 20px; font-size: 2rem; }
.spec-list { margin-top: 20px; font-family: var(--font-head); color: #ccc; }
.spec-list li { margin-bottom: 10px; }
.visual-module { position: relative; border: 1px solid var(--color-blue); padding: 5px; }
.visual-module img { width: 100%; filter: grayscale(80%); transition: 0.5s; }
.visual-module:hover img { filter: grayscale(0%); }
.overlay-scan { position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: rgba(0, 210, 255, 0.5); animation: scan 3s linear infinite; }
@keyframes scan { 0% { top: 0; opacity: 0; } 50% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* --- Logs (Testimonials) --- */
.logs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.log-entry { background: #151515; border: 1px solid #333; padding: 25px; font-family: var(--font-head); }
.log-head { display: flex; justify-content: space-between; margin-bottom: 15px; color: var(--color-grey); font-size: 0.8rem; }
.status-ok { color: #0f0; }
.log-entry h3 { color: var(--color-white); margin-bottom: 10px; font-size: 1.3rem; }
.log-entry p { color: #aaa; font-family: var(--font-body); font-style: italic; margin-bottom: 15px; }
.author { color: var(--color-blue); font-weight: bold; }

/* --- Contact --- */
.interface-box { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; border: 1px solid var(--color-blue); padding: 40px; background: rgba(0,0,0,0.3); }
.sidebar-info h3 { font-family: var(--font-head); color: var(--color-blue); margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.sidebar-info ul li { margin-bottom: 15px; font-family: var(--font-head); letter-spacing: 1px; }
.green-text { color: #0f0; }

.cyber-form .form-group { margin-bottom: 20px; }
.cyber-form label { display: block; font-family: var(--font-head); color: var(--color-grey); margin-bottom: 5px; }
.cyber-form input, .cyber-form select, .cyber-form textarea { width: 100%; background: #0a0a0a; border: 1px solid #333; color: var(--color-white); padding: 10px; font-family: var(--font-body); }
.cyber-form input:focus { border-color: var(--color-blue); outline: none; }
.full-width { width: 100%; margin-top: 10px; }

/* --- Legal --- */
.doc-panel { max-width: 800px; margin: 0 auto; background: var(--bg-panel); padding: 50px; border: 1px solid #333; }
.doc-panel h1 { font-family: var(--font-head); color: var(--color-white); }
.doc-panel h3 { color: var(--color-blue); margin-top: 30px; margin-bottom: 10px; font-family: var(--font-head); }

/* --- Footer --- */
.tech-footer { background: #080808; padding: 50px 0; margin-top: auto; border-top: 1px solid #222; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.f-left h4 { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: 2px; }
.f-right a { color: var(--color-grey); margin-left: 20px; font-family: var(--font-head); font-weight: bold; }
.f-right a:hover { color: var(--color-blue); }
.copyright { text-align: center; color: #444; font-size: 0.8rem; font-family: var(--font-head); }

@media (max-width: 992px) {
    .tech-nav, .system-status { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-interface h1 { font-size: 3rem; }
    .split-frame, .interface-box, .logs-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}