html, body{
    overflow-x: hidden;
    scroll-behavior: smooth;
}
body{
    font-family: "Tajawal", sans-serif;
    direction: rtl;
}
:root{
    --primary-color:#d0d93c;
    --secondary-color: #14263e;
}
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 12px;
}
.btn{
    background-color: var(--primary-color);
    padding: 10px 20px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    transition: .3s;
    animation: 1.5s ease-out infinite bouncing2;
}
.btn:hover{
    background-color: white;
    color: var(--primary-color);
}

.back-to-top {
    position: fixed;
    bottom: 120px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 18px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    /* Hide the button initially */
    transform: translateY(100px);
    z-index: 11;
}
.back-to-top:hover {
    color: white;
}
.back-to-top.show {
    /* Use keyframe animation when the button is shown */
    animation: slideUp 0.3s ease forwards;
}
.whatsapp{
    position: fixed;
    right: 20px;
    bottom: 25px;
    border-radius: 50%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    z-index: 11;
    animation: 1.5s ease-out infinite animate-pulse;
}
.whatsapp::before{
    position: absolute;
    content: "1";
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #E82C0C;
    display: flex;
    justify-content: center;
    align-items: center;
    top: -7px;
    right: -2px;
    color: white;

}
.title{
    position: relative;
    text-align: center;
    width: fit-content;
    margin: auto;
}
.title::after{
    position: absolute;
    content: "";
    background-image: url(../imgs/icon.png);
    width: 30px;
    height: 30px;
    background-size: cover;
    left: -40px;
}
header{
    position: absolute;
    width: 100%;
    z-index: 11;
}

/* start header section  */
.header-section {
    color: white;
    padding: 80px 0;
    min-height: 100vh;
    background-image: url('../imgs/hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-section::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .5);
    z-index: -1;
}
.header-section::after{
    content: "";
    background-image: url(../imgs/overlay-bottom.png);
    position: absolute;
    width: 100%;
    height: 15px;
    left: 0;
    bottom: -1px;
    z-index: 1;
}
.header-section h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    padding-top: 30px;
}

.header-section p {
    font-size: 22px;
    margin-bottom: 40px;
    text-align: center;
}
@media(max-width:767px){
    .header-section h1 {
        font-size: 26px;
    }
    .header-section p{
        font-size: 18px;
    }
}
.form-section {
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(3px);
}
::placeholder{
    text-align: right;
}
.form-control {
    border-radius: 25px;
}
.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border-radius: 25px;
}


/* start about us  */

.about-us {
    padding-block: 30px;
}
.about-image {

    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.about-content h2, .sarai h2, .taj h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}
.about-content p {
    font-size: 18px;
    color: #6c757d;
    line-height: 1.7;
    position: relative;
    z-index: 111;
}
.about-us .img-box {
    position: relative;
  }
.about-us .img-box .stripe_design {
    position: absolute;
    width: 25px;
    height: 90%;
    background-color: var(--primary-color);
    -webkit-transform: skewX(-25deg);
            transform: skewX(-25deg);
  }
  
  .about-us .img-box .stripe_design.sd1 {
    right: 18%;
    top: 30%;
    z-index: 2;
  }
  
  .about-us .img-box .stripe_design.sd2 {
    right: 16%;
    top: 0;
    z-index: 2;
  }
  
  .about-us .img-box .stripe_design.sd3 {
    right: 33%;
    bottom: -25%;
  }
  
  .about-us .img-box .stripe_design.sd4 {
    right: 23%;
    top: -25%;
  }
  
  .about-us .img-box .stripe_design.sd5 {
    right: 35%;
    top: -12%;
  }
  
  .about-us .img-box .stripe_design.sd6 {
    right: 52%;
    bottom: -12%;
  }
  
  .about-us .img-box img {
    width: 100%;
    position: relative;
    z-index: 1;
    -webkit-box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.25);
            box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.25);
  }

/* end about us  */

/* start banners  */

.services-section {
    padding: 50px 20px;
}
.service-item {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}
.service-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-left: 10px;
}
.service-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
}
.service-description {
    font-size: 16px;
    color: #555;
}
.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--primary-color);
}
.services {
    padding-block: 35px;
}
.services img{
    border-radius: 12px;
    transition: .3s;
    margin-bottom: 25px;
}
.services img:hover{
    scale: 1.1;
}
/* end banners  */


#stats-section {
    background-color: #f8f9fa;
}

.icon-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.icon-box:hover {
    transform: translateY(-10px);
}

.icon-box i {
    color: var(--primary-color);
}

.icon-box h2 {
    font-size: 2.5rem;
    color: #343a40;
}

.icon-box p {
    font-size: 1.2rem;
    color: #6c757d;
}

.contact {
    background-color: #f3f3f3;
    padding-top: 40px;
}
.contact i{
    color: var(--primary-color);
    height: 55px;
    min-width: 55px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 50%;
}
.contact a{
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 20px;
}
footer{
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
}
footer h6{
    background-color: var(--primary-color);
}
 /* loader  */
 #loading-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    justify-content: center;
    align-items: center;
    z-index: 100000;
  }
 /* loader  */
 #loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
  }
/* animations  */
@keyframes bouncing2 {
    50%,from,to {
        transform: translateY(-5px) scale(1,1)
    }

    25% {
        transform: translateY(5px) scale(.9,1.01)
    }

    75% {
        transform: translateY(0) scale(.95,1.01)
    }
}
@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)
    }

    5% {
        transform: scale(1.01)
    }

    15% {
        transform: scale(1)
    }

    70% {
        box-shadow: 0 0 0 20px rgba(119 ,140,204,0)
    }

    100% {
        box-shadow: 0 0 0 40px rgba(119 ,140,204,0)
    }
}
