/********** Template CSS **********/
:root {
    --primary: #1363C6;
    --secondary: #15ACE1;
    --light: #F4F7FE;
    --dark: #14183E;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Heading ***/
h1,
h2,
h3,
.fw-bold {
    font-weight: 700 !important;
}

h4,
h5,
h6,
.fw-medium {
    font-weight: 500 !important;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 11px 0 !important;
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 0;
    color: rgba(255, 255, 255, .7);
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: rgba(255, 255, 255, 1);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        padding: 0 15px;
        background: var(--primary);
    }

    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    position: relative;
    overflow: hidden;
    margin-top: -75px;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 4px;
    bottom: 0;
    left: 0;
    background: var(--dark);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 4px;
    height: 4px;
    bottom: 0;
    left: 50px;
    background: var(--dark);
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -25px;
}

.section-title.text-center::after {
    left: 50%;
    margin-left: 25px;
}

.section-title h6::before,
.section-title h6::after {
    position: absolute;
    content: "";
    width: 10px;
    height: 10px;
    top: 2px;
    left: 0;
    background: rgba(33, 66, 177, .5);
}

.section-title h6::after {
    top: 5px;
    left: 3px;
}


/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/bg-about-img.png) top left no-repeat;
    background-size: contain;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 45px 30px;
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item .service-icon {
    margin: 0 auto 20px auto;
    width: 90px;
    height: 90px;
    color: var(--primary);
    background: var(--light);
    transition: .5s;
}

.service-item:hover .service-icon {
    background: #FFFFFF;
}

.service-item h5,
.service-item p {
    transition: .5s;
}

.service-item:hover h5,
.service-item:hover p {
    color: #FFFFFF;
}

.service-item a.btn {
    position: relative;
    display: flex;
    color: var(--primary);
    transition: .5s;
    z-index: 1;
}

.service-item:hover a.btn {
    color: var(--primary);
}

.service-item a.btn::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 35px;
    top: 0;
    left: 0;
    border-radius: 35px;
    background: var(--light);
    transition: .5s;
    z-index: -1;
}

.service-item:hover a.btn::before {
    width: 100%;
    background: var(--light);
}


/*** Feature ***/
.feature {
    background: url(../img/bg-hero.png) center center no-repeat;
    background-size: cover;
}


/*** Newsletter ***/
.newsletter {
    background: url(../img/bg-hero.png) center center no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Case Study ***/
.case-item img {
    transition: .5s;
}
  
.case-item:hover img {
    transform: scale(1.2);
}
  
.case-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(20, 24, 62, 0), var(--dark));
    z-index: 1;
}

.case-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: #FFFFFF;
    background: rgba(20, 24, 62, .7);
    border-radius: 25px;
    margin-bottom: 15px;
}

.case-overlay span.btn:hover {
    color: var(--primary);
    background: #FFFFFF;
    border-color: #FFFFFF;
}


/*** FAQs ***/
.accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
}

.accordion .accordion-button {
    background: var(--light);
    border-radius: 2px;
}

.accordion .accordion-button:not(.collapsed) {
    color: #FFFFFF;
    background: var(--primary);
    box-shadow: none;
}

.accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion .accordion-body {
    padding: 15px 0 0 0;
}


/*** Testimonial ***/
.testimonial-carousel {
    position: relative;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 40px;
    height: 100%;
    top: calc(50% - 50px);
    left: -21px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 5px 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border: 1px solid var(--primary);
    border-radius: 40px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    margin-left: 3rem;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    width: 15px;
    height: 15px;
    background: #FFFFFF;
    border: 1px solid var(--primary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}


/*** Team ***/
.team-item {
    transition: .5s;
    border: 1px solid transparent;
    transition: .5s;
}

.team-item:hover {

    border-color: var(--primary);
}


/*** Footer ***/
.footer {
    background: url(../img/footer.png) center center no-repeat;
    background-size: contain;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(256, 256, 256, .1);
    border-radius: 40px;
    transition: .3s;
}

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

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255,255,255,.5);
}

.footer .copyright a:hover {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


/* =====================================================================
   Codex Concept - إضافات: الخطوط العربية + دعم RTL + التجاوب
   ===================================================================== */

/*** Base / Responsive ***/
html,
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

/*** Arabic Typography ***/
html[lang="ar"] body,
html[lang="ar"] .btn,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] button {
    font-family: "Cairo", "Open Sans", sans-serif;
}

html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] .h1, html[lang="ar"] .h2, html[lang="ar"] .h3,
html[lang="ar"] .h4, html[lang="ar"] .h5, html[lang="ar"] .h6,
html[lang="ar"] .display-1, html[lang="ar"] .display-4 {
    font-family: "Cairo", sans-serif;
    line-height: 1.5;
}

html[lang="ar"] p {
    line-height: 1.9;
}

/*** Brand ***/
.navbar-brand {
    margin-right: 0;
    min-width: 0;
}

.brand-title {
    font-size: 2rem;
    white-space: nowrap;
    line-height: 1.2;
}

.footer .brand-title {
    font-size: 1.9rem;
    white-space: normal;
}

/*** Language switcher ***/
.lang-switch {
    min-width: 64px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.lang-switch:hover {
    color: var(--primary);
}

/*** Direction-aware icons ***/
[dir="rtl"] .flip-rtl {
    display: inline-block;
    transform: scaleX(-1);
}

/*** Navbar (RTL) ***/
[dir="rtl"] .navbar .navbar-nav .nav-link {
    margin-right: 0;
    margin-left: 35px;
}

[dir="rtl"] .navbar .dropdown-toggle::after {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .navbar .dropdown-menu {
    text-align: right;
}

@media (max-width: 991.98px) {
    [dir="rtl"] .navbar .navbar-nav .nav-link {
        margin-left: 0;
    }

    .navbar .navbar-nav {
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 18px;
    }

    [dir="rtl"] .navbar .navbar-nav .nav-link {
        margin-right: 0;
        margin-left: 18px;
    }
}

/*** Back to top (RTL) ***/
[dir="rtl"] .back-to-top {
    right: auto;
    left: 45px;
}

/*** Hero breadcrumb (RTL) ***/
[dir="rtl"] .breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
    padding-right: .5rem;
}

[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-right: 0;
    padding-left: .5rem;
}

/*** Section Title (RTL) ***/
[dir="rtl"] .section-title::before { left: auto; right: 0; }
[dir="rtl"] .section-title::after  { left: auto; right: 50px; }

/*** About (RTL) ***/
[dir="rtl"] .about-img::after {
    transform: scaleX(-1);
}

/*** Service (RTL) ***/
[dir="rtl"] .service-item a.btn::before {
    left: auto;
    right: 0;
}

/*** Newsletter (RTL) ***/
@media (min-width: 992px) {
    [dir="rtl"] .newsletter .newsletter-text {
        padding-right: .75rem;
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    [dir="rtl"] .newsletter .newsletter-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    [dir="rtl"] .newsletter .newsletter-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/*** Testimonial (RTL) ***/
[dir="rtl"] .testimonial-carousel .owl-nav {
    left: auto;
    right: -21px;
}

[dir="rtl"] .testimonial-carousel .owl-dots {
    margin-left: 0;
    margin-right: 3rem;
}

[dir="rtl"] .testimonial-carousel .owl-dot {
    margin-right: 0;
    margin-left: 10px;
}

/*** Footer (RTL) ***/
.footer .btn.btn-link {
    text-align: start;
}

[dir="rtl"] .footer .btn.btn-social {
    margin-right: 0;
    margin-left: 5px;
}

[dir="rtl"] .footer .btn.btn-link::before {
    content: "\f104";
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .footer .footer-menu a {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

[dir="rtl"] .footer .footer-menu a:last-child {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

.footer .footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
}

@media (min-width: 768px) {
    .footer .footer-menu {
        justify-content: flex-end;
    }
}

/*** Responsive tweaks (all devices) ***/
@media (max-width: 991.98px) {
    .hero-header .hero-img {
        max-height: 380px;
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2.2rem;
    }

    h1, .h1 {
        font-size: 1.8rem;
    }

    .testimonial-carousel .fs-4 {
        font-size: 1.15rem !important;
    }

    .service-item {
        padding: 35px 20px;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
    }

    [dir="rtl"] .back-to-top {
        right: auto;
        left: 20px;
    }
}

@media (max-width: 575.98px) {
    .brand-title {
        font-size: 1.45rem;
    }

    .navbar {
        height: 65px;
    }

    .hero-header {
        margin-top: -65px;
    }

    .display-4 {
        font-size: 1.9rem;
    }

    .display-1 {
        font-size: 4rem;
    }

    .lang-switch {
        min-width: 52px;
        padding: 4px 10px;
    }

    .testimonial-carousel .owl-nav {
        display: none !important;
    }

    .testimonial-carousel .owl-dots,
    [dir="rtl"] .testimonial-carousel .owl-dots {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }

    .footer .copyright {
        font-size: 13px;
    }
}

@media (max-width: 359.98px) {
    .brand-title {
        font-size: 1.2rem;
    }
}

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



/* =====================================================================
   صفحتا الأعمال والمشاريع (Works / Projects)
   ===================================================================== */

/*** Stats strip ***/
.pf-stat {
    height: 100%;
    padding: 22px 20px;
    border-radius: 16px;
    background: var(--light);
    border-inline-start: 4px solid var(--primary);
}

.pf-stat strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--dark);
    font-family: "Ubuntu", "Cairo", sans-serif;
}

.pf-stat span {
    font-size: .95rem;
}

/*** Filters ***/
.pf-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 0 auto 40px;
    padding: 6px;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    background: #FFFFFF;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(20, 24, 62, .06);
}

.pf-filters::-webkit-scrollbar {
    display: none;
}

.pf-filter {
    flex-shrink: 0;
    border: 0;
    padding: 9px 20px;
    border-radius: 50px;
    background: transparent;
    color: var(--dark);
    font-weight: 600;
    white-space: nowrap;
    transition: .3s;
}

.pf-filter:hover {
    color: var(--primary);
}

.pf-filter.active {
    color: #FFFFFF;
    background: var(--primary);
}

.pf-filter:focus-visible,
.work-more:focus-visible,
.proj-link:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

/*** Work card ***/
.work-col {
    transition: opacity .35s ease, transform .35s ease;
}

.work-col.is-hiding {
    opacity: 0;
    transform: scale(.96);
}

.work-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(20, 24, 62, .06);
    transition: transform .4s ease, box-shadow .4s ease;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(20, 24, 62, .14);
}

.work-stage {
    position: relative;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #FFFFFF;
    background:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(135deg, var(--c1), var(--c2));
}

.work-watermark {
    position: absolute;
    width: 210px;
    height: 210px;
    bottom: -70px;
    inset-inline-end: -60px;
    opacity: .16;
    transform: rotate(-12deg);
    transition: transform .6s ease;
}

.work-card:hover .work-watermark {
    transform: rotate(0deg) scale(1.08);
}

.work-logo {
    position: relative;
    z-index: 1;
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    color: var(--c2);
    background: #FFFFFF;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18), 0 0 0 8px rgba(255, 255, 255, .18);
    transition: transform .45s ease;
}

.work-logo svg {
    width: 52px;
    height: 52px;
}

.work-card:hover .work-logo {
    transform: rotate(-6deg) scale(1.06);
}

.work-year,
.work-cat {
    position: absolute;
    top: 14px;
    z-index: 1;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 30px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(4px);
}

.work-year {
    inset-inline-start: 14px;
}

.work-cat {
    inset-inline-end: 14px;
}

.work-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 20px;
}

.work-name {
    margin-bottom: 2px;
    color: var(--dark);
}

.work-sector {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c2);
}

.work-desc {
    font-size: .95rem;
    margin-bottom: 18px;
}

.work-metric {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(20, 24, 62, .12);
}

.work-metric strong {
    font-size: 1.7rem;
    line-height: 1;
    font-family: "Ubuntu", "Cairo", sans-serif;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.work-metric span {
    font-size: 13px;
}

.work-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    font-weight: 600;
    color: var(--dark);
}

.work-more i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-size: 12px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    transition: transform .3s;
}

.work-more:hover i {
    transform: translateX(4px);
}

[dir="rtl"] .work-more:hover i {
    transform: scaleX(-1) translateX(4px);
}

/*** Tags & chips ***/
.pf-tags,
.pf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pf-tag {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 30px;
    color: var(--c2, var(--primary));
    background: var(--light);
    font-weight: 600;
}

.pf-chip {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    color: var(--dark);
    background: rgba(20, 24, 62, .06);
}

/*** Work modal ***/
.work-modal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
}

.work-modal-close {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 38px;
    background-color: #FFFFFF;
    opacity: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

.work-modal-stage {
    height: 100%;
    min-height: 260px;
    position: relative;
}

.work-modal-stage .work-stage {
    height: 100%;
    min-height: 260px;
}

.work-modal-stage .work-logo {
    width: 130px;
    height: 130px;
    border-radius: 34px;
}

.work-modal-stage .work-logo svg {
    width: 74px;
    height: 74px;
}

.work-modal-sector {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--c2);
    margin-bottom: 4px;
}

.work-modal-desc {
    font-weight: 600;
    color: var(--dark);
}

.work-modal-result {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--light);
}

.work-modal-result .work-metric {
    border: 0;
    padding: 0;
    margin: 4px 0 0;
}

/*** CTA ***/
.pf-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 50px;
    border-radius: 28px;
    overflow: hidden;
    background: url(../img/bg-hero.png) center center / cover no-repeat, var(--primary);
}

@media (max-width: 767.98px) {
    .pf-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 34px 26px;
    }
}

/*** Status pill ***/
.pf-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 30px;
    white-space: nowrap;
}

.pf-status i {
    width: 7px;
    height: 7px;
    border-radius: 7px;
    background: currentColor;
}

.pf-status-live { color: #047857; background: #D1FAE5; }
.pf-status-beta { color: #B45309; background: #FEF3C7; }
.pf-status-dev  { color: #4338CA; background: #E0E7FF; }

.pf-status-live i {
    animation: pf-pulse 1.8s infinite;
}

@keyframes pf-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(4, 120, 87, .5); }
    70%  { box-shadow: 0 0 0 7px rgba(4, 120, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0); }
}

/*** Spotlight (featured project) ***/
.spotlight {
    border-radius: 30px;
    overflow: hidden;
    color: rgba(255, 255, 255, .75);
    background: var(--dark);
    box-shadow: 0 30px 60px rgba(20, 24, 62, .25);
}

.spot-visual {
    position: relative;
    height: 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .18), transparent 60%),
        linear-gradient(135deg, var(--c1), var(--c2));
}

.orbit {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, .35);
    animation: orbit-spin 26s linear infinite;
}

.orbit-ring.r2 {
    inset: 40px;
    border-style: solid;
    border-color: rgba(255, 255, 255, .22);
    animation-duration: 18s;
    animation-direction: reverse;
}

.orbit-ring.r3 {
    inset: 78px;
    border-color: rgba(255, 255, 255, .45);
    animation-duration: 12s;
}

.orbit-ring i {
    position: absolute;
    top: -6px;
    left: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 0 14px 3px rgba(255, 255, 255, .6);
}

.orbit-ring.r2 i {
    width: 9px;
    height: 9px;
    top: auto;
    bottom: -5px;
    background: var(--secondary);
}

@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}

.orbit-core {
    position: relative;
    z-index: 1;
    width: 118px;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 34px;
    color: var(--c2);
    background: #FFFFFF;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25), 0 0 0 10px rgba(255, 255, 255, .15);
}

.orbit-core svg {
    width: 68px;
    height: 68px;
}

.spot-body {
    height: 100%;
    padding: 48px;
    background:
        radial-gradient(circle at 100% 0, rgba(21, 172, 225, .18), transparent 45%),
        var(--dark);
}

[dir="rtl"] .spot-body {
    background:
        radial-gradient(circle at 0 0, rgba(21, 172, 225, .18), transparent 45%),
        var(--dark);
}

.spot-label {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 30px;
    color: #FFD166;
    background: rgba(255, 209, 102, .12);
}

.spot-year {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

.spot-name {
    color: #FFFFFF;
    font-size: 3rem;
    margin-bottom: 4px;
}

.spot-tagline {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 16px;
}

.spot-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.spot-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.spot-features i {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    font-size: 10px;
    color: var(--dark);
    background: var(--secondary);
}

.spot-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, .1);
}

.spot-stat {
    padding: 16px 14px;
    background: var(--dark);
}

.spot-stat strong {
    display: block;
    font-size: 1.6rem;
    line-height: 1.2;
    color: #FFFFFF;
    font-family: "Ubuntu", "Cairo", sans-serif;
}

.spot-stat span {
    font-size: 13px;
}

.spotlight .pf-chip {
    color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .08);
}

/*** Project card ***/
.proj-card {
    position: relative;
    height: 100%;
    display: flex;
    gap: 24px;
    padding: 28px;
    border-radius: 22px;
    background: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(20, 24, 62, .06);
    transition: transform .4s ease, box-shadow .4s ease;
}

.proj-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--c1), var(--c2));
    transform: scaleX(.25);
    transform-origin: left;
    transition: transform .5s ease;
}

[dir="rtl"] .proj-card::before {
    transform-origin: right;
}

.proj-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(20, 24, 62, .12);
}

.proj-card:hover::before {
    transform: scaleX(1);
}

.proj-logo {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 12px 24px -8px var(--c2);
    transition: transform .45s ease;
}

.proj-logo svg {
    width: 46px;
    height: 46px;
}

.proj-card:hover .proj-logo {
    transform: rotate(-6deg);
}

.proj-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.proj-name {
    color: var(--dark);
}

.proj-year {
    font-size: 13px;
    color: #8A8FA8;
}

.proj-tagline {
    font-weight: 600;
    color: var(--c2);
    margin-bottom: 8px;
}

.proj-desc {
    font-size: .95rem;
    margin-bottom: 14px;
}

.proj-progress {
    margin-bottom: 14px;
}

.proj-progress small {
    font-weight: 600;
    color: var(--dark);
}

.proj-bar {
    height: 6px;
    border-radius: 6px;
    background: var(--light);
    overflow: hidden;
}

.proj-bar span {
    display: block;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--c1), var(--c2));
}

.proj-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--c2);
}

.proj-link:hover {
    color: var(--dark);
}

/*** Responsive ***/
@media (max-width: 991.98px) {
    .spot-visual {
        min-height: 320px;
    }

    .spot-body {
        padding: 36px 28px;
    }
}

@media (max-width: 575.98px) {
    .spot-name {
        font-size: 2.3rem;
    }

    .orbit {
        width: 240px;
        height: 240px;
    }

    .orbit-ring.r2 { inset: 32px; }
    .orbit-ring.r3 { inset: 62px; }

    .spot-stats {
        grid-template-columns: 1fr;
    }

    .spot-stat {
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .proj-card {
        flex-direction: column;
        gap: 18px;
        padding: 24px;
    }

    .proj-logo {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }

    .pf-filters {
        justify-content: flex-start;
    }

    .pf-stat strong {
        font-size: 1.6rem;
    }
}

[dir="rtl"] .pf-stat strong,
[dir="rtl"] .spot-stat strong {
    text-align: right;
}



/* =====================================================================
   مؤثرات البنر الرئيسي: إضاءة وإخفاء متحركة للزخارف + عيون الروبوت
   (الزخارف كانت جزءاً من الصورة bg-hero.png وأصبحت عناصر SVG مستقلة)
   ===================================================================== */
.hero-fx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-header > .container {
    position: relative;
    z-index: 1;
}

/* ---- حلقة الأشرطة حول الروبوت: ضوء يدور حولها ثم يختفي ---- */
.fx-bar {
    fill: var(--c);
    fill-opacity: var(--o);
    animation: fx-chase 3.2s linear infinite;
    animation-delay: calc(var(--i) * 0.16s);
}

@keyframes fx-chase {
    0%, 100% { fill: var(--c); fill-opacity: var(--o); }
    6%       { fill: #FFFFFF; fill-opacity: .95; }
    16%      { fill: #9BE7FF; fill-opacity: .55; }
    30%      { fill: var(--c); fill-opacity: 0; }
    55%      { fill: var(--c); fill-opacity: var(--o); }
}

/* ---- النقاط: وميض عشوائي ---- */
.fx-dot {
    fill: var(--c);
    fill-opacity: var(--o);
    animation: fx-twinkle 4s ease-in-out infinite;
    animation-delay: var(--d);
}

@keyframes fx-twinkle {
    0%, 100% { fill: var(--c); fill-opacity: var(--o); }
    20%      { fill: #FFFFFF; fill-opacity: .95; }
    45%      { fill: var(--c); fill-opacity: 0; }
    70%      { fill: var(--c); fill-opacity: var(--o); }
}

/* ---- الدوائر والخطوط المخططة: تنفّس ضوئي هادئ ---- */
.fx-shape {
    transform-box: fill-box;
    transform-origin: center;
    animation: fx-breathe 7s ease-in-out infinite;
    animation-delay: var(--d);
}

@keyframes fx-breathe {
    0%, 100% { opacity: 1; transform: translateY(0); }
    35%      { opacity: .15; transform: translateY(14px); }
    60%      { opacity: 1; transform: translateY(0); filter: brightness(2.2); }
    75%      { opacity: 1; filter: brightness(1); }
}

.fx-ring-b,
.fx-circle-top {
    animation-name: fx-breathe-scale;
}

@keyframes fx-breathe-scale {
    0%, 100% { opacity: 1; transform: scale(1); }
    35%      { opacity: .2; transform: scale(.88); }
    60%      { opacity: 1; transform: scale(1.04); filter: brightness(2); }
    75%      { transform: scale(1); filter: brightness(1); }
}

/* ---- عيون الروبوت: توهّج نابض مع رمشة ---- */
.hero-robot {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.robot-eye {
    position: absolute;
    top: 31.45%;
    width: 4.6%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    mix-blend-mode: screen;
    background: radial-gradient(circle, #FFFFFF 0 18%, #5FE3FF 30%, rgba(21, 172, 225, .55) 55%, transparent 72%);
    box-shadow: 0 0 18px 6px rgba(21, 172, 225, .45);
    animation: robot-eye 5s ease-in-out infinite;
}

.robot-eye.l { left: 41.95%; }
.robot-eye.r { left: 57.97%; }

@keyframes robot-eye {
    0%, 100% { opacity: .35; transform: translate(-50%, -50%) scale(.85); }
    30%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
    50%      { opacity: .9;  transform: translate(-50%, -50%) scale(1); }
    /* رمشة سريعة */
    56%      { opacity: 0;   transform: translate(-50%, -50%) scale(1, .1); }
    60%      { opacity: .9;  transform: translate(-50%, -50%) scale(1); }
    80%      { opacity: .6;  transform: translate(-50%, -50%) scale(.95); }
}

@media (prefers-reduced-motion: reduce) {
    .fx-bar, .fx-dot, .fx-shape, .robot-eye {
        animation: none !important;
    }

    .robot-eye {
        opacity: .5;
    }
}

/* على الشاشات الصغيرة يقع النص فوق الزخارف، فنخفّف شدّتها للحفاظ على وضوح القراءة */
@media (max-width: 991.98px) {
    .hero-fx {
        opacity: .55;
    }
}

/* توهّج الزخارف (بدون مراجع url(#) حتى يعمل مع وسم <base> في نسخة PHP) */
.fx-ring,
.fx-dots {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, .6));
}
