/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #2563eb;       /* Vibrant Blue */
    --primary-dark: #1e40af;  /* Darker Blue for hover */
    --dark: #0f172a;          /* Slate 900 */
    --light: #f8fafc;         /* Slate 50 */
    --border: #e2e8f0;        /* Light Gray Border */
    --text-gray: #64748b;     /* Slate 500 */
}

/* Force body to be at least as tall as screen and prevent horizontal scrolling */
html, body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* CRITICAL: Prevents horizontal scrolling on mobile */
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    box-sizing: border-box;
}

/* Ensure all elements calculate padding and border within their width */
*, *:before, *:after {
    box-sizing: inherit;
}

main, .content-wrapper, .dashboard-layout {
    flex: 1; 
}
a { text-decoration: none; color: inherit; }

/* Layout Helpers */
.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
}
.py-50 { padding-top: 50px; padding-bottom: 50px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }


/* =========================================
   2. MODERN HEADER & NAVIGATION
   ========================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
}
.brand-logo img { 
    height: 50px; 
    width: auto; 
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.5px; }
.brand-suffix { font-size: 0.7rem; font-weight: 600; color: var(--primary); letter-spacing: 2px; }

/* Desktop Navigation */
.desktop-nav { display: flex; gap: 32px; align-items: center; }
.nav-link {
    color: var(--gray);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 15px; }

/* Buttons */
.btn-primary-small, .btn-cta, .btn-nav-cta {
    background: var(--dark);
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.btn-primary-small:hover, .btn-cta:hover { transform: translateY(-2px); background: #1e293b; }

.btn-nav-cta {
    background-color: transparent;
    color: var(--dark) !important;
    border: 1px solid var(--border);
}
.btn-nav-cta:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    background-color: #eff6ff;
}

/* Mobile Menu Elements */
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.mobile-menu-overlay {
    position: fixed; inset: 0; background: white; z-index: 2000;
    transform: translateX(100%); transition: transform 0.3s ease;
    padding: 20px;
}
.mobile-menu-overlay.active { transform: translateX(0); }
.mobile-menu-content { display: flex; flex-direction: column; height: 100%; }
.close-menu { align-self: flex-end; background: none; border: none; font-size: 2rem; margin-bottom: 40px; cursor: pointer; }
.mobile-menu-content nav { display: flex; flex-direction: column; gap: 20px; font-size: 1.5rem; font-weight: 700; }
.mobile-menu-content a { text-decoration: none; color: var(--dark); }


/* =========================================
   3. HERO SECTION (Main Home)
   ========================================= */
.hero-section {
    padding: 120px 20px 80px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border);
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-badge {
    background: #dbeafe; color: var(--primary); padding: 5px 15px;
    border-radius: 50px; font-size: 0.9rem; font-weight: 600;
    display: inline-block; margin-bottom: 20px;
}
.hero-section h1 { font-size: 3.5rem; line-height: 1.1; color: var(--dark); margin-bottom: 20px; font-weight: 800; }
.hero-section p { font-size: 1.25rem; color: var(--text-gray); margin-bottom: 40px; line-height: 1.6; }
.highlight { color: var(--primary); position: relative; display: inline-block; }

.hero-btns { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn {
    padding: 14px 30px; border-radius: 8px; font-weight: 600;
    transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3); }
.btn-primary:hover { transform: translateY(-2px); background: var(--primary-dark); }
.btn-secondary { background: white; color: var(--dark); border: 1px solid var(--border); }
.btn-secondary:hover { transform: translateY(-2px); background: #f8fafc; }


/* =========================================
   4. HOME PAGE SECTIONS (Trust, Pillars, Stats)
   ========================================= */
.trust-strip { background: #f8fafc; padding: 40px 20px; text-align: center; border-bottom: 1px solid var(--border); }
.trust-strip p { font-size: 0.8rem; font-weight: 700; color: #94a3b8; letter-spacing: 1.5px; margin-bottom: 20px; }
.logos-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: 0.6; }
.partner-logo { font-weight: 700; font-size: 1.2rem; color: var(--text-gray); text-transform: uppercase; }

/* Pillars Grid */
.pillars-container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--dark); margin-bottom: 10px; }
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.pillar-card {
    background: white; padding: 30px; border-radius: 16px; border: 1px solid var(--border);
    transition: all 0.3s ease; text-align: left; display: flex; flex-direction: column;
}
.pillar-card:hover { border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-5px); }
.pillar-card h3 { font-size: 1.5rem; margin-bottom: 10px; color: #1e293b; }
.pillar-card p { color: var(--text-gray); line-height: 1.6; margin-bottom: 15px; flex-grow: 1; }

.icon-box {
    width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; 
    justify-content: center; margin-bottom: 20px;
}
.icon-box svg { width: 28px; height: 28px; }
.ai-icon { background: #e0f2fe; color: #0284c7; }
.web-icon { background: #f1f5f9; color: #475569; }
.agri-icon { background: #dcfce7; color: #16a34a; }
.bio-icon { background: #fce7f3; color: #db2777; }

/* Stats Section */
.stats-section { background: var(--dark); color: white; padding: 80px 20px; margin-top: 50px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; gap: 30px; }
.stat-item h2 { font-size: 3.5rem; color: #3b82f6; margin: 0; }
.stat-item p { color: #94a3b8; margin-top: 10px; }

/* Spotlight Section (DexaGen) */
.spotlight-section { padding: 100px 20px; background: white; overflow: hidden; }
.spotlight-flex { display: flex; align-items: center; gap: 60px; max-width: 1200px; margin: 0 auto; }
.spotlight-text { flex: 1; }
.spotlight-image { flex: 1; width: 100%; overflow: hidden; }

.badge { background: #dbeafe; color: var(--primary); padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; }
.check-list { list-style: none; padding: 0; margin: 20px 0; }
.check-list li { margin-bottom: 10px; color: #475569; font-weight: 500; }

.code-window {
    background: #1e293b; color: #a5b4fc; padding: 30px; border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); font-family: monospace; overflow-x: auto;
}
.dots { margin-bottom: 20px; display: flex; gap: 5px;}
.dots span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #475569; }


/* =========================================
   5. OTHER PAGES (AI Lab, Contact, Case Study)
   ========================================= */
/* AI Lab Grid */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; padding: 50px 0; }
.model-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 25px; transition: all 0.3s ease; display: flex; flex-direction: column; }
.model-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--primary); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.category-tag { background: #f1f5f9; color: #64748b; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.price-tag { color: var(--primary); font-weight: 800; font-size: 1rem; }
.model-card h3 { margin: 0 0 10px 0; font-size: 1.25rem; color: var(--dark); }
.model-card .desc { color: #64748b; font-size: 0.9rem; line-height: 1.5; flex-grow: 1; margin-bottom: 20px; }
.tech-stack { font-size: 0.8rem; color: #94a3b8; margin-bottom: 20px; font-family: monospace; }
.card-actions { display: flex; gap: 10px; }
.btn-buy { flex: 1; background: var(--dark); color: white; text-align: center; padding: 10px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: 0.2s; cursor: pointer; border: none; }
.btn-buy:hover { background: var(--primary); }
.btn-demo { flex: 1; background: white; color: var(--dark); border: 1px solid var(--border); padding: 10px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; text-align: center; }
.btn-demo:hover { background: #f8fafc; }

/* Contact Page */
.contact-hero { background: var(--dark); color: white; padding: 80px 20px; text-align: center; }
.contact-hero h1 { font-size: 3rem; margin: 20px 0; }
.contact-hero p { max-width: 600px; margin: 0 auto; color: #94a3b8; }
.contact-grid-advanced { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; padding: 50px 0; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.detail-card { background: white; padding: 25px; border-radius: 16px; border: 1px solid var(--border); display: flex; align-items: center; gap: 20px; transition: transform 0.3s ease; }
.detail-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.icon-circle { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.email-icon { background: #eff6ff; color: #2563eb; }
.whatsapp-icon { background: #dcfce7; color: #16a34a; }
.loc-icon { background: #fef2f2; color: #dc2626; }
.detail-card h3 { margin: 0; font-size: 1.1rem; color: var(--dark); }
.detail-card p { margin: 5px 0; font-size: 0.85rem; color: var(--text-gray); }
.link-item { font-weight: 700; color: var(--primary); text-decoration: none; }
.map-wrapper { border-radius: 16px; overflow: hidden; margin-top: 20px; border: 1px solid var(--border); width: 100%; }

.contact-form-wrapper { background: white; padding: 40px; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.08); border: 1px solid var(--border); }
.form-header { margin-bottom: 30px; }
.form-header h3 { font-size: 1.8rem; margin: 0 0 10px 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--dark); }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper i { position: absolute; left: 15px; color: #94a3b8; }
.input-wrapper.top-align i { top: 15px; }
.advanced-form input, .advanced-form textarea, .advanced-form select { 
    width: 100%; padding: 14px 14px 14px 45px; border: 1px solid var(--border); border-radius: 10px; 
    font-size: 1rem; font-family: inherit; transition: all 0.3s; background: #f8fafc; box-sizing: border-box;
}
.advanced-form input:focus, .advanced-form textarea:focus, .advanced-form select:focus { background: white; border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.w-full { width: 100%; }

/* FAQ Section */
.faq-section { background: #f1f5f9; padding: 80px 20px; border-top: 1px solid var(--border); }
.faq-section h2 { text-align: center; margin-bottom: 50px; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.faq-item { background: white; padding: 30px; border-radius: 16px; border: 1px solid var(--border); }
.faq-item h4 { margin-top: 0; margin-bottom: 15px; color: var(--dark); }
.faq-item i { color: var(--primary); margin-right: 10px; }

/* Case Study */
.case-hero { background: var(--dark); color: white; padding: 120px 20px 80px; text-align: center; }
.case-badge { background: rgba(37, 99, 235, 0.2); color: #60a5fa; padding: 6px 12px; border-radius: 4px; text-transform: uppercase; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; }
.case-hero h1 { font-size: 3rem; margin: 20px 0; line-height: 1.1; }
.case-subtitle { font-size: 1.2rem; color: #94a3b8; max-width: 700px; margin: 0 auto 40px; }
.case-meta { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.meta-item { display: flex; align-items: center; gap: 10px; color: #cbd5e1; font-size: 0.9rem; }
.meta-item i { color: var(--primary); }
.case-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; padding: 50px 0; }
.case-content h2 { font-size: 1.8rem; margin: 40px 0 20px; color: var(--dark); }
.case-content p { font-size: 1.05rem; line-height: 1.7; color: #475569; margin-bottom: 20px; }
.case-list { list-style: none; padding: 0; }
.case-list li { padding-left: 20px; position: relative; margin-bottom: 10px; color: var(--dark); }
.case-list li::before { content: "•"; color: var(--primary); position: absolute; left: 0; font-weight: bold; }
.code-preview { background: #1e293b; border-radius: 12px; padding: 20px; margin: 30px 0; box-shadow: 0 20px 40px rgba(0,0,0,0.1); overflow-x: auto; }
.window-header { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; } .yellow { background: #f59e0b; } .green { background: #10b981; }
.filename { color: #64748b; font-size: 0.8rem; margin-left: 10px; font-family: monospace; }
.code-preview pre { color: #a5b4fc; font-family: 'Fira Code', monospace; font-size: 0.9rem; margin: 0; }
.impact-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.impact-card { background: #f0f9ff; border-left: 4px solid var(--primary); padding: 20px 30px; border-radius: 8px; flex: 1; min-width: 150px; }
.impact-card h3 { font-size: 2rem; color: var(--primary); margin: 0; }
.impact-card p { margin: 0; font-size: 0.9rem; color: #64748b; font-weight: 600; text-transform: uppercase; }
.sidebar-box { background: white; padding: 30px; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 30px; }
.sidebar-box h4 { margin-top: 0; }
.gallery-grid { display: grid; gap: 15px; }
.gallery-item img { width: 100%; border-radius: 8px; height: auto; }
.caption { font-size: 0.8rem; color: #94a3b8; text-align: center; margin-top: 10px; font-style: italic; }
.callout { background: var(--dark); color: white; border: none; text-align: center; }
.callout h4 { color: white; }
.callout p { color: #94a3b8; margin-bottom: 20px; font-size: 0.9rem; }
.next-project { background: #f8fafc; padding: 60px 20px; text-align: center; border-top: 1px solid var(--border); }
.next-project p { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; color: #94a3b8; }
.next-project a { text-decoration: none; color: var(--dark); transition: 0.2s; }
.next-project a:hover { color: var(--primary); }


/* =========================================
   6. COMPACT FOOTER
   ========================================= */
.site-footer { background: var(--dark); color: white; padding: 25px 20px 15px; margin-top: auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 2fr; gap: 40px; margin-bottom: 20px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-logo { height: 35px; margin-bottom: 10px; filter: brightness(0) invert(1); }
.footer-top p { color: #94a3b8; font-size: 0.9rem; line-height: 1.5; margin-top: 0; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.link-group h4 { color: #94a3b8; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 0; margin-bottom: 10px; }
.link-group a { display: block; color: white; text-decoration: none; margin-bottom: 6px; font-size: 0.9rem; opacity: 0.8; transition: opacity 0.2s; }
.link-group a:hover { opacity: 1; color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; display: flex; justify-content: space-between; font-size: 0.85rem; color: #94a3b8; max-width: 1200px; margin-left: auto; margin-right: auto; flex-wrap: wrap; gap: 10px;}

.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; background: #25D366; color: white;
    width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000; transition: transform 0.3s; text-decoration: none; font-size: 1.8rem;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; }


/* =========================================
   7. DASHBOARD STYLES (Professional SaaS Look)
   ========================================= */
.dashboard-layout { display: flex; min-height: 100vh; background-color: #f1f5f9; padding-top: 80px; width: 100%; }

.dash-sidebar {
    width: 280px; background: white; border-right: 1px solid var(--border); padding: 30px 20px;
    display: flex; flex-direction: column; position: fixed; top: 80px; bottom: 0; left: 0;
    overflow-y: auto; z-index: 90; transition: transform 0.3s ease;
}

.user-profile-card { display: flex; align-items: center; gap: 15px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.avatar-circle { width: 50px; height: 50px; background: var(--dark); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.profile-text { overflow: hidden; }
.profile-text h3 { margin: 0; font-size: 0.95rem; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-text p { margin: 0; font-size: 0.75rem; color: var(--text-gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.menu-label { font-size: 0.7rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; margin-top: 20px; padding-left: 10px; }
.menu-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 15px; color: var(--text-gray);
    text-decoration: none; border-radius: 8px; font-size: 0.9rem; font-weight: 500; transition: all 0.2s ease;
    border: none; background: none; width: 100%; text-align: left; cursor: pointer; font-family: inherit;
}
.menu-item i { width: 20px; text-align: center; }
.menu-item:hover, .menu-item.active { background: #eff6ff; color: var(--primary); }
.menu-spacer { flex-grow: 1; min-height: 20px; }

.menu-item.logout { color: #ef4444; }
.menu-item.logout:hover { background: #fef2f2; color: #dc2626; }
.btn-logout { background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s ease; }
.btn-logout:hover { background-color: #ef4444; color: white; transform: translateY(-1px); box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2); }
.btn-logout:active { transform: translateY(0); }

.dash-content { flex: 1; margin-left: 280px; padding: 40px; width: calc(100% - 280px); box-sizing: border-box;}
.dash-topbar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.topbar-left h1 { margin: 0; font-size: 2rem; color: var(--dark); font-weight: 800; }
.status-indicator { font-size: 0.85rem; color: #10b981; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

.topbar-right { display: flex; gap: 15px; align-items: center; }
.btn-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: white; color: var(--text-gray); cursor: pointer; transition: 0.2s; }
.btn-icon:hover { background: var(--light); color: var(--dark); }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-bottom: 40px; }
.stat-card { background: white; padding: 25px; border-radius: 16px; border: 1px solid var(--border); display: flex; gap: 20px; align-items: flex-start; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
.icon-box.blue { background: #eff6ff; color: var(--primary); }
.icon-box.green { background: #dcfce7; color: #16a34a; }
.icon-box.purple { background: #f3e8ff; color: #9333ea; }
.stat-info { flex: 1; min-width: 0; }
.stat-info .label { font-size: 0.75rem; color: var(--text-gray); text-transform: uppercase; font-weight: 700; margin-bottom: 5px; letter-spacing: 0.5px; }
.stat-info h3 { font-size: 1.5rem; margin: 0; color: var(--dark); font-weight: 800; }
.stat-info .sub-text { font-size: 0.8rem; color: var(--text-gray); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.link-small { font-size: 0.8rem; color: var(--primary); font-weight: 600; text-decoration: none; margin-top: 5px; display: inline-block; }

.progress-bar { height: 6px; background: #f1f5f9; border-radius: 10px; margin-top: 15px; overflow: hidden; }
.progress-bar .fill { height: 100%; background: var(--primary); border-radius: 10px; transition: width 1s ease; }

.activity-panel { background: white; border-radius: 16px; border: 1px solid var(--border); padding: 25px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); overflow: hidden;}
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.panel-header h3 { margin: 0; font-size: 1.2rem; color: var(--dark); }
.btn-ghost-sm { background: none; border: 1px solid var(--border); padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; color: var(--text-gray); cursor: pointer; transition: 0.2s; }
.btn-ghost-sm:hover { background: var(--light); color: var(--dark); }

.table-responsive { overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.data-table th { text-align: left; padding: 15px; color: var(--text-gray); font-size: 0.75rem; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid var(--border); }
.data-table td { padding: 15px; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; color: var(--dark); }
.data-table tr:last-child td { border-bottom: none; }
.badge-blue { background: #eff6ff; color: var(--primary); padding: 4px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.status-dot { height: 8px; width: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.status-dot.online { background: #10b981; }

.skeleton-text { background: #e2e8f0; color: transparent !important; border-radius: 4px; animation: skeleton-pulse 1.5s infinite; }
.skeleton-text.sm { height: 12px; width: 100px; margin-top: 5px; }
@keyframes skeleton-pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }


/* =========================================
   8. GLOBAL ANIMATIONS
   ========================================= */
.fade-in { animation: fadeIn 0.5s ease-in; }
.fade-in-up { animation: fadeInUp 0.8s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.scroll-trigger { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.scroll-trigger.visible { opacity: 1; transform: translateY(0); }


/* =========================================
   9. GLOBAL MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 992px) {
    /* Header/Nav */
    .desktop-nav { display: none; }
    .mobile-toggle { display: block; }
    .btn-primary-small, .btn-nav-cta { display: none; }
    .logo img { height: 40px; }
    
    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-links { grid-template-columns: 1fr 1fr; text-align: left; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px;}
    
    /* Dashboard */
    .dash-sidebar { display: none; } /* Use JS to toggle a class like .active for mobile menu */
    .dash-content { margin-left: 0; width: 100%; padding: 20px; }
    
    /* Case Study */
    .case-grid { grid-template-columns: 1fr; gap: 40px;}
    .case-hero h1 { font-size: 2.2rem; }
    .impact-stats { flex-direction: column; gap: 15px;}
}

@media (max-width: 768px) {
    /* Container padding tweaks */
    .container { padding: 0 15px; }

    /* Hero Section */
    .hero-section { padding: 80px 15px 50px; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section p { font-size: 1rem; margin-bottom: 30px; }
    .hero-btns { flex-direction: column; width: 100%; gap: 10px; }
    .btn { width: 100%; box-sizing: border-box; }
    
    /* Grids */
    .pillars-grid, .grid-4, .stats-grid, .about-grid, .contact-wrapper, .contact-grid-advanced {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    
    /* Spotlight */
    .spotlight-flex { flex-direction: column-reverse; gap: 30px;}
    .spotlight-text h2 { font-size: 2rem;}
    .spotlight-text { text-align: center; }
    .check-list li { justify-content: center; }
    
    /* Forms */
    .contact-form-wrapper { padding: 20px; }
    .advanced-form input, .advanced-form textarea, .advanced-form select { padding: 12px 12px 12px 40px; }
    
    /* Dashboard Specific */
    .dash-topbar { flex-direction: column; align-items: flex-start; gap: 15px; }
    .topbar-right { width: 100%; justify-content: flex-end; }
    .stat-card { padding: 15px; }
    
    /* Footer */
    .footer-links { grid-template-columns: 1fr; text-align: center;}
}