/* ============================================================
   PERFORMANCE-OPTIMIZED CSS
   Key fixes:
   1. Removed background-attachment:fixed (kills GPU compositing)
   2. Replaced box-shadow transitions with opacity/transform tricks
   3. Added will-change only where truly needed
   4. Used transform3d to force GPU layers
   5. Replaced costly filter/backdrop-filter where unused
   6. Smoothed animation timing functions
   7. Reduced paint areas with contain: layout style
============================================================ */

:root {
    --primary-blue: #1b5fad;
    --secondary-blue: #022c5c;
    --primary-red: #d42f2f;
    --dark-blue: #0a1628;
    --navy: #0e1d34;
    --light-bg: #f8f9fa;
    --text-dark: #222;
    --text-muted: #666;
    --white: #fff;
    --navbar-height: 70px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    /* Enables subpixel rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* ── TOP BAR ─────────────────────────────────────────────── */
.top-bar {
    background: var(--secondary-blue);
    padding: 8px 0;
    font-size: 13px;
    color: var(--white);
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.top-bar .bi {
    margin-right: 5px;
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
    position: relative;
    z-index: 9999;
    background: var(--white);
    padding: 0;
    transition: box-shadow 0.3s ease;
    min-height: var(--navbar-height);
    will-change: transform;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
    .navbar {
        height: var(--navbar-height);
        overflow: visible;
    }
}

.navbar.scrolled {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-spacer {
    display: none;
    height: var(--navbar-height);
}

.navbar-spacer.active {
    display: block;
}

.navbar-brand {
    background: transparent;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    transition: padding 0.3s ease;
    position: relative;
    z-index: 10;
}

.navbar-brand img {
    height: 30px;
    transition: height 0.3s ease;
}

.navbar .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 20px 18px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 60%;
    height: 2px;
    background: var(--primary-red);
    transition: transform 0.25s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* .navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-blue) !important;
}

.navbar-collapse .nav-link:hover,
.navbar-collapse .nav-link.active {
    color: var(--white) !important;
} */

.navbar .nav-login-link {
    display: inline-block;
    margin: 20px 18px;
    text-decoration: none;
}

.navbar .nav-login-link span {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar .nav-login-link:hover span {
    background: #b92424;
}

.nav-social a {
    color: var(--text-dark);
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    border-radius: 3px;
}

.nav-social a:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

/* ── SERVICES DROPDOWN ─────────────────────────────────────── */
.services-dropdown {
    position: relative;
}

.services-dropdown .dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.svc-chevron {
    font-size: 11px;
    transition: transform 0.25s ease;
    margin-left: 4px;
}

.services-dropdown.open .svc-chevron {
    transform: rotate(180deg);
}

.services-mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 520px;
    padding: 10px;
    border-top: 3px solid var(--primary-red);
    animation: menuSlideDown 0.2s ease;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.services-dropdown.open .services-mega-menu {
    display: block;
}

.svc-menu-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.svc-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.15s;
}

.svc-menu-item:hover {
    background: #f0f4fb;
    color: var(--primary-blue);
}

.svc-menu-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.svc-menu-item strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.svc-menu-item span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── HERO ─────────────────────────────────────────────────── */
/* REMOVED background-attachment:fixed — it disables GPU compositing
   on most mobile browsers and causes jank on desktop too.
   Use a pseudo-element with transform for a smooth parallax if needed. */
#home {
    background: linear-gradient(rgba(4, 43, 102, 0.85), rgba(2, 39, 95, 0.85)),
        url('assets/carpentary_1.jpg') center / cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: var(--navbar-height);
    position: relative;
    overflow: hidden;
}

#home h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

#home .hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.rotating-text-wrapper {
    display: block;
    height: 1.2em;
    overflow: hidden;
    color: var(--white);
}

#changing-text {
    /* Use transform instead of top/margin for animation — GPU composited */
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    display: block;
    color: var(--white);
    transform: translateY(0);
    will-change: opacity, transform;
}

#changing-text.hidden {
    opacity: 0;
    transform: translateY(10px);
}

.highlight-red {
    color: var(--primary-red);
    display: block;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary-custom {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 14px 35px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    /* Only animate transform + opacity — both composited */
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

/* Shadow is pre-rendered via ::after and faded in to avoid repaint */
.btn-primary-custom::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 3px;
    box-shadow: 0 5px 20px rgba(212, 47, 47, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn-primary-custom:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary-custom:hover::after {
    opacity: 1;
}

.btn-outline-custom {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    padding: 12px 33px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-outline-custom:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── FORM ────────────────────────────────────────────────── */
.inquiry-form-wrap {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.inquiry-form-wrap h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.inquiry-form-wrap .form-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.radio-group {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.radio-group label {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    color: var(--text-dark);
    background: var(--light-bg);
    border-right: 1px solid #e0e0e0;
    margin: 0;
}

.radio-group label:last-child {
    border-right: none;
}

.radio-group input[type='radio'] {
    display: none;
}

.radio-group input[type='radio']:checked+label {
    background: var(--primary-blue);
    color: var(--white);
}

.inquiry-form-wrap .form-control {
    border: 2px solid #e8e8e8;
    border-radius: 4px;
    padding: 11px 15px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 4px;
    transition: border-color 0.2s;
}

.inquiry-form-wrap .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(27, 95, 173, 0.1);
    outline: none;
}

.inquiry-form-wrap textarea.form-control {
    resize: none;
    min-height: 80px;
}

.btn-submit-form {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 13px 30px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: 'Poppins', sans-serif;
    margin-top: 5px;
}

.btn-submit-form:hover {
    background: #b52525;
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 10px;
}

.error-message {
    color: var(--primary-red);
    font-size: 0.75rem;
    margin-top: 2px;
    display: none;
    padding-left: 2px;
}

.error-message.visible {
    display: block;
}

.inquiry-form-wrap .form-control.invalid {
    border-color: var(--primary-red);
}

.inquiry-form-wrap .form-control.valid {
    border-color: #2ecc71;
}

.form-success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.form-success-message.visible {
    display: block;
}

/* ── ABOUT ───────────────────────────────────────────────── */
#about {
    padding: 80px 0;
}

#about .section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-images {
    position: relative;
    width: 100%;
    height: 460px;
    margin-top: 20px;
}

.about-images .img-top {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.about-images .img-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    border: 8px solid var(--white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 35px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-feature-item .icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(27, 95, 173, 0.1);
    color: var(--primary-blue);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: background 0.25s, color 0.25s;
}

.about-feature-item:hover .icon-box {
    background-color: var(--primary-red);
    color: var(--white);
}

.about-feature-item span {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark-blue);
    line-height: 1.3;
}

/* ── WHY US ──────────────────────────────────────────────── */
#why-us {
    position: relative;
    scroll-margin-top: var(--navbar-height);
    min-height: 600px;
    background-image: url('assets/large-bg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    /* NO background-attachment:fixed */
    padding: 100px 0;
    display: flex;
    align-items: center;
}

#why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 16, 35, 0.3);
    z-index: 0;
}

.why-us-inner {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 2;
}

.why-us-panel {
    position: relative;
    z-index: 2;
    width: 65%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.why-us-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: -6px;
    width: 6px;
    height: 100%;
    background: var(--primary-red);
}

.why-us-content {
    background: #081023;
    color: var(--white);
    padding: 55px 50px 40px;
    flex: 1;
}

.why-us-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.why-us-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.why-us-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
}

.why-us-list .item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
}

.why-us-list .item .bi {
    color: #2ecc71;
    font-size: 16px;
    flex-shrink: 0;
}

.stats-row {
    background: #081023;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px 50px;
}

.stats-row .stats-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-item .stat-icon {
    font-size: 32px;
    color: var(--primary-red);
    flex-shrink: 0;
    line-height: 1;
}

.stat-item .stat-info {
    display: flex;
    flex-direction: column;
}

.stat-item .stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.stat-item .stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
}

.why-us-image-spacer {
    flex: 1;
}

/* ── SERVICES ────────────────────────────────────────────── */
#services {
    padding: 100px 0;
    background: var(--light-bg);
    scroll-margin-top: var(--navbar-height);
}

.section-divider {
    width: 50px;
    height: 4px;
    background: var(--dark-blue);
    margin: 0 auto 50px;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    width: 20px;
    height: 4px;
    background: var(--primary-red);
}

/* ── SERVICE CARDS — Image-Based ─────────────────────────── */
.service-card {
    background: var(--white);
    border-radius: 8px;
    transition: transform 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 0;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.svc-card-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.svc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    display: block;
}

.service-card:hover .svc-card-img img {
    transform: scale(1.07);
}

.svc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 22, 40, 0.1) 0%, rgba(10, 22, 40, 0.65) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 14px;
    transition: background 0.3s;
}

.service-card:hover .svc-card-overlay {
    background: linear-gradient(to bottom, rgba(10, 22, 40, 0.2) 0%, rgba(10, 22, 40, 0.8) 100%);
}

.svc-card-icon {
    font-size: 20px;
    color: var(--white);
    background: var(--primary-red);
    width: 42px;
    height: 42px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .svc-card-icon {
    transform: scale(1.1);
}

.svc-card-body {
    padding: 18px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 1;
}

.svc-card-body h5 {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.svc-card-cta {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-red);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
    flex-shrink: 0;
}

.service-card:hover .svc-card-cta {
    gap: 8px;
}

/* ── B2B CENTER CARD ─────────────────────────────────────── */
.service-card-center {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 32px 22px;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(27, 95, 173, 0.4);
    position: relative;
    overflow: hidden;
}

.service-card-center::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.service-card-center::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -30px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.b2b-center-badge {
    width: 68px;
    height: 68px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.b2b-center-badge .bi {
    font-size: 28px;
    color: var(--white);
}

.service-card-center h5 {
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.b2b-center-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.b2b-center-stats {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    position: relative;
    z-index: 1;
}

.b2b-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 11px 8px;
}

.b2b-stat-num {
    font-size: 21px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}

.b2b-stat-lbl {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-stat-divider {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.b2b-center-cta {
    background: var(--primary-red);
    color: var(--white);
    padding: 10px 18px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.b2b-center-cta:hover {
    background: #b52525;
    color: var(--white);
    transform: translateY(-2px);
}

/* ── MODAL ENHANCEMENTS ──────────────────────────────────── */
.modal-hero-img {
    width: 100%;
    height: 190px;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.modal-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid #eee;
    margin-bottom: 22px;
}

.modal-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 13px 6px;
    text-align: center;
    border-right: 1px solid #eee;
    gap: 3px;
}

.modal-kpi:last-child {
    border-right: none;
}

.modal-kpi .bi {
    font-size: 15px;
    color: var(--primary-blue);
    margin-bottom: 2px;
}

.modal-kpi strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
}

.modal-kpi span {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.modal-scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.modal-scope-card {
    background: var(--light-bg);
    border-radius: 6px;
    padding: 13px 11px;
    border-top: 3px solid var(--primary-blue);
}

.modal-scope-card .bi {
    font-size: 19px;
    color: var(--primary-blue);
    margin-bottom: 6px;
    display: block;
}

.modal-scope-card h6 {
    font-weight: 700;
    font-size: 12px;
    color: var(--dark-blue);
    margin-bottom: 6px;
}

.modal-scope-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-scope-card ul li {
    font-size: 11px;
    color: var(--text-muted);
    padding: 3px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1.4;
}

.modal-scope-card ul li:last-child {
    border-bottom: none;
}

@media (max-width: 575px) {
    .modal-kpi-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-kpi:nth-child(2) {
        border-right: none;
    }

    .modal-kpi:nth-child(3) {
        border-top: 1px solid #eee;
    }

    .modal-scope-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal-hero-img {
        height: 130px;
    }
}

/* ── TRUST ───────────────────────────────────────────────── */
/* ── ACHIEVEMENTS (replaces old trust section) ─────────────── */
#trust {
    background: #081023;
    padding: 100px 0;
    color: var(--white);
    scroll-margin-top: var(--navbar-height);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative accent line on left edge, matching why-us */
#trust::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-red);
}

#trust h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--white);
}

#trust h2 span {
    color: var(--primary-red);
}

#trust>.container>.fade-up>p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    max-width: 560px;
    margin: 0 auto;
}

#trust .section-label {
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    text-align: left;
    display: block;
}

#trust .section-title {
    color: var(--white);
    font-weight: 800;
    font-size: 38px;
    margin-bottom: 12px;
    line-height: 1.2;
    text-align: left;
}

#trust .section-divider {
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0 20px 0;
}

#trust .section-divider::after {
    background: var(--primary-red);
}

.achievement-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 520px;
    margin: 0;
    text-align: left;
}

/* ── Achievement Cards ─────────────────────────── */
.achievement-card {
    background: #0d1b35;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid rgba(212, 47, 47, 0.35);
    border-radius: 4px;
    padding: 32px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: border-left-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.achievement-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-left-color: var(--primary-red);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.achievement-card:hover::after {
    transform: scaleX(1);
}

.achievement-icon {
    width: 44px;
    height: 44px;
    background: rgba(212, 47, 47, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-red);
    margin-bottom: 20px;
    transition: background 0.3s, color 0.3s;
    flex-shrink: 0;
}

.achievement-card:hover .achievement-icon {
    background: var(--primary-red);
    color: #fff;
}

.achievement-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.achievement-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin: 0;
    letter-spacing: -1px;
    transition: color 0.3s;
}

.achievement-card:hover .achievement-number {
    color: var(--primary-red);
}

.achievement-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, 0.35);
    padding-bottom: 2px;
}

.achievement-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 10px;
    letter-spacing: 0.01em;
}

.achievement-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin: 0 !important;
    max-width: none !important;
}

.achievement-iso-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.achievement-iso-list li {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 8px;
}

.achievement-iso-list li .bi-check-circle-fill {
    color: #22c55e;
    font-size: 13px;
    flex-shrink: 0;
}

.btn-outline-light-custom {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 14px 35px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
    display: inline-block;
    background: transparent;
}

.btn-outline-light-custom:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

/* ── CONSULTANCY ─────────────────────────────────────────── */
#consultancy {
    padding: 0;
    scroll-margin-top: var(--navbar-height);
}

.consultancy-image {
    min-height: 500px;
    background: url('assets/electrician.jpeg') center / cover no-repeat;
    position: relative;
}

.consultancy-image::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid var(--primary-red);
    z-index: 0;
    opacity: 0.3;
}

.consultancy-content {
    padding: 80px 60px;
}

.consultancy-item {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    /* Only transition padding (layout-ish but small) */
    transition: padding-left 0.25s ease;
}

.consultancy-item:hover {
    padding-left: 10px;
}

.consultancy-item:last-child {
    border-bottom: none;
}

.consultancy-item .info-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
}

.consultancy-item h5 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.consultancy-item p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* ── TESTIMONIALS ────────────────────────────────────────── */
#testimonials {
    display: none;
}

#testimonials {
    background: var(--primary-blue);
    padding: 100px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
    scroll-margin-top: var(--navbar-height);
}

#testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/carpentary_1.jpg') center / cover no-repeat;
    opacity: 0.08;
    /* Isolate this layer */
    will-change: opacity;
}

#testimonials .section-label {
    color: rgba(255, 255, 255, 0.8);
}

#testimonials .section-title {
    color: var(--white);
}

.testimonial-card {
    background: var(--white);
    color: var(--text-dark);
    padding: 35px 30px;
    border-radius: 5px;
    position: relative;
    margin-bottom: 20px;
    transition: transform 0.25s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    contain: layout style;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--white);
}

.testimonial-card .quote-icon {
    color: var(--primary-blue);
    font-size: 36px;
    margin-bottom: 10px;
    line-height: 1;
}

.testimonial-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 25px;
}

.testimonial-author img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-red);
}

.testimonial-author h6 {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--white);
}

.testimonial-author span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ── PROJECTS SLIDESHOW ──────────────────────────────────── */
#projects {
    padding: 100px 0;
    background: var(--dark-blue);
    color: var(--white);
    scroll-margin-top: var(--navbar-height);
}

#projects .section-label {
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#projects .section-title {
    color: var(--white);
    font-weight: 800;
    margin-bottom: 20px;
}

.project-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.7;
}

.project-gallery {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 40px;
}

.project-gallery .project-track {
    display: flex;
    gap: 20px;
    animation: scrollProjects 30s linear infinite;
    /* GPU-composited: only transform changes */
    will-change: transform;
}

@keyframes scrollProjects {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    height: 320px;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* GPU layer — prevents compositing of entire page on hover */
    will-change: transform;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transform is GPU composited */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.project-item:hover img {
    transform: scale(1.08);
}

.project-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(10, 22, 40, 0.9));
    opacity: 0.8;
    transition: opacity 0.25s;
}

.project-item:hover::after {
    opacity: 1;
}

.project-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    color: var(--white);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 5;
    will-change: opacity, transform;
}

.project-item:hover .project-overlay-text {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay-text span {
    color: var(--primary-red);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.project-overlay-text h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.projects-cta {
    margin-top: 50px;
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.projects-cta a {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.projects-cta a:hover {
    color: var(--primary-red);
}

/* ── PROJECT MODAL ───────────────────────────────────────── */
.project-metric-box {
    background: #f8f9fa;
    border-top: 3px solid var(--primary-blue);
    border-radius: 4px;
    padding: 15px 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.project-metric-box strong {
    font-size: 10px;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.project-metric-box span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-blue);
    text-align: center;
}

/* ── MOBILE FORM SECTION ────────────────────────────────── */
#mobile-form-section {
    padding: 80px 0;
    background: var(--light-bg);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
    background: var(--dark-blue);
    padding: 60px 0 0;
    color: rgba(255, 255, 255, 0.7);
    scroll-margin-top: var(--navbar-height);
}

footer h5 {
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-contact .item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-contact .item .bi {
    color: var(--primary-red);
    font-size: 18px;
    margin-top: 2px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links a .bi {
    color: var(--primary-red);
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-post {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-post img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 3px;
}

.footer-post h6 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-post span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    margin: 0;
}

.footer-bottom p span {
    font-weight: 700;
    color: var(--white);
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    margin-left: 12px;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--primary-red);
}

/* ── SCROLL-TO-TOP ───────────────────────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    /* Only transition opacity + transform (composited) */
    transition: opacity 0.25s, background 0.25s, transform 0.25s;
    z-index: 999;
    /* Own GPU layer */
    will-change: opacity, transform;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top.visible:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

/* ── FADE-UP ANIMATION ───────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    /* Composited properties only */
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
    will-change: opacity, transform;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════
   B2B MODAL
════════════════════════════════════════════════════════════ */
#b2b-services-section .modal {
    z-index: 10000;
    padding-top: var(--navbar-height);
}

#b2b-services-section .modal .modal-content {
    border: none;
    border-radius: 6px;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

#b2b-services-section .modal .modal-header {
    background: var(--primary-blue);
    color: var(--white);
    border-bottom: 3px solid var(--primary-red);
    padding: 20px 28px;
}

#b2b-services-section .modal .modal-header .modal-title {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.3px;
}

#b2b-services-section .modal .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

#b2b-services-section .modal .modal-body {
    padding: 28px 28px 20px;
    max-height: 65vh;
    overflow-y: auto;
}

#b2b-services-section .modal .svc-s {
    margin-bottom: 22px;
}

#b2b-services-section .modal .svc-s:last-child {
    margin-bottom: 0;
}

#b2b-services-section .modal .svc-l {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-red);
    margin-bottom: 8px;
}

#b2b-services-section .modal .svc-t {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0;
}

#b2b-services-section .modal .svc-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#b2b-services-section .modal .svc-ul li {
    font-size: 14px;
    color: var(--text-dark);
    padding: 6px 0 6px 22px;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
}

#b2b-services-section .modal .svc-ul li:last-child {
    border-bottom: none;
}

#b2b-services-section .modal .svc-ul li::before {
    content: '\f272';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--primary-blue);
    font-size: 12px;
}

#b2b-services-section .modal .svc-vp li::before {
    content: '\f26a';
    color: #2ecc71;
}

#b2b-services-section .modal .svc-ind {
    background: var(--light-bg);
    border-left: 3px solid var(--primary-blue);
    padding: 14px 18px;
    border-radius: 0 4px 4px 0;
}

#b2b-services-section .modal .svc-ind p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

#b2b-services-section .modal .svc-ind strong {
    color: var(--text-dark);
}

#b2b-services-section .modal .modal-footer {
    border-top: 1px solid #eee;
    padding: 14px 28px;
}

#b2b-services-section .modal .modal-footer .btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 24px;
    border-radius: 3px;
}

/* ── HIGHLIGHT PULSE ─────────────────────────────────────── */
@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 47, 47, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 47, 47, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 47, 47, 0);
    }
}

.form-highlight-anim {
    animation: highlightPulse 2s ease-out;
    border-color: var(--primary-red) !important;
}

/* ── MOBILE MEGA MENU — inline, not floating ───────────────── */
@media (max-width: 991px) {
    .services-mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-shadow: none;
        border-radius: 0;
        border-top: 2px solid var(--primary-red);
        border-left: 3px solid var(--primary-red);
        margin: 4px 0 8px 0;
        padding: 6px;
        background: #f8f9fa;
        animation: none;
    }

    .svc-menu-inner {
        grid-template-columns: 1fr;
    }

    .svc-menu-item {
        padding: 10px 12px;
        color: var(--text-dark);
    }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — LARGE (≥ 992px)
════════════════════════════════════════════════════════════ */
@media (min-width: 992px) {
    .hero-row {
        display: flex;
        align-items: center;
        min-height: calc(100vh - var(--navbar-height));
    }

    .hero-left {
        flex: 0 0 45%;
        max-width: 45%;
        text-align: left;
    }

    .hero-right {
        flex: 0 0 55%;
        max-width: 55%;
        padding-left: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-right .inquiry-form-wrap {
        max-width: 520px;
        width: 100%;
    }

    .why-us-inner {
        min-height: 480px;
    }

    .why-us-panel {
        width: 58%;
    }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768px – 991px)
════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    :root {
        --navbar-height: 65px;
    }

    #home {
        min-height: auto;
        padding-top: calc(var(--navbar-height) + 30px);
        padding-bottom: 40px;
    }

    #home h1 {
        font-size: 34px;
        text-align: center;
    }

    #home .hero-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-left {
        text-align: center;
        padding-right: 0;
        padding-bottom: 30px;
        align-items: center;
    }

    .hero-right {
        display: flex;
        justify-content: center;
    }

    .hero-right .inquiry-form-wrap {
        max-width: 520px;
        width: 100%;
    }

    .why-us-inner {
        flex-direction: column;
        min-height: auto;
    }

    .why-us-panel {
        width: 100%;
    }

    .why-us-image-spacer {
        display: none;
    }

    .why-us-content {
        padding: 40px 30px 30px;
    }

    .why-us-content h2 {
        font-size: 28px;
    }

    .stats-row {
        padding: 20px 30px;
    }

    .consultancy-content {
        padding: 50px 30px;
    }

    .inquiry-form-wrap {
        padding: 35px 25px;
    }

    #trust .section-title {
        font-size: 32px;
    }

    #trust {
        padding: 80px 0;
    }

    .consultancy-image {
        min-height: 350px;
    }

    .navbar-brand {
        padding: 10px 18px;
    }

    .navbar-brand img {
        height: 32px;
    }

    .navbar .nav-link {
        padding: 15px 12px !important;
        font-size: 13px;
    }

    .section-title {
        font-size: 30px;
    }

    #about {
        padding: 60px 0;
    }

    .about-images {
        height: 380px;
        margin-bottom: 40px;
    }

    .about-images .img-top {
        height: 300px;
        width: 90%;
    }

    .about-images .img-bottom {
        height: 180px;
        width: 65%;
        bottom: 0;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #why-us {
        padding: 60px 0;
    }

    .why-us-panel::after {
        right: 0;
        bottom: -6px;
        top: auto;
        width: 100%;
        height: 6px;
    }

    .project-item {
        min-width: 280px;
        max-width: 280px;
    }

    #b2b-services-section .modal .modal-header {
        padding: 16px 18px;
    }

    #b2b-services-section .modal .modal-header .modal-title {
        font-size: 17px;
    }

    #b2b-services-section .modal .modal-body {
        padding: 20px 18px 16px;
        max-height: 60vh;
    }

    #b2b-services-section .modal .svc-l {
        font-size: 10px;
    }

    #b2b-services-section .modal .svc-t,
    #b2b-services-section .modal .svc-ul li {
        font-size: 13px;
    }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (< 768px)
════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    :root {
        --navbar-height: 58px;
    }

    .top-bar {
        display: none !important;
    }

    #home {
        min-height: auto;
        padding-top: calc(var(--navbar-height) + 25px);
        padding-bottom: 30px;
    }

    #home h1 {
        font-size: 28px;
        letter-spacing: 1px;
        text-align: center;
    }

    #home .hero-desc {
        font-size: 14px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-left {
        text-align: center;
        padding-right: 0;
        padding-bottom: 0;
        align-items: center;
    }

    .hero-right {
        display: none !important;
    }

    .btn-primary-custom,
    .btn-outline-custom,
    .btn-outline-light-custom {
        padding: 12px 25px;
        font-size: 13px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-label {
        font-size: 12px;
    }

    #about {
        padding: 60px 0;
    }

    .about-images .img-top {
        width: 80%;
        margin-left: 10%;
    }

    .about-images .img-bottom {
        width: 60%;
        margin-top: -50px;
    }

    .about-text {
        font-size: 14px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .why-us-inner {
        flex-direction: column;
        min-height: auto;
    }

    .why-us-panel {
        width: 100%;
    }

    .why-us-image-spacer {
        display: none;
    }

    .why-us-list {
        grid-template-columns: 1fr;
    }

    .why-us-content {
        padding: 35px 20px 25px;
    }

    .why-us-content h2 {
        font-size: 24px;
    }

    .stats-row {
        padding: 20px;
    }

    .stats-row .stats-flex {
        gap: 25px;
    }

    .stat-item .stat-number {
        font-size: 24px;
    }

    .stat-item .stat-icon {
        font-size: 24px;
    }

    .inquiry-form-wrap {
        padding: 25px 18px;
    }

    .inquiry-form-wrap h3 {
        font-size: 20px;
    }

    /* Mobile radio buttons */
    #mobile-form-section .radio-group {
        border: none;
        border-radius: 0;
        background: transparent;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
        margin-bottom: 20px;
    }

    #mobile-form-section .radio-group input[type='radio'] {
        display: inline-block;
        margin: 0;
        width: auto;
        accent-color: var(--primary-blue);
    }

    #mobile-form-section .radio-group label {
        background: transparent;
        border: none;
        padding: 0 5px 0 0;
        text-align: left;
        width: auto;
        flex: unset;
        font-weight: 400;
        color: var(--text-dark);
        display: flex;
        align-items: center;
    }

    #mobile-form-section .radio-group label:last-child {
        border-bottom: none;
    }

    #mobile-form-section .radio-group input[type='radio']:checked+label {
        background: transparent;
        color: var(--text-dark);
        font-weight: 600;
    }

    #services {
        padding: 60px 0;
    }

    /* .service-card-center kept visible on mobile — redesigned as B2B card */

    #trust {
        padding: 60px 0;
    }

    #trust .section-title {
        font-size: 26px;
    }

    .achievement-number {
        font-size: 36px;
    }

    .consultancy-image {
        min-height: 280px;
    }

    .consultancy-content {
        padding: 40px 20px;
    }

    .consultancy-item h5 {
        font-size: 16px;
    }

    #testimonials {
        padding: 60px 0;
    }

    .testimonial-card {
        padding: 25px 20px;
    }

    .testimonial-card p {
        font-size: 13px;
    }

    #projects {
        padding: 60px 0;
    }

    .project-item {
        min-width: 250px;
        max-width: 250px;
        height: 240px;
    }

    .project-gallery .project-track {
        animation-duration: 20s;
    }

    .project-overlay-text {
        opacity: 1;
        transform: translateY(0);
    }

    #mobile-form-section {
        padding: 60px 0;
    }

    footer {
        padding: 40px 0 0;
    }

    footer h5 {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-social {
        margin-top: 5px;
    }

    .navbar-brand {
        padding: 8px 15px;
    }

    .navbar-brand img {
        height: 28px;
    }

    .navbar .nav-link {
        padding: 12px 15px !important;
        font-size: 14px;
        text-align: center;
    }

    .navbar .nav-link::after {
        display: none;
    }

    .nav-social {
        display: none !important;
    }

    .navbar-toggler {
        padding: 8px 12px;
        margin-right: 10px;
    }

    .navbar-collapse {
        background: var(--white);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding: 8px 0 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .navbar .nav-link {
        padding: 12px 20px !important;
        color: var(--text-dark) !important;
        text-align: left;
    }

    .navbar .nav-link::after {
        display: none;
    }

    .navbar .nav-login-link {
        margin: 8px 20px;
    }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (< 480px)
════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    #home h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .project-item {
        min-width: 220px;
        max-width: 220px;
        height: 200px;
    }

    .about-images .img-top {
        width: 90%;
        margin-left: 5%;
    }

    .about-images .img-bottom {
        width: 65%;
    }

    .why-us-content h2 {
        font-size: 22px;
    }

    #trust .section-title {
        font-size: 22px;
    }

    .service-card {
        min-height: 0;
    }

    .svc-card-img {
        height: 160px;
    }

    .consultancy-image {
        min-height: 220px;
    }

    .footer-links .col-6 {
        width: 50%;
    }

    .stats-row .stats-flex {
        gap: 20px;
    }

    .stat-item .stat-number {
        font-size: 22px;
    }

    .stat-item .stat-icon {
        font-size: 22px;
    }
}

/* ── EQUAL HEIGHT SERVICE CARDS ──────────────────────────── */
/* Force all cards in the services row to the same height */
#services .row {
    align-items: stretch;
}

#services .col-lg-4,
#services .col-md-6 {
    display: flex;
    flex-direction: column;
}

/* Image-based service cards — fill full column height */
.service-card.service-card-image {
    flex: 1;
    height: 100%;
}

/* B2B center card — fill full column height */
.service-card-center {
    flex: 1;
    height: 100%;
}

/* Lock image height so all card images are uniform */
.svc-card-img {
    height: 220px;
    /* fixed — was 200px, bumped slightly for visual balance */
}

/* Card body stretches to fill remaining space */
.svc-card-body {
    flex: 1;
    align-items: center;
}

/* ── LIST ITEM ICONS INSIDE MODALS ──────────────────────── */
/* Small inline icon that sits before each <li> content */
.svc-li-icon {
    font-size: 12px;
    color: var(--primary-blue);
    margin-right: 6px;
    flex-shrink: 0;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Override the ::before pseudo on li when we use .svc-li-icon */
#b2b-services-section .modal .svc-ul li {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding-left: 0;
    /* remove old left-padding since icon is inline now */
}

#b2b-services-section .modal .svc-ul li::before {
    display: none;
    /* hide old CSS pseudo-icon — we're using real icons now */
}

/* KPI strip label wraps gracefully on small screens */
.modal-kpi span {
    white-space: normal;
    word-break: break-word;
}

/* ── MODAL BODY MAX-HEIGHT BUMP ─────────────────────────── */
/* The full content is longer now — give modal more scroll space */
#b2b-services-section .modal .modal-body {
    max-height: 70vh;
}

@media (max-width: 991px) {
    #b2b-services-section .modal .modal-body {
        max-height: 65vh;
    }
}

@media (max-width: 767px) {
    .svc-card-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .svc-card-img {
        height: 160px;
    }
}

/* ═══════════════════════════════════════════════════════════
   COMMON FOOTER — used across all pages
═══════════════════════════════════════════════════════════ */

.site-footer {
    background: #0d1117;
    color: rgba(255, 255, 255, 0.65);
    padding: 70px 0 0;
    font-size: 14px;
}

/* Brand */
.footer-logo img {
    height: 32px;
    margin-bottom: 14px;
    display: block;
}

.footer-tagline {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Inline contact items */
.footer-contact-inline .item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.footer-contact-inline .item i {
    color: var(--primary-red);
    font-size: 15px;
    flex-shrink: 0;
}

.footer-contact-inline .item a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-inline .item a:hover {
    color: var(--white);
}

/* Column headings */
.footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 18px;
}

/* Link lists */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-list a:hover {
    color: var(--primary-red);
    padding-left: 4px;
}

/* Social icons */
.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.footer-socials a:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* Google Play badge */
.footer-playstore img {
    height: 40px;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-playstore:hover img {
    opacity: 1;
}

/* Locations strip */
.footer-locations {
    margin-top: 50px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    font-size: 12px;
}

.footer-locations span {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.footer-locations a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-locations a:hover {
    color: var(--white);
}

/* .footer-locations .view-more {
    color: var(--primary-blue);
    font-weight: 600;
}

.footer-locations .view-more:hover {
    color: var(--primary-red);
} */

/* Bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom p strong {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 767px) {
    .site-footer {
        padding: 50px 0 0;
    }

    .footer-top {
        row-gap: 35px !important;
    }

    .footer-locations {
        gap: 8px 12px;
        margin-top: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-legal {
        gap: 16px;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════
   CAREER MODAL
═══════════════════════════════════════════════════════════ */

.career-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.career-modal-overlay.active {
    display: flex;
}

.career-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: careerSlideIn 0.25s ease;
}

@keyframes careerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.career-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid #eee;
}

.career-modal-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 4px;
}

.career-modal-header p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.career-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 0 0 16px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.career-modal-close:hover {
    color: #d42f2f;
}

.career-modal-body {
    padding: 24px 28px 28px;
}

/* Success state */
.career-success {
    display: none;
    text-align: center;
    padding: 30px 0 10px;
}

.career-success.visible {
    display: block;
}

.career-success i {
    font-size: 52px;
    color: #22c55e;
    margin-bottom: 14px;
    display: block;
}

.career-success h5 {
    font-size: 20px;
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 8px;
}

.career-success p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Row layout */
.career-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Field */
.career-field {
    margin-bottom: 18px;
}

.career-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 7px;
}

.career-field label span {
    color: #d42f2f;
}

.career-field input[type="text"],
.career-field input[type="email"],
.career-field input[type="tel"] {
    width: 100%;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    color: #222;
}

.career-field input:focus {
    border-color: #1b5fad;
    box-shadow: 0 0 0 3px rgba(27, 95, 173, 0.1);
}

.career-field input.invalid {
    border-color: #d42f2f;
}

/* File upload */
.career-file-wrap {
    border: 2px dashed #d0d0d0;
    border-radius: 6px;
    padding: 18px 16px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
    background: #fafafa;
}

.career-file-wrap:hover {
    border-color: #1b5fad;
    background: #f0f4fb;
}

.career-file-wrap.has-file {
    border-color: #22c55e;
    background: #f0fdf4;
}

.career-file-wrap i {
    font-size: 24px;
    color: #1b5fad;
    display: block;
    margin-bottom: 8px;
}

.career-file-wrap span {
    font-size: 13px;
    color: #666;
}

.career-file-wrap input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* Error */
.career-error {
    display: block;
    font-size: 12px;
    color: #d42f2f;
    margin-top: 5px;
    min-height: 16px;
}

/* Submit button */
.career-submit {
    width: 100%;
    background: #d42f2f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: 4px;
}

.career-submit:hover:not(:disabled) {
    background: #b52525;
    transform: translateY(-2px);
}

.career-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin {
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 540px) {

    .career-modal-header,
    .career-modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }

    .career-row {
        grid-template-columns: 1fr;
    }
}