:root {
    --mpg-primary: #0d6efd;
    --mpg-primary-dark: #083b80;
    --mpg-secondary: #fd7e14;
    --mpg-ink: #172033;
    --mpg-muted: #64748b;
    --mpg-line: #e5edf7;
    --mpg-soft: #f6f9fd;
}

* { letter-spacing: 0; }
body {
    color: var(--mpg-ink);
    background: #fff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { text-decoration: none; }
.topbar { background: #092f63; color: #eaf3ff; }
.main-nav { border-bottom: 1px solid rgba(15, 23, 42, .08); box-shadow: 0 12px 28px rgba(15, 23, 42, .06); }
.navbar { min-height: 76px; }
.brand-mark { display: inline-flex; align-items: center; gap: 12px; color: var(--mpg-primary); line-height: 1.05; }
.brand-mark strong { display: block; font-size: 1.22rem; }
.brand-mark small { display: block; margin-top: 4px; color: var(--mpg-muted); font-size: .72rem; font-weight: 600; }
.brand-icon { width: 42px; height: 42px; flex: 0 0 42px; overflow: hidden; border-radius: 8px; border: 1px solid var(--mpg-line); background: #fff; }
.nav-link { font-weight: 650; color: #475569; }
.nav-link:hover { color: var(--mpg-primary); }
.btn { border-radius: 7px; font-weight: 700; }
.btn-primary { background: var(--mpg-primary); border-color: var(--mpg-primary); }
.btn-warning { background: var(--mpg-secondary); border-color: var(--mpg-secondary); color: #111827; }

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 74px 0 58px;
    background:
        radial-gradient(circle at 86% 16%, rgba(253, 126, 20, .16), transparent 28%),
        linear-gradient(135deg, #f5f9ff 0%, #ffffff 48%, #fff7ef 100%);
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: auto -12% -38% 52%;
    height: 360px;
    background: linear-gradient(135deg, rgba(13, 110, 253, .14), rgba(253, 126, 20, .1));
    transform: rotate(-7deg);
    border-radius: 32px;
}
.hero-section .container { position: relative; z-index: 1; }
.eyebrow { color: var(--mpg-secondary); font-weight: 800; text-transform: uppercase; font-size: .82rem; }
.hero-section h1 { max-width: 760px; line-height: 1.06; }
.hero-section .lead { max-width: 690px; color: #475569; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 590px; gap: 12px; }
.hero-metrics div { background: rgba(255,255,255,.82); border: 1px solid var(--mpg-line); border-radius: 8px; padding: 14px; }
.hero-metrics strong { display: block; color: var(--mpg-primary-dark); font-size: 1.25rem; }
.hero-metrics span { display: block; color: var(--mpg-muted); font-size: .88rem; }

.hero-showcase {
    background: #0f1f35;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 30px 70px rgba(15, 31, 53, .22);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
}
.showcase-top { display: flex; align-items: center; gap: 8px; padding: 16px 18px; background: rgba(255,255,255,.06); }
.showcase-top strong { margin-left: auto; color: #e6f0ff; font-size: .94rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #fd7e14; }
.dot:nth-child(2) { background: #facc15; }
.dot:nth-child(3) { background: #22c55e; }
.showcase-body { padding: 22px; display: grid; gap: 12px; }
.showcase-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
}
.showcase-card.active { background: #fff; color: var(--mpg-ink); }
.showcase-card i { color: var(--mpg-secondary); width: 22px; text-align: center; }
.showcase-footer { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 16px 22px; background: rgba(13, 110, 253, .26); color: #dcecff; }
.showcase-footer a { color: #fff; font-weight: 800; }

.section-pad { padding: 64px 0; }
.section-title { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.section-title h1, .section-title h2 { font-weight: 800; color: var(--mpg-ink); }
.section-title p { color: var(--mpg-muted); }
.bg-light { background-color: var(--mpg-soft) !important; }
.project-card, .info-panel, .side-panel, .form-card, .login-box, .download-box, .admin-form {
    background: #fff;
    border: 1px solid var(--mpg-line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}
.project-card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(15, 23, 42, .1); }
.project-card h3 a { color: var(--mpg-ink); }
.project-thumb { width: 100%; height: 190px; object-fit: cover; background: #e9f2ff; }
.detail-image { width: 100%; max-height: 430px; object-fit: cover; border-radius: 8px; border: 1px solid var(--mpg-line); }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.category-tile { display: flex; align-items: center; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--mpg-line); border-radius: 8px; color: var(--mpg-ink); font-weight: 750; }
.category-tile:hover { color: var(--mpg-primary); border-color: #b8d4ff; }
.category-tile i { color: var(--mpg-secondary); }
.tech-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-list span { background: #edf5ff; color: #0a58ca; padding: 8px 12px; border-radius: 7px; font-weight: 750; }
.check-list { padding-left: 1.2rem; }
.check-list li { margin-bottom: 10px; }
.service-box { min-height: 150px; padding: 22px; background: #fff; border: 1px solid var(--mpg-line); border-radius: 8px; }
.service-box i { color: var(--mpg-secondary); font-size: 28px; margin-bottom: 14px; }
.service-box h3 { font-size: 1.05rem; }
.quote-box { padding: 22px; border-left: 4px solid var(--mpg-secondary); background: #fff8f1; border-radius: 8px; }
.quote-box strong { display: block; margin-top: 10px; }
.cta-band { background: linear-gradient(135deg, #0d6efd, #083b80); color: #fff; padding: 44px 0; }
.footer { background: #0f1f35; color: #dbe8f6; }
.footer a { color: #fff; }
.footer-links li { margin-bottom: 8px; }
.login-box { max-width: 460px; padding: 24px; }
.form-card, .info-panel, .side-panel, .download-box, .admin-form { padding: 24px; }
.dashboard-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.detail-row { background: #f8fbff; border-radius: 8px; padding: 14px; height: 100%; }
.detail-row span { display: block; color: var(--mpg-muted); font-size: .9rem; }
.detail-row strong { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.content-block { background: #fbfcfe; border: 1px solid #edf2f7; border-radius: 8px; padding: 16px; }
.admin-body { background: #f4f7fb; }
.stat-card { background: #fff; border: 1px solid var(--mpg-line); border-radius: 8px; padding: 18px; min-height: 104px; }
.stat-card span { display: block; color: var(--mpg-muted); }
.stat-card strong { display: block; font-size: 1.5rem; margin-top: 6px; color: var(--mpg-primary); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qr-panel {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--mpg-line);
    border-radius: 8px;
    background: #fff;
}
.qr-panel img {
    width: 190px;
    height: 190px;
    object-fit: contain;
    border: 1px solid var(--mpg-line);
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}
.qr-placeholder {
    width: 190px;
    height: 190px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    border: 1px dashed #b8c7da;
    border-radius: 8px;
    color: var(--mpg-muted);
    padding: 14px;
}
.qr-placeholder i { font-size: 44px; color: var(--mpg-primary); }
.qr-placeholder span { font-size: .9rem; }

@media (max-width: 991px) {
    .navbar { min-height: 68px; }
    .navbar-collapse { padding: 14px 0; }
    .hero-section { padding: 54px 0 46px; }
}
@media (max-width: 767px) {
    .section-pad { padding: 42px 0; }
    .hero-section h1 { font-size: 2.05rem; }
    .hero-metrics { grid-template-columns: 1fr; }
    .project-thumb { height: 170px; }
    .brand-mark small { display: none; }
    .qr-panel { flex-direction: column; align-items: flex-start; }
}
