/* ==========================================================================
   GLOBAL DESIGN VARIABLES
   ========================================================================== */
:root {
    --primary-red: #EE333A;
    --dark-bg: #0B0C10;
    --dark-variant: #13141C;
    --light-bg: #FFFFFF;
    --light-variant: #F8F9FA;
    
    /* Typography Tokens */
    --text-dark: #0F1115;
    --text-light: #FFFFFF;
    --muted-dark: #6C757D;
    --muted-light: #A0A5B5;
    
    --border-light: rgba(0, 0, 0, 0.06);
    --border-dark: rgba(255, 255, 255, 0.06);
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================
MOBILE SAFETY LAYER
========================= */

@media (max-width: 768px) {

html, body {
    overflow-x: hidden;
    width: 100%;
}

.container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* prevent flex overflow */
.d-flex {
    flex-wrap: wrap !important;
}

/* fix long text / badges */
.tech-badge,
.badge {
    white-space: normal;
    max-width: 100%;
}

}


body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.py-6 {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}
.text-primary-color { color: var(--primary-red); }
.tracking-wider { letter-spacing: 0.1rem; }
.max-w-xl { max-width: 650px; }

/* ==========================================================================
   INTERACTIVE FLOATING & APPARATUS SYSTEMS
   ========================================================================== */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--light-bg); z-index: 99999;
    display: flex; justify-content: center; align-items: center;
}
.spinner {
    width: 50px; height: 50px; border: 3px solid rgba(0,0,0,0.05);
    border-radius: 50%; border-top-color: var(--primary-red);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#scrollTopBtn {
    display: none; position: fixed; bottom: 30px; right: 30px; z-index: 99;
    border: none; background-color: var(--primary-red); color: white;
    padding: 12px 16px; border-radius: 8px; transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(238, 51, 58, 0.2);
}
#scrollTopBtn:hover { transform: translateY(-5px); background-color: #b81d24; }

.whatsapp-float {
    position: fixed; bottom: 30px; left: 30px; z-index: 99;
    background-color: #25d366; color: white; width: 50px; height: 50px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 24px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }

/* ==========================================================================
   NAVBAR (BLENDED TRANSLUCENT)
   ========================================================================== */
.main-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0; transition: all 0.3s;
}
.navbar-logo { height: 40px; width: auto; object-fit: contain; }
.badge-cac { 
    background: rgba(238, 51, 58, 0.08); border: 1px solid rgba(238, 51, 58, 0.3); 
    color: var(--primary-red); font-size: 11px; font-weight: 600; 
}
.nav-link { color: rgba(15, 17, 21, 0.8) !important; font-size: 15px; font-weight: 500; padding: 8px 16px !important; }
.nav-link:hover { color: var(--primary-red) !important; }
.btn-cta-nav { background: var(--text-dark); color: white !important; border-radius: 6px; padding: 8px 20px !important; }
.btn-cta-nav:hover { background: var(--primary-red); color: white !important; }

/* ==========================================================================
   BUTTONS & GLOBAL LAYOUT TILES
   ========================================================================== */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-red) 0%, #b81d24 100%);
    color: white !important; border: none; font-weight: 500; border-radius: 8px;
    padding: 12px 28px; box-shadow: 0 4px 15px rgba(238, 51, 58, 0.15);
    transition: all 0.3s ease;
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(238, 51, 58, 0.3); }

.btn-outline-dark-custom {
    border: 2px solid var(--text-dark); color: var(--text-dark);
    font-weight: 500; border-radius: 8px; padding: 11px 26px; transition: all 0.3s;
}
.btn-outline-dark-custom:hover { background: var(--text-dark); color: white !important; transform: translateY(-2px); }

.section-tag {
    display: inline-flex; align-items: center; gap: 8px; color: var(--primary-red);
    font-weight: 600; font-size: 14px; text-uppercase: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}
.bg-danger-glow { background: rgba(238, 51, 58, 0.06); color: var(--primary-red); border: 1px solid rgba(238, 51, 58, 0.15); }

/* ==========================================================================
   LIGHT MIX SECTIONS (Hero, About, Workflow, FAQ)
   ========================================================================== */
.mix-light-zone {
    background-color: var(--light-bg);
    color: var(--text-dark);
}
.mix-light-zone .section-title { color: var(--text-dark); }
.mix-light-zone .text-muted-custom { color: var(--muted-dark); }

/* Hero Graphic Base Terminal */
.tech-graphic-card {
    background: #0B0C10; border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px; padding: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.dot { height: 10px; width: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }
.small-text { font-size: 13px; font-family: monospace; }

/* About Display Blocks */
.about-feature-box { 
    background: var(--light-variant); border-radius: 8px; padding: 20px; 
    border-left: 3px solid var(--primary-red); border-top: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); 
}
.mission-vision-card { background: #FFFFFF; border: 1px solid var(--border-light); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.mission-vision-card .icon-wrapper {
    background: var(--primary-red); width: 45px; height: 45px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white;
}

/* Timeline Components */
.timeline::after { content: ''; position: absolute; width: 2px; background-color: var(--border-light); top: 0; bottom: 0; left: 50%; margin-left: -1px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 16px; height: 16px; right: -8px; background-color: var(--primary-red); border: 4px solid var(--light-bg); top: 25px; border-radius: 50%; z-index: 1; }
.left { left: 0; } .right { left: 50%; } .right::after { left: -8px; }
.timeline-content { padding: 20px 30px; background: var(--light-variant); border-radius: 12px; border: 1px solid var(--border-light); position: relative;}
.step-num { font-size: 24px; font-weight: 800; color: rgba(238, 51, 58, 0.15); position: absolute; top: 15px; right: 20px; }

/* Accordion Elements */
.custom-accordion .accordion-item { background: #FFFFFF; border: 1px solid var(--border-light); margin-bottom: 12px; border-radius: 8px !important; overflow: hidden; }
.custom-accordion .accordion-button { background: transparent; color: var(--text-dark); font-weight: 600; padding: 20px; border: none; }
.custom-accordion .accordion-button:not(.collapsed) { background: rgba(238, 51, 58, 0.04); color: var(--primary-red); box-shadow: none; }
.custom-accordion .accordion-body { color: var(--muted-dark); padding: 20px; }

/* ==========================================================================
   DARK MIX SECTIONS (Services, Stats, Team, Contact)
   ========================================================================== */
.mix-dark-zone {
    background-color: var(--dark-bg);
    color: var(--text-light);
}
.mix-dark-zone .section-title { color: var(--text-light); }
.mix-dark-zone .text-muted-custom { color: var(--muted-light); }

/* Services Cards (Glassmorphism) */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-dark); border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s, border-color 0.3s;
}
.service-card h4 { color: var(--text-light); }
.service-card:hover {
    transform: translateY(-8px); background: rgba(255, 255, 255, 0.05);
    border-color: rgba(238, 51, 58, 0.4); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.service-icon {
    width: 55px; height: 55px; background: rgba(238, 51, 58, 0.15);
    color: var(--primary-red); border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 22px;
}

/* Why Choose Us Cards Inside Dark Zone */
.benefit-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-dark);
    border-radius: 12px; padding: 25px 20px; text-align: center; height: 100%; transition: all 0.3s;
}
.benefit-card i { font-size: 28px; color: var(--primary-red); margin-bottom: 15px; display: block; }
.benefit-card h5 { font-size: 16px; color: var(--text-light); margin-bottom: 0; }
.benefit-card:hover { background: rgba(238, 51, 58, 0.05); border-color: rgba(238, 51, 58, 0.3); }

/* Stats Engine */
.stats-section { background: linear-gradient(135deg, var(--dark-variant) 0%, #060709 100%); border-y: 1px solid var(--border-dark); }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary-red); margin-bottom: 5px; }
.stats-section .stat-label { color: var(--muted-light); text-uppercase: uppercase; font-size: 13px; letter-spacing: 1px; }

/* Team Display Arrays */
.team-card { background: rgba(255, 255, 255, 0.02) !important; border: 1px solid var(--border-dark); border-radius: 16px; }
.team-card h4 { color: var(--text-light) !important; }
.team-avatar-wrapper {
    width: 100px; height: 100px; margin: 0 auto; border-radius: 50%;
    background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center;
    border: 2px dashed var(--primary-red); padding: 5px;
}
.avatar-placeholder {
    width: 100%; height: 100%; background: rgba(255,255,255,0.05);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--muted-light);
}
.team-socials a { color: var(--muted-light); margin: 0 8px; font-size: 16px; transition: color 0.3s; }
.team-socials a:hover { color: var(--primary-red); }

/* Contact Element Matrices */
.contact-section { background-color: var(--dark-bg); }
.contact-icon-box {
    width: 45px; height: 45px; background: rgba(238, 51, 58, 0.15);
    color: var(--primary-red); border-radius: 8px; display: flex;
    align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.custom-input {
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-dark);
    color: var(--text-light) !important; border-radius: 8px; padding: 12px;
}
.custom-input:focus { background: rgba(255, 255, 255, 0.07); border-color: var(--primary-red); box-shadow: none; }
.custom-input::placeholder { color: #6C757D; }

.social-link-icon {
    width: 40px; height: 40px; background: rgba(255, 255, 255, 0.04);
    color: var(--text-light); border-radius: 8px; display: inline-flex; align-items: center;
    justify-content: center; transition: all 0.3s; text-decoration: none; border: 1px solid var(--border-dark);
}
.social-link-icon:hover { background: var(--primary-red); color: white; transform: translateY(-3px); border-color: var(--primary-red); }

/* Tech Weapons Badging Array */
.tech-badge {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border-dark);
    border-radius: 30px; padding: 8px 20px; font-size: 14px; color: var(--text-light);
}

/* Testimonial Cards */
.testimonial-card { background: rgba(255, 255, 255, 0.02) !important; border: 1px solid var(--border-dark); border-radius: 16px; }
.testimonial-card h6 { color: var(--text-light); }
.avatar-circle-sm {
    width: 45px; height: 45px; background: rgba(238, 51, 58, 0.15);
    color: var(--primary-red); font-weight: 700; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.quote-icon { position: absolute; top: 20px; right: 20px; font-size: 32px; color: rgba(255,255,255,0.02); }

/* Animated Decorative Blobs */
.animated-bg-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.06; z-index: 1; animation: floatBlob 10s ease-in-out infinite; }
.blob-1 { width: 400px; height: 400px; background: var(--primary-red); top: 10%; right: 10%; }
.blob-2 { width: 300px; height: 300px; background: #0044ff; bottom: 15%; left: 5%; animation-delay: 2s; }
@keyframes floatBlob { 0%, 100% { transform: translateY(0px) scale(1); } 50% { transform: translateY(-30px) scale(1.05); } }

/* ==========================================================================
   FOOTER (SOLID DARK ENGINE)
   ========================================================================== */
.footer-area { background-color: #050608; border-top: 1px solid var(--border-dark); }
.footer-area h5, .footer-area h6 { color: #FFFFFF !important; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--muted-light); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-red); }
.footer-area .custom-input { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }

/* Mobile Adaptations */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.6rem; }
    .py-6 { padding-top: 4rem; padding-bottom: 4rem; }
    .navbar-collapse { background: #FFFFFF; padding: 20px; border-radius: 12px; margin-top: 10px; border: 1px solid var(--border-light); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 23px; }
    .right { left: 0%; }
}