/* --- 1. GLOBAL STYLES --- */
:root {
    --primary: #0a192f; /* Deep Navy Blue */
    --secondary: #007bff; /* Bright Tech Blue */
    --accent: #d4af37; /* Gold */
    --text: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    overflow-x: hidden; /* CRITICAL FIX: Prevents side-scrolling */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background-color: white;
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--primary); }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* --- FIXED SECTION TITLES --- */
.section-title { 
    font-size: 2.5rem; 
    text-align: center; 
    margin: 0 auto 10px auto; 
    font-weight: 800; 
    color: var(--primary); 
    position: relative; 
    display: block; 
    width: 100%;
    max-width: 800px;
}

.section-title::after { 
    content: ''; 
    position: absolute; 
    bottom: -10px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 100px; 
    height: 3px; 
    background: var(--accent); 
}

.section-subtitle { 
    text-align: center; 
    margin: 15px auto 60px auto; 
    color: var(--text-light); 
    font-size: 1.1rem; 
    display: block;
}

.section-title.white { color: white; }

/* --- 2. NAVBAR --- */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(10, 25, 47, 0.98);
    padding: 15px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    display: flex; align-items: center; gap: 10px; 
    color: white; font-weight: 800; font-size: 1.1rem; 
    font-family: var(--font-heading);
}
.logo img { height: 40px; border-radius: 5px; border: 1px solid var(--accent); }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: #ccd6f6; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--accent); }

.btn-nav {
    border: 2px solid var(--accent);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--accent) !important;
}
.btn-nav:hover { background: var(--accent); color: var(--primary) !important; }

.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: white; border-radius: 3px; }

/* --- 3. HERO SECTION --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding-top: 60px;
}

.hero-video {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    z-index: -2; object-fit: cover;
}

.video-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 25, 47, 0.75);
    z-index: -1;
}

.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; color: white; text-transform: uppercase; letter-spacing: -1px; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px; color: #ccd6f6; font-weight: 300; }

.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
    display: inline-block; background: var(--accent); color: var(--primary);
    padding: 15px 40px; font-weight: 700; border-radius: 5px; font-size: 1.1rem; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4); }

.btn-outline {
    display: inline-block; border: 2px solid white; color: white;
    padding: 13px 40px; font-weight: 700; border-radius: 5px; font-size: 1.1rem;
}
.btn-outline:hover { background: white; color: var(--primary); }

/* --- 4. PARTNERS SECTION --- */
.partners-section { padding: 30px 0; background: #fff; border-bottom: 1px solid #eee; }
.partners-title { text-align: center; font-size: 0.9rem; color: #888; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; }
.partners-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; opacity: 0.8; }
.partners-grid img { height: 40px; filter: none; transition: 0.3s; max-width: 120px; object-fit: contain; }
.partners-grid img:hover { transform: scale(1.1); opacity: 1; }

/* --- 5. ABOUT SECTION --- */
.about-section { padding: 100px 0; background: white; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.about-card {
    padding: 40px; border: 1px solid #e2e8f0; border-radius: 10px; transition: 0.3s;
}
.about-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: transparent; }
.about-card.highlight { background: var(--primary); color: white; border: none; transform: scale(1.05); z-index: 1; }
.about-card.highlight h3, .about-card.highlight p { color: white; }

.icon { font-size: 2.5rem; margin-bottom: 20px; color: var(--secondary); }
.about-card.highlight .icon { color: var(--accent); }

.about-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.values-list li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.values-list i { color: var(--accent); }

/* --- 6. IMPACT SECTION --- */
.impact-section { background: var(--secondary); padding: 80px 0; color: white; text-align: center; }
.counter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.count { font-size: 4rem; font-weight: 800; display: block; font-family: var(--font-heading); }
.counter-item p { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }

/* --- 7. ECOSYSTEM SECTION --- */
.ecosystem-section { padding: 100px 0; background: var(--bg-light); }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }

.brand-card {
    background: white; border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #eee; display: flex; flex-direction: column;
}
.brand-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.brand-logo-area {
    height: 200px; background: #fff; display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid #eee; padding: 20px; position: relative; overflow: hidden;
}
.brand-img { max-height: 80%; object-fit: contain; transition: 0.5s; filter: none; opacity: 1; }
.brand-card:hover .brand-img { transform: scale(1.1); }
.brand-icon-placeholder { font-size: 5rem; color: var(--primary); }

.brand-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.brand-content h3 { font-size: 1.5rem; margin-bottom: 5px; }
.brand-tag { 
    display: inline-block; background: #e6f1ff; color: var(--secondary); 
    padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 15px; 
}
.brand-content p { color: var(--text-light); margin-bottom: 20px; font-size: 0.95rem; }
.brand-features { margin-bottom: 20px; font-size: 0.9rem; color: #555; }
.brand-features li { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.brand-features i { color: var(--secondary); }
.brand-link { color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--accent); padding-bottom: 2px; margin-top: auto; align-self: flex-start; }
.brand-link:hover { color: var(--secondary); border-color: var(--secondary); }

/* --- 8. BUSINESS REGISTRATIONS SECTION --- */
.reg-section { padding: 100px 0; background: white; }
.reg-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.reg-text { color: var(--text-light); font-size: 1.1rem; margin-bottom: 30px; }
.reg-logos { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.reg-logo-item img { height: 60px; filter: none; transition: 0.3s; object-fit: contain; }
.reg-logo-item img:hover { transform: scale(1.1); }
.reg-image { height: 400px; border-radius: 12px; overflow: hidden; box-shadow: 20px 20px 0px #f8f9fa; }
.full-height { height: 100%; width: 100%; object-fit: cover; }

/* --- 9. CLIENT REPRESENTATION SECTION (CRD) --- */
.crd-section { padding: 100px 0; background: var(--primary); color: white; position: relative; overflow: hidden; }
.crd-section::before {
    content: ''; position: absolute; top: -100px; left: -100px; width: 400px; height: 400px;
    background: rgba(255,255,255,0.05); border-radius: 50%;
}
.crd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.crd-image { height: 450px; border-radius: 12px; overflow: hidden; position: relative; border: 2px solid var(--accent); }
.crd-text { font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; color: #ccd6f6; }
.btn-whatsapp { 
    background: #25D366; color: white; display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 30px; border-radius: 50px; font-weight: 700; font-size: 1rem;
}
.btn-whatsapp:hover { background: #128C7E; transform: translateY(-3px); }
.small-text { display: block; font-size: 0.8rem; margin-top: 15px; opacity: 0.7; font-style: italic; }

.globe-dots {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--accent) 1px, transparent 1px);
    background-size: 30px 30px; opacity: 0.3;
}

/* --- 10. ROADMAP SECTION --- */
.roadmap-section { padding: 100px 0; background: white; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after {
    content: ''; position: absolute; width: 4px; background-color: var(--primary); top: 0; bottom: 0; left: 50%; margin-left: -2px;
}
.timeline-item { padding: 10px 40px; position: relative; width: 50%; box-sizing: border-box; }
.timeline-item::after {
    content: ''; position: absolute; width: 20px; height: 20px; right: -10px; background-color: white; border: 4px solid var(--accent); top: 20px; border-radius: 50%; z-index: 1;
}
.left { left: 0; }
.right { left: 50%; }
.right::after { left: -10px; }
.timeline-content { 
    padding: 25px; background: white; border: 1px solid #e2e8f0; 
    border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); position: relative;
}
.timeline-content .date { 
    background: var(--accent); color: var(--primary); display: inline-block; 
    padding: 4px 10px; font-size: 0.8rem; font-weight: 700; border-radius: 4px; margin-bottom: 10px; 
}
.timeline-content h3 { color: var(--secondary); font-size: 1.2rem; margin-bottom: 5px; }

/* --- 11. TEAM SECTION --- */
.team-section { padding: 100px 0; background: var(--bg-light); text-align: center; }

.team-category-title {
    font-size: 1.5rem; margin: 50px 0 30px; color: var(--secondary); 
    position: relative; display: inline-block; padding-bottom: 10px;
}
.team-category-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 50px; height: 3px; background: var(--accent);
}

.team-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 40px;
}
.team-grid.compact { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.team-card {
    background: white; padding: 30px 20px; border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.team-img {
    width: 120px; height: 120px; border-radius: 50%; 
    margin: 0 auto 15px; border: 3px solid var(--accent); 
    object-fit: cover; display: block;
}
.team-img.small { width: 90px; height: 90px; }

.team-card h4 { color: var(--primary); margin-bottom: 5px; font-size: 1.1rem; }
.team-card p { color: var(--text-light); font-size: 0.9rem; font-weight: 600; }

.placeholder-img { background-color: #ddd; }

/* --- 12. CSR SECTION --- */
.csr-section { padding: 100px 0; background: white; text-align: center; }
.csr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.csr-card { padding: 40px; background: #f8f9fa; border-radius: 12px; border-top: 5px solid var(--accent); transition: 0.3s; }
.csr-card:hover { transform: translateY(-10px); background: white; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.csr-icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; }
.csr-card h3 { font-size: 1.3rem; margin-bottom: 15px; }

/* --- 13. TESTIMONIALS --- */
.testimonials-section { padding: 100px 0; background: white; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.testimonial-card {
    background: var(--bg-light); padding: 40px; border-radius: 12px;
    border-left: 5px solid var(--secondary); position: relative; transition: 0.3s;
}
.testimonial-card:hover { background: #f0f4ff; }

.quote-icon { font-size: 2rem; color: #dce3f0; position: absolute; top: 20px; right: 30px; }
.testimonial-text { font-size: 1rem; color: var(--text); font-style: italic; margin-bottom: 25px; line-height: 1.7; }

.testimonial-author { display: flex; align-items: center; gap: 15px; }
.author-img { width: 50px; height: 50px; border-radius: 50%; background-color: #ccc; flex-shrink: 0; object-fit: cover; }
.testimonial-author h5 { font-size: 1rem; margin-bottom: 2px; color: var(--primary); }
.testimonial-author span { font-size: 0.85rem; color: var(--text-light); }

/* --- 14. NEWS SECTION --- */
.news-section { padding: 100px 0; background: var(--bg-light); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.news-card {
    background: white; border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #e2e8f0; display: flex; flex-direction: column; height: 100%;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.news-img { height: 200px; width: 100%; object-fit: cover; background-color: #ddd; }
.news-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.news-source { font-size: 0.75rem; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; display: block; }
.news-content h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; color: var(--primary); font-weight: 700; }
.news-desc { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; }
.news-link { margin-top: auto; color: var(--secondary); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px; }
.news-link:hover { text-decoration: underline; gap: 8px; }
.loading-state { grid-column: 1 / -1; text-align: center; padding: 40px; font-size: 1.2rem; color: var(--text-light); }
.api-attribution { font-size: 0.8rem; color: #999; margin-top: 20px; }

/* --- 15. NEWSLETTER SECTION --- */
.newsletter-section { padding: 80px 0; background: linear-gradient(135deg, var(--primary) 0%, #112240 100%); color: white; position: relative; overflow: hidden; }
.newsletter-section::after { content: ''; position: absolute; right: -50px; bottom: -50px; width: 200px; height: 200px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.newsletter-content { max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.newsletter-text h2 { color: white; margin-bottom: 10px; }
.newsletter-text p { color: #ccd6f6; margin-bottom: 30px; }
.newsletter-form { max-width: 500px; margin: 0 auto; }
.input-group { display: flex; gap: 10px; background: rgba(255,255,255,0.1); padding: 5px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.2); }
.newsletter-form input { flex: 1; padding: 15px 20px; border-radius: 50px; border: none; font-size: 1rem; background: transparent; color: white; outline: none; }
.newsletter-form input::placeholder { color: #a8b2d1; }
.newsletter-form button { border-radius: 50px; padding: 12px 30px; border: none; cursor: pointer; }
.privacy-note { font-size: 0.8rem; margin-top: 15px; color: #8892b0; opacity: 0.8; }

/* --- 16. FOOTER --- */
footer { background: var(--primary); color: #8892b0; padding: 80px 0 20px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #233554; padding-bottom: 40px; margin-bottom: 20px; }
.footer-logo h2 { color: white; margin-bottom: 10px; }
.footer-info p { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.social-links a { color: white; font-size: 1.5rem; margin-left: 20px; transition: 0.3s; }
.social-links a:hover { color: var(--accent); transform: scale(1.2); display: inline-block; }
.copyright { text-align: center; font-size: 0.9rem; opacity: 0.7; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    /* Fonts and Headings */
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    
    /* Layouts: Stack everything */
    .about-grid, .brands-grid, .team-grid, .testimonial-grid, .counter-grid, .news-grid, .csr-grid, .partners-grid, .reg-layout, .crd-layout { 
        display: flex; 
        flex-direction: column; 
    }
    
    /* Section Padding Reduced for Mobile */
    .about-section, .impact-section, .ecosystem-section, .roadmap-section, .team-section, .testimonials-section, .news-section, .csr-section, .reg-section, .crd-section {
        padding: 60px 0;
    }

    /* Images */
    .reg-image { height: 250px; order: -1; margin-bottom: 30px; box-shadow: none; } /* Removed mobile shadow */
    .crd-image { height: 250px; order: -1; margin-bottom: 30px; }
    .reg-logos { justify-content: center; }

    /* Timeline Mobile */
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 21px; }
    .right { left: 0; }
    
    /* Footer & Newsletter */
    .newsletter-form .input-group { flex-direction: column; background: transparent; border: none; gap: 15px; }
    .newsletter-form input { background: white; color: var(--text); border-radius: 5px; }
    .newsletter-form button { width: 100%; border-radius: 5px; }
    .footer-content { flex-direction: column; text-align: center; gap: 30px; }
    .social-links { margin-top: 20px; margin-left: 0; }
    .social-links a { margin: 0 10px; }
    
    /* Mobile Navigation */
    .menu-toggle { display: flex; }
    .nav-links {
        display: none; width: 100%; position: absolute; top: 70px; left: 0;
        background: var(--primary); flex-direction: column; padding: 20px; text-align: center;
        border-top: 2px solid var(--accent);
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; }
    .hero { padding-top: 80px; }
}