/* Base Styles & Typography - High Contrast Light Theme */
:root {
    --primary-navy: #0B132B;
    --accent-blue: #1D4ED8; 
    --accent-blue-hover: #1E3A8A;
    --text-light: #F8F9FA;
    --text-dark: #111827;
    --text-slate: #334155;
    --bg-gray: #F8FAFC;
    --bg-dark-gray: #E2E8F0;
    --drawer-width: 300px;
}

* { box-sizing: border-box; }

/* Native Smooth Scrolling Fix */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: white;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { margin-top: 0; margin-bottom: 15px; color: var(--primary-navy); font-weight: 800; }
a { text-decoration: none; color: inherit; cursor: pointer; }
.hidden { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Modern CTA Button Styling */
.btn {
    display: inline-block;
    background-color: var(--accent-blue);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
}
.btn:hover { 
    background-color: var(--accent-blue-hover); 
    transform: translateY(-3px); 
    box-shadow: 0 12px 25px rgba(29, 78, 216, 0.35); 
}
.btn-sm { padding: 12px 24px; font-size: 16px; }

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    padding: 15px 0;
    position: fixed; 
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

/* Stacked Logo & Slogan */
.logo-area { display: flex; flex-direction: column; position: relative; z-index: 1; }
.logo { font-size: 28px; font-weight: 900; color: var(--primary-navy); letter-spacing: -0.5px; line-height: 1; }
.logo span { color: var(--accent-blue); }
.tagline { font-size: 13px; font-weight: 700; color: var(--text-slate); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-cta { margin-left: 12px; }

/* Bolder, Larger Navigation Links */
.nav-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid transparent;
    color: var(--primary-navy);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.nav-btn:hover { 
    color: var(--accent-blue); 
    background: #F1F5F9; 
}

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; position: relative; z-index: 30; }
.menu-toggle span { display: block; width: 26px; height: 3px; background-color: var(--primary-navy); margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease; border-radius: 3px; }

/* Drawer Overlay */
.drawer-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(11, 19, 43, 0.7); backdrop-filter: blur(4px); z-index: 10; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.drawer-overlay.active { opacity: 1; visibility: visible; }

/* Improved Scrollable Modal Styles */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(11, 19, 43, 0.8); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: white; width: 90%; max-width: 700px; padding: 40px; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); position: relative; max-height: 90vh; display: flex; flex-direction: column; transform: translateY(20px); transition: transform 0.3s ease; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 25px; font-size: 28px; line-height: 1; color: var(--text-slate); cursor: pointer; background: none; border: none; transition: color 0.2s; z-index: 10;}
.modal-close:hover { color: var(--primary-navy); }

.modal-header h2 { margin-bottom: 10px; }
.modal-header p { color: var(--text-slate); margin-bottom: 20px; font-size: 15px;}
.modal-form { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.modal-scroll-area { overflow-y: auto; padding-right: 15px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 15px; flex: 1; }
.modal-scroll-area::-webkit-scrollbar { width: 6px; }
.modal-scroll-area::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.modal-scroll-area::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.modal-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid #E2E8F0; flex-shrink: 0; }
.modal-footer .btn { width: 100%; }

/* Hero Section */
.hero { background-color: var(--primary-navy); color: var(--text-light); padding: 160px 0 100px 0; text-align: center; background-image: linear-gradient(135deg, #0B132B 0%, #172554 100%); }
.hero h1 { font-size: 56px; line-height: 1.15; margin-bottom: 24px; color: white; letter-spacing: -1px; }
.hero p { font-size: 20px; max-width: 800px; margin: 0 auto 40px auto; color: #CBD5E1; }

/* Metrics Bar */
.metrics-bar { background-color: white; border-bottom: 1px solid var(--bg-dark-gray); padding: 40px 0; }
.metrics-grid { display: flex; justify-content: space-between; text-align: center; flex-wrap: wrap; gap: 20px; }
.metric-item { flex: 1 1 20%; min-width: 200px; }
.metric-item h4 { font-size: 32px; margin-bottom: 5px; color: var(--accent-blue); }
.metric-item p { margin: 0; font-weight: 700; color: var(--text-dark); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

/* General Section Formatting */
.section-padding { padding: 90px 0; }
.bg-gray { background-color: var(--bg-gray); }
.section-header { max-width: 800px; margin: 0 auto 50px auto; text-align: center; }
.section-header h2 { font-size: 44px; letter-spacing: -0.5px; position: relative; display: inline-block; padding-bottom: 15px; margin-bottom: 25px; }
.section-header h2::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 60px; height: 4px; background-color: var(--accent-blue); border-radius: 2px; }
.section-header p { font-size: 18px; color: var(--text-slate); line-height: 1.7; }
.section-header strong { color: var(--text-dark); font-weight: 700; }

/* Grid System */
.grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.card { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); border: 1px solid var(--bg-dark-gray); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.card-icon { color: var(--accent-blue); margin-bottom: 20px; display: inline-flex; }
.card p { margin-bottom: 0; flex-grow: 1; color: var(--text-slate); font-size: 16px; }

/* Expertise 2-Column Grid Layout with Icons */
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.expertise-item { background: white; padding: 35px; border-radius: 12px; border: 1px solid var(--bg-dark-gray); box-shadow: 0 4px 20px rgba(0,0,0,0.03); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.expertise-item:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.expertise-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 12px; background: rgba(29, 78, 216, 0.08); color: var(--accent-blue); margin-bottom: 20px; }
.expertise-item h4 { font-size: 21px; color: var(--primary-navy); margin-bottom: 10px; }
.expertise-item p { color: var(--text-slate); font-size: 16px; margin: 0; line-height: 1.6; }

/* Team Section - Clean 4 Column Row Layout with Larger Avatars */
.team-title { text-align: center; margin-top: 60px; margin-bottom: 30px; font-size: 28px; color: var(--primary-navy); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-member { text-align: center; background: white; padding: 35px 20px; border-radius: 12px; border: 1px solid var(--bg-dark-gray); box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: transform 0.3s; }
.team-member:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.team-avatar { font-size: 40px; width: 84px; height: 84px; background: var(--bg-gray); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; box-shadow: inset 0 2px 5px rgba(0,0,0,0.05); }
.team-member h4 { margin-bottom: 5px; font-size: 20px; color: var(--primary-navy); }
.team-member span { display: block; color: var(--accent-blue); font-weight: 700; font-size: 14px; text-transform: uppercase; }

/* Big AI Team Member Layout */
.team-ai-card { grid-column: span 4; background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%); border: 1px solid var(--bg-dark-gray); display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 30px; text-align: left; padding: 40px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05); }
.team-ai-card .team-avatar { width: 100px; height: 100px; font-size: 48px; margin: 0; flex-shrink: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.team-ai-card .ai-info { display: flex; flex-direction: column; }
.team-ai-card h4 { font-size: 24px; margin-bottom: 5px; color: var(--primary-navy); }
.team-ai-card span { font-size: 16px; color: var(--accent-blue); font-weight: 700; text-transform: uppercase; margin-bottom: 8px;}
.team-ai-card p { font-size: 15px; color: var(--text-slate); margin: 0; max-width: 600px; line-height: 1.6; }

/* Symmetrical Contact Section */
.contact-wrapper { display: flex; gap: 60px; background: white; padding: 50px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); border: 1px solid var(--bg-dark-gray); align-items: stretch; }
.form-container { flex: 1.2; display: flex; flex-direction: column; }
.contact-info-clean { flex: 1; display: flex; flex-direction: column; }

.info-top-row { display: flex; flex-direction: column; gap: 25px; margin-bottom: 25px; }
.info-block p, .info-block span { color: var(--text-slate); font-size: 15px; }

/* Clean 2x2 Offices Grid With Emails Included */
.offices-grid-clean { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; margin-bottom: 25px; }
.office-item-clean { display: flex; flex-direction: column; gap: 5px; }
.office-item-clean strong { color: var(--primary-navy); font-size: 16px; }
.office-item-clean span { color: var(--text-slate); font-size: 15px; line-height: 1.5; }
.office-item-clean a { color: var(--accent-blue); font-size: 14px; font-weight: 500; transition: color 0.2s ease; display: inline-block; }
.office-item-clean a:hover { text-decoration: underline; }

/* Contact Form Elements */
.contact-form { display: flex; flex-direction: column; gap: 15px; flex-grow: 1; }
.form-row { display: flex; gap: 15px; }
.contact-form input, .contact-form select, .contact-form textarea { 
    width: 100%; padding: 14px 16px; border: 1px solid #CBD5E1; background: #fff;
    border-radius: 6px; font-family: inherit; font-size: 16px; transition: border-color 0.3s; 
    color: var(--text-dark); 
}

/* This makes the text area dynamically expand to match the right column's height */
#contact_message {
    flex-grow: 1;
    min-height: 160px;
    resize: none; 
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1); }

.checkbox-group { background: #F8FAFC; padding: 15px; border-radius: 6px; border: 1px solid #CBD5E1; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.checkbox-grid label { font-size: 15px; color: var(--text-slate); display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-grid input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

/* Form Alerts */
.alert { padding: 15px 20px; border-radius: 6px; margin-bottom: 20px; font-weight: 600; font-size: 16px; }
.alert-success { background-color: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background-color: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

/* Footer Links & Compact Layout */
.compact-footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-left { display: flex; align-items: center; gap: 15px; }
.footer-left-desc { color: var(--text-slate); font-size: 14px; display: inline-block; border-left: 1px solid #CBD5E1; padding-left: 15px; font-weight: 500; }
.footer-links { margin: 0; display: flex; align-items: center; gap: 12px; }
.footer-links a { color: var(--text-slate); font-size: 14px; cursor: pointer; transition: color 0.2s; font-weight: 500; }
.footer-links a:hover { color: var(--accent-blue); text-decoration: underline; }
.footer-pipe { color: #CBD5E1; font-size: 14px; user-select: none; }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .contact-wrapper { flex-direction: column; gap: 40px; }
    .expertise-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 42px; }
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed; top: 0; right: 0; width: var(--drawer-width); height: 100dvh; padding-top: 70px;
        background-color: var(--primary-navy); flex-direction: column; justify-content: center; align-items: center; gap: 15px;
        z-index: 20; box-shadow: -10px 0 30px rgba(0,0,0,0.3); transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links.active { transform: translateX(0); }
    
    .menu-toggle.active span { background-color: white; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-btn { width: 80%; text-align: center; padding: 14px; font-size: 18px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; }
    .nav-btn:hover { background: rgba(255,255,255,0.15); border-color: white; color: white; }
    
    .btn-sm.nav-cta { display: inline-block; width: 80%; text-align: center; padding: 16px; font-size: 18px; margin: 0; margin-top: 5px; }

    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .team-ai-card { grid-column: span 2; flex-direction: column; text-align: center; }
    
    .compact-footer-content { flex-direction: column; text-align: center; justify-content: center; }
    .footer-left { flex-direction: column; gap: 5px; }
    .footer-left-desc { border-left: none; padding-left: 0; border-top: 1px solid #CBD5E1; padding-top: 5px; }
}

@media (max-width: 768px) {
    .hero { padding: 120px 0 70px 0; }
    .hero h1 { font-size: 32px; }
    .form-row { flex-direction: column; gap: 15px; }
    .section-padding { padding: 60px 0; }
    .contact-wrapper { padding: 30px 20px; }
    
    .modal-content { padding: 25px 20px; max-height: 95vh; width: 95%; }
    .modal-scroll-area { margin-bottom: 15px; padding-right: 5px; }
    
    .offices-grid-clean { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .team-ai-card { grid-column: span 1; }
}