/********** Template CSS **********/
:root {
    --primary: #4AAFF8; /* updated: light blue brand color */
    --secondary: #51CFED;
    --light: #F8F2F0;
    --dark: #060315;
}

/* Ensure Bootstrap components use our primary color */
:root { --bs-primary: var(--primary); }

/* Default font stack; Cairo will be used for Arabic when RTL is active */
body {
    font-family: 'Inter', 'Roboto', sans-serif;
}

/* Modernization: improved base spacing, smoother rendering */
html,body{ -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
:root{ --surface: #ffffff; --muted:#6c757d; }

/* Increase base line-height and letter-spacing for modern feel */
body { line-height:1.6; letter-spacing:0.01em; }

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** 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;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.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;
}

.form-control {
    border-radius: 12px !important;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        top: -6px;
        left: 50%;
        background: #FFFFFF;
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .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;
    }
}


/*** Header ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 100vh; /* make hero full viewport height */
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item video {
        position: absolute;
        width: 100vw; /* cover full viewport width */
        height: 100vh; /* cover full viewport height */
        left: 50%;
        transform: translateX(-50%);
        object-fit: cover;
        top: 0;
        z-index: 0;
    }

    /* Override primary color usages (replace red with brand light blue) */
    .btn-primary, .btn.btn-primary {
        background: var(--primary) !important;
        border-color: var(--primary) !important;
    }

    a { color: var(--primary); }

    /* Form and contact map rounding */
    .contact-page .bg-light {
        border-radius: 12px;
        overflow: hidden;
    }

    .form-control {
        border-radius: 8px !important;
    }

    .contact-page .btn-primary.w-100 {
        border-radius: 8px;
    }

    .contact-page .position-relative.h-100 {
        border-radius: 12px;
        overflow: hidden;
    }

    .contact-page iframe.position-absolute {
        border: 0;
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 12px !important;
    }

    /* Ensure all inner contact elements have rounded corners */
    .contact-page .bg-light,
    .contact-page .bg-light .form-floating,
    .contact-page .form-floating .form-control,
    .contact-page .form-floating textarea,
    .contact-page .form-floating .form-control:focus,
    .contact-page .btn-primary.w-100,
    .contact-page .position-relative.h-100,
    .contact-page .position-relative.h-100 iframe {
        border-radius: 12px !important;
    }

    /* Prevent child overflow and make inputs visually separated */
    .contact-page .bg-light { overflow: hidden; }
    .contact-page .form-control { background-clip: padding-box; }

    /* Form focus color matching brand */
    .contact-page .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 .25rem rgba(74,175,248,0.15);
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: linear-gradient(90deg,var(--primary),var(--secondary));
    border-color: transparent;
}

/* Modern navbar */
.modern-nav {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 28px rgba(6,18,28,0.06);
    border: 0;
    transition: all .28s ease;
}
.modern-nav .navbar-brand { padding:10px 16px; display:flex; gap:12px; align-items:center; }
.modern-nav .navbar-brand h5, .modern-nav .navbar-brand small { color: var(--dark); }
.modern-nav .navbar-brand img{ height:48px; }
.modern-nav .navbar-nav .nav-link{ color: rgba(18,24,30,0.85); padding: 10px 12px; font-weight:600; }
.modern-nav .navbar-nav .nav-link:hover{ color: var(--primary); }

/* Buttons - softer, subtle shadow and smooth gradient */
.btn-primary {
    background: linear-gradient(90deg,var(--primary), #3FA5F0);
    border: none;
    box-shadow: 0 8px 20px rgba(74,175,248,0.18);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow:0 18px 36px rgba(74,175,248,0.2); }

/* Cards / services modern look */
.service-item {
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 14px 40px rgba(6,18,28,0.06);
    transition: transform .28s cubic-bezier(.2,.9,.2,1), box-shadow .28s ease;
    overflow: hidden;
}
.service-item:hover{ transform: translateY(-8px); box-shadow: 0 30px 60px rgba(6,18,28,0.09); }
.service-item .overflow-hidden img{ border-radius:10px; }

/* Hero overlay refinement */
.header-carousel .owl-carousel-item .position-absolute{ z-index:2; }
.header-carousel .overlay-strong{ background: linear-gradient(180deg, rgba(6,3,21,0.55), rgba(6,3,21,0.35)); }

/* Improve spacing on content sections */
h1, h2, h3, h4, h5 { letter-spacing: -0.01em; }
.container { max-width:1400px; }
.container-fluid { max-width: 100%; padding-left: 0; padding-right: 0; }

/* Footer improvements */
.footer{ border-top-left-radius:12px; border-top-right-radius:12px; overflow:hidden; }

/* Back to top modern rounded */
.back-to-top{ border-radius:12px !important; box-shadow: 0 10px 30px rgba(6,18,28,0.12); }

.page-header {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

/* Contact form - modern refinements scoped to .modern-form */
.contact-form .modern-form {
    background: #ffffff;
    padding: 2rem !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(6,18,28,0.06);
}
.contact-form .modern-form .form-floating { margin-bottom: 0.75rem; }
.contact-form .modern-form .form-control {
    background: #F6F9FC;
    border: none !important;
    height: 56px;
    padding: .75rem 1rem;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    transition: box-shadow .18s ease, transform .18s ease;
}
.contact-form .modern-form textarea.form-control { height: 140px; padding-top: 1rem; }
.contact-form .modern-form .form-control:focus {
    outline: none;
    box-shadow: 0 12px 40px rgba(74,175,248,0.12);
    transform: translateY(-2px);
}
.contact-form .modern-form .form-floating > label {
    color: #6b7280;
    font-weight: 500;
}
.contact-form .modern-form .btn-primary.w-100 {
    background: linear-gradient(90deg,var(--primary), #3FA5F0) !important;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-weight: 700;
    box-shadow: 0 14px 36px rgba(74,175,248,0.14);
}
.contact-form .modern-form .btn-primary.w-100:hover { transform: translateY(-3px); }

/* Small responsive tweak for smaller viewports */
@media (max-width: 576px) {
    .contact-form .modern-form .form-control { height: 52px; }
    .contact-form .modern-form { padding: 1rem !important; }
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item img {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-item a.btn-slide {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-size: 0;
}

.service-item a.btn-slide i,
.service-item a.btn-slide span {
    position: relative;
    height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 0 35px 35px 0;
    transition: .5s;
    z-index: 2;
}

.service-item a.btn-slide span {
    padding-left: 0;
    left: -100%;
    z-index: 1;
}

.service-item:hover a.btn-slide i {
    border-radius: 0;
}

.service-item:hover a.btn-slide span {
    left: 0;
}

.service-item a.btn-slide:hover i,
.service-item a.btn-slide:hover span {
    background: var(--secondary);
}


/* Rounded corners for softer look */
.service-item, .card, .feature-item, .container,
 .about .position-relative{
    border-radius: 12px;
    overflow: hidden;
}
.hero-video{
    border-radius: 0 !important;
    width: 100vw !important;
}
.header-carousel .owl-carousel-item .position-absolute {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}
.footer{
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}
.service-item img, .img-fluid, .feature-item img, .about img {
    border-radius: 8px;
}

.btn, .btn-primary, .btn-secondary {
    border-radius: 8px;
}

/* Slight rounding on sections */
section, .container-xxl, .container {
    border-radius: 6px;
}

/* Services background using bg.jpg with dark overlay for contrast */
.services.overlap {
    background-image: linear-gradient(rgba(6,3,21,0.6), rgba(6,3,21,0.6)), url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding-top: 60px;
    padding-bottom: 60px;
}
/* Only force white for the section headings in the dark background sections */
.services.overlap .text-center h6,
.services.overlap .text-center h1 {
    color: #ffffff !important;
}

/* Leave card and item text to inherit (so .service-item keeps dark text on light cards) */

/* Ensure paragraph text inside service cards stays dark even when parent section is dark */
.service-item p {
    color: #060315 !important;
}

/* Services page full background wrapper */
.services-section-bg {
    background-image: linear-gradient(rgba(6,3,21,0.65), rgba(6,3,21,0.65)), url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

/* Service detail pages: reuse background and provide a readable content card */
.service-detail.services-section-bg {
    padding: 80px 0;
}
.service-detail .service-card {
    background: rgba(255,255,255,0.96);
    color: #0b1720;
    padding: 36px;
    border-radius: 12px;
    max-width: 980px;
    margin: 0 auto;
    box-shadow: 0 18px 50px rgba(6,18,28,0.12);
}
.service-detail h1 { font-size: 34px; margin-bottom: 12px; }
.service-detail h3 { font-size: 20px; margin-top: 20px; margin-bottom: 8px; color: var(--dark); }
.service-detail p { font-size: 16px; line-height: 1.8; color: #25303a; }
.service-detail ul { margin-left: 1.2rem; margin-bottom: 16px; }
.service-detail .back-to-services { display:inline-block; margin-top:20px; color:var(--primary); font-weight:600; }

@media (max-width: 991.98px) {
  .service-detail.services-section-bg { padding: 40px 0; }
  .service-detail .service-card { padding: 20px; margin: 0 18px; }
  .service-detail h1 { font-size: 26px; }
}




/*** Contact ***/
@media (min-width: 992px) {
    .container.contact-page {
        max-width: 100% !important;
    }

    .contact-page .contact-form  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-page .contact-form  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-page .contact-form  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/map.png) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.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: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

/* RTL / Arabic support */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

.rtl {
    direction: rtl !important;
}
.rtl body, html.rtl body {
    font-family: 'Cairo', 'Inter', sans-serif !important;
}
.rtl .navbar-light .navbar-nav .nav-link {
    margin-left: 30px;
    margin-right: 0;
    text-align: right;
}
.rtl .footer .btn.btn-link {
    text-align: right;
}