/* --- CSS VARIABLES & DARK MODE --- */
:root {
    --brand-blue: #000066; 
    --brand-gradient: linear-gradient(135deg, #03045E 0%, #03045E 50%, #03045E 100%);
    --deep-black: #050507;
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6f9;
    
    --text-primary: #000033; 
    --text-secondary: #1a1a4a; 
    --heading-color: #000066; 
    
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(0, 0, 102, 0.1);
    --input-bg: #ffffff;
    --map-color: rgba(0, 0, 102, 0.15);
    --ping-color: #25D366;
    --success-color: #25D366;
    --error-color: #ff4d4d;
}

[data-theme="dark"] {
    --bg-primary: #050507;
    --bg-secondary: #0f172a;
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --heading-color: #ffffff;
    --nav-bg: rgba(5, 5, 7, 0.95);
    --card-border: rgba(255, 255, 255, 0.1);
    --input-bg: #1a1a24;
    --brand-blue: #4da6ff; 
    --brand-gradient: linear-gradient(135deg, #1a1a4a 0%, #000066 50%, #0f0c29 100%);
    --map-color: rgba(77, 166, 255, 0.2);
    --ping-color: #4da6ff;
}

/* --- GLOBAL & ACCESSIBILITY --- */
* { margin: 0; padding: 0; box-sizing: border-box; transition: background-color 0.4s ease, color 0.4s ease; }
*:focus-visible { outline: 2px solid var(--brand-blue) !important; outline-offset: 4px; border-radius: 4px; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { font-family: 'Inter', Arial, sans-serif; background: var(--bg-primary); color: var(--text-primary); overflow-x: hidden; line-height: 1.4; font-weight: 400; }
h1, h2, h3, h4 { font-family: 'Montserrat', 'Arial Black', sans-serif; font-weight: 900 !important; color: var(--heading-color); }
.section-tag { font-family: 'Montserrat', sans-serif; font-weight: 900 !important; color: var(--brand-blue); letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 12px; }
p { color: var(--text-secondary); margin-bottom: 12px; }
.content-wrap { max-width: 1400px; margin: 0 auto; padding: 0 4%; } 

/* --- GLOBAL BRAND GRADIENT BOX REDESIGN --- */
.md-message-box, .matrix-box, .timeline-content, .glass-card, .form-box, .services-tab-container, details {
    background: var(--brand-gradient) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 20px 50px rgba(0,0,102,0.2) !important;
    border-radius: 20px;
}

/* Transparent Glassmorphism Scope Box */
.scope-content-box { 
    position: relative; z-index: 2; text-align: left; padding: 40px; border-radius: 20px; 
    background: #000066 !important; 
    backdrop-filter: blur(12px) !important; 
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Force text inside all brand boxes to be white */
.md-message-box h2, .matrix-box h2, .timeline-content h3, .glass-card h3, .form-box h2, .scope-content-box h2, .tab-text h2, details summary { color: white !important; }
.md-message-box p, .timeline-content p, .glass-card p, .form-box p, .scope-content-box p, .tab-text p, .faq-answer { color: rgba(255,255,255,0.9) !important; }
.md-message-box .md-role, .matrix-box .section-tag, .scope-content-box .section-tag { color: #4da6ff !important; }

/* Custom Inner Box Overrides */
.matrix-box .bar-label { color: white !important; }
.matrix-box .bar-bg { background: rgba(255,255,255,0.1) !important; border: 1px solid rgba(255,255,255,0.2) !important; }
.matrix-box .bar-fill { background: #4da6ff !important; }
.matrix-btn { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.2); }
.matrix-btn.active { background: white; color: var(--brand-blue); box-shadow: 0 5px 15px rgba(255,255,255,0.2); }
.matrix-btn:hover { background: rgba(255,255,255,0.2); }
.tab-sidebar { background: rgba(0,0,0,0.2) !important; border-right: 1px solid rgba(255,255,255,0.1) !important; }
.tab-btn { color: rgba(255,255,255,0.7) !important; }
.tab-btn.active { background: rgba(255,255,255,0.1) !important; color: white !important; border-left-color: #4da6ff !important; }
.tab-btn:hover { background: rgba(255,255,255,0.05) !important; color: white !important; }
.tab-text ul li { color: rgba(255,255,255,0.9) !important; }
.tab-text ul li::before { color: #4da6ff !important; }
.form-box input, .form-box textarea, .form-box select { background: rgba(255,255,255,0.05) !important; color: white !important; border: 1px solid rgba(255,255,255,0.2) !important; }
.form-box input::placeholder, .form-box textarea::placeholder { color: rgba(255,255,255,0.6) !important; }
.form-box input:focus, .form-box textarea:focus, .form-box select:focus { border-color: #4da6ff !important; background: rgba(255,255,255,0.1) !important; }
.form-box .submit-btn { background: white !important; color: var(--brand-blue) !important; }
.form-box .submit-btn:hover { background: #4da6ff !important; color: white !important; }

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--deep-black); }
::-webkit-scrollbar-thumb { background: #1a1a4a; border-radius: 6px; border: 3px solid var(--deep-black); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-blue); }

/* --- PRE-LOADER & PROGRESS BAR --- */
#preloader { position: fixed; inset: 0; background: white; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.8s ease, visibility 0.8s; }
.preloader-logo { height: 100px; width: auto; margin-bottom: 20px; animation: pulse 1.5s infinite; }
.preloader-brand { color: #000066; font-family: 'Montserrat', sans-serif; font-size: 1.5rem; letter-spacing: 5px; margin-bottom: 5px; animation: pulse 1.5s infinite; text-align: center; }
.preloader-sub { color: #4da6ff; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; animation: pulse 1.5s infinite; text-align: center; }
.loader-bar { width: 600px; max-width: 80%; height: 3px; background: rgba(0,0,102,0.1); border-radius: 4px; overflow: hidden; position: relative; }
.loader-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: #4da6ff; animation: loading 1.5s ease-in-out forwards; }
@keyframes pulse { 0%, 100% { opacity: 0.6; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1); } }
@keyframes loading { 0% { width: 0%; } 100% { width: 100%; } }
#progress-bar { position: fixed; top: 40px; left: 0; height: 3px; background: var(--brand-blue); width: 0%; z-index: 10000; }

/* --- TOP BAR: TICKER + HQ STATUS (GRADIENT BOX COLOR) --- */
.top-bar { display: flex; height: 40px; position: fixed; top: 0; width: 100%; z-index: 10001; background: var(--brand-gradient); border-bottom: 1px solid rgba(255,255,255,0.1); }
.market-ticker { flex: 1; color: rgba(255,255,255,0.9); display: flex; align-items: center; overflow: hidden; font-family: 'Inter', monospace; font-size: 0.85rem; font-weight: 600; }
.ticker-track { display: flex; white-space: nowrap; animation: ticker-scroll 40s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { margin-right: 50px; display: inline-flex; align-items: center; gap: 10px; }
.ticker-up { color: #25D366; }
.ticker-down { color: #ff4d4d; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.hq-status { padding: 0 20px; background: transparent; border-left: 1px solid rgba(255,255,255,0.2); color: white; display: flex; align-items: center; font-size: 0.8rem; font-family: 'Inter', monospace; font-weight: 700; white-space: nowrap; }

/* --- NAVIGATION & MEGA MENU --- */
nav { position: fixed; width: 100%; top: 40px; z-index: 1000; background: transparent; padding: 25px 4%; display: flex; justify-content: space-between; align-items: center; transition: all 0.4s ease; border-bottom: 1px solid transparent; }
nav.scrolled { background: var(--nav-bg); backdrop-filter: blur(15px); padding: 15px 4%; border-bottom: 1px solid var(--card-border); }
.brand a { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo-box { height: 70px; width: auto; transition: transform 0.3s ease; object-fit: contain; }
.brand a:hover .logo-box { transform: scale(1.05); }
.brand h2 { font-size: 1.4rem; margin: 0; color: var(--brand-blue); transition: color 0.4s ease; }

.nav-links { display: flex; align-items: center; }
.nav-links > a, .dropdown-toggle { text-decoration: none; color: var(--brand-blue); font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; margin-left: 20px; position: relative; padding-bottom: 3px; transition: color 0.4s ease; background: none; border: none; outline: none; cursor: pointer; }
.nav-links > a::after, .dropdown-toggle::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--brand-blue); transition: width 0.3s ease, background-color 0.4s ease; }
.nav-links > a:hover::after, .dropdown-toggle:hover::after { width: 100%; }

.dropdown { position: relative; display: flex; align-items: center; height: 100%; }
.dropdown-toggle::before { content: '▼'; font-size: 0.5rem; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); opacity: 0.7; }
.mega-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; visibility: hidden; background: var(--nav-bg); backdrop-filter: blur(20px); border: 1px solid var(--card-border); border-radius: 15px; padding: 25px; width: 600px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 30px 60px rgba(0,0,0,0.15); z-index: 100; pointer-events: none; margin-top: 20px;}
.about-menu { width: 280px; grid-template-columns: 1fr; } 
.dropdown::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 25px; } 
.dropdown:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.mega-item { display: flex; align-items: center; gap: 15px; padding: 15px; border-radius: 10px; transition: background 0.3s; text-decoration: none; color: var(--text-primary); border: 1px solid transparent; cursor: pointer;}
.mega-item:hover { background: rgba(0,0,102,0.05); color: var(--brand-blue); border-color: var(--card-border); }
.mega-icon { font-size: 1.5rem; display: flex; align-items: center; justify-content: center; background: rgba(0,0,102,0.05); width: 40px; height: 40px; border-radius: 8px; color: var(--brand-blue); }
.mega-text { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.9rem; }

.controls-wrap { display: flex; align-items: center; margin-left: 25px; gap: 10px; border-left: 1px solid var(--card-border); padding-left: 15px; }
.theme-toggle { background: transparent; border: 2px solid var(--brand-blue); color: var(--brand-blue); font-size: 1rem; border-radius: 50px; padding: 5px 12px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; cursor: pointer; }
.theme-toggle:hover { transform: scale(1.1); background: var(--brand-blue); color: var(--bg-primary) !important; }
.lang-select { background: transparent; border: 2px solid var(--brand-blue); color: var(--brand-blue); font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.75rem; padding: 6px 10px; border-radius: 8px; outline: none; transition: all 0.3s ease; cursor: pointer; }
.lang-select option { background: var(--bg-primary); color: var(--text-primary); }

nav.transparent-nav .brand h2, nav.transparent-nav .nav-links > a, nav.transparent-nav .dropdown-toggle { color: white !important; }
nav.transparent-nav .nav-links > a::after, nav.transparent-nav .dropdown-toggle::after { background-color: white !important; }
nav.transparent-nav .theme-toggle, nav.transparent-nav .lang-select { color: white !important; border-color: white !important; }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.fade-up { transform: translateY(40px); }
.fade-left { transform: translateX(-40px); }
.fade-right { transform: translateX(40px); }
.fade-scale { transform: scale(0.90); }
.reveal.active { opacity: 1; transform: translate(0) scale(1); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- LAYOUT UTILITIES --- */
.hero { height: 100vh; position: relative; background: var(--deep-black); display: flex; align-items: center; padding: 0 4%; overflow: hidden; }
#hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hero-content { position: relative; z-index: 0; max-width: 900px; color: white; margin-top: 40px; }
.hero-content h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 25px; text-transform: uppercase; color: white; }
.hero-content p { font-size: 1.5rem; opacity: 0.9; font-weight: 600; color: white; }

section { padding: 60px 0; position: relative; }
.bg-white { background: var(--bg-primary); }
.bg-alt { background: var(--bg-secondary); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text-center { display: flex; flex-direction: column; justify-content: center; }
.parallax-container { border-radius: 20px; overflow: hidden; position: relative; height: 100%; min-height: 450px; }

/* IMAGE BOXES GLOBAL CURVE RULE */
.parallax-container, .md-img-wrap, .gallery-item, .tab-image { border-radius: 20px !important; overflow: hidden; }

/* Default Static Img Behavior */
.parallax-img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; border-radius: 20px; }

/* CONTAIN FIT OVERRIDE FOR ABOUT AND MD SECTIONS */
#about .parallax-img, #md-message .parallax-img {
    object-fit: contain;
    height: 100%;
    top: 0;
    position: relative;
}

.md-message-box { border-radius: 20px; padding: 60px; display: flex; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto; }
.md-text { flex: 1.2; }
.md-img-wrap { flex: 1; }
.md-img-wrap .parallax-container { height: 100%; min-height: 520px; border-radius: 20px; }

/* --- STATS --- */
.stats-section { padding: 60px 0; background: var(--bg-primary); }
.stats-banner { background: var(--brand-gradient); padding: 40px 2%; display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; text-align: center; color: white; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); max-width: 1200px; margin: 0 auto; position: relative; border-bottom: 3px solid #25D366; }
.stat-item { margin: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 200px; }
.stat-number { font-family: 'Montserrat', sans-serif; font-size: 4rem; font-weight: 900; line-height: 1; color: white; z-index: 2; position: relative; margin-bottom: 10px; }
.stat-label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.9); max-width: 150px; display: block; }

/* --- LAYERED SCOPE MAP (STRATEGICALLY ALIGNED GRID) --- */
.layered-scope { 
    position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; 
    min-height: 100px; overflow: hidden; background: var(--bg-alt); padding: 40px 4%; 
}
.map-wrapper { display: flex; align-items: center; justify-content: center; z-index: 1; width: 100%; }
.map-container { position: relative; width: 100%; max-width: 700px; max-height: 400px; aspect-ratio: 1 / 1; }
.africa-svg { width: 100%; height: 100%; pointer-events: none; }
.africa-svg path { fill: var(--map-color); stroke: var(--brand-blue); stroke-width: 1px; }
.ping-node { position: absolute; width: 10px; height: 10px; background: var(--ping-color); border-radius: 50%; z-index: 2; box-shadow: 0 0 15px var(--ping-color); transform: translate(-50%, -50%); cursor: pointer; }
.ping-node::after { content: ''; position: absolute; top: 30%; left: 30%; width: 45px; height: 45px; border: 2px solid var(--ping-color); border-radius: 50%; animation: ping 2s infinite cubic-bezier(0, 0, 0.2, 1); transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
@keyframes ping { 75%, 100% { width: 50px; height: 50px; opacity: 0; } 0% { width: 10px; height: 10px; opacity: 1; } }
.ping-label { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); font-size: 0.60rem; font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--text-primary); white-space: nowrap; background: var(--nav-bg); padding: 4px 8px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 1px solid var(--card-border); backdrop-filter: blur(5px); pointer-events: none; z-index: 5;}

/* --- NCDMB LOCAL CONTENT MATRIX --- */
.matrix-box { border-radius: 25px; padding: 50px; margin-top: 30px; max-width: 1000px; margin: 40px auto 0; }
.matrix-tabs { display: flex; gap: 15px; margin-bottom: 40px; justify-content: center; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px;}
.matrix-btn { padding: 12px 30px; border-radius: 50px; border: 2px solid transparent; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; }
.bar-wrap { margin-bottom: 25px; }
.bar-label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; font-size: 1rem; }
.bar-bg { width: 100%; height: 16px; border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 10px; transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1); width: 0%; box-shadow: 0 0 10px rgba(255,255,255,0.2); }

/* --- CSR IMPACT TRACKER --- */
.csr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.csr-card { background: var(--brand-gradient); color: white; padding: 50px 30px; border-radius: 20px; text-align: center; box-shadow: 0 20px 40px rgba(0,0,102,0.15); border: 1px solid rgba(255,255,255,0.1); position: relative; overflow: hidden; transition: transform 0.3s; }
.csr-card:hover { transform: translateY(-5px); }
.csr-icon { font-size: 3.5rem; margin-bottom: 15px; display: block; }
.csr-card h4 { color: white; font-size: 1.2rem; margin-bottom: 5px; }
.csr-card p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 15px; }
.csr-number { font-family: 'Montserrat', sans-serif; font-size: 4rem; font-weight: 900; line-height: 1; margin: 15px 0 5px; color: #4da6ff; }
.csr-label { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #a3c2ff; }

/* --- TIMELINE (HOW WE WORK) --- */
.timeline-container { position: relative; max-width: 800px; margin: 60px auto 0; padding: 20px 0; }
.timeline-track { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: rgba(0,0,102,0.1); transform: translateX(-50%); border-radius: 4px; }
.timeline-progress { position: absolute; top: 0; left: 50%; width: 4px; background: var(--brand-blue); transform: translateX(-50%); border-radius: 4px; height: 0%; transition: height 0.2s ease-out; }
.timeline-node { display: flex; justify-content: flex-end; padding-right: 50%; position: relative; margin-bottom: 50px; width: 100%; }
.timeline-node:nth-child(even) { justify-content: flex-start; padding-right: 0; padding-left: 50%; }
.timeline-content { width: 80%; padding: 25px; border-radius: 20px; position: relative; }
.timeline-node:nth-child(odd) .timeline-content { margin-right: 40px; text-align: right; }
.timeline-node:nth-child(even) .timeline-content { margin-left: 40px; text-align: left; }
.timeline-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; background: var(--bg-primary); border: 4px solid var(--brand-blue); border-radius: 50%; z-index: 2; transition: all 0.4s ease; }
.timeline-node.active .timeline-dot { border-color: #4da6ff; background: #4da6ff; box-shadow: 0 0 15px rgba(77, 166, 255, 0.5); }
.timeline-content h3 { font-size: 1.5rem; margin-bottom: 10px; }

/* --- DNA / FOUNDATION --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.glass-card { padding: 40px; border-radius: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }

/* --- TABBED SERVICES INTERFACE --- */
.services-tab-container { display: flex; border-radius: 20px; overflow: hidden; margin-top: 40px; min-height: 600px; }
.tab-sidebar { width: 240px; display: flex; flex-direction: column; padding: 20px 0; z-index: 2; }
.tab-btn { background: transparent; border: none; padding: 18px 20px; text-align: left; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; border-left: 5px solid transparent; display: flex; align-items: center; gap: 15px; white-space: normal; line-height: 1.3; }
.tab-btn-icon { font-size: 1.3rem; opacity: 0.7; }
.tab-btn.active .tab-btn-icon { opacity: 1; color: white; }
.tab-content-area { flex: 1; position: relative; }
.tab-pane { position: absolute; inset: 0; padding: 50px; opacity: 0; visibility: hidden; transition: all 0.5s ease; display: flex; gap: 40px; align-items: center; }
.tab-pane.active { opacity: 1; visibility: visible; position: relative; inset: auto; }
.tab-text { flex: 1.2; }
.tab-text h2 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.1; }
.tab-text ul { list-style: none; margin-top: 20px; }
.tab-text ul li { position: relative; padding-left: 25px; margin-bottom: 10px; font-weight: 600; transition: transform 0.2s; }
.tab-text ul li:hover { transform: translateX(8px); color: white; }
.tab-text ul li::before { content: "→"; position: absolute; left: 0; font-weight: 900; }
.tab-image { flex: 1; height: 100%; min-height: 400px; display: flex; }
.tab-image .parallax-container { height: 100%; width: 100%; border-radius: 20px; flex: 1; }

/* --- CORPORATE DOWNLOAD CTA --- */
.cta-section { padding: 40px 0 80px; background: var(--bg-primary); }
.cta-box { background: var(--brand-gradient); border-radius: 20px; padding: 60px 40px; text-align: center; color: white; position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,102,0.2); max-width: 1000px; margin: 0 auto; border: 1px solid rgba(255,255,255,0.1); }
.cta-box h2 { color: white; font-size: 2.8rem; margin-bottom: 15px; }
.cta-box p { color: rgba(255,255,255,0.9); font-size: 1.2rem; margin-bottom: 35px; }
.glow-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: white; color: var(--brand-blue); padding: 20px 45px; border-radius: 50px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1rem; text-decoration: none; text-transform: uppercase; transition: all 0.3s ease; box-shadow: 0 0 25px rgba(255,255,255,0.2); cursor: pointer; letter-spacing: 1px; }
.glow-btn:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(255,255,255,0.4); background: #4da6ff; color: white; border: 1px solid white; }
.cta-bg-icon { position: absolute; right: -50px; bottom: -50px; font-size: 15rem; opacity: 0.05; transform: rotate(-15deg); pointer-events: none; }

/* --- ACCORDION FAQ SECTION --- */
details { border-radius: 20px; margin-bottom: 15px; padding: 20px 25px; transition: all 0.3s ease; cursor: pointer;}
summary { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; outline: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.8rem; transition: transform 0.3s ease; font-weight: 400; color: #4da6ff; }
details[open] summary::after { transform: rotate(45deg); }
.faq-answer { margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 15px; }

/* --- FILTERABLE GALLERY & MODAL --- */
.gallery-controls { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 2px solid var(--brand-blue); padding: 10px 25px; border-radius: 50px; font-family: 'Inter', sans-serif; font-weight: 700; transition: all 0.3s ease; color: var(--text-primary); cursor: pointer; }
.filter-btn:hover, .filter-btn.active { background: var(--brand-gradient); color: white; border-color: transparent; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.gallery-item { height: 240px; border-radius: 20px; overflow: hidden; position: relative; transition: transform 0.4s ease, opacity 0.4s ease; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,102,0.95), rgba(0,0,102,0.1)); opacity: 0; display: flex; align-items: flex-end; padding: 25px; transition: opacity 0.4s ease; z-index: 2; pointer-events: none; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.1); }
.overlay-text h4 { color: white; font-size: 1.2rem; margin-bottom: 5px; transform: translateY(20px); transition: transform 0.4s ease; font-family: 'Montserrat', sans-serif; font-weight: 800; }
.overlay-text p { color: #ccc; font-size: 0.9rem; transform: translateY(20px); transition: transform 0.4s ease 0.1s; margin: 0; }
.gallery-item:hover .overlay-text h4, .gallery-item:hover .overlay-text p { transform: translateY(0); }
.hide-item { display: none !important; }

.modal { position: fixed; inset: 0; z-index: 100000; background: rgba(5,5,7,0.95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; backdrop-filter: blur(10px); }
.modal.active { opacity: 1; visibility: visible; }
.modal-content { max-width: 900px; width: 90%; background: var(--bg-primary); border-radius: 20px; overflow: hidden; position: relative; transform: scale(0.9); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 0 30px 60px rgba(0,0,0,0.5); border: 1px solid var(--card-border); }
.modal.active .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 20px; right: 20px; background: rgba(0,0,0,0.5); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; z-index: 10; display: flex; align-items: center; justify-content: center; transition: background 0.3s; cursor: pointer; }
.modal-close:hover { background: var(--brand-blue); transform: scale(1.1); }
.modal-img { width: 100%; height: 50vh; object-fit: cover; }
.modal-body { padding: 40px; text-align: center; }
.modal-body h3 { font-size: 2rem; margin-bottom: 10px; color: var(--heading-color); font-family: 'Montserrat', sans-serif; font-weight: 900;}
.modal-body p { font-size: 1.1rem; color: var(--text-secondary); }

/* --- CONTACT US & VALIDATION --- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.form-box { padding: 45px; border-radius: 20px; position: relative; overflow: hidden; }
input, textarea { width: 100%; padding: 18px; border-radius: 12px; margin-bottom: 20px; font-family: 'Inter', sans-serif; font-weight: 600; outline: none; transition: border-color 0.3s ease; cursor: text; }
input.valid-input, textarea.valid-input { border-color: var(--success-color) !important; }
input.invalid-input, textarea.invalid-input { border-color: var(--error-color) !important; }
    
.submit-btn { border: none; padding: 20px; width: 100%; border-radius: 12px; font-family: 'Montserrat', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; transition: transform 0.2s ease, opacity 0.3s; cursor: pointer; }
.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,102,0.2); }
    
.form-success-message { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; opacity: 0; visibility: hidden; transition: all 0.5s ease; z-index: 10; padding: 40px; }
.form-success-message.active { opacity: 1; visibility: visible; }
.success-icon { font-size: 4rem; color: var(--success-color); margin-bottom: 20px; }

/* --- MOBILE STICKY STRIP --- */
.mobile-contact-strip { display: none; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999; box-shadow: 0 -5px 20px rgba(0,0,0,0.15); background: var(--bg-primary); }
.strip-btn { flex: 1; text-align: center; padding: 18px 10px; color: white; text-decoration: none; font-weight: 800; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; transition: background 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
.strip-call { background: var(--brand-blue); }
.strip-call:active { background: #000033; }
.strip-email { background: var(--deep-black); }
.strip-email:active { background: #333; }

/* --- FOOTER (GRADIENT BOX COLOR) --- */
footer { background: var(--brand-gradient); color: rgba(255,255,255,0.8); padding: 60px 0 40px; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.1); }
.certified-by-section { margin-bottom: 60px; width: 100%; overflow: hidden; position: relative; }
.logo-slider { width: 100%; overflow: hidden; }
.logo-slide-track { display: flex; width: calc(120px * 20); animation: scroll 20s linear infinite; align-items: center; }
.logo-slide-track:hover { animation-play-state: paused; } 
.cert-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 50%; background: white; padding: 10px; margin: 0 20px; flex-shrink: 0; transition: transform 0.3s ease; }
.cert-logo:hover { transform: scale(1.15); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-120px * 10)); } }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-heading { color: white; font-size: 1.1rem; margin-bottom: 20px; font-family: 'Montserrat', sans-serif; font-weight: 800; }
.footer-link { display: block; color: rgba(255,255,255,0.8); text-decoration: none; margin-bottom: 10px; transition: color 0.3s ease; cursor: pointer; }
.footer-link:hover { color: #4da6ff; }
.copyright { text-align: center; padding-top: 40px; margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.1); font-weight: 400; }
.contact-link { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.3s ease; cursor: pointer; }
.contact-link:hover { color: #4da6ff; }

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .about-grid, .md-message-box, .contact-wrap { grid-template-columns: 1fr !important; flex-direction: column !important; text-align: center; gap: 40px; }
    section { padding: 50px 0 !important; }
    .stats-section { padding: 40px 0 !important; }
    
    nav { flex-direction: column; padding: 15px 4%; background: var(--nav-bg); }
    nav.transparent-nav .brand h2, nav.transparent-nav .nav-links > a, nav.transparent-nav .dropdown-toggle { color: var(--brand-blue) !important; }
    nav.transparent-nav .nav-links > a::after, nav.transparent-nav .dropdown-toggle::after { background-color: var(--brand-blue) !important; }
    nav.transparent-nav .theme-toggle, nav.transparent-nav .lang-select { color: var(--brand-blue) !important; border-color: var(--brand-blue) !important; }
    
    .nav-links { margin-top: 15px; flex-wrap: wrap; justify-content: center; gap: 15px; }
    .nav-links > a, .dropdown-toggle { margin-left: 0; }
    .dropdown-toggle::before { display: none; }
    .dropdown:hover .mega-menu { display: none; }
    .controls-wrap { margin-top: 10px; margin-left: 0; border-left: none; padding-left: 0; border-top: 1px solid var(--card-border); padding-top: 10px; width: 100%; justify-content: center; }
    .parallax-container { height: 350px; width: 100%; min-height: 350px; }
    .stats-banner { flex-direction: column; padding: 40px; }
    
    /* Responsive Layered Scope updates */
    .layered-scope { grid-template-columns: 1fr; padding: 60px 4%; }
    .scope-content-box { text-align: center; }
    
    .services-tab-container { flex-direction: column; min-height: auto; }
    .tab-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1) !important; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .tab-btn { padding: 15px 25px; border-left: none !important; border-bottom: 4px solid transparent; justify-content: center; flex: 0 0 auto; white-space: nowrap; }
    .tab-btn.active { border-left-color: transparent !important; border-bottom-color: #4da6ff !important; box-shadow: none !important; background: transparent !important; }
    .tab-pane { flex-direction: column; padding: 30px; text-align: center; position: static; opacity: 0; display: none; }
    .tab-pane.active { opacity: 1; display: flex; }
    .tab-text ul li { text-align: left; }
    .tab-image { width: 100%; min-height: 300px; }

    .timeline-track { left: 30px; }
    .timeline-progress { left: 30px; }
    .timeline-node, .timeline-node:nth-child(even) { justify-content: flex-start; padding-left: 70px; padding-right: 0; }
    .timeline-content, .timeline-node:nth-child(even) .timeline-content, .timeline-node:nth-child(odd) .timeline-content { width: 100%; text-align: left; margin: 0; }
    .timeline-dot { left: 30px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand-container { flex-direction: column; align-items: center; }
    .hq-status { display: none; }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem !important; }
    .tab-text h2 { font-size: 2.2rem !important; }
    .modal-img { height: 35vh; }
    .modal-body { padding: 25px; }
    .mobile-contact-strip { display: flex; }
    .cta-box { padding: 40px 20px; }
    .cta-box h2 { font-size: 2rem; }
    .md-message-box { padding: 40px 20px; }
    .matrix-box { padding: 30px 15px; }
    body { padding-bottom: 60px; }
}