:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef2f8;
    --text: #0f172a;
    --muted: #5b6475;
    --primary: #1e3a8a;
    --primary-dark: #172e6e;
    --border: #dbe3f0;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.07);
    --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
    --radius: 16px;
    --container-width: 1180px;
    --font-body: "Inter", sans-serif;
    --font-heading: "Poppins", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--text); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
section { padding: 100px 0; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.sub-heading {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.7rem;
}

.main-heading { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-bottom: 0.9rem; }
.body-text { color: var(--muted); max-width: 760px; }
.text-gradient { color: var(--primary); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 0.88rem 1.5rem;
    font-weight: 600;
    font-family: var(--font-body);
    border: 1px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: #e7edff; }
.btn-lg { padding: 1rem 1.75rem; }
.btn-block { width: 100%; }

.glass-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.loader-wrapper {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--surface);
    transition: opacity 0.4s ease;
}

.loader-wrapper.fade-out { opacity: 0; pointer-events: none; }
.loader-text { font-family: var(--font-heading); font-size: 1.2rem; color: var(--primary); }
.loader-line, .loader-orbs { display: none; }

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(245, 247, 251, 0.95);
    backdrop-filter: blur(10px);
}

.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 40px; }
.nav-list { display: flex; gap: 2rem; }
.nav-link { color: var(--muted); font-weight: 500; position: relative; padding: 4px 0; }
.nav-link::after { content: ""; position: absolute; bottom: -7px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.25s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mobile-menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.hamburger-box { width: 30px; height: 24px; position: relative; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after { position: absolute; left: 0; width: 30px; height: 2px; background: var(--text); content: ""; }
.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { top: -9px; }
.hamburger-inner::after { top: 9px; }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    z-index: 101;
    transition: right 0.3s ease;
}

.mobile-menu.open { right: 0; }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); opacity: 0; pointer-events: none; transition: 0.25s; }
.mobile-menu-overlay.active { opacity: 1; pointer-events: all; }
.mobile-nav { height: 100%; padding: 1.5rem; display: flex; flex-direction: column; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-logo { height: 36px;  }
.close-mobile-menu { border: 0; background: transparent; font-size: 1.3rem; color: var(--text); }
.mobile-nav-list { display: grid; gap: 0.9rem; }
.mobile-nav-link { font-weight: 600; }
.mobile-nav-footer { margin-top: auto; }

.live-chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 1000; }
.chat-toggle-btn { width: 56px; height: 56px; border: 0; border-radius: 50%; color: #fff; background: var(--primary); box-shadow: var(--shadow-sm); }
.pulse-ring { display: none; }
.chat-window {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: 330px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.chat-window.open { opacity: 1; visibility: visible; transform: none; }
.chat-header, .chat-footer { background: var(--surface-soft); border-bottom: 1px solid var(--border); padding: 0.85rem; }
.chat-header { display: flex; justify-content: space-between; align-items: center; }
.chat-header-info { display: flex; align-items: center; gap: 0.75rem; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #dfe7fb; color: var(--primary); position: relative; }
.online-dot { position: absolute; right: 2px; bottom: 2px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; }
.close-chat { border: 0; background: transparent; font-size: 1rem; color: var(--text); }
.chat-body { height: 280px; padding: 0.9rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.chat-message { max-width: 86%; padding: 0.65rem 0.8rem; border-radius: 10px; font-size: 0.9rem; }
.bot-message { border: 1px solid #dbe3f0; background: #f4f7ff; }
.user-message { margin-left: auto; color: #fff; background: var(--primary); }
.message-time { display: block; margin-top: 0.25rem; font-size: 0.7rem; color: var(--muted); text-align: right; }
#chatForm { display: flex; gap: 0.6rem; }
#chatInput { flex: 1; padding: 0.55rem 0.8rem; border-radius: 999px; border: 1px solid var(--border); font-family: var(--font-body); }
#chatForm button { width: 36px; border: 0; border-radius: 50%; color: #fff; background: var(--primary); }

.hero-section {
    padding-top: 150px;
    background: linear-gradient(135deg, #ffffff, #f3f6fc);
}

.hero-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.6rem; align-items: center; }
.eyebrow { font-size: 0.95rem; color: var(--primary); font-weight: 600; margin-bottom: 0.7rem; }
.hero-title { font-size: clamp(2.4rem, 5vw, 4.3rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero-description { max-width: 620px; margin-bottom: 1.4rem; color: var(--muted); font-size: 1.05rem; }
.hero-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.trust-line { color: var(--muted); font-size: 0.95rem; }
.hero-visual-card { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md); }
.hero-visual-card img { width: 100%; height: 390px; object-fit: cover; }
.hero-visual-note { display: flex; gap: 0.65rem; align-items: center; padding: 1rem 1.2rem; color: var(--muted); }

.marquee-section { padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #f8faff; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-item { padding: 0 1.2rem; color: #475569; font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

.services-section { background: var(--surface); }
.services-list { margin-top: 2.1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.9rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #bfd0ee; }
.service-icon { width: 46px; height: 46px; border-radius: 12px; background: #e8eeff; color: var(--primary); display: grid; place-items: center; font-size: 1rem; }
.service-row h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.service-row p { color: var(--muted); margin-bottom: 0.4rem; font-size: 0.95rem; }
.service-row a { color: var(--primary); font-weight: 600; }

.about-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; }
.about-image-wrap img { width: 100%; height: 430px; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.hero-stats { margin: 1.6rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.stat-item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 0.85rem; }
.stat-item strong { display: block; color: var(--primary); font-size: 1.5rem; margin-bottom: 0.15rem; }
.stat-item span { color: var(--muted); font-size: 0.9rem; }
.why-us-strip { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.why-card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 1rem; }
.why-card i { color: var(--primary); margin-bottom: 0.45rem; }
.why-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.why-card p { color: var(--muted); font-size: 0.92rem; }

.process-steps { margin-top: 1.9rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step-card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 1rem; box-shadow: var(--shadow-sm); }
.step-no { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--primary); font-weight: 700; }
.step-card i { display: block; margin: 0.55rem 0; color: var(--primary); }
.step-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step-card p { color: var(--muted); font-size: 0.92rem; }

.calculator-section { background: var(--surface); }
.calculator-wrapper {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f8faff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.range-group { margin: 1.2rem 0 1.6rem; }
.range-group label { display: block; margin-bottom: 0.65rem; font-weight: 600; }
input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: #c8d6f1; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; border: 2px solid #fff; background: var(--primary); }
.range-labels { display: flex; justify-content: space-between; margin-top: 0.6rem; color: var(--muted); }
.custom-toggle { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.65rem; }
.custom-toggle input { display: none; }
.toggle-slider { width: 44px; height: 24px; border-radius: 999px; background: #cbd5e1; position: relative; }
.toggle-slider::before { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: 0.25s ease; }
.custom-toggle input:checked + .toggle-slider { background: #7ea1ea; }
.custom-toggle input:checked + .toggle-slider::before { left: 23px; }

.result-card { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.result-header { padding: 0.9rem 1rem; background: var(--surface-soft); border-bottom: 1px solid var(--border); color: var(--primary); font-weight: 700; }
.result-body { padding: 1rem; display: grid; gap: 0.8rem; }
.result-row { display: flex; justify-content: space-between; padding-bottom: 0.45rem; border-bottom: 1px dashed var(--border); }
.result-row span { color: var(--muted); }
.result-row.highlight { padding: 0.8rem; border: 1px solid #cfdcf6; border-radius: 10px; background: #edf3ff; }
.result-row.highlight strong { color: var(--primary); }
.result-footer { padding: 1rem; border-top: 1px solid var(--border); background: var(--surface-soft); }

.dashboard-mockup { max-width: 1000px; margin: 40px auto 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.dash-header { height: 40px; border-bottom: 1px solid var(--border); background: #eff4ff; display: flex; align-items: center; padding: 0 16px; position: relative; }
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; background: #9bb5ea; }
.dash-title { position: absolute; left: 50%; transform: translateX(-50%); color: #64748b; font-size: 0.76rem; }
.dash-body { display: flex; height: 380px; }
.dash-sidebar { width: 74px; border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 18px; }
.sidebar-item { width: 36px; height: 36px; border-radius: 8px; background: #e2e8f0; }
.sidebar-item.active { background: #c7d7f6; }
.dash-main { flex: 1; display: flex; flex-direction: column; gap: 1rem; padding: 1rem; }
.dash-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.dash-stat-box { border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 0.65rem; }
.dash-label { color: var(--muted); font-size: 0.8rem; }
.dash-value { display: flex; justify-content: space-between; font-size: 1.2rem; }
.trend-up { color: #16a34a; }
.trend-down { color: #dc2626; }
.dash-chart-container { flex: 1; border: 1px dashed var(--border); border-radius: 10px; display: flex; justify-content: center; align-items: end; padding-bottom: 1rem; }
.css-chart-3d { display: flex; gap: 20px; }
.chart-bar { width: 28px; height: 180px; position: relative; }
.chart-bar .bar-front, .chart-bar .bar-right, .chart-bar .bar-top { position: absolute; bottom: 0; transition: 0.8s ease; }
.chart-bar .bar-front { width: 28px; height: var(--h); background: #7ea1ea; }
.chart-bar .bar-right { width: 28px; height: var(--h); background: #5f86d8; transform: rotateY(90deg) translateZ(14px); }
.chart-bar .bar-top { width: 28px; height: 28px; background: var(--primary); transform: rotateX(90deg) translateZ(calc(var(--h) - 14px)); }

.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.industry-card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 1.1rem; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.industry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.industry-card i { font-size: 1.4rem; color: var(--primary); margin-bottom: 0.65rem; }
.industry-card p { color: var(--muted); }

.testimonials-section { background: var(--surface); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.testimonial-card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 1.1rem; box-shadow: var(--shadow-sm); }
.feedback { color: var(--muted); margin-bottom: 1rem; }
.client-info { display: flex; align-items: center; gap: 0.7rem; }
.client-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #e7edff; color: var(--primary); }
.client-info span { color: var(--muted); font-size: 0.84rem; }

.cta-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-top: 1px solid #253046;
    border-bottom: 1px solid #253046;
}

.cta-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1rem; align-items: center; }
.cta-section .main-heading, .cta-section .body-text, .cta-action p { color: #e2e8f0; }
.cta-action { text-align: right; }
.cta-action p { margin-top: 0.55rem; font-size: 0.92rem; color: #cbd5e1; }

.inner-page-main { padding-top: 80px; }
.page-header-section { padding: 100px 0 60px; text-align: center; border-bottom: 1px solid var(--border); position: relative; }
.page-header-background { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #ffffff, #eef3fb); }
.page-title { font-size: clamp(2.1rem, 4.5vw, 3.9rem); }
.page-subtitle { max-width: 700px; margin: 0 auto; color: var(--muted); }

.contact-wrapper { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1.4fr; overflow: hidden; }
.contact-info { padding: 2rem; background: var(--surface-soft); border-right: 1px solid var(--border); }
.contact-details { margin-top: 1.5rem; display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 0.8rem; }
.contact-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #dfe7fb; color: var(--primary); }
.contact-text p { color: var(--muted); }
.contact-form-wrapper { padding: 2rem; }
.custom-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.custom-form .form-group { margin-bottom: 1rem; }
.custom-form label { display: block; font-weight: 600; margin-bottom: 0.45rem; }
.custom-form label .req { color: var(--primary); }
.custom-form input, .custom-form select, .custom-form textarea {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-family: var(--font-body);
}

.custom-form input:focus, .custom-form select:focus, .custom-form textarea:focus {
    outline: none;
    border-color: #8ca5d8;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.custom-form textarea { resize: vertical; min-height: 120px; }

.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
}

.popup-overlay.active { opacity: 1; visibility: visible; }
.popup-content { width: min(92%, 480px); padding: 2rem; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); position: relative; }
.popup-close-btn { position: absolute; top: 0.75rem; right: 1rem; font-size: 1.5rem; cursor: pointer; }
.popup-icon { color: var(--primary); font-size: 2.3rem; margin-bottom: 0.8rem; }

.legal-header { padding-bottom: 42px; }
.legal-content { padding-bottom: 80px; }
.legal-content .container { padding: 2rem; }
.legal-section { margin-bottom: 1.5rem; }
.legal-section h2 { margin-bottom: 0.5rem; color: var(--primary); border-bottom: 1px solid var(--border); padding-bottom: 0.35rem; font-size: 1.35rem; }
.legal-section p { color: var(--text); margin-bottom: 0.8rem; }

.footer { background: #0f172a; color: #e2e8f0; border-top: 1px solid #273449; padding-top: 72px; }
.footer-particles { display: none; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo img { height: 44px; margin-bottom: 0.7rem; filter: brightness(0) invert(1);     }
.footer-desc, .footer-links a, .copyright p, .footer-legal-links a { color: #cbd5e1; }
.footer-socials { display: flex; gap: 0.65rem; }
.social-link { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #1e293b; border: 1px solid #334155; }
.social-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-col h3 { font-size: 1.1rem; margin-bottom: 0.8rem; position: relative; padding-bottom: 0.4rem; color: #fff; }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: #93c5fd; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a i { margin-right: 0.35rem; color: #93c5fd; }
.footer-contact li { display: flex; gap: 0.65rem; margin-bottom: 0.7rem; }
.fc-icon { color: #93c5fd; }
.fc-text span { display: block; font-size: 0.78rem; text-transform: uppercase; color: #94a3b8; }
.fc-text strong { color: #f8fafc; font-weight: 500; }
.footer-bottom { border-top: 1px solid #273449; padding: 1rem 0 1.2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; }
.footer-legal-links { display: flex; gap: 0.9rem; }
.footer-legal-links a:hover { color: #fff; }

.scroll-reveal { opacity: 0; transform: translateY(26px); transition: all 0.65s ease; }
.scroll-reveal.active { opacity: 1; transform: none; }

@media (max-width: 1200px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .main-nav, .header-actions { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero-split, .about-split, .calculator-wrapper, .contact-wrapper, .cta-split { grid-template-columns: 1fr; }
    .services-list, .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .why-us-strip { grid-template-columns: 1fr; }
    .cta-action { text-align: left; }
    .contact-info { border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
    section { padding: 82px 0; }
    .hero-stats, .services-list, .testimonials-grid, .dash-stats-row { grid-template-columns: 1fr; }
    .dash-sidebar { display: none; }
    .custom-form .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { text-align: center; flex-direction: column; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .chat-window { width: 280px; }
}
