html, body{
    overflow-x: hidden;
    scroll-behavior: smooth;
}
section {
    scroll-margin-top: 104px; 
}

body {
    font-family: 'Almarai', sans-serif;
}

:root{
    --primary-color: #23272A ;
    --swiper-theme-color: #23272A!important;
}
::selection {
    color: white;
    background: var(--primary-color);
  }
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 12px;
}
.title {
    font-size: 19px;
    font-weight: 400;
    font-style: italic;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    margin-bottom: 20px;
    display: block;
    width: fit-content;
}
p{
    font-size: 20px;
    font-weight: 400;
}
 h1{
    color: white;
    font-weight: 700;
    font-size: 46px;
}
h2{
    font-size: 36px;
    font-weight: 600;
}
@media(max-width:767px){
    h1{
        font-size: 30px;
    }
    .hero .btn{
        font-size: 16px;
    }
    p{
        font-size: 18px;
        font-weight: 400;
    }
    h2{
        font-size: 28px;
    }
}

/* From Uiverse.io by Smit-Prajapati */ 
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  
  .loader-container.hidden {
    opacity: 0;
    visibility: hidden;
  }
.loader {
    --ANIMATION-DELAY-MULTIPLIER: 70ms;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }
  .hidden{
    display: hidden;
  }
  .loader span {
    padding: 0;
    margin: 0;
    letter-spacing: -5rem;
    animation-delay: 0s;
    transform: translateY(4rem);
    animation: hideAndSeek 1s alternate infinite cubic-bezier(0.86, 0, 0.07, 1);
  }
  .loader .l {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 0);
  }
  .loader .o {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 1);
  }
  .loader .a {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 2);
  }
  .loader .d {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 3);
  }
  .loader .ispan {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 4);
  }
  .loader .n {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 5);
  }
  .loader .g {
    animation-delay: calc(var(--ANIMATION-DELAY-MULTIPLIER) * 6);
  }
  .letter {
    width: fit-content;
    height: 3rem;
  }
  .i {
    margin-inline: 5px;
  }
  @keyframes hideAndSeek {
    0% {
      transform: translateY(4rem);
    }
    100% {
      transform: translateY(0rem);
    }
  }
  


.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 111;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: bounce 1.5s infinite;
    right: 20px;
}
.whatsapp-icon svg{
    font-size: 30px;
}

/* تأثير التحريك */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* تأثير عند التحويم */
.whatsapp-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    background-color: #25D366;
    color: white;
}

.notification-badge {
    position: absolute;
    top: 0px;
    right: 5px;
    width: 12px;
    height: 12px;
    background-color: red;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
    animation: pulse 1.5s infinite;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 111;
    
}

.back-to-top {
    left: 20px ;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
}

.progress-ring circle {
    fill: none;
    stroke: #fff;
    stroke-width: 5;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    transition: stroke-dashoffset 0.2s ease-in-out;
}

/* start nav  */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    padding: 10px 20px;
    position: absolute; 
    z-index: 11;
    width: 100%;
    background: transparent;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease; 
    opacity: 1;
}

.navbar.fixed {
    position: fixed; 
    top: 0;
    background: var(--primary-color); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    opacity: 1;
}

.navbar.hide {
    transform: translateY(-100%); 
    opacity: 0; 
}
.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar .nav-links li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
    font-size: 20px;
}

.navbar .nav-links li a:hover {
    color: var(--primary-color);
}

/* Hamburger icon styling */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 25px;
    background: #fff;
    border-radius: 2px;
}

/* Side navbar (hidden by default) */
.side-navbar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: var(--primary-color);
    color: #fff;
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 60px;
}
.side-navbar .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: none;
    color: #fff;
    border: none;
    cursor: pointer;
}

.side-navbar ul {
    list-style: none;
    padding: 0;
}

.side-navbar ul li {
    margin: 20px 0;
    text-align: center;
}

.side-navbar ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.side-navbar ul li a:hover {
    color: #f39c12;
}

/* Responsive styling */
@media (max-width: 992px) {
    .navbar .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

/* Show the side navbar when active */
.side-navbar.active {
    left: 0;
}

/* start hero section  */

.hero {
    display: flex;
    padding-block: 200px;
    justify-content: center;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-image: url('../imgs/bg-1.webp'); 
    animation: background-swipe 15s infinite, zoom-fade 10s infinite; 
    z-index: 1;
}

/* Keyframes for background image swipe */
@keyframes background-swipe {
    0% {
        background-image: url('../imgs/bg-1.webp');
    }
    33% {
        background-image: url('../imgs/bg-2.webp');
    }
    66% {
        background-image: url('../imgs/bg-3.webp');
    }
    100% {
        background-image: url('../imgs/bg-1.webp');
    }
}

/* Keyframes for zoom and fade effect */
@keyframes zoom-fade {
    0% {
        transform: scale(1) opacity(0);
    }
    50% {
        transform: scale(1.2) opacity(1);
    }
    100% {
        transform: scale(1) opacity(0);
    }
}

.culture-hero::before,
.hero::before{
    content: "";
    position: absolute;
    background-color: rgba(0, 0, 0, 0.6);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.btn{
    font-size: 20px;
    font-weight: bold;
    background-color: var(--primary-color); 
    color: white;
    padding: 12px 30px;
    border-radius: 2px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: 2px solid var(--primary-color);
    margin-top: 20px;
}

.btn:hover {
    background-color: transparent; 
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* end hero section  */

/* start about-us section  */
.about-us{
    padding-block: 45px;
}
.about-us .img-box img{
    border-radius: 30% 0% 30% 0% ;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.about-us .mission-vision .box{
    display: flex;
    gap: 15px;
}
.about-us .mission-vision .box .icon-box{
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-us .mission-vision .box:hover{
    transform: translateY(-10px);
    transition: all .3s ease-in-out;
}
.aboutus_right {
    width: 50%;
    vertical-align: top;
    background-image: url(../imgs/bg40.png);
    background-position: 40px 70px;
    background-size: 39% auto;
    display: table-cell;
    position: relative;
    background-repeat: no-repeat;
    padding: 20px;
}
.aboutus_right_img img {
    width: 90%;
    object-fit: cover;
    object-position: center;
}
.aboutus_right_img img.aboutus_right_small {
    position: relative;
    float: left;
    margin-top: -120px;
    border: 10px solid #fff;
    width: 60%;
}
.aboutus_right_txt {
    background-color: var(--primary-color);
    background-image: url(../imgs/bg45.png);
    background-repeat: repeat;
    padding: 25px;
    box-shadow: 7px 15px 15px 0px rgba(0, 0, 0, 0.12);
    display: inline-block;
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    max-width: 340px;
    background-position: left top;
    position: absolute;
}
.aboutus_right_txt i {
    font-family: FontAwesome5, FontAwesome, iconmoon, Flatico;
    width: 60px;
    height: 60px;
    background: #fff;
    display: block;
    color: #61111b;
    text-align: center;
    line-height: 60px;
    font-weight: normal;
    border-radius: 50%;
    float: right;
    font-size: 25px;
    box-shadow: 7px 5px 30px 0 rgba(72, 73, 121, 0.15);
}

.aboutus_right_txt h2 {
    margin-right: 90px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
}


/* start services section  */
.services{
    padding-block: 40px;
    background-color: var(--primary-color);
    color: white;
    position: relative;
    z-index: 1;

}
.services::before{
    position: absolute;
    content: "";
    width: 351px;
    height: 352px;
    top: 0;
    left: 0;
    background-image: url('../imgs/before.png');
    background-position: center;
    background-size: cover;
    z-index: -1;
}
.services::after{
    position: absolute;
    content: "";
    width: 351px;
    height: 100%;
    top: 0;
    right: 0;
    background-image: url('../imgs/after.png');
    background-position: center;
    background-size: cover;
    z-index: -1;
}
.services .icon-box{
    padding: 15px;
    background-color: white;
    border-radius: 50%;
    width: fit-content;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.service-box {
    position: relative;
    background-size: cover; 
    background-position: center; 
    padding: 20px; 
    height: 100%; 
    min-height: 250px;
    z-index: 1;
    cursor: pointer;
    padding-bottom: 35px;
}
.service-box p{
    font-size: 16px;
}
.service-box::before{
    position: absolute;
    content: "";
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}
.service-box1 {
    background-image: url('../imgs/service-1.jpg');

}
.service-box2 {
    background-image: url('../imgs/service-2.jpg');

}
.service-box3 {
    background-image: url('../imgs/service-3.jpg');

}
.service-box4 {
    background-image: url('../imgs/service-4.jpeg');

}
.service-box5 {
    background-image: url('../imgs/service-5.jpg');

}
.service-box6 {
    background-image: url('../imgs/service-6.jpg');

}
.service-box .content {
    position: relative;
    z-index: 2; /* Ensures the content is above the background */
}

.service-box .call-to-action {
    position: absolute;
    display: block;
    z-index: 2;
    color: white;
    text-decoration: none;
    font-weight: bold;
    left: 0;
    bottom: 0;
    padding-block: 13px;
    padding-right: 5px;
    padding-left: 20px;
    background: #fff;
    color: #212529;
    font-size: 14px;
    line-height: 24px;
    font-weight: 700;
}
.service-box .call-to-action:before {
    content: "";
    position: absolute;
    display: inline-block;
    width: 0;
    height: 0;
    right: -50px;
    bottom: 0;
    border-top: 50px solid rgba(0, 0, 0, 0);
    border-left: 50px solid #fff;
}
.service-box .call-to-action::after {
    transition: right .2s;
    content: "";
    background-image: url(../imgs/services_know_more_arrow.png);
    position: relative;
    display: inline-block;
    height: 16px;
    width: 48px;
    background-size: contain;
    top: 4px;
    right: 0;
    background-repeat: no-repeat;
    margin-right: 10px;
    transition: transform .9 ease;

}
.service-box:hover::before{
    background-color: rgba(0, 0, 0, 0.8);
    transition: all .3s ease;

}
.service-box:hover .call-to-action:after{
    transform: translateX(-10px);
    transition: all .3s ease;
}
.service-box:hover .call-to-action{
    color: var(--primary-color);
    transition: all .3s ease;

}

/* start features section  */
.features {
    padding: 50px 0;
    background-color: white;
}
.features h2 {
    margin-bottom: 5px;
    text-align: center;
    font-weight: bold;

}
.features .row{
    padding-top: 100px;
}
.features p.subtitle {
    color: gray;
    margin-bottom: 20px;
    text-align: center;
}
.feature-box {
    position: relative;
    width: 100%;
    padding: 20px;
    text-align: center;
}
.feature-box .bg-number {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 250px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.05);
}
.feature-box img {
    width: 80px;
    position: relative;
    z-index: 1;
}
.feature-box h4 {
    color: var(--primary-color);
    margin: 10px 0;
    font-weight: bold;
}
.feature-box p {
    font-size: 18px;
    color: gray;
}
/* start swipper section  */

/* start projects section  */
.projects{
    padding-block: 50px;
    background-color: #f7f4f4;
    position: relative;
    z-index: 1;
}

.projects .project{
    padding: 20px;
    border: 1px solid #9c9db0;
    transition: transform 4s ease-in-out;

}
.projects .project .project-img {
    height: fit-content; 
    overflow: hidden;

}

.projects .project .project-img img {
    display: block;
    transition: transform 4s ease-in-out;
    height: 200px;
    aspect-ratio: 3/2;
    object-fit: contain;

}

.projects .project:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    background-color: white;
}
.swiper-button-next,
.swiper-button-prev {

    color: var(--primary-color) !important; /* White arrow color */

}

.swiper-slide {
    text-align: center;
    border-radius: 12px;
    padding: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 450px;
    
}

.swiper-slide img {
    display: block;
    width: 100%;
    object-fit: cover; 
    transition: all .3s ease;
    height: 450px;
}

.workSwipper .swiper-slide .box img {
    width: 100%;
    object-fit: cover; 
    border-radius: 12px;
}


/* start contact section  */

.contact-section {
    background: #fff;
    display: flex;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    padding-block: 45px;
}
.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.contact-image {
    width: 80%;
    margin: auto;
    border-radius: 12px;
    overflow: auto;
}
.contact-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-form h4 {
    margin: 0;
    color: #555;
    font-size: 14px;
}
.contact-form h2 {
    margin: 10px 0;
    font-size: 24px;
    color: #222;
}
.contact-form form {
    display: flex;
    flex-direction: column;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
[dir="rtl"] .contact-form input,
.contact-form textarea,
.contact-form::placeholder{
    text-align: right;
}
.name-fields {
    display: flex;
    gap: 10px;
}
.name-fields input {
    width: 50%;
}
.contact-form button {
    margin-top: 10px;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: all .3s ease;
}
.contact-form button:hover {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);

}
/* Styles for the popup */
.popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
    z-index: 9999; /* Make sure it appears above other content */
    align-items: center;
    justify-content: center;
  }
  
  /* Popup content */
  .popup-content {
    background-color: #0a0e1a;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%; /* Adjust the width as needed */
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  
  .popup-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
  }
  
  .popup-content p {
    font-size: 18px;
    color: white;
  }
  /* OK button */
.ok-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
  }
  
  .ok-btn:hover,
  .ok-btn:focus {
    background-color: white;
    color: var(--primary-color);
  }



/* start footer  */
.footer-area {
    background-color: var(--primary-color);
    color: white;
    padding-top: 70px;
    padding-bottom: 30px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    position: relative;
    z-index: 1;
}
.footer-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    z-index: -1;
}
.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-widget h4 {
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-widget p {
    font-size: 18px;
    line-height: 1.8;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: white; 
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: white;
}

.contact-info li i {
    font-size: 20px;
    margin-right: 10px;
    color: white; 
}

.contact-info a {
    color: white; 
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: white; 
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icons a i{
    font-size: 25px;
    color: white;
    transition: color 0.3s ease;
}

.social-icons a i:hover {
    color: white; 
}

.footer-bottom {
    margin-top: 10px;
    font-size: 14px;
    color: white;
    border-top: 1px solid #333;
    padding-top: 15px;
    text-align: center;
}




@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes animate-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(119 ,140,204,.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(119 ,140,204,0);
    }
    100% {
        box-shadow: 0 0 0 40px rgba(119 ,140,204,0);
    }
}




