/*
 * Theme v2 - shared by every site page (navbar on the home hero, buttons, footer).
 * Uses logical properties (inline-start/end) so the same rules work for RTL and LTR.
 */
:root {
    --v2-navy-950: #04122e;
    --v2-navy-900: #071c45;
    --v2-navy-800: #0b2a63;
    --v2-navy-700: #123a85;
    --v2-blue: #1f6feb;
    --v2-blue-600: #1559d0;
    --v2-sky: #79c2ff;
    --v2-text: #0f1b33;
    --v2-muted: #5b6b85;
    --v2-surface: #f3f7fe;
    --v2-border: #e3eaf6;
    --v2-radius: 14px;
    --v2-shadow: 0 10px 30px rgba(11, 42, 99, .08);
    --v2-shadow-lg: 0 18px 45px rgba(11, 42, 99, .16);
    --v2-ease: cubic-bezier(.22, .61, .36, 1);
}

body.lang-ar,
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3,
body.lang-ar h4, body.lang-ar h5, body.lang-ar h6,
body.lang-ar .btn {
    font-family: "Cairo", "Inter", sans-serif;
}

/* ---------- Large screens: scale the whole layout up (everything is rem based) ---------- */
@media (min-width: 1800px) {
    html { font-size: 17px; }
    .container { max-width: 1520px; }
    .site-navbar .navbar-nav .nav-link { font-size: 1.06rem; }
    .site-navbar .navbar-brand { height: 4.6rem; }
    .site-navbar .logo { height: 3.4rem; }
    .site-navbar img.name { height: 2.2rem; }
}

@media (min-width: 2300px) {
    html { font-size: 19px; }
    .container { max-width: 1760px; }
}

@media (min-width: 3200px) {
    html { font-size: 24px; }
    .container { max-width: 2240px; }
}

/* ---------- Buttons ---------- */
.btn-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .8rem 1.6rem;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .25s var(--v2-ease), border-color .25s var(--v2-ease), color .25s var(--v2-ease), transform .25s var(--v2-ease), box-shadow .25s var(--v2-ease);
}

.btn-v2 i {
    font-size: .9em;
    transition: transform .25s var(--v2-ease);
}

.btn-v2:hover {
    transform: translateY(-2px);
}

.btn-v2-primary {
    background: linear-gradient(135deg, var(--v2-blue) 0%, var(--v2-blue-600) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(31, 111, 235, .35);
}

.btn-v2-primary:hover {
    color: #fff;
    box-shadow: 0 14px 30px rgba(31, 111, 235, .45);
}

.btn-v2-outline {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .75);
    color: #fff;
    backdrop-filter: blur(4px);
}

.btn-v2-outline:hover {
    background: #fff;
    border-color: #fff;
    color: var(--v2-navy-800);
}

[dir="rtl"] .btn-v2:hover .fa-arrow-left { transform: translateX(-4px); }
[dir="ltr"] .btn-v2:hover .fa-arrow-right { transform: translateX(4px); }

/* ---------- Back to top ---------- */
.back-to-top {
    display: grid !important;
    place-items: center;
    right: auto;
    left: auto;
    inset-inline-end: 24px;
    bottom: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s var(--v2-ease), visibility .3s, transform .3s var(--v2-ease);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* ---------- Navbar over dark page heroes ---------- */
.site-navbar .logo {
    width: auto;
    height: 54px;
    margin-inline-end: 10px;
}

.site-navbar img.name {
    width: auto;
    height: 34px;
}

@media (max-width: 767px) {
    .site-navbar .logo { height: 44px; }
    .site-navbar img.name { height: 24px; }
}

.site-navbar {
    transition: background-color .35s var(--v2-ease), box-shadow .35s var(--v2-ease), backdrop-filter .35s var(--v2-ease);
}

body.has-hero .site-navbar:not(.is-scrolled) {
    background-color: transparent !important;
    box-shadow: none !important;
}

body.has-hero .site-navbar.is-scrolled {
    background-color: rgba(7, 28, 69, .92) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(4, 18, 46, .25) !important;
}

@media (min-width: 992px) {
    body.has-hero .site-navbar .navbar-nav .nav-link {
        color: rgba(255, 255, 255, .9);
        position: relative;
    }

    body.has-hero .site-navbar .navbar-nav .nav-link:hover,
    body.has-hero .site-navbar .navbar-nav .nav-link.active {
        color: #fff;
    }

    /* Same underline for the Services toggle (its ::after is the chevron) */
    body.has-hero .site-navbar .navbar-nav .dropdown-toggle.active {
        background: linear-gradient(var(--v2-sky), var(--v2-sky)) left 0 bottom 12px / 100% 2px no-repeat;
    }

    body.has-hero .site-navbar .navbar-nav > .nav-link.active::after {
        content: "";
        position: absolute;
        inset-inline: 0;
        bottom: 12px;
        height: 2px;
        border-radius: 2px;
        background: var(--v2-sky);
    }
}

body.has-hero .site-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, .5);
}

body.has-hero .site-navbar .navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

/* Mobile menu panel on the home page */
@media (max-width: 991.98px) {
    body.has-hero .site-navbar .navbar-collapse {
        background: rgba(7, 28, 69, .97);
        border-radius: var(--v2-radius);
        margin-bottom: .75rem;
    }

    body.has-hero .site-navbar .navbar-nav {
        border-top: 0;
    }

    body.has-hero .site-navbar .navbar-nav .nav-link {
        color: rgba(255, 255, 255, .9);
    }

    body.has-hero .site-navbar .navbar-nav .nav-link.active {
        color: var(--v2-sky);
    }
}

/* ---------- Services dropdown ---------- */
.site-navbar .dropdown-menu {
    min-width: 250px;
    padding: .5rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(7, 28, 69, .97);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(4, 18, 46, .35);
    text-align: start;
}

.site-navbar .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, .88);
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s var(--v2-ease), color .2s var(--v2-ease);
}

.site-navbar .dropdown-menu .dropdown-item i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(121, 194, 255, .12);
    color: var(--v2-sky);
    font-size: .85rem;
    transition: background-color .2s var(--v2-ease), color .2s var(--v2-ease);
}

.site-navbar .dropdown-menu .dropdown-item:hover,
.site-navbar .dropdown-menu .dropdown-item:focus,
.site-navbar .dropdown-menu .dropdown-item.active {
    background: rgba(31, 111, 235, .18);
    color: #fff;
}

.site-navbar .dropdown-menu .dropdown-item:hover i,
.site-navbar .dropdown-menu .dropdown-item.active i {
    background: var(--v2-blue);
    color: #fff;
}

.site-navbar .dropdown-divider {
    margin: .35rem .25rem;
    border-color: rgba(255, 255, 255, .1);
}

@media (max-width: 991.98px) {
    /* Inside the mobile menu panel: a nested, lighter card */
    .site-navbar .dropdown-menu {
        margin: 0 0 .5rem;
        border-color: rgba(255, 255, 255, .08);
        background: rgba(255, 255, 255, .04);
        box-shadow: none;
        backdrop-filter: none;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--v2-navy-950);
    color: rgba(255, 255, 255, .85);
    font-size: .95rem;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color .2s var(--v2-ease);
}

.site-footer a:hover {
    color: #fff;
}

.site-footer-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: 1.75rem 0;
}

.site-footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-contact li {
    min-width: 0;
}

/* Icon pinned to the first line so a long (multi-line) address stays tidy */
.site-footer-contact a {
    display: inline-flex;
    align-items: flex-start;
    gap: .65rem;
}

.site-footer-contact a span {
    padding-top: .45rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.site-footer-contact i {
    flex: 0 0 auto;
}

.site-footer-contact i {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(121, 194, 255, .1);
    color: var(--v2-sky);
    font-size: .95rem;
    transition: background-color .2s var(--v2-ease), color .2s var(--v2-ease);
}

.site-footer-contact a:hover i {
    background: var(--v2-blue);
    color: #fff;
}

.site-footer-social {
    display: flex;
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: 1.05rem;
    transition: background-color .2s var(--v2-ease), border-color .2s var(--v2-ease), transform .2s var(--v2-ease);
}

.site-footer-social a:hover {
    background: var(--v2-blue);
    border-color: var(--v2-blue);
    transform: translateY(-3px);
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    padding: 1.1rem 0 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .875rem;
    color: rgba(255, 255, 255, .6);
}

.site-footer-bottom p {
    margin: 0;
}

.site-footer-bottom strong {
    color: #fff;
    font-weight: 600;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.25rem;
}

/* Tablet & mobile: stack everything aligned to the start (right in Arabic, left in English) */
@media (max-width: 991.98px) {
    .site-footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .site-footer-contact {
        flex-direction: column;
        gap: .9rem;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== Shared components (home + inner pages) ========== */

/* ---------- Shared section helpers ---------- */
.home-section {
    padding: 5.5rem 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 2.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 0 0 .6rem;
    color: var(--v2-navy-800);
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
    font-weight: 800 !important;
    line-height: 1.25;
}

.section-title::after {
    content: "";
    flex: 0 0 auto;
    width: 46px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--v2-blue), var(--v2-sky));
}

.section-subtitle {
    max-width: 560px;
    margin: 0;
    color: var(--v2-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--v2-blue);
    font-weight: 700;
    text-decoration: none;
}

.section-link:hover {
    color: var(--v2-navy-800);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .9rem;
    color: var(--v2-sky);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.eyebrow::before {
    content: "";
    width: 32px;
    height: 2px;
    background: currentColor;
}

/* ---------- Services ---------- */
.services-v2 {
    background:
        radial-gradient(1200px 400px at 100% 0%, rgba(121, 194, 255, .12), transparent 60%),
        #fff;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding-bottom: 1.1rem;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    background: #fff;
    box-shadow: var(--v2-shadow);
    color: var(--v2-text);
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    transition: transform .35s var(--v2-ease), box-shadow .35s var(--v2-ease), border-color .35s var(--v2-ease);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(31, 111, 235, .35);
    box-shadow: var(--v2-shadow-lg);
    color: var(--v2-text);
}

.service-card-img {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    overflow: hidden;
    background: var(--v2-surface);
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--v2-ease);
}

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

.service-card-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--v2-blue), var(--v2-navy-700));
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 8px 18px rgba(31, 111, 235, .35);
    position: relative;
    z-index: 1;
    transition: transform .35s var(--v2-ease);
}

.service-card:hover .service-card-icon {
    transform: rotate(-8deg) scale(1.06);
}

.service-card-title {
    flex: 1;
    margin: .85rem .75rem .6rem;
    color: var(--v2-navy-800);
    font-size: 1rem;
    font-weight: 700 !important;
    line-height: 1.5;
}

.service-card-arrow {
    color: var(--v2-blue);
    font-size: .9rem;
    transition: transform .3s var(--v2-ease);
}

[dir="rtl"] .service-card:hover .service-card-arrow { transform: translateX(-5px); }
[dir="ltr"] .service-card:hover .service-card-arrow { transform: translateX(5px); }

/* ---------- Why us ---------- */
.why-v2 {
    background: linear-gradient(180deg, var(--v2-surface) 0%, #fff 100%);
    overflow: hidden;
}

.why-image {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--v2-shadow-lg);
    aspect-ratio: 1 / 1;
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 28, 69, .25), transparent 45%);
}

.why-features {
    margin-top: 2.25rem;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    background: #fff;
    box-shadow: var(--v2-shadow);
    overflow: hidden;
}

.why-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 1rem;
    text-align: center;
    border-inline-end: 1px solid var(--v2-border);
    transition: background-color .3s var(--v2-ease);
}

.why-feature:last-child {
    border-inline-end: 0;
}

.why-feature:hover {
    background: var(--v2-surface);
}

.why-feature-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: rgba(31, 111, 235, .08);
    color: var(--v2-blue);
    font-size: 1.6rem;
    transition: background-color .3s var(--v2-ease), color .3s var(--v2-ease), transform .3s var(--v2-ease);
}

.why-feature-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.why-feature:hover .why-feature-icon {
    background: var(--v2-blue);
    color: #fff;
    transform: translateY(-4px);
}

.why-feature-title {
    margin: 0;
    color: var(--v2-navy-800);
    font-size: .98rem;
    font-weight: 700 !important;
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .why-feature:nth-child(2n) {
        border-inline-end: 0;
    }

    .why-feature:nth-child(-n + 2) {
        border-bottom: 1px solid var(--v2-border);
    }
}

/* ---------- Stats ---------- */
.stats-v2 {
    position: relative;
    padding: 4.5rem 0;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(4, 18, 46, .88) 0%, rgba(11, 42, 99, .82) 100%),
        var(--stats-bg) center / cover no-repeat;
}

.stats-title {
    margin-bottom: 2.75rem;
    color: #fff;
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
    font-weight: 800 !important;
}

.stat-item {
    position: relative;
    height: 100%;
    padding: 1.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--v2-radius);
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(6px);
    text-align: center;
    transition: transform .3s var(--v2-ease), background-color .3s var(--v2-ease);
}

.stat-item:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-4px);
}

.stat-item > i {
    margin-bottom: .9rem;
    color: var(--v2-sky);
    font-size: 1.9rem;
}

.stat-number {
    direction: ltr;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
}

.stat-label {
    margin-top: .4rem;
    color: rgba(255, 255, 255, .82);
    font-size: 1rem;
    font-weight: 600;
}

/* ---------- CTA ---------- */
/* Floating card on a light band: keeps a clear gap from the dark stats band and footer. */
.cta-v2 {
    padding: 5rem 0;
    background: #fff;
}

.cta-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(var(--cta-dir, to left), var(--v2-blue-600) 0%, rgba(21, 89, 208, .92) 45%, rgba(18, 58, 133, .55) 100%),
        var(--cta-bg) center / cover no-repeat;
    box-shadow: var(--v2-shadow-lg);
}

[dir="ltr"] .cta-card {
    --cta-dir: to right;
}

/* Soft decorative rings */
.cta-card::before,
.cta-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .14);
    pointer-events: none;
}

.cta-card::before {
    width: 320px;
    height: 320px;
    inset-block-start: -160px;
    inset-inline-start: -110px;
}

.cta-card::after {
    width: 200px;
    height: 200px;
    inset-block-end: -110px;
    inset-inline-start: 30%;
}

.cta-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.cta-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: 1.6rem;
    backdrop-filter: blur(6px);
}

.cta-content h2 {
    margin-bottom: .4rem;
    color: #fff;
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
    font-weight: 800 !important;
}

.cta-content p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 1.05rem;
}

.cta-actions {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.btn-v2-light {
    background: #fff;
    color: var(--v2-navy-800);
    box-shadow: 0 10px 24px rgba(4, 18, 46, .2);
}

.btn-v2-light:hover {
    color: var(--v2-blue);
}

@media (max-width: 991.98px) {
    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .cta-v2 {
        padding: 3.5rem 0;
    }

    .cta-card {
        padding: 2rem 1.35rem;
        border-radius: 18px;
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-icon {
        width: 54px;
        height: 54px;
        font-size: 1.35rem;
    }

    .cta-actions,
    .cta-actions .btn-v2 {
        width: 100%;
    }
}

/* ========== Inner pages ========== */

.page-section {
    padding: 5rem 0;
}

.bg-surface {
    background: var(--v2-surface);
}

.btn-v2-ghost {
    background: transparent;
    border-color: var(--v2-border);
    color: var(--v2-navy-800);
}

.btn-v2-ghost:hover {
    border-color: var(--v2-blue);
    color: var(--v2-blue);
}

.btn-v2-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-v2-whatsapp:hover {
    background: #1fb857;
    color: #fff;
}

.eyebrow-dark {
    color: var(--v2-blue);
}

/* ---------- Page hero ---------- */
.page-hero,
.project-hero {
    position: relative;
    padding: 9.5rem 0 4.5rem;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(4, 18, 46, .78) 0%, rgba(7, 28, 69, .86) 60%, rgba(7, 28, 69, .95) 100%),
        var(--page-hero-bg) center / cover no-repeat,
        var(--v2-navy-900);
    overflow: hidden;
}

.page-hero::after,
.project-hero::after {
    content: "";
    position: absolute;
    inset-inline-end: -120px;
    bottom: -220px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    border: 1px solid rgba(121, 194, 255, .15);
    box-shadow: 0 0 0 60px rgba(121, 194, 255, .03), 0 0 0 120px rgba(121, 194, 255, .02);
    pointer-events: none;
}

.page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    font-size: .9rem;
}

.page-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255, 255, 255, .65);
}

.page-breadcrumb li + li::before {
    content: "/";
    color: rgba(255, 255, 255, .35);
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: #fff;
}

.page-breadcrumb [aria-current] {
    color: var(--v2-sky);
}

.page-hero-title {
    max-width: 820px;
    margin-bottom: .75rem;
    color: #fff;
    font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
    font-weight: 800 !important;
    line-height: 1.25;
}

.page-hero-subtitle {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 1.1rem;
    line-height: 1.8;
}

.project-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .85rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: .85rem;
}

/* ---------- Status badge ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}

.status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: .9;
}

.status-success { background: #12a150; }
.status-warning { background: #e8890c; }
.status-info    { background: var(--v2-blue); }

/* ---------- Filters ---------- */
.filters-panel {
    display: grid;
    gap: .9rem;
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    background: #fff;
    box-shadow: var(--v2-shadow);
}

.filters-panel .filter-bar {
    margin: 0;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 2rem;
}

.filter-label {
    min-width: 70px;
    color: var(--v2-muted);
    font-size: .9rem;
    font-weight: 700;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border: 1px solid var(--v2-border);
    border-radius: 999px;
    background: #fff;
    color: var(--v2-navy-800);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s var(--v2-ease), border-color .2s var(--v2-ease), color .2s var(--v2-ease);
}

.filter-chip:hover {
    border-color: var(--v2-blue);
    color: var(--v2-blue);
}

.filter-chip.is-active {
    border-color: var(--v2-blue);
    background: var(--v2-blue);
    color: #fff;
}

.filter-chip i {
    font-size: .85em;
    opacity: .8;
}

.filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 .35rem;
    border-radius: 999px;
    background: rgba(31, 111, 235, .1);
    font-size: .75rem;
}

.filter-chip.is-active .filter-count {
    background: rgba(255, 255, 255, .22);
}

.results-count {
    margin-bottom: 1.25rem;
    color: var(--v2-muted);
    font-weight: 600;
}

.empty-state {
    padding: 3.5rem 1rem;
    border: 1px dashed var(--v2-border);
    border-radius: var(--v2-radius);
    background: #fff;
    color: var(--v2-muted);
    text-align: center;
}

.empty-state i {
    margin-bottom: .9rem;
    color: var(--v2-sky);
    font-size: 2.5rem;
}

.empty-state p {
    margin-bottom: .5rem;
    font-size: 1.05rem;
}

/* ---------- Service tile (services page) ---------- */
.service-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--v2-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--v2-shadow);
    color: var(--v2-text);
    text-decoration: none;
    overflow: hidden;
    transition: transform .35s var(--v2-ease), box-shadow .35s var(--v2-ease);
}

.service-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--v2-shadow-lg);
    color: var(--v2-text);
}

.service-tile-img {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--v2-surface);
}

.service-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-tile-icon {
    position: absolute;
    inset-inline-start: 1.25rem;
    bottom: -26px;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 4px solid #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--v2-blue), var(--v2-navy-700));
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 10px 20px rgba(31, 111, 235, .3);
}

.service-tile-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 2.25rem 1.5rem 1.25rem;
}

.service-tile-title {
    margin-bottom: .5rem;
    color: var(--v2-navy-800);
    font-size: 1.25rem;
    font-weight: 800 !important;
}

.service-tile-text {
    flex: 1;
    color: var(--v2-muted);
    line-height: 1.8;
}

.service-tile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--v2-border);
    color: var(--v2-muted);
    font-size: .9rem;
}

.service-tile-foot i {
    color: var(--v2-blue);
}

.service-tile-link {
    color: var(--v2-blue);
    font-weight: 700;
}

/* ---------- Service details ---------- */
.service-overview-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
    border-radius: 18px;
    background: rgba(31, 111, 235, .1);
    color: var(--v2-blue);
    font-size: 1.6rem;
}

.rich-text {
    color: #33415c;
    font-size: 1.05rem;
    line-height: 1.95;
}

.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.rich-text a {
    color: var(--v2-blue);
}

.rich-text figure {
    margin: 1rem 0;
}

.fact-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: .75rem;
    margin-top: 2rem;
}

.fact-box {
    padding: 1.1rem;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    background: #fff;
    text-align: center;
}

.fact-box strong {
    display: block;
    color: var(--v2-blue);
    font-family: "Inter", sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
}

.fact-box span {
    color: var(--v2-muted);
    font-size: .9rem;
    font-weight: 600;
}

.framed-image {
    position: relative;
    border-radius: 22px;
    box-shadow: var(--v2-shadow-lg);
    aspect-ratio: 4 / 3.6;
}

.framed-image::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    z-index: -1;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(31, 111, 235, .18), rgba(121, 194, 255, .1));
}

[dir="rtl"] .framed-image::before {
    inset: 18px 18px -18px -18px;
}

.framed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.experience-badge {
    position: absolute;
    inset-inline-end: -12px;
    bottom: 24px;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--v2-blue), var(--v2-navy-700));
    color: #fff;
    text-align: center;
    box-shadow: 0 16px 30px rgba(31, 111, 235, .35);
}

.experience-badge strong {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.experience-badge span {
    font-size: .85rem;
}

/* ---------- Project card ---------- */
.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--v2-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--v2-shadow);
    color: var(--v2-text);
    text-decoration: none;
    overflow: hidden;
    transition: transform .35s var(--v2-ease), box-shadow .35s var(--v2-ease);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--v2-shadow-lg);
    color: var(--v2-text);
}

.project-card-img {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--v2-surface);
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--v2-ease);
}

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

.project-card-img .status-badge {
    position: absolute;
    top: 1rem;
    inset-inline-start: 1rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

.project-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem 1.4rem 1.3rem;
}

.project-card-service {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .5rem;
    color: var(--v2-blue);
    font-size: .85rem;
    font-weight: 700;
}

.project-card-title {
    margin-bottom: .5rem;
    color: var(--v2-navy-800);
    font-size: 1.15rem;
    font-weight: 800 !important;
    line-height: 1.5;
}

.project-card-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1rem;
    color: var(--v2-muted);
    font-size: .9rem;
}

.project-card-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
    color: var(--v2-blue);
    font-size: .92rem;
    font-weight: 700;
}

.project-card-link i {
    transition: transform .3s var(--v2-ease);
}

[dir="rtl"] .project-card:hover .project-card-link i { transform: translateX(-5px); }
[dir="ltr"] .project-card:hover .project-card-link i { transform: translateX(5px); }

/* ---------- Pagination ---------- */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.pagination-wrap nav > div:first-child,
.pagination-wrap .small.text-muted {
    display: none !important;
}

.pagination-wrap nav > div:last-child {
    display: flex !important;
    justify-content: center;
}

.pagination-wrap .pagination {
    gap: .4rem;
    margin: 0;
}

.pagination-wrap .page-link {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--v2-border);
    border-radius: 12px !important;
    color: var(--v2-navy-800);
    font-weight: 600;
}

.pagination-wrap .page-item.active .page-link {
    border-color: var(--v2-blue);
    background: var(--v2-blue);
    color: #fff;
}

[dir="rtl"] .pagination-wrap .page-link[rel="prev"],
[dir="rtl"] .pagination-wrap .page-link[rel="next"],
[dir="rtl"] .pagination-wrap .page-item:first-child .page-link,
[dir="rtl"] .pagination-wrap .page-item:last-child .page-link {
    transform: scaleX(-1);
}

/* ---------- Project details ---------- */
.project-gallery {
    padding: .75rem;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--v2-shadow-lg);
}

.project-gallery-main {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: var(--v2-surface);
    aspect-ratio: 16 / 9.5;
    overflow: hidden;
    cursor: zoom-in;
}

.project-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .18s ease, transform .6s var(--v2-ease);
}

.project-gallery-main img.is-switching {
    opacity: 0;
}

.project-gallery-main:hover img {
    transform: scale(1.03);
}

.project-gallery-zoom {
    position: absolute;
    inset-inline-end: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: rgba(4, 18, 46, .7);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.project-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: .6rem;
    margin-top: .75rem;
}

.project-gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--v2-surface);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    opacity: .65;
    transition: opacity .2s var(--v2-ease), border-color .2s var(--v2-ease);
}

.project-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-gallery-thumb:hover,
.project-gallery-thumb.is-active {
    opacity: 1;
}

.project-gallery-thumb.is-active {
    border-color: var(--v2-blue);
}

.project-content {
    margin-top: 2.5rem;
}

.project-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 1.25rem;
}

.info-card {
    padding: 1.6rem;
    border: 1px solid var(--v2-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--v2-shadow-lg);
}

.info-card-title {
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--v2-border);
    color: var(--v2-navy-800);
    font-size: 1.15rem;
    font-weight: 800 !important;
}

.fact-list {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.fact-list li {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.fact-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(31, 111, 235, .08);
    color: var(--v2-blue);
}

.fact-text small {
    display: block;
    color: var(--v2-muted);
    font-size: .8rem;
}

.fact-text strong,
.fact-text a {
    color: var(--v2-navy-800);
    font-weight: 700;
    text-decoration: none;
}

.fact-text a:hover {
    color: var(--v2-blue);
}

.share-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--v2-border);
}

.share-row span {
    margin-inline-end: auto;
    color: var(--v2-muted);
    font-size: .9rem;
    font-weight: 600;
}

.share-row a,
.share-row button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--v2-border);
    border-radius: 10px;
    background: #fff;
    color: var(--v2-navy-800);
    transition: background-color .2s var(--v2-ease), color .2s var(--v2-ease), border-color .2s var(--v2-ease);
}

.share-row a:hover,
.share-row button:hover {
    border-color: var(--v2-blue);
    background: var(--v2-blue);
    color: #fff;
}

[data-copy-link] .fa-check,
[data-copy-link].is-copied .fa-link {
    display: none;
}

[data-copy-link].is-copied .fa-check {
    display: inline-block;
}

[data-copy-link].is-copied {
    border-color: #12a150 !important;
    background: #12a150 !important;
    color: #fff !important;
}

.map-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--v2-shadow);
    aspect-ratio: 4 / 3;
}

.map-card iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-card-wide {
    margin-top: 3rem;
    aspect-ratio: auto;
    height: 420px;
}

.project-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--v2-border);
}

.project-pager-link {
    display: flex;
    align-items: center;
    gap: .9rem;
    max-width: 48%;
    color: var(--v2-navy-800);
    text-decoration: none;
}

.project-pager-link.is-next {
    margin-inline-start: auto;
    text-align: end;
}

.project-pager-link i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border: 1px solid var(--v2-border);
    border-radius: 50%;
    transition: background-color .2s var(--v2-ease), color .2s var(--v2-ease);
}

.project-pager-link:hover i {
    border-color: var(--v2-blue);
    background: var(--v2-blue);
    color: #fff;
}

.project-pager-link small {
    display: block;
    color: var(--v2-muted);
}

.project-pager-link strong {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-lightbox .modal-content {
    position: relative;
    border: 0;
    border-radius: 18px;
    background: #000;
    overflow: hidden;
}

.gallery-lightbox .carousel-item img {
    max-height: 82vh;
    object-fit: contain;
}

.gallery-lightbox-close {
    position: absolute;
    top: .75rem;
    inset-inline-end: .75rem;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 1.2rem;
}

.gallery-lightbox-nav {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

@media (max-width: 991.98px) {
    .project-sidebar {
        position: static;
    }

    .project-pager-link {
        max-width: 100%;
    }
}

/* ---------- About ---------- */
.mission-card {
    padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
    border: 1px solid var(--v2-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--v2-shadow);
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-grid li {
    display: flex;
    gap: .75rem;
    padding: 1rem;
    border-radius: 14px;
    background: var(--v2-surface);
    color: #33415c;
    line-height: 1.7;
}

.check-grid i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--v2-blue);
    color: #fff;
    font-size: .75rem;
}

@media (max-width: 575.98px) {
    .check-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Clients ---------- */
.logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--v2-border);
    border-radius: 16px;
    background: #fff;
    color: var(--v2-navy-800);
    text-decoration: none;
    transition: transform .3s var(--v2-ease), box-shadow .3s var(--v2-ease), border-color .3s var(--v2-ease);
}

.logo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 111, 235, .3);
    box-shadow: var(--v2-shadow-lg);
    color: var(--v2-navy-800);
}

.logo-card-img {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 3 / 2;
}

.logo-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .75;
    transition: filter .3s var(--v2-ease), opacity .3s var(--v2-ease);
}

.logo-card:hover .logo-card-img img {
    filter: none;
    opacity: 1;
}

.logo-card-name {
    margin-top: .75rem;
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
}

/* ---------- Contact ---------- */
.contact-panel {
    height: 100%;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(500px 260px at 100% 100%, rgba(31, 111, 235, .45), transparent 65%),
        linear-gradient(150deg, var(--v2-navy-900), var(--v2-navy-700));
    box-shadow: var(--v2-shadow-lg);
}

.contact-panel h2 {
    margin-bottom: .75rem;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800 !important;
    line-height: 1.4;
}

.contact-panel > p {
    color: rgba(255, 255, 255, .75);
}

.contact-list {
    display: grid;
    gap: 1.1rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-list-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    color: var(--v2-sky);
    font-size: 1.1rem;
}

.contact-list small {
    display: block;
    color: rgba(255, 255, 255, .6);
    font-size: .82rem;
}

.contact-list a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.contact-list a:hover {
    color: var(--v2-sky);
}

.form-card {
    height: 100%;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    border: 1px solid var(--v2-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--v2-shadow);
}

.form-card .form-control {
    border-color: var(--v2-border);
    border-radius: 12px;
    background: var(--v2-surface);
}

.form-card .form-control:focus {
    border-color: var(--v2-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31, 111, 235, .12);
}

.form-card .form-floating > label {
    color: var(--v2-muted);
}

[dir="rtl"] .form-card .form-floating > label {
    right: 0;
    left: auto;
}

.form-alert {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.25rem;
    padding: .9rem 1.1rem;
    border-radius: 12px;
    font-weight: 600;
}

.form-alert.is-success {
    background: rgba(18, 161, 80, .1);
    color: #0e7a3d;
}

.form-alert.is-error {
    background: rgba(220, 38, 38, .08);
    color: #b91c1c;
}

/* ---------- Tablet & mobile refinements ---------- */
@media (max-width: 991.98px) {
    .page-section,
    .home-section {
        padding: 4rem 0;
    }

    /* Full-width images would become too tall when stacked */
    .why-image,
    .framed-image {
        aspect-ratio: 16 / 10;
        max-height: 460px;
    }

    .why-image img {
        object-position: center 25%;
    }

    .experience-badge {
        inset-inline-end: 12px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    /* Info card and map side by side on tablets */
    .project-sidebar {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .project-sidebar .map-card {
        aspect-ratio: auto;
        height: 100%;
        min-height: 320px;
    }
}

@media (max-width: 575.98px) {
    .page-section,
    .home-section {
        padding: 3.25rem 0;
    }

    .page-hero,
    .project-hero {
        padding: 7.5rem 0 3rem;
    }

    .section-head {
        margin-bottom: 1.75rem;
    }

    .filters-panel {
        padding: 1rem;
    }

    .filter-label {
        width: 100%;
    }

    .map-card-wide {
        height: 300px;
    }

    .framed-image::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    /* Long chip lists scroll sideways instead of stacking into many rows */
    .filters-panel .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: -1rem;
        padding: 0 1rem .25rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .filters-panel .filter-bar::-webkit-scrollbar {
        display: none;
    }

    .filters-panel .filter-label {
        width: auto;
        min-width: auto;
        flex: 0 0 auto;
    }

    .filters-panel .filter-chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}
