:root {
    --bg-color: #0d0e12;
    --bg-darker: #07080a;
    --bg-surface: #171923;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --deep-cyan: #0fa4b5;
    --classic-gold: #d4af37;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--deep-cyan) var(--bg-color);
}

/* Background Elements */
.bg-circuit {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url('assets/high_tech_circuit_bg.png');
    background-size: 180%;
    background-position: center;
    opacity: 0.08;
    z-index: -2;
    filter: blur(2px) grayscale(80%) brightness(0.7);
}

.overlay-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(15, 164, 181, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 164, 181, 0.03) 1px, transparent 1px);
    background-size: 150px 150px;
    z-index: -1;
    pointer-events: none;
}

/* Typography Utility */
.highlight-cyan { color: var(--deep-cyan); text-shadow: 0 0 10px rgba(15, 164, 181, 0.5); }
.highlight-gold { color: var(--classic-gold); text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
.text-glow-gold {
    color: var(--classic-gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    font-weight: 700;
}

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 4rem; position: fixed; width: 100%; top: 0; z-index: 100;
    background: rgba(13, 14, 18, 0.8); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.logo { display: flex; align-items: center; gap: 0.75rem; }

.logo-mark {
    width: 24px; height: 24px;
    background: linear-gradient(135deg, var(--deep-cyan), var(--classic-gold));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 0 15px rgba(15, 164, 181, 0.5);
}

.logo-text { display: flex; flex-direction: column; }
.logo-text h1 {
    font-family: var(--font-heading); font-size: 1.5rem;
    font-weight: 700; letter-spacing: 2px; line-height: 1.1;
}

.logo-sub {
    font-family: var(--font-mono); font-size: 0.8rem;
    color: var(--text-secondary); letter-spacing: 0.5px; margin-top: 3px;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-family: var(--font-mono); font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--deep-cyan); }

/* Hero Section */
.hero-section {
    min-height: 100vh; padding: 8rem 4rem 4rem;
    display: flex; align-items: center; position: relative;
    border-bottom: 1px solid var(--border-color);
}
.hero-content { max-width: 800px; z-index: 10; }

.system-status {
    font-family: var(--font-mono); font-size: 0.8rem;
    color: var(--text-secondary); display: flex; align-items: center;
    gap: 0.5rem; margin-bottom: 2rem; letter-spacing: 1px;
}
.status-indicator {
    width: 8px; height: 8px; background-color: var(--deep-cyan);
    border-radius: 50%; box-shadow: 0 0 10px var(--deep-cyan);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
    100% { opacity: 1; transform: scale(1); }
}

.headline {
    font-family: var(--font-heading); font-size: 4.5rem; font-weight: 700;
    line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px;
}
.subheadline {
    font-size: 1.25rem; color: var(--text-secondary);
    margin-bottom: 4rem; max-width: 600px;
}

.data-stream {
    display: flex; gap: 3rem; border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}
.data-col { display: flex; flex-direction: column; gap: 0.5rem; }

.data-label {
    font-family: var(--font-heading); font-size: 0.8rem;
    color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px;
}
.data-value {
    font-family: var(--font-heading); font-size: 1.5rem;
    font-weight: 700; color: var(--text-primary);
}

/* Segments Section */
.segments-section { padding: 6rem 4rem; background-color: var(--bg-darker); }
.section-header { margin-bottom: 4rem; display: flex; align-items: center; gap: 2rem; }
.section-header h3 {
    font-family: var(--font-heading); font-size: 2rem; color: var(--text-primary);
    text-transform: uppercase; letter-spacing: 2px;
}
.header-line {
    flex-grow: 1; height: 1px;
    background: linear-gradient(90deg, var(--deep-cyan), transparent);
}

.segment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.segment-card {
    position: relative; background: rgba(23, 25, 35, 0.4);
    border: 1px solid var(--border-color); border-radius: 4px; padding: 3rem;
    overflow: hidden; transition: all 0.4s ease; min-height: 350px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.segment-card:hover { filter: brightness(1.2); border-color: var(--deep-cyan); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(15, 164, 181, 0.1); }

.card-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0.15;
    transition: opacity 0.4s ease, transform 0.4s ease; z-index: 0; filter: grayscale(80%);
}
.segment-card:hover .card-bg { opacity: 0.3; transform: scale(1.05); filter: grayscale(0%); }

.segment-card.ai-segment:hover { border-color: var(--classic-gold); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1); }

.card-content { position: relative; z-index: 10; }
.card-icon {
    font-family: var(--font-mono); font-size: 1.25rem; color: var(--deep-cyan);
    margin-bottom: 1.5rem; display: inline-block; padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--deep-cyan);
}
.segment-card:nth-child(even) .card-icon { color: var(--classic-gold); border-bottom-color: var(--classic-gold); }

.segment-card h4 {
    font-family: var(--font-heading); font-size: 1.75rem;
    margin-bottom: 1rem; letter-spacing: -0.5px;
}
.segment-card p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1rem; }

.tech-tags { display: flex; gap: 1rem; flex-wrap: wrap; }
.tech-tags span {
    font-family: var(--font-mono); font-size: 0.7rem; padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; letter-spacing: 1px;
}
.segment-card:hover .tech-tags span { border-color: rgba(15, 164, 181, 0.3); color: var(--deep-cyan); }
.segment-card:nth-child(even):hover .tech-tags span { border-color: rgba(212, 175, 55, 0.3); color: var(--classic-gold); }

/* CTA Section Redesign */
.cta-section {
    padding: 8rem 4rem; position: relative;
    background: radial-gradient(circle at right, rgba(15, 164, 181, 0.05) 0%, transparent 50%);
}

.cta-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    max-width: 1200px; margin: 0 auto; align-items: center;
}

.hq-info-box {
    text-align: left; padding-right: 2rem; border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.hq-label {
    font-family: var(--font-mono); color: var(--deep-cyan);
    font-size: 0.9rem; letter-spacing: 3px; margin-bottom: 1rem;
}
.hq-city {
    font-family: var(--font-heading); font-size: 3.5rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 1.5rem; line-height: 1;
}
.hq-address {
    font-family: var(--font-body); font-size: 1.15rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 2rem;
}
.hq-coords {
    font-family: var(--font-mono); color: var(--classic-gold);
    font-size: 0.85rem; letter-spacing: 1px;
}

.cta-container { text-align: left; width: 100%; max-width: 600px; }

.cta-container h2 {
    font-family: var(--font-heading); font-size: 3rem; margin-bottom: 1rem;
    text-transform: uppercase; letter-spacing: 2px;
}
.cta-container p { color: var(--text-secondary); margin-bottom: 3rem; font-size: 1.25rem; }

.terminal-box {
    background: #0a0b10; border: 1px solid rgba(15, 164, 181, 0.3); border-radius: 6px;
    text-align: left; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.terminal-header {
    background: #171923; padding: 0.5rem 1rem; display: flex; align-items: center;
    gap: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.terminal-header span.btn-close, .terminal-header span.btn-min, .terminal-header span.btn-max {
    width: 12px; height: 12px; border-radius: 50%;
}
.btn-close { background: #ef4444; } .btn-min { background: #eab308; } .btn-max { background: #22c55e; }
.terminal-title { margin-left: auto; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); }

.terminal-body { padding: 2rem; font-family: var(--font-mono); color: #4ade80; font-size: 0.95rem; line-height: 1.8; }
.terminal-body p { margin-bottom: 0.5rem; color: inherit; font-size: inherit; }

.terminal-link { color: var(--deep-cyan); text-decoration: none; border-bottom: 1px solid transparent; transition: all 0.2s ease; }
.terminal-link:hover { border-bottom-color: var(--deep-cyan); text-shadow: 0 0 8px var(--deep-cyan); }
.cursor { display: inline-block; width: 10px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Footer */
footer {
    border-top: 1px solid var(--border-color); padding: 2rem 4rem; display: flex;
    justify-content: space-between; align-items: center; background: var(--bg-color);
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary);
}
.footer-logo { color: var(--text-primary); font-weight: 700; letter-spacing: 2px; }

/* Language Menu */
.lang-menu { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 1px; }
.lang-menu a { color: var(--text-secondary); text-decoration: none; transition: all 0.3s ease; }
.lang-menu a:hover, .lang-menu a.active { color: var(--deep-cyan); font-weight: 700; text-shadow: 0 0 8px rgba(15, 164, 181, 0.5); }
.lang-menu .divider { color: rgba(255, 255, 255, 0.1); }

.email-glow {
    font-size: 1.1rem; font-weight: 700; color: var(--deep-cyan);
    text-shadow: 0 0 12px rgba(15, 164, 181, 0.8); display: inline-block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .headline { font-size: 3.5rem; }
    .hero-section { padding-top: 6rem; }
}
@media (max-width: 768px) {
    .headline { font-size: 2.5rem; }
    .segment-grid { grid-template-columns: 1fr; }
    .cta-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hq-info-box { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-right: 0; padding-bottom: 3rem; }
    .hero-section, .segments-section, .cta-section, footer, .navbar { padding-left: 2rem; padding-right: 2rem; }
    .data-stream { flex-wrap: wrap; }
}
