/********** MNL Consultants Engineering - Theme **********/
:root {
    --primary: #5D5FEF;
    --primary-dark: #4233C2;
    --secondary: #8B8DFF;
    --light: #F4F6F8;
    --dark: #16161C;
    --charcoal: #222222;
    --mid-grey: #888888;
    --carbon: #1A1B22;
    --panel: #22232C;
    --bs-primary: #5D5FEF;
    --bs-primary-rgb: 93, 95, 239;
    --bs-secondary: #8B8DFF;
    --bs-dark: #16161C;
    --bs-light: #F4F6F8;
    --bs-link-color: #5D5FEF;
    --bs-link-hover-color: #8B8DFF;
}

body {
    font-family: "Inter", sans-serif;
    color: #5a5d66;
    background: #0f1014;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: "JetBrains Mono", monospace;
    letter-spacing: -0.02em;
    color: #f2f3f7;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--secondary);
}

.pt-6 { padding-top: 90px; }
.pb-6 { padding-bottom: 90px; }
.py-6 { padding-top: 90px; padding-bottom: 90px; }

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-primary {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.bg-dark { background-color: var(--dark) !important; }
.bg-light { background-color: var(--carbon) !important; }
.border-primary { border-color: var(--primary) !important; }

.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: .35s;
    border-radius: 2px;
}

.btn::after {
    position: absolute;
    content: "";
    width: 0;
    height: 3px;
    bottom: -1px;
    left: 50%;
    background: var(--primary);
    transition: .35s;
}

.btn.btn-primary::after { background: #fff; }

.btn:hover::after,
.btn.active::after {
    width: 50%;
    left: 25%;
}

.btn-square { width: 36px; height: 36px; }
.btn-sm-square { width: 28px; height: 28px; }
.btn-lg-square { width: 46px; height: 46px; }
.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    left: 50%;
    bottom: 0;
    margin-left: -22px;
    border-radius: 0;
    z-index: 99;
}

.bg-dark-radial {
    background-image: repeating-radial-gradient(center center, rgba(93, 95, 239, 0.12), rgba(93, 95, 239, 0.12) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.bg-light-radial {
    background-image: repeating-radial-gradient(center center, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

/* Topbar */
.topbar {
    background: #0c0d11;
    border-bottom: 1px solid rgba(93, 95, 239, 0.18);
    color: var(--mid-grey);
    font-size: 0.9rem;
}

.topbar h6 {
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
}

.topbar .bi { color: var(--primary); }

/* Navbar - light bar so dark logo artwork stays readable */
.site-navbar {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(34, 34, 34, 0.08);
    box-shadow: 0 4px 18px rgba(15, 16, 20, 0.06);
}

.site-navbar .navbar {
    background: #ffffff !important;
}

.navbar-brand img {
    height: 48px;
    width: auto;
}

.navbar-brand .brand-tag {
    display: block;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--mid-grey);
    margin-top: 2px;
}

.site-navbar .navbar-nav .nav-link {
    position: relative;
    padding: 28px 14px;
    font-size: 0.82rem;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
    outline: none;
    transition: .35s;
}

.site-navbar .navbar-nav .nav-link:hover,
.site-navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.site-navbar .navbar-toggler {
    border-color: rgba(34, 34, 34, 0.25);
}

.site-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(34, 34, 34, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-cta {
    background: var(--primary) !important;
    color: #fff !important;
}

.navbar-cta:hover {
    color: #fff !important;
    background: var(--primary-dark) !important;
}

@media (max-width: 991.98px) {
    .site-navbar .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

/* Hero */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(15, 16, 20, 0.88) 0%, rgba(22, 22, 28, 0.55) 55%, rgba(66, 51, 194, 0.35) 100%);
    z-index: 1;
}

.carousel-item img {
    height: 92vh;
    min-height: 560px;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05);
}

.hero-eyebrow {
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--secondary);
    font-size: 0.8rem;
}

.hero-anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 1.5rem;
}

.hero-anchors span {
    border: 1px solid rgba(93, 95, 239, 0.45);
    background: rgba(15, 16, 20, 0.55);
    color: #e8e9ef;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 0.55rem 0.9rem;
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 1.7rem;
        font-weight: 600 !important;
    }
    .carousel-item img {
        height: 78vh;
        min-height: 480px;
    }
}

.page-header {
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(15, 16, 20, .78), rgba(15, 16, 20, .78)), url(../img/hero/hero-2.jpg) center center no-repeat;
    background-size: cover;
}

/* Sections */
.section-panel {
    background: linear-gradient(180deg, #12131a 0%, #0f1014 100%);
}

.section-muted {
    background: #14151c;
}

.moat-card,
.market-card,
.pipeline-step {
    background: var(--panel);
    border: 1px solid rgba(93, 95, 239, 0.16);
    transition: transform .3s, border-color .3s, box-shadow .3s;
    height: 100%;
}

.moat-card:hover,
.market-card:hover {
    transform: translateY(-4px);
    border-color: rgba(93, 95, 239, 0.55);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.moat-card .icon-wrap,
.market-card .icon-wrap {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(93, 95, 239, 0.4);
    color: var(--primary);
    margin-bottom: 1rem;
}

.market-card h5 {
    font-size: 1rem;
}

.pipeline-step .step-num {
    font-family: "JetBrains Mono", monospace;
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
}

/* Product ledger */
#portfolio-flters {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

#portfolio-flters li {
    cursor: pointer;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(93, 95, 239, 0.28);
    color: #c5c7d1;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: .25s;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.product-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    transition: border-color .3s, transform .3s;
}

.product-card:hover {
    border-color: rgba(93, 95, 239, 0.55);
    transform: translateY(-3px);
}

.product-card .thumb {
    position: relative;
    background: #fff;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform .35s;
}

.product-card:hover .thumb img {
    transform: scale(1.04);
}

.product-card .cad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(22, 22, 28, 0.88);
    color: var(--secondary);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.5rem;
    border: 1px solid rgba(93, 95, 239, 0.45);
}

.product-card .body {
    padding: 1.1rem 1.15rem 1.25rem;
}

.product-card .cat {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.product-card h5 {
    font-size: 0.95rem;
    margin: 0.4rem 0 0.55rem;
    color: #f2f3f7;
    min-height: 2.6em;
}

.product-card p {
    font-size: 0.88rem;
    color: #9aa0ad;
    margin-bottom: 0.9rem;
}

/* Product detail */
.product-gallery {
    background: var(--panel);
    border: 1px solid rgba(93, 95, 239, 0.18);
}

.product-gallery .main-shot {
    background: #fff;
    min-height: 420px;
    display: grid;
    place-items: center;
}

.product-gallery .main-shot img {
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
    padding: 1.5rem;
}

.product-gallery .main-shot.cad-mode {
    background: #12141c;
}

.gallery-thumbs button {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    padding: 0;
    overflow: hidden;
    border-radius: 2px;
}

.gallery-thumbs button.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.gallery-thumbs img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    display: block;
}

.gallery-thumbs .col-md-3 img {
    height: 78px;
}

.detail-meta {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--mid-grey);
}

.detail-copy {
    white-space: pre-line;
    color: #b7bbc6;
    line-height: 1.75;
}

/* Contact */
.contact-form {
    background: var(--panel);
    border: 1px solid rgba(93, 95, 239, 0.18);
}

.contact-form .form-control,
.contact-form .form-select {
    background: #12131a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e8e9ef;
    border-radius: 2px;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background: #12131a;
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 0.15rem rgba(93, 95, 239, 0.2);
}

.contact-form .form-control::placeholder {
    color: #6d7280;
}

.contact-form .alert-success {
    background: rgba(25, 135, 84, 0.15);
    border: 1px solid rgba(25, 135, 84, 0.45);
    color: #b6f0cd;
}

.contact-form .alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.45);
    color: #ffc2c8;
}

/* Footer: light so dark logo artwork stays readable */
.footer,
.site-footer {
    background: #ffffff !important;
    border-top: 1px solid rgba(34, 34, 34, 0.08);
    color: #5a5d66;
}

.footer h4, .footer h5, .footer h6,
.site-footer h4, .site-footer h5, .site-footer h6 {
    color: var(--charcoal) !important;
}

.footer a,
.site-footer a {
    color: #5a5d66;
}

.footer a:hover,
.site-footer a:hover {
    color: var(--primary);
}

.footer .text-white,
.site-footer .text-white {
    color: var(--charcoal) !important;
}

.footer .text-white-50,
.site-footer .text-white-50 {
    color: var(--mid-grey) !important;
}

.footer-bar {
    background: #f4f5f8 !important;
    border-top: 1px solid rgba(34, 34, 34, 0.06);
    color: var(--mid-grey) !important;
}

.footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--primary);
    transform: skew(40deg);
}

@media (min-width: 992px) {
    .footer::after,
    .site-footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: rgba(93, 95, 239, 0.25);
    }
}

.section-kicker {
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary);
    font-size: 0.75rem;
}

.stat-strip {
    border-top: 1px solid rgba(93, 95, 239, 0.2);
    border-bottom: 1px solid rgba(93, 95, 239, 0.2);
    background: rgba(93, 95, 239, 0.06);
}

.stat-strip h3 {
    color: #fff;
    margin-bottom: 0.25rem;
}

.stat-strip p {
    margin: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid-grey);
}

/* Catalog search */
.product-search .form-control {
    background: #12131a;
    border: 1px solid rgba(93, 95, 239, 0.35);
    color: #e8e9ef;
    border-radius: 2px;
}

.product-search .form-control:focus {
    background: #12131a;
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 0.15rem rgba(93, 95, 239, 0.2);
}

.product-search .form-control::placeholder {
    color: #6d7280;
}

/* Responsive polish */
img,
svg,
video {
    max-width: 100%;
    height: auto;
}

.site-navbar .navbar-brand img {
    max-height: 48px;
    width: auto;
}

@media (max-width: 1199.98px) {
    .container-fluid.px-5,
    .stat-strip.px-5 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

@media (max-width: 991.98px) {
    .topbar {
        display: none !important;
    }

    .page-header {
        height: auto;
        min-height: 200px;
        padding: 3rem 1rem 2.25rem;
        text-align: center;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .product-gallery .main-shot {
        min-height: 280px;
    }

    .product-gallery .main-shot img {
        max-height: 360px;
        padding: 1rem;
    }

    .site-footer .row > [class*="col-"] {
        margin-bottom: 1.25rem;
    }

    .footer-shape::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-anchors {
        gap: 8px;
    }

    .hero-anchors span {
        font-size: 0.65rem;
        padding: 0.45rem 0.7rem;
    }

    .stat-strip .col-6,
    .stat-strip [class*="col-"] {
        margin-bottom: 1rem;
    }

    #portfolio-flters {
        gap: 6px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.35rem;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    #portfolio-flters li {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 0.68rem;
        padding: 0.4rem 0.75rem;
    }

    .product-card h5 {
        min-height: 0;
        font-size: 0.9rem;
    }

    .gallery-thumbs img {
        height: 72px;
    }

    .contact-form {
        padding: 1.25rem !important;
    }

    .btn.py-3.px-5 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

@media (max-width: 575.98px) {
    .site-navbar {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .site-navbar .navbar-brand img {
        max-height: 40px;
    }

    .carousel-caption {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .carousel-caption .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .carousel-item img {
        height: 72vh;
        min-height: 420px;
    }

    .display-6 {
        font-size: 1.45rem;
    }

    .product-search .form-control-lg {
        font-size: 1rem;
        padding: 0.7rem 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
