:root {
    --electric-blue: #00f2ff;
    --deep-blue: #0066ff;
    --primary-color: #39ff14;
    --neon-purple: #bf00ff;
    --neon-orange: #ff7b00;
    --gold: #ffd700;
    --font-code: 'Fira Code', monospace;
    --font-cyber: 'Chakra Petch', sans-serif;
    --glass-bg: rgba(20, 20, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.12);
    --safe-area-bottom: env(safe-area-inset-bottom);
}

html, body {
    margin: 0; padding: 0; width: 100%; height: 100%;
    background-color: #000000; color: #e2e8f0;
    font-family: 'Inter', sans-serif; overflow-x: hidden;
    padding-bottom: 120px; padding-top: 0; 
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

.bg-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background-image: linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; background-position: center top;
}

.bg-glow {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80vw; height: 80vh; background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1; pointer-events: none;
}

.page-header { text-align: center; padding: 60px 20px 40px; }
.page-header h1 { font-family: var(--font-cyber); font-size: 4rem; margin: 0; text-transform: uppercase; letter-spacing: 4px; line-height: 1; }
.page-header h1 span { color: var(--electric-blue); text-shadow: 0 0 20px var(--electric-blue); }
.page-header p { font-family: 'JetBrains Mono', monospace; color: var(--primary-color); font-size: 0.9rem; margin-top: 15px; letter-spacing: 1px; text-shadow: 0 0 10px rgba(57, 255, 20, 0.4); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1400px; margin: 0 auto 60px auto; padding: 0 20px; }
@media (max-width: 1100px) { .team-grid { grid-template-columns: 1fr; } }

.dossier-card {
    background: rgba(10, 15, 25, 0.85); border: 1px solid var(--electric-blue); backdrop-filter: blur(10px);
    position: relative; overflow: hidden; display: flex; flex-direction: column; transition: all 0.4s;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.dossier-card:hover { transform: translateY(-5px); border-color: #fff; }

.dossier-img-frame { height: 400px; width: 100%; position: relative; border-bottom: 2px solid var(--electric-blue); overflow: hidden; }
.dossier-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: 0.5s; }
.scan-line { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--electric-blue); box-shadow: 0 0 15px var(--electric-blue); animation: scan 4s linear infinite; z-index: 2; }
@keyframes scan { 0% { top: -10%; } 100% { top: 110%; } }

.dossier-data { padding: 30px; background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,18,51,0.8) 100%); flex-grow: 1; display: flex; flex-direction: column; gap: 15px; }

.agent-name { font-family: var(--font-cyber); font-size: 2.2rem; font-weight: 800; color: #fff; text-transform: uppercase; line-height: 0.9; margin: 0; }
.agent-role { font-family: 'JetBrains Mono'; font-size: 0.85rem; color: var(--primary-color); letter-spacing: 2px; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }

.exp-row { font-family: 'JetBrains Mono'; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.bio-text { font-size: 0.9rem; color: #cbd5e1; line-height: 1.6; font-style: italic; border-left: 2px solid rgba(255,255,255,0.2); padding-left: 15px; }

.stat-block { margin-top: 10px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-family: 'JetBrains Mono'; font-size: 0.75rem; color: #aaa; }
.stat-bar-container { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-bottom: 15px; overflow: hidden; }
.stat-bar-fill { height: 100%; width: 0%; transition: width 1.5s ease-out; }

.cyber-audio-player { margin: 10px 0; padding: 10px 15px; background: rgba(0, 0, 0, 0.4); border: 1px solid #333; border-radius: 4px; display: flex; align-items: center; gap: 15px; }
.audio-btn { background: transparent; border: none; cursor: pointer; color: inherit; font-size: 1.2rem; transition: 0.3s; }
.audio-label { font-family: 'Fira Code'; font-size: 0.65rem; letter-spacing: 1px; opacity: 0.8; }

.guarantee-box { 
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(20,20,30,0.8) 20%, rgba(20,20,30,0.8) 80%, rgba(0,0,0,0) 100%); 
    border-top: 1px solid rgba(255,215,0, 0.3); 
    border-bottom: 1px solid rgba(255,215,0, 0.3); 
    padding: 40px 20px; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}
.guarantee-text { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 2.2rem; text-transform: uppercase; color: #fff; }

.sms-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: rgba(57, 255, 20, 0.05);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-cyber);
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 700;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.sms-cta i { font-size: 1.2rem; }

.sms-cta:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.6);
    transform: scale(1.02);
    text-shadow: none;
}

footer { text-align: center; padding: 20px; opacity: 0.5; font-size: 0.8rem; font-family: 'JetBrains Mono'; }

/* --- COPIED DIRECTLY FROM INDEX.CSS --- */

/* --- NAVIGATION (5-COLUMN LAYOUT) --- */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 90px;
    background: rgba(0,0,0,0.98); backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: grid; 
    /* 5 Columns: Button | Button | Search | Button | Button */
    grid-template-columns: 1fr 1fr 80px 1fr 1fr;
    align-items: center; justify-items: center;
    z-index: 9999; padding-bottom: env(safe-area-inset-bottom);
}

.nav-group {
    width: 100%; height: 100%; display: flex; 
    align-items: center; justify-content: center; position: relative;
}

.nav-trigger {
    background: none; border: none; color: #666; font-size: 20px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    cursor: pointer; transition: 0.3s; width: 100%;
}

.nav-trigger:hover, .nav-trigger.active {
    color: #ff7b00; text-shadow: 0 0 15px rgba(255, 123, 0, 0.4);
}

.nav-label {
    font-size: 9px; font-weight: 800; font-family: 'Chakra Petch'; 
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* CENTER SEARCH BUTTON */
.center-btn-wrapper {
    position: relative; width: 60px; height: 60px; 
    display: flex; align-items: center; justify-content: center;
    top: -15px; /* Floats slightly above */
}

.center-master-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: #ff7b00; border: 3px solid #000; color: #000;
    font-size: 20px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 0 20px rgba(255, 123, 0, 0.4);
    transition: 0.3s;
}

.center-master-btn:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(255, 123, 0, 0.6); }

/* POP-UP STACKS */
.nav-stack {
    position: absolute; bottom: 85px; left: 50%; transform: translateX(-50%) translateY(20px);
    width: 160px; background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    display: flex; flex-direction: column; opacity: 0; pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.8); z-index: 10000; padding: 5px 0;
}

.nav-stack.active { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); border-color: #ff7b00; }

.nav-stack a {
    text-decoration: none; color: #ccc; font-family: 'JetBrains Mono';
    font-size: 10px; padding: 12px 15px; text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.2s;
    text-transform: uppercase; letter-spacing: 1px; display: block;
}
.nav-stack a:hover { background: rgba(255, 123, 0, 0.1); color: #fff; }
.nav-stack a:last-child { border-bottom: none; }
.nav-stack a.active-link { color: var(--neon-orange); font-weight: 800; }

/* SEARCH OVERLAY */
.search-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.95); backdrop-filter: blur(10px);
    z-index: 20000; display: none; flex-direction: column; align-items: center; justify-content: center;
}
.search-overlay.active { display: flex; animation: fadeIn 0.2s; }

.search-box {
    display: flex; border-bottom: 2px solid #ff7b00; width: 80%; max-width: 600px; margin-top: 20px;
}
.search-box input {
    flex: 1; background: none; border: none; color: #fff; font-family: 'Chakra Petch';
    font-size: 24px; padding: 10px; outline: none; text-transform: uppercase;
}
.search-box button { background: none; border: none; color: #ff7b00; font-size: 24px; cursor: pointer; }
.close-search-btn {
    background: none; border: 1px solid #333; color: #666; 
    width: 40px; height: 40px; border-radius: 50%; font-size: 20px;
    cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.close-search-btn:hover { border-color: #fff; color: #fff; transform: scale(1.1); }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* --- MOBILE & RESPONSIVE FIXES --- */
@media screen and (max-width: 768px) {
    /* Stack Features Grid vertically */
    .feature-columns { grid-template-columns: 1fr; }
    .feature-card { padding: 20px; }

    /* Adjust Navigation Grid for Mobile */
    .bottom-nav { grid-template-columns: 1fr 1fr 60px 1fr 1fr; }
    .nav-label { font-size: 8px; }
    
    /* Fix HOME Stack (Left Edge) */
    #stack-home {
        left: 5px; transform: translateY(20px); /* Align left, reset center transform */
        border-radius: 12px 12px 12px 0;
    }
    #stack-home.active { transform: translateY(0); } /* Keep it left when active */

    /* Fix CRM Stack (Right Edge) */
    #stack-crm {
        left: auto; right: 5px; transform: translateY(20px); /* Align right */
        border-radius: 12px 12px 0 12px;
    }
    #stack-crm.active { transform: translateY(0); } /* Keep it right when active */
    
    /* COMMS Stack (keep reasonably centered but safe) */
    #stack-comms { width: 140px; }

    .center-master-btn { width: 45px; height: 45px; font-size: 18px; }
}