/* --- CORE VARIABLES --- */
:root {
    --bg-deep: #000000; /* Pure Black */
    --bg-panel: rgba(10, 25, 47, 0.7); /* Deep Blue-Grey */
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --accent-cyan: #00e5ff; /* Bright Cyan */
    --accent-blue: #2979ff; /* Deep Blue */
    --font-main: 'Inter', sans-serif;
    --nav-height: 80px;
}

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

body {
    font-family: var(--font-main);
    background-color: transparent; /* Changed to transparent */
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative; /* Helps content sit above canvas */
}

/* --- INTERACTIVE BACKGROUND --- */
#circuit-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    /* Subtle radial gradient to give depth behind the circuits */
    background: radial-gradient(circle at 50% 50%, #0a192f 0%, #000000 100%);
}

/* --- HEADER & NAV --- */
header.site-header {
    position: fixed;
    top: 0; width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background-color: #000000; /* Pure Black to blend */
    border-bottom: none; /* Seamless look */
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
}

.brand-logo { 
    display: flex; align-items: center; gap: 12px; text-decoration: none; 
    /* This ensures the black background of the image vanishes */
    mix-blend-mode: lighten; 
}
.brand-logo img { height: 45px; width: auto; }
.brand-logo span { font-weight: 700; font-size: 1.25rem; color: white; letter-spacing: 0.5px; }

.main-menu { display: flex; gap: 40px; list-style: none; align-items: center; }
.main-menu a {
    color: var(--text-primary); text-decoration: none; font-size: 0.95rem; font-weight: 500;
    transition: color 0.3s;
}
.main-menu a:hover { color: var(--accent-cyan); }

.btn-nav {
    border: 1px solid var(--accent-blue);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--accent-blue) !important;
}
.btn-nav:hover { background: var(--accent-blue); color: white !important; }

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
}

.hero-content { max-width: 1000px; padding: 0 20px; animation: fadeIn 1s ease-out; }

.hero-title {
    font-size: 5rem; font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px;
}
.hero-title .white { color: white; }
.hero-title .cyan { color: var(--accent-blue); }
.hero-title .separator { color: var(--text-secondary); font-weight: 300; margin: 0 10px; }

.hero-sub {
    font-size: 1.25rem; color: var(--text-secondary); max-width: 800px; margin: 0 auto 40px;
}

.btn-group { display: flex; gap: 20px; justify-content: center; }
.btn {
    padding: 14px 32px; border-radius: 6px; font-weight: 600; font-size: 1rem;
    text-decoration: none; transition: all 0.3s ease; cursor: pointer;
}
.btn-primary { background-color: var(--accent-blue); color: white; border: 2px solid var(--accent-blue); }
.btn-primary:hover { background-color: #1a60e8; border-color: #1a60e8; box-shadow: 0 0 20px rgba(41, 121, 255, 0.4); }
.btn-outline { background: transparent; color: var(--accent-blue); border: 2px solid var(--accent-blue); }
.btn-outline:hover { background: rgba(41, 121, 255, 0.1); color: white; border-color: white; }

/* --- SECTIONS --- */
section { padding: 100px 0; position: relative; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* Section Header Styling */
.section-header-wrap { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.pill-label {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    background: rgba(41, 121, 255, 0.1); color: var(--accent-blue);
    font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(41, 121, 255, 0.2);
}
h2.section-title {
    font-size: 3rem; margin-bottom: 20px; line-height: 1.1;
    color: white; /* Default white */
}
h2.section-title span.blue { color: var(--accent-cyan); }
.section-desc { color: var(--text-secondary); font-size: 1.1rem; }

/* Grid Layout */
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); 
    gap: 24px; 
}

/* Card Styling */
.tech-card {
    background: #0b1221; /* Darker, specific card bg */
    border: 1px solid rgba(255,255,255,0.08);
    padding: 35px;
    border-radius: 16px;
    position: relative;
    overflow: hidden; /* Keeps the glow inside */
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex; flex-direction: column;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

/* The Glow Effect in Top Right */
.tech-card::before {
    content: ''; position: absolute; top: -50px; right: -50px;
    width: 150px; height: 150px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.15;
    z-index: 0;
}
/* Color Variants for glows */
.glow-blue::before { background: var(--accent-blue); }
.glow-green::before { background: #00ff9d; }
.glow-purple::before { background: #bd00ff; }
.glow-orange::before { background: #ff9900; }

.card-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }

/* Icon Box */
.icon-box {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.tech-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: white; font-weight: 700; }
.tech-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 25px; line-height: 1.5; }

/* Service Checklist */
.service-list { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.service-list li {
    color: #8f9bb3; font-size: 0.9rem; margin-bottom: 10px;
    display: flex; align-items: center; gap: 10px;
}
.service-list li::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

/* Learn More Link */
.learn-more {
    color: var(--accent-blue); text-decoration: none; font-weight: 600; font-size: 0.9rem;
    display: flex; align-items: center; gap: 5px; margin-top: auto;
}
.learn-more:hover { color: white; }

/* Bottom CTA Box */
.cta-section { margin-top: 80px; text-align: center; }
.cta-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 60px 20px;
    max-width: 900px; margin: 0 auto;
}
.cta-box h3 { font-size: 2rem; color: white; margin-bottom: 15px; }
.cta-box p { color: var(--text-secondary); margin-bottom: 30px; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    h2.section-title { font-size: 2rem; }
}

/* --- FOOTER --- */
footer { background: #02060b; padding: 60px 0; border-top: 1px solid #112240; text-align: center; }
.footer-links a { color: var(--text-secondary); margin: 0 15px; text-decoration: none; }
.footer-links a:hover { color: var(--accent-cyan); }

/* --- BREADCRUMBS --- */
.breadcrumb-bar { margin-top: var(--nav-height); padding: 20px 0; background: rgba(255,255,255,0.02); }
.breadcrumbs { max-width: 1200px; margin: 0 auto; padding: 0 20px; color: var(--text-secondary); font-size: 0.9rem; }
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs span { margin: 0 10px; opacity: 0.5; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { .hero-title { font-size: 3rem; } .nav-container { padding: 0 20px; } .main-menu { display: none; } }
