:root {
    --navy-primary: #002147;
    --navy-light: #003366;
    --gold-accent: #d4af37;
    --gold-hover: #b5952f;
    --white: #ffffff;
    --off-white: #f4f4f4;
    --text-grey: #cccccc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: 'Lato', sans-serif; line-height: 1.6; color: var(--navy-primary); background-color: var(--white); }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--navy-primary); }
.gold-text { color: var(--gold-accent) !important; }
.white-text { color: var(--white) !important; }
.container { max-width: 1250px; margin: auto; padding: 0 25px; }
.hidden { display: none !important; } 

.btn { display: inline-block; padding: 10px 25px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; cursor: pointer; transition: 0.3s; font-size: 12px; border: none; text-decoration: none;}
.btn-gold { background: var(--gold-accent); color: var(--navy-primary); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-2px); }

/* FIXED HEADER */
header { background: var(--white); border-bottom: 4px solid var(--gold-accent); position: sticky; top: 0; z-index: 1000; min-height: 90px; padding: 10px 0; display: flex; align-items: center; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.navbar { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap; }
.nav-links { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav-links li { cursor: pointer; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--navy-primary); transition: 0.3s; position: relative; }
.nav-links li::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: var(--gold-accent); transition: 0.3s; }
.nav-links li:hover::after, .nav-links li.active::after { width: 100%; }
.nav-links li.active { color: var(--gold-accent); }

/* ================= VIEW 1: HOME PAGE ================= */
.hero { height: 600px; background: linear-gradient(rgba(0, 33, 71, 0.9), rgba(0, 33, 71, 0.8)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); background-size: cover; background-position: center; display: flex; align-items: center; color: var(--white); text-align: center; }
.hero h1 { font-size: 4rem; color: var(--gold-accent); margin-bottom: 20px; line-height: 1.1; }
.hero p { font-size: 1.3rem; color: #e0e0e0; margin-bottom: 40px; font-weight: 300; }
.director-section { padding: 80px 0; background: var(--white); text-align: center; }
.director-quote { font-size: 1.8rem; font-style: italic; color: var(--navy-primary); max-width: 900px; margin: auto; line-height: 1.6; }
.director-name { margin-top: 30px; font-weight: 700; color: var(--gold-accent); text-transform: uppercase; letter-spacing: 2px; }
.capabilities-section { background: var(--navy-primary); padding: 80px 0; color: var(--white); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 10px; }
.grid-10 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cap-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(212, 175, 55, 0.2); padding: 30px 10px; text-align: center; transition: 0.3s; cursor: default; }
.cap-card:hover { border-color: var(--gold-accent); transform: translateY(-5px); background: rgba(212, 175, 55, 0.1); }
.cap-card i { font-size: 2rem; color: var(--gold-accent); margin-bottom: 15px; }
.cap-card h4 { font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; color: var(--white); }
.stats-bar { background: var(--gold-accent); color: var(--navy-primary); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; divide-x: 1px solid rgba(0,0,0,0.1); }
.stat-item h2 { font-family: 'Oswald', sans-serif; font-size: 3.5rem; font-weight: 700; margin-bottom: 5px; color: var(--navy-primary); }
.stat-item p { text-transform: uppercase; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; }

/* ================= NEXACORE AI VIEW ================= */
.nexacore-header { background: var(--navy-primary); padding: 100px 0; text-align: center; color: var(--white); }
.nexacore-header h1 { font-size: 3.5rem; color: var(--gold-accent); margin-bottom: 20px; }
.nexacore-header p { font-size: 1.2rem; color: #ccc; max-width: 800px; margin: auto; margin-bottom: 30px;}
.spec-section { background: var(--white); padding: 80px 0; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.spec-card { border: 1px solid #ddd; padding: 25px; border-radius: 4px; transition: 0.3s; text-align: center;}
.spec-card:hover { border-color: var(--gold-accent); box-shadow: 0 10px 20px rgba(0,0,0,0.05); transform: translateY(-3px); }
.spec-card i { font-size: 1.8rem; color: var(--navy-primary); margin-bottom: 15px; }
.spec-card h3 { font-size: 1.1rem; color: var(--navy-primary); margin-bottom: 10px; }
.spec-card p { font-size: 0.85rem; color: #666; }
.ehr-section { background: var(--off-white); padding: 60px 0; text-align: center; }
.ehr-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 30px; max-width: 1000px; margin-left: auto; margin-right: auto;}
.ehr-pill { background: var(--white); border: 1px solid #ddd; padding: 10px 25px; border-radius: 50px; color: var(--navy-primary); font-weight: 700; font-size: 0.95rem; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.modules-section { padding: 80px 0; background: var(--white); }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.module-card { background: var(--navy-primary); color: var(--white); padding: 40px; border-top: 4px solid var(--gold-accent); border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.module-card i { font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 20px; }
.module-card h3 { color: var(--gold-accent); font-size: 1.4rem; margin-bottom: 15px; }
.module-card p { color: #ddd; font-size: 0.95rem; margin-bottom: 15px; }
.module-card ul { padding-left: 20px; color: #ccc; font-size: 0.9rem; }
.roi-section { background: var(--navy-primary); padding: 80px 0; color: var(--white); }
.roi-container { display: flex; background: var(--white); color: var(--navy-primary); border-radius: 8px; overflow: hidden; max-width: 1000px; margin: 40px auto 0; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.roi-tabs { width: 30%; background: #f8f9fa; border-right: 1px solid #ddd; display: flex; flex-direction: column; }
.roi-tab { padding: 18px 20px; font-weight: 700; cursor: pointer; border-bottom: 1px solid #ddd; transition: 0.3s; color: #555; font-size: 0.95rem; }
.roi-tab:hover { background: #eee; }
.roi-tab.active { background: var(--white); border-left: 4px solid var(--gold-accent); color: var(--navy-primary); }
.roi-content { width: 70%; padding: 40px; display: flex; gap: 40px; }
.roi-inputs { flex: 1; }
.roi-inputs label { display: block; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 8px; color: #555; }
.roi-inputs input { width: 100%; padding: 10px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 4px; font-family: 'Lato'; font-size: 1rem; }
.roi-outputs { flex: 1; background: #f0f7f7; padding: 30px; border-radius: 8px; border: 1px solid #bce0e0; display: flex; flex-direction: column; justify-content: center; }
.roi-outputs h4 { color: #666; font-family: 'Lato'; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 10px; }
.roi-outputs .amount { font-family: 'Oswald'; font-size: 2.8rem; color: #1a5c5d; line-height: 1; margin-bottom: 5px; }
.roi-outputs .desc { font-size: 0.9rem; color: #555; margin-bottom: 25px; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; font-size: 0.9rem; margin-bottom: 5px; color: var(--navy-primary); font-weight: 700;}
.form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }

/* ================= VIEW 3: SERVICES & FAQ ================= */
.services-header { background: var(--navy-primary); padding: 100px 0; text-align: center; color: var(--white); }
.services-header h1 { font-size: 3.5rem; color: var(--gold-accent); margin-bottom: 20px; }
.service-details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.service-detail-card { background: var(--white); border: 1px solid #eee; padding: 40px; transition: 0.3s; position: relative; overflow: hidden; }
.service-detail-card:hover { border-color: var(--gold-accent); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.service-detail-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--gold-accent); transform: scaleY(0); transition: 0.3s; }
.service-detail-card:hover::before { transform: scaleY(1); }
.service-detail-card i { font-size: 2.5rem; color: var(--navy-primary); margin-bottom: 20px; }
.service-detail-card h3 { font-size: 1.5rem; color: var(--navy-primary); margin-bottom: 15px; }
.service-detail-card p { color: #666; font-size: 1rem; }
.agency-box { background: var(--navy-primary); color: white; padding: 60px; margin: 80px 0; border-radius: 4px; display: flex; align-items: center; gap: 40px; }
.agency-content h2 { color: var(--gold-accent); font-size: 2.5rem; margin-bottom: 20px; }
.agency-content p { color: #ddd; font-size: 1.1rem; margin-bottom: 20px; }
.faq-item { background: #fff; padding: 25px; margin-bottom: 20px; border-left: 4px solid var(--navy-primary); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.faq-item h3 { color: var(--navy-primary); margin-bottom: 10px; font-size: 1.2rem; }
.faq-item p { color: #555; }

/* ================= SHARED VIEWS (ABOUT/CULTURE/ACADEMY/CAREERS) ================= */
.about-header, .careers-header { padding: 100px 0; background: var(--navy-primary); text-align: center; color: var(--white); }
.about-header h1, .careers-header h1 { font-size: 3.5rem; color: var(--gold-accent); margin-bottom: 20px; }
.about-container { padding: 80px 0; }
.text-block { max-width: 900px; margin: auto; text-align: center; margin-bottom: 80px; }
.text-block h3 { font-size: 2rem; margin-bottom: 20px; color: var(--navy-primary); }
.text-block p { font-size: 1.1rem; color: #555; line-height: 1.8; }
.optimism-box { background: var(--off-white); padding: 60px; border-left: 5px solid var(--gold-accent); margin-bottom: 80px; }
.optimism-list { list-style: none; margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.optimism-list li h4 { color: var(--gold-accent); font-size: 1.2rem; margin-bottom: 10px; }
.bright-minds { background: var(--white); padding: 60px 0; text-align: center; }
.icon-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.icon-item i { font-size: 2.5rem; color: var(--navy-primary); margin-bottom: 15px; }
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.client-card { background: var(--navy-primary); padding: 40px; color: var(--white); text-align: center; transition: 0.3s; }
.client-card:hover { transform: translateY(-10px); background: var(--navy-light); }
.client-card i { font-size: 3rem; color: var(--gold-accent); margin-bottom: 20px; }
.client-card h3 { color: var(--gold-accent); margin-bottom: 15px; }
.perks-section { padding: 60px 0; background: var(--off-white); }
.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.perk-card { background: var(--navy-primary); padding: 30px; border-radius: 4px; text-align: center; color: var(--white); transition: 0.3s; }
.perk-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.perk-card i { font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 20px; }
.perk-card h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--gold-accent); }
.perk-card p { font-size: 0.95rem; color: #ccc; }
.internship-banner { background: linear-gradient(135deg, #d4af37 0%, #b5952f 100%); padding: 40px 30px; border-radius: 4px; color: var(--navy-primary); text-align: center; margin: 40px auto; max-width: 900px; }
.job-card { background: var(--white); border-left: 4px solid var(--gold-accent); padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-radius: 4px; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; margin-bottom: 20px; }
.job-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* MODALS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 33, 71, 0.95); z-index: 2000; display: none; justify-content: center; align-items: center; }
.modal-box { background: var(--white); width: 90%; max-width: 750px; max-height: 90vh; overflow-y: auto; padding: 50px; position: relative; border-top: 5px solid var(--gold-accent); border-radius: 4px; text-align: center; }
.modal-box.left-align { text-align: left; }
.close-btn { position: absolute; top: 20px; right: 25px; font-size: 2rem; cursor: pointer; color: var(--navy-primary); transition: 0.3s; }
.close-btn:hover { color: var(--gold-accent); }
.modal-box h2 { font-size: 2rem; color: var(--navy-primary); margin-bottom: 5px; }
.modal-box h4 { font-size: 1.1rem; color: var(--navy-primary); margin-top: 25px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }

/* FOOTER STYLING */
.rcg-footer { background-color: #1a1a1a; color: #ffffff; padding: 40px 20px 20px; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.6; }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1200px; margin: 0 auto; border-bottom: 1px solid #333; padding-bottom: 30px; }
.footer-col { flex: 1; min-width: 200px; margin-bottom: 20px; padding-right: 15px; }
.footer-col h3 { color: #f4f4f4; font-size: 16px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid #007bff; display: inline-block; padding-bottom: 5px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #bbbbbb; text-decoration: none; transition: color 0.3s; cursor: pointer; }
.footer-col a:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom { text-align: center; padding-top: 20px; color: #777; font-size: 12px; max-width: 1000px; margin: 0 auto; }
.footer-bottom p { margin: 5px 0; }

/* ================= AI CHATBOT UI ================= */
#chatbot-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--navy-primary);
    color: var(--gold-accent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: 0.3s;
}
#chatbot-bubble:hover { transform: scale(1.1); }
#chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 480px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #ddd;
}
#chatbot-header {
    background: var(--navy-primary);
    color: var(--gold-accent);
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}
#chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #fafafa;
}
#chatbot-input-area {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 15px;
    background: var(--white);
}
#chatbot-input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    font-family: 'Lato', sans-serif;
}
#chatbot-input-area button {
    background: var(--gold-accent);
    color: var(--navy-primary);
    border: none;
    padding: 10px 15px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* ================= MOBILE & TABLET RESPONSIVENESS FIX ================= */
@media (max-width: 900px) {
    .grid-10, .stats-grid, .optimism-list, .icon-row, .clients-grid, .perks-grid, .service-details-grid, .agency-box, .footer-container, .spec-grid { flex-direction: column; grid-template-columns: 1fr; gap: 30px; }
    
    /* Navbar Fixed For Mobile */
    header { padding: 15px 0; height: auto; }
    .navbar { flex-direction: column; gap: 15px; padding: 0; }
    .nav-links { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 8px; 
        background: var(--white); 
        width: 100%; 
        border-radius: 8px; 
        padding: 15px; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
        border: 1px solid #eaeaea; 
    }
    .nav-links li { 
        padding: 10px 15px; 
        background: #f8f9fa; 
        border-radius: 4px; 
        border: 1px solid #ddd; 
        font-size: 12px; 
        width: calc(50% - 5px); 
        text-align: center; 
        margin: 0; 
    }
    .nav-links li.active { 
        background: var(--gold-accent); 
        color: var(--navy-primary); 
        border-color: var(--gold-accent); 
    }
    .nav-links li::after { display: none; }
    .nav-links li:last-child { width: 100%; margin-top: 5px; background: transparent; border: none; padding: 0;}
    .nav-links li:last-child button { width: 100%; font-size: 14px; padding: 12px;}

    .job-card { flex-direction: column; align-items: flex-start; gap: 15px; }
    
    /* ROI Tabs Fixed For Mobile */
    .roi-container { flex-direction: column; border: none; box-shadow: none; background: transparent; }
    .roi-tabs { 
        width: 100%; 
        flex-direction: row; 
        flex-wrap: wrap; 
        border: none; 
        background: transparent; 
        padding: 0; 
        gap: 10px; 
        margin-bottom: 20px;
    }
    .roi-tab { 
        flex: 1 1 calc(50% - 10px); 
        border: 1px solid #ddd; 
        border-radius: 6px; 
        padding: 15px 10px; 
        font-size: 0.85rem; 
        text-align: center; 
        background: var(--white); 
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    .roi-tab.active { 
        background: var(--gold-accent); 
        color: var(--navy-primary); 
        border-color: var(--gold-accent); 
        font-weight: 900;
    }
    .roi-content { 
        width: 100%; 
        flex-direction: column; 
        padding: 25px; 
        background: var(--white); 
        border-radius: 8px; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
        border: 1px solid #eee;
    }

    #chatbot-container { width: 90%; right: 5%; bottom: 100px; height: 400px; }
}