:root {
    --bg-dark: #0a0a0c;
    --bg-panel: #141419;
    --neon-cyan: #00f3ff;
    --neon-purple: #bd00ff;
    --text-main: #e0e0e0;
    --text-muted: #858595;
    --font-head: 'Space Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --border-color: #333340;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;

    /* --- ENGINEERING GRID WITH VIGNETTE --- */
    background-image: 
        /* Layer 1: Radial Gradient for the "Vignette" (Darker edges) */
        radial-gradient(circle at 50% 50%, transparent 50%, #0a0a0c 100%),
        /* Layer 2: Horizontal Lines */
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        /* Layer 3: Vertical Lines */
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    
    /* Size for: Vignette (Cover whole screen), Grid (40px squares) */
    background-size: 100% 100%, 40px 40px, 40px 40px;
    
    /* Fix the background so the grid stays still while you scroll */
    background-attachment: fixed;
}

/* --- Typography & Utils --- */
h1, h2, h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: -1px; }
h1, h2 {
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.15); /* Subtle Cyan Haze */
}
.gradient-text { background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tag { font-family: var(--font-head); color: var(--neon-cyan); font-size: 0.8rem; border: 1px solid var(--neon-cyan); padding: 5px 10px; display: inline-block; margin-bottom: 15px; }
.section-header-center { text-align: center; margin-bottom: 50px; }
.content-block { padding: 80px 5%; max-width: 1400px; margin: 0 auto; }

/* --- Buttons --- */
.btn { padding: 12px 24px; font-family: var(--font-head); font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: 0.3s; display: inline-block; cursor: pointer; }
.btn.primary { background: var(--neon-cyan); color: #000; box-shadow: 0 0 15px rgba(0, 243, 255, 0.4); }
.btn.secondary { border-color: var(--neon-purple); color: var(--neon-purple); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(0, 243, 255, 0.6); }

/* --- Navigation --- */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background: rgba(10, 10, 12, 0.95); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.logo { font-family: var(--font-head); font-size: 1.5rem; font-weight: bold; color: var(--neon-cyan); }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--neon-cyan); }
.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-main); transition: 0.3s; }

/* --- Hero Section --- */
.hero { display: flex; align-items: center; padding: 120px 5%; min-height: 85vh; background: radial-gradient(circle at top right, #1a1a2e, var(--bg-dark)); }
.hero-content { flex: 1; padding-right: 50px; }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; max-width: 600px; }
.status-bar { font-family: var(--font-head); color: var(--neon-cyan); font-size: 0.8rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.status-dot { width: 8px; height: 8px; background: var(--neon-cyan); border-radius: 50%; box-shadow: 0 0 10px var(--neon-cyan); }
.cta-group { display: flex; gap: 20px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.stat strong { display: block; font-size: 1.5rem; color: #fff; font-family: var(--font-head); }
.stat span { font-size: 0.8rem; color: var(--text-muted); }
.hero-visual { flex: 1; }
.img-placeholder { width: 100%; height: 400px; background: #1a1a1f; border: 1px dashed var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-family: var(--font-head); }

/* --- Ticker Strip --- */
.ticker-wrap { width: 100%; overflow: hidden; background: var(--bg-panel); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; padding: 10px 0; }
.ticker-heading { padding: 0 20px; font-family: var(--font-head); font-weight: bold; color: var(--text-muted); border-right: 1px solid var(--border-color); z-index: 2; background: var(--bg-panel); }
.ticker { display: flex; animation: ticker 20s linear infinite; white-space: nowrap; }
.ticker-item { padding: 0 40px; color: var(--text-muted); font-family: var(--font-head); opacity: 0.7; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Services Grid --- */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background: var(--bg-panel); padding: 30px; border: 1px solid var(--border-color); transition: 0.3s; position: relative; overflow: hidden; }
.service-card:hover { border-color: var(--neon-cyan); transform: translateY(-5px); }
.icon-box { font-family: var(--font-head); font-size: 2rem; color: var(--border-color); margin-bottom: 20px; font-weight: bold; }
.service-card h3 { margin-bottom: 15px; color: var(--text-main); }
.service-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.link-arrow { color: var(--neon-cyan); text-decoration: none; font-size: 0.9rem; font-weight: 600; }

/* --- Terminal Section --- */
.terminal-section { padding: 80px 5%; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; background: #0d0d10; }
.terminal-window { background: #000; border: 1px solid #333; border-radius: 5px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); font-family: 'Space Mono', monospace; }
.terminal-header { background: #222; padding: 10px 15px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #333; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.title { color: #888; font-size: 0.8rem; margin-left: 10px; }
.terminal-body { padding: 20px; color: #0f0; font-size: 0.9rem; min-height: 250px; }
.prompt { color: var(--neon-purple); }
.output { color: #aaa; margin-top: 5px; }

/* --- Slider & Data (Reused) --- */
.slider-section { padding: 80px 5%; border-top: 1px solid var(--border-color); }
.scroller { display: flex; overflow-x: auto; gap: 20px; padding-bottom: 20px; }
.card { min-width: 300px; background: var(--bg-panel); padding: 30px; border: 1px solid var(--border-color); border-left: 3px solid var(--neon-purple); }
.date { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-head); display: block; margin-bottom: 10px; }

.data-section { padding: 80px 5%; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; background: #0d0d10; border-top: 1px solid var(--border-color); }
.cyber-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-family: var(--font-head); font-size: 0.9rem; }
.cyber-table th, .cyber-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
.cyber-table th { color: var(--neon-cyan); }
.highlight-row { background: rgba(0, 243, 255, 0.05); border-left: 2px solid var(--neon-cyan); }

/* --- CTA Section --- */
.cta-section { padding: 100px 5%; text-align: center; }
.cta-box { max-width: 700px; margin: 0 auto; background: linear-gradient(180deg, var(--bg-panel), var(--bg-dark)); border: 1px solid var(--border-color); padding: 50px; border-radius: 10px; }
.cta-box h2 { margin-bottom: 15px; color: #fff; }
.cta-box p { color: var(--text-muted); margin-bottom: 30px; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; }

/* --- Footer --- */
footer { border-top: 1px solid var(--border-color); padding: 60px 5%; background: var(--bg-dark); }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--neon-cyan); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .nav-links { position: fixed; left: -100%; top: 70px; flex-direction: column; background-color: var(--bg-dark); width: 100%; text-align: center; transition: 0.3s; border-bottom: 1px solid var(--border-color); padding: 20px 0; }
    .nav-links.active { left: 0; }
    .hero { flex-direction: column; text-align: center; padding-top: 50px; }
    .hero-content { padding-right: 0; margin-bottom: 40px; }
    .hero h1 { font-size: 2.5rem; }
    .cta-group { justify-content: center; }
    .hero-stats { justify-content: center; }
    .data-section, .terminal-section { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
}
.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the magic property */
    display: block;    /* Removes tiny white space at bottom */
}
/* --- Board Grid Layout --- */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* --- The Tech Card --- */
.board-card {
    background: rgba(20, 20, 25, 0.6); /* Slightly transparent */
    border: 1px solid var(--border-color);
    padding: 25px;
    position: relative;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.board-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-5px);
    background: rgba(20, 20, 25, 0.9);
}

/* --- Header Section (Avatar + Name) --- */
.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.meta h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.role {
    display: block;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    font-family: var(--font-head);
    margin-bottom: 5px;
}

.clearance {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-head);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- The "Neural Avatar" Animation --- */
.neural-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.1);
    position: relative;
}

/* Pulse Animations */
.cyan-pulse { animation: pulse-cyan 3s infinite; }
.purple-pulse { animation: pulse-purple 3s infinite; }
.red-pulse { animation: pulse-red 3s infinite; }

@keyframes pulse-cyan {
    0% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 243, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0); }
}

@keyframes pulse-purple {
    0% { box-shadow: 0 0 0 0 rgba(189, 0, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(189, 0, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(189, 0, 255, 0); }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 95, 86, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 95, 86, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 95, 86, 0); }
}

/* --- Skill Bars --- */
.skill-meter {
    margin-top: 15px;
}

.skill-meter label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-family: var(--font-head);
    color: var(--text-muted);
    margin-bottom: 5px;
}

.bar-container {
    width: 100%;
    height: 6px;
    background: #000;
    border: 1px solid #333;
    
    /* THE FIX: This cuts off the animation when it leaves the box */
    overflow: hidden; 
    
    position: relative;
    border-radius: 2px; /* Optional: adds a tiny bit of polish */
}

.bar-fill {
    height: 100%;
    background: var(--neon-cyan);
    position: relative;
}

/* Optional: Scanline effect on the bar */
.bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Update this class */
.board-card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid var(--border-color);
    padding: 25px;
    position: relative;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    
    /* NEW: Ensures nothing spills out of the card boundaries */
    overflow: hidden; 
}

.neural-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
    margin-right: 20px; /* Space between circle and text */
    
    /* Default Base Style */
    border: 2px solid #333;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Static Color Indicators (No Pulse) */
.cyan-pulse {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); /* Slight static glow */
    color: var(--neon-cyan);
}

.purple-pulse {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.2);
    color: var(--neon-purple);
}

.red-pulse {
    border-color: #ff5f56;
    box-shadow: 0 0 15px rgba(255, 95, 86, 0.2);
    color: #ff5f56;
}

/* --- Timeline Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* The Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    left: 20px; /* Adjust for mobile alignment */
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px; /* Space for line and year */
    margin-bottom: 50px;
}

/* The Glowing Dot */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 14px; /* Centers it on the line */
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--bg-dark);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    z-index: 1;
    transition: 0.3s;
}

.timeline-item:hover::before {
    background: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.year {
    font-family: var(--font-head);
    color: var(--neon-cyan);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: #fff;
}

.timeline-content p {
    color: var(--text-muted);
}

/* The Blinking Cursor */
.cursor {
    display: inline-block;
    color: var(--neon-cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* The Hidden Text (Before it fades in) */
.fade-in-text {
    opacity: 0;
    transform: translateY(20px); /* Pushed down slightly */
    display: inline-block;
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* The Visible Text (Triggered by JS) */
.fade-in-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- New Contact Layout --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Form is wider (1.5x) than Info */
    gap: 80px; /* Big gap between columns */
    align-items: start;
}

/* Info Panel Styling */
.info-group {
    margin-bottom: 40px;
}

.info-group h3 {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.link-highlight {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed var(--border-color);
    transition: 0.3s;
}

.link-highlight:hover {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
}

.key-box {
    background: var(--bg-panel);
    padding: 15px;
    border: 1px solid var(--border-color);
    font-family: var(--font-head);
    font-size: 0.8rem;
}

.key-label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-size: 0.7rem;
}

.small-map {
    height: 200px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

/* --- The "Big" Cyber Form --- */
.cyber-form {
    background: rgba(20, 20, 25, 0.5);
    padding: 40px;
    border: 1px solid var(--border-color);
    /* Subtle glow behind the form container */
    box-shadow: 0 0 50px rgba(0,0,0,0.5); 
}

.form-row {
    display: flex;
    gap: 30px; /* Space between Name and Org */
}

.form-group {
    margin-bottom: 30px; /* More vertical breathing room */
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-head);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* The Big Inputs */
.form-group input, 
.form-group textarea {
    width: 100%;
    background: #0d0d10;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--border-color); /* Thicker left border */
    padding: 20px; /* Chunky padding */
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Focus State - The "Glow" */
.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    border-left-color: var(--neon-cyan);
    background: #15151a;
    box-shadow: -5px 0 15px rgba(0, 243, 255, 0.1);
}

.full-width {
    width: 100%;
    padding: 20px;
    margin-top: 10px;
}

/* --- Mobile Responsiveness for Form --- */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr; /* Stack them */
        gap: 50px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .cyber-form {
        padding: 20px;
    }
}


/* --- Careers Page Styling --- */

/* Perk List (The list with > arrows) */
.perk-list {
    margin-top: 20px;
    list-style: none;
    font-family: var(--font-head);
    color: var(--text-main);
}
.perk-list li {
    margin-bottom: 10px;
}

/* Job Dossier Container */
.job-list {
    max-width: 900px;
    margin: 0 auto;
}

/* The Expandable Card */
.job-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.job-card:hover {
    border-color: var(--neon-cyan);
}

.job-card[open] {
    border-left: 3px solid var(--neon-cyan);
    background: #0d0d10;
}

/* The Clickable Header */
.job-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    cursor: pointer;
    list-style: none;
}
.job-summary::-webkit-details-marker { display: none; } /* Hide default triangle */

.job-header-main h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: #fff;
}

.job-arrow {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--neon-cyan);
    font-weight: bold;
}

.job-card[open] .job-arrow {
    transform: rotate(45deg); /* Turns the + into an x */
}

/* The Expanded Content */
.job-details-body {
    padding: 0 25px 25px 25px;
    border-top: 1px dashed var(--border-color);
    color: var(--text-muted);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.job-section {
    margin-top: 25px;
}

.job-section h4 {
    color: var(--neon-purple);
    font-family: var(--font-head);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Stack List */
.stack-list {
    list-style: none;
    padding-left: 10px;
    border-left: 2px solid #333;
}
.stack-list li {
    margin-bottom: 8px;
    font-family: var(--font-body);
}
.stack-list strong {
    color: #fff;
}

.clearance-text {
    font-family: var(--font-head);
    color: #ff5f56; /* Red for clearance level */
    font-weight: bold;
}