/* =========================================
   1. Globals & Variables
========================================= */
:root {
    --primary-color: #0A2540;     
    --primary-light: #1e3f60;
    --accent-color: #1890FF;      
    --accent-hover: #0077e6;
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #F4F7F9;
    --white: #FFFFFF;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(24, 144, 255, 0.15);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--white); color: var(--text-color); line-height: 1.7; overflow-x: hidden; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.bg-light { background-color: var(--bg-light); }
.mt-3 { margin-top: 1rem; }

/* Text Utility Classes */
.text-white { color: #ffffff !important; }
.text-light { color: #d0dbe6 !important; }

/* =========================================
   2. Typography & Buttons
========================================= */
h1, h2, h3, h4 { color: var(--primary-color); font-weight: 700; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 10px; position: relative; }
.section-title.left-align { text-align: left; }
.section-subtitle { text-align: center; font-size: 1.1rem; color: var(--text-muted); margin-bottom: 50px; }
.highlight { color: var(--accent-color); }

.btn-primary, .btn-primary-large { background-color: var(--accent-color); color: var(--white) !important; text-decoration: none; border-radius: 6px; font-weight: 600; transition: all 0.3s ease; border: none; cursor: pointer; display: inline-block; }
.btn-primary { padding: 10px 24px; }
.btn-primary-large { padding: 15px 35px; font-size: 1.1rem; box-shadow: 0 4px 15px rgba(24, 144, 255, 0.4); }
.btn-primary:hover, .btn-primary-large:hover { background-color: var(--accent-hover); transform: translateY(-3px); }

.btn-outline-large { border: 2px solid var(--white); color: var(--white); padding: 13px 35px; font-size: 1.1rem; border-radius: 6px; text-decoration: none; font-weight: 600; transition: 0.3s; display: inline-block; }
.btn-outline-large:hover { background: var(--white); color: var(--primary-color); }

/* =========================================
   3. Top Bar & Navbar (Header)
========================================= */
.top-bar { background: var(--primary-color); color: rgba(255,255,255,0.8); font-size: 0.9rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left span { margin-right: 20px; }
.top-bar-left i { color: var(--accent-color); margin-right: 5px; }
.top-bar-right a { color: rgba(255,255,255,0.8); margin-left: 15px; transition: 0.3s; }
.top-bar-right a:hover { color: var(--accent-color); }

.navbar { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: fixed; width: 100%; top: 38px; z-index: 1000; transition: all 0.3s ease; border-bottom: 1px solid rgba(0,0,0,0.05); }
.navbar.scrolled { box-shadow: 0 5px 20px rgba(0,0,0,0.05); padding: 5px 0; top: 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 90px; transition: height 0.3s; }
.navbar.scrolled .nav-container { height: 75px; }
.logo img { height: 55px; transition: 0.3s; }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--primary-color); font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-color); }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-color); }

/* =========================================
   4. Hero & Stats Counter Sections
========================================= */
.hero { position: relative; background: url('../img/gallery/hero-bg-placeholder.jpg') center/cover; padding: 180px 0 120px; text-align: center; color: var(--white); overflow: hidden; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(10, 37, 64, 0.95), rgba(24, 144, 255, 0.8)); z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-size: 4rem; color: var(--white); margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.9; max-width: 800px; margin-inline: auto; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

.stats-section { background: var(--white); padding: 50px 0; border-bottom: 1px solid #eaeaea; z-index: 10; position: relative; margin-top: -50px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); width: 90%; max-width: 1100px; margin-inline: auto; border-radius: 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
.stat-box i { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 15px; }
.stat-box h2 { font-size: 2.8rem; display: inline; color: var(--primary-color); }
.stat-box span { font-size: 2rem; color: var(--primary-color); font-weight: bold; }
.stat-box p { font-weight: 600; color: var(--text-muted); }

/* =========================================
   5. About & Features Section
========================================= */
.about-section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.feature-box { background: var(--white); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow-soft); border-left: 4px solid var(--accent-color); }
.feature-box i { font-size: 2rem; color: var(--accent-color); margin-bottom: 15px; }
.glass-image { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); border: 5px solid white; }

/* =========================================
   6. Tech Specs Section
========================================= */
.tech-specs-section { background: linear-gradient(135deg, #0A2540, #163654); padding: 100px 0; text-align: center; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.spec-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 40px 25px; border-radius: 15px; color: white; transition: 0.3s; }
.spec-card:hover { transform: translateY(-10px); background: rgba(24, 144, 255, 0.1); border-color: var(--accent-color); }
.spec-card i { font-size: 3rem; color: var(--accent-color); margin-bottom: 20px; }
.spec-card h3 { color: #ffffff; font-size: 1.4rem; margin-bottom: 15px; }

/* =========================================
   7. Tax & Government Integrations
========================================= */
.integration-section { padding: 100px 0; text-align: center; }
.integration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.dark-card { background: var(--primary-color); border: none; padding: 40px 20px; border-radius: 15px; transition: 0.3s; text-align: center; }
.dark-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.dark-card h3 { color: #ffffff !important; font-size: 1.3rem; margin-bottom: 10px; } 
.dark-card p { color: #d0dbe6; }
.integration-icon { width: 90px; height: 90px; background: #fff; display: flex; justify-content: center; align-items: center; border-radius: 50%; margin: 0 auto 20px; padding: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); overflow: hidden; }
.integration-icon img { width: 100%; height: 100%; object-fit: contain; }

/* =========================================
   8. Solutions / Products Grid
========================================= */
.solutions-section { padding: 100px 0; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: all 0.4s ease; border: 1px solid rgba(0,0,0,0.03); }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.card-img-wrapper { position: relative; height: 200px; overflow: hidden; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img-wrapper img { transform: scale(1.1); }
.icon-overlay { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.9); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--accent-color); font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.card-body { padding: 25px; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 10px; transition: color 0.3s; }
.card:hover .card-body h3 { color: var(--accent-color); }

/* =========================================
   9. Online Reporting Section
========================================= */
.reporting-section { padding: 100px 0; }
.reporting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.reporting-image img { width: 100%; max-width: 600px; height: auto; border-radius: 20px; box-shadow: var(--shadow-soft); display: block; margin: 0 auto; }
.reporting-list { list-style: none; margin-top: 30px; }
.reporting-list li { display: flex; gap: 20px; margin-bottom: 25px; align-items: flex-start; }
.reporting-list i { background: var(--bg-light); color: var(--accent-color); padding: 15px; border-radius: 10px; font-size: 1.5rem; }
.reporting-list h4 { margin-bottom: 5px; }

/* =========================================
   10. Gallery & Staggered Screenshots
========================================= */
.gallery-section { padding: 80px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.gallery-item { height: 250px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.gallery-item:hover img { transform: scale(1.1); }

.screenshots-section { padding: 100px 0; }
.screenshot-gallery { display: flex; flex-direction: column; gap: 80px; margin-top: 60px; }
.ss-item { width: 85%; max-width: 1000px; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-hover); transition: transform 0.4s ease; background: #fff; padding: 15px; border: 1px solid rgba(0,0,0,0.05); }
.ss-item:hover { transform: translateY(-10px); }

/* Alternating Layout */
.ss-align-left { align-self: flex-start; margin-left: 2%; }
.ss-align-right { align-self: flex-end; margin-right: 2%; }

/* Image respects original proportions */
.ss-item img { width: 100%; height: auto; display: block; border-radius: 8px; object-fit: contain; }

.ss-placeholder { width: 100%; aspect-ratio: 16/9; background: #eaeaea; border-radius: 10px; display: flex; justify-content: center; align-items: center; color: #999; font-weight: 600; border: 2px dashed #ccc; font-size: 1.2rem; }

/* =========================================
   11. Animated Clients Marquee
========================================= */
.clients-section { padding: 80px 0; overflow: hidden; }
.marquee-container { width: 100vw; max-width: 100%; overflow: hidden; position: relative; margin-left: calc(-50vw + 50%); }
.marquee-container::before, .marquee-container::after { content: ""; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2; }
.marquee-container::before { left: 0; background: linear-gradient(to right, var(--white) 0%, transparent 100%); }
.marquee-container::after { right: 0; background: linear-gradient(to left, var(--white) 0%, transparent 100%); }
.marquee-track { display: flex; width: calc(200px * 14); animation: scroll 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.client-logo { width: 200px; padding: 20px; display: flex; align-items: center; justify-content: center; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; }
.client-logo:hover { filter: grayscale(0%); opacity: 1; }
.client-logo img { max-width: 120px; max-height: 80px; object-fit: contain; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 7)); }
}

/* =========================================
   12. Contact Page Elements
========================================= */
.inner-header { background: var(--primary-color); padding: 150px 0 80px; text-align: center; color: var(--white); }
.inner-header h1 { color: var(--white); font-size: 3rem; }
.inner-header p { font-size: 1.2rem; opacity: 0.8; }

.contact-section { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-info-box { background: var(--primary-color); color: white; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.contact-info-box h3 { color: white; margin-bottom: 15px; font-size: 1.8rem;}
.contact-info-box p { opacity: 0.8; margin-bottom: 30px; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.info-icon { background: rgba(255,255,255,0.1); width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; border-radius: 50%; font-size: 1.2rem; color: var(--accent-color); }
.info-item h4 { color: white; margin-bottom: 5px; }

.modern-form { background: white; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--primary-color); }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; background: #fcfcfc; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); background: white; box-shadow: 0 0 0 4px rgba(24, 144, 255, 0.1); }

/* =========================================
   13. Footer Design
========================================= */
.footer { background-color: var(--primary-light); color: #d0dbe6; padding: 80px 0 20px; }
.footer-newsletter { background: rgba(24, 144, 255, 0.1); padding: 50px 0; margin-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer-newsletter h2 { margin-bottom: 10px; }
.newsletter-form { max-width: 500px; margin: 20px auto 0; display: flex; gap: 10px; }
.newsletter-form input { flex: 1; padding: 15px; border-radius: 6px; border: none; outline: none; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 50px; margin-bottom: 50px; }
.filter-white { filter: brightness(0) invert(1); height: 75px; margin-bottom: 20px; display: block; }
.footer-col h3 { color: white; margin-bottom: 25px; font-size: 1.3rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #d0dbe6; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }
.contact-info { list-style: none; }
.contact-info li { margin-bottom: 15px; display: flex; gap: 10px; align-items: flex-start; }
.contact-info i { color: var(--accent-color); margin-top: 5px; }
.contact-info span { font-weight: bold; color: white; }
.social-icons a { display: inline-block; width: 40px; height: 40px; background: rgba(255,255,255,0.1); color: #fff; text-align: center; line-height: 40px; border-radius: 50%; margin-right: 10px; transition: 0.3s; }
.social-icons a:hover { background: var(--accent-color); transform: translateY(-3px); }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; font-size: 0.95rem; }

/* =========================================
   14. Floating WhatsApp & Animations
========================================= */
.whatsapp-float { position: fixed; width: 65px; height: 65px; bottom: 40px; right: 40px; background-color: #25d366; color: #FFF; border-radius: 50%; text-align: center; font-size: 35px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 100; display: flex; justify-content: center; align-items: center; text-decoration: none; transition: 0.3s ease; }
.whatsapp-float:hover { background-color: #128C7E; transform: scale(1.1); }
.pulse-anim { animation: pulse 2s infinite; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating-anim { animation: float 6s ease-in-out infinite; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* =========================================
   15. Responsive Media Queries
========================================= */
@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 3rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .reporting-grid { grid-template-columns: 1fr; }
    
    /* On medium screens, make screenshots span a bit wider */
    .ss-item { width: 95%; } 
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .navbar { top: 0; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .footer-container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .whatsapp-float { width: 55px; height: 55px; font-size: 30px; bottom: 20px; right: 20px; }
    .stats-section { width: 100%; margin-top: 0; border-radius: 0; box-shadow: none; }
    .feature-box-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    
    /* Remove stagger on mobile devices so images take up the full screen cleanly */
    .ss-item { 
        width: 100%; 
        align-self: center; 
        margin-left: 0; 
        margin-right: 0; 
    }
}