:root {
    --bg-deep: #030305;
    --text-primary: #ffffff;
    --text-secondary: #8a8f98;
    --accent-cyan: #00f0ff;
    --accent-purple: #7000ff;
    --card-bg: rgba(15, 15, 20, 0.4);
    --card-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* FIX 1: Lock the canvas to the background and remove it from document flow */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Pushes it behind all content */
    pointer-events: none; /* Ensures you can click things on top of it */
    opacity: 0.6; /* Adjust this to make the lines brighter or dimmer */
}

/* Typography Enhancements */
h1, h2, h3 { font-weight: 700; }
h1 { font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--text-primary); }

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mono-accent {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.micro-text { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.5rem; }

/* Navigation */
.blur-nav {
    position: fixed; top: 0; width: 100%; padding: 1.5rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border); z-index: 1000;
}

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.btn-glow {
    padding: 0.6rem 1.5rem; background: transparent; color: var(--text-primary) !important;
    border: 1px solid var(--accent-cyan); border-radius: 4px;
    font-family: 'JetBrains Mono', monospace; cursor: pointer; transition: all 0.3s ease;
}
.btn-glow:hover {
    background: rgba(0, 240, 255, 0.1); box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}
.full-width { width: 100%; margin-top: 1rem; padding: 1rem; }

/* SPA View Logic */
#app-root {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.page-view {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    min-height: 100vh;
    padding-top: 100px; 
    opacity: 0; 
    visibility: hidden; 
    z-index: 1;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s; 
}

.page-view.active-view {
    position: relative; 
    opacity: 1; 
    visibility: visible; 
    z-index: 10;
    transition: opacity 0.4s ease, visibility 0s linear 0s; 
}

/* Layout Wrappers */
.content-wrapper { max-width: 1200px; margin: 0 auto; padding: 4rem 5%; }
.hero { height: calc(100vh - 100px); display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-stats { display: flex; gap: 3rem; justify-content: center; margin-top: 3rem; border-top: 1px solid var(--card-border); padding-top: 2rem; }
.highlight { font-size: 2rem; font-weight: 700; color: var(--text-primary); display: block; }
.stat { color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; font-size: 0.9rem;}

/* Glass Panels & Grid */
.glass-panel, .bento-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 12px; padding: 2.5rem;
}

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }

/* Lists & Custom Elements */
.flow-steps { display: flex; justify-content: space-between; margin: 2rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem;}
.step { font-family: 'JetBrains Mono'; color: var(--accent-cyan); font-size: 0.9rem;}
ul { list-style: none; }
ul li { margin-bottom: 0.8rem; color: var(--text-secondary); position: relative; padding-left: 1.2rem; }
ul li::before { content: '▹'; position: absolute; left: 0; color: var(--accent-purple); }

/* Contact Section */
.contact-container { padding: 0; overflow: hidden; }
.contact-header { padding: 3rem; border-bottom: 1px solid var(--card-border); text-align: center; background: rgba(0,0,0,0.2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; }
.contact-info { padding: 3rem; border-right: 1px solid var(--card-border); }
.info-block { margin-bottom: 2.5rem; }
.info-block h4 { font-size: 1.2rem; margin-top: 0.5rem; font-weight: 400; }
.contact-form { padding: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }

/* Input, Textarea, and Custom Dropdown Styling */
input, select, textarea {
    width: 100%; 
    padding: 1rem; 
    background: rgba(0,0,0,0.3); 
    border: 1px solid var(--card-border);
    color: white; 
    border-radius: 4px; 
    font-family: 'Inter', sans-serif; 
    outline: none; 
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus { 
    border-color: var(--accent-cyan); 
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

/* FIX 2: Custom Dropdown Styling */
select {
    appearance: none; /* Removes default OS styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    /* Injects a custom glowing cyan chevron arrow */
    background-image: url("data:image/svg+xml,%3Csvg stroke='%2300f0ff' fill='none' stroke-width='2' viewBox='0 0 24 24' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem; /* Prevents text from overlapping the arrow */
}

/* Styles the actual dropdown options to match the dark theme */
select option {
    background-color: #0f0f14;
    color: var(--text-primary);
    padding: 1rem;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 900px) {
    .bento-grid, .grid-2, .contact-grid { grid-template-columns: 1fr; }
    .span-2, .span-3 { grid-column: span 1; }
    .flow-steps { flex-direction: column; gap: 1rem; }
    .contact-info { border-right: none; border-bottom: 1px solid var(--card-border); }
}
