/********** Template CSS **********/
:root {
    --primary: #2878EB;
    --secondary: #F14D5D;
    --light: #ECF4FF;
    --dark: #120F2D;
}

[class^=flaticon-]:before,
[class*=" flaticon-"]:before,
[class^=flaticon-]:after,
[class*=" flaticon-"]:after {
    font-size: inherit;
    margin-left: 0;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary,
.btn-primary:hover,
.btn-secondary:hover {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    outline: none;
    transition: .5s;
}
.navbar-nav{
    margin-right: 100px;
}
.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}
.logo img{
    height: 50px;
    width: 150px;
    margin-left: 50px;
}
@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        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;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 15, 45, .5);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.carousel-indicators {
    align-items: flex-end;
}

.carousel-indicators [data-bs-target] {
    width: 5px;
    height: 25px;
}

.carousel-indicators .active {
    height: 45px;
}
/* --------------------------------------About Us--------------------------------- */
.section-header {
    text-align: center;
}
.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    position: relative;
    color: #2e3135;
}
.section-header h2:before {
    margin: 0 15px 10px 0;
}
.section-header h2:before, .section-header h2:after {
    content: "";
    width: 50px;
    height: 2px;
    background: var(--color-primary);
    display: inline-block;
}

*, ::after, ::before {
    box-sizing: border-box;
}
.section-header h2:after {
    margin: 0 0 10px 15px;
}
.position-relative img{
    height: 100%;
} 
/* 
div {
    display: block;
    unicode-bidi: isolate;
}
 */
 .hero-header {
    position: relative; /* Make sure the container is relative for positioning the overlay */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height:20%;
}

.hero-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 1; /* Make sure the overlay sits below the content */
}

.hero-header .row {
    position: relative;
    z-index: 2; /* Ensure the content sits above the overlay */
}


/* .service-item div {
    z-index: 1;
}

.service-item div::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 2px 2px 0 0;
    transition: .5s;
    z-index: -1;
}

.service-item div:hover::after {
    width: 100%;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
} */

/*--------------------------------- services------------------------------------- */
.services-content {
    background-color: #bcbcbc;
    margin-top: 30px;
}

.services-content .section-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns in desktop */
    gap: 20px;
    justify-content: center;
}

.services-grid .image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.services-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.services-grid .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    height: auto;
    background: rgba(26,26,26,0.53); /* Semi-transparent overlay */
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    opacity: 1; /* Overlay always visible */
    transition: opacity 0.3s ease-in-out;
    padding: 5px;
}

.services-grid .overlay h4,
.services-grid .overlay p {
    margin: 5px 0;
    color: white;
    text-align: left;
   
}

.services-grid .overlay p {
    font-size: 14px;

}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-header {
        position: relative; /* Make sure the container is relative for positioning the overlay */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height:10%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        column-gap: 5px;
    }
    .services-grid img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    .services-grid .overlay h4,  .services-grid .overlay p {
        margin: 0 5px;
        color: #fff;
        text-align: left;
     }
    .services-grid .overlay p {
       font-size: 12px;
       font-weight: bold;
    }

    
.services-grid .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    height: auto;
    background: rgba(26,26,26,0.53); 
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    opacity: 1; /* Overlay always visible */
    transition: opacity 0.3s ease-in-out;
    padding:2px;
}
.position-relative img{
    height:250px;
} 
}
/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .services-content .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
        gap: 0; /* Space between cards */
    }
    
    .services-content .card {
        margin-bottom: 20px;
        padding: 0; /* Ensure no extra padding in cards */
    }

    /* Adjustments for mobile */
    .service-page-img {
        flex-direction: column; /* Stack image and text vertically */
        align-items: flex-start; /* Align items to start */
    }

    .service-page-img img {
        width: 100%; /* Full width on mobile */
        height: auto; /* Maintain aspect ratio */
        margin-bottom: 10px; /* Space between image and text */
    }
    
    .service-page-img p {
        font-size: 14px;
        margin-left: 0; 
        padding-right: 3px;/* Remove left margin on mobile */
    }
}
/*------------------------- Projects------------------------- */
/* CSS */
/* General Styles */

.project-content {
    margin-top: 30px;
}

.project-content .section-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 20px;
    justify-content: center;
}

/* Image Container */
.project-grid .image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Overlay */
.project-grid .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease; /* Smooth transition */
}

/* Show overlay on hover */
.project-grid .image-container:hover .overlay {
    opacity: 1; /* Show the overlay */
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.our-projects-section {
    background-color: #e1e1e1;
    padding-bottom: 30px;
    min-height: 450px;
}
/* Responsive Design */
/* Responsive Design for Mobile */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }

    .project-grid img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }
    
    /* Adjust the image height */
    .position-relative img {
        height: 200px; /* Decreased the height to reduce empty space */
    }

    /* Adjust margins and padding */
    .our-projects-section {
        padding-bottom: 15px; 
        /* Reduce padding to eliminate extra space */
        min-height: 700px;
    }

    .col-lg-6 {
        margin-bottom: 15px; /* Reduce the margin below the image */
    }

    .row.gx-5 {
        margin-bottom: 0; /* Ensure no extra margin below the row */
    }
}


/* Background Color for the Section */

.projects .portfolio-flters {
    padding: 0;
    margin: 0 auto 20px auto;
    list-style: none;
    text-align: center;
  }
  
  .projects .portfolio-flters li {
    cursor: pointer;
    display: inline-block;
    padding: 0;
    font-size: 18px;
    font-weight: 500;
    margin: 0 10px;
    line-height: 1;
    margin-bottom: 5px;
    transition: all 0.3s ease-in-out;
  }
  
  .projects .portfolio-flters li:hover,
  .projects .portfolio-flters li.filter-active {
    color: #feb900;
  }
  
  .projects .portfolio-flters li:first-child {
    margin-left: 0;
  }
  
  .projects .portfolio-flters li:last-child {
    margin-right: 0;
  }
  
  @media (max-width: 575px) {
    .projects .portfolio-flters li {
      font-size: 14px;
      margin: 0 5px;
    }
  }
  
  .projects .portfolio-content {
    position: relative;
    overflow: hidden;
  }
  
  .projects .portfolio-content img {
    transition: 0.3s;
  }
  
  .projects .portfolio-content .portfolio-info {
    opacity: 0;
    position: absolute;
    inset: 0;
    z-index: 3;
    transition: all ease-in-out 0.3s;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
  }
  
  .projects .portfolio-content .portfolio-info h4 {
    font-size: 14px;
    padding: 5px 10px;
    font-weight: 400;
    color: #fff;
    display: inline-block;
    background-color: #feb900;
  }
  
  .projects .portfolio-content .portfolio-info p {
    position: absolute;
    bottom: 10px;
    text-align: center;
    display: inline-block;
    left: 0;
    right: 0;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
  }
  
  .projects .portfolio-content .portfolio-info .preview-link,
  .projects .portfolio-content .portfolio-info .details-link {
    position: absolute;
    left: calc(50% - 40px);
    font-size: 26px;
    top: calc(50% - 14px);
    color: #fff;
    transition: 0.3s;
    line-height: 1.2;
  }
  
  .projects .portfolio-content .portfolio-info .preview-link:hover,
  .projects .portfolio-content .portfolio-info .details-link:hover {
    color: #feb900;
  }
  
  .projects .portfolio-content .portfolio-info .details-link {
    left: 50%;
    font-size: 34px;
    line-height: 0;
  }
  
  .projects .portfolio-content:hover .portfolio-info {
    opacity: 1;
  }
  
  .projects .portfolio-content:hover img {
    transform: scale(1.1);
  }
  

.bg-offer {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-2.jpg) top right no-repeat;
    background-size: cover;
}

.testimonial-carousel .owl-dots {
    height: 45px;
    margin-top: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 5px;
    height: 25px;
    background: #DDDDDD;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    height: 45px;
    background: var(--primary);
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}
.owl-carousel .item {
    padding: 15px;
}

.owl-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.owl-nav button {
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.owl-nav button.owl-prev {
    margin-left: -30px;
}

.owl-nav button.owl-next {
    margin-right: -30px;
}

#project-img{
    height: 400px;
    width: 400px;
    margin: 10px auto;
  
  }
  #project-img img{
    height: 100%;
    width: 100%;
    padding: 0px 10px;
    object-fit: cover;
  }
  .swiper-container {
    width: 100%;
    height: 100vh;
  }
  .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
  }
  .slide-text {
    display: flex;
    flex-direction: column;
  align-items: center;
    justify-content: center;
   text-align: center;
   width: 100%;
   height: 100%;
    
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
  }
  .slide-text .carousel-content{
   width: 50%;
  
  }
  .slide-text .carousel-content h2{
    font-size: 4rem;
    font-weight: 600;
  }
  .btn-view{
    padding: 10px;
      background-color: #feb900;
      border: none;
      border-radius: 5px;
  }
  .swiper-button-next,.swiper-button-prev{
    color: #feb900;
  }
  .swiper-pagination-bullet,.swiper-pagination-bullet-active{
    background-color: #feb900;
  }
  
.project-details .portfolio-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
  }
  
  .project-details .portfolio-info h3:after {
    content: "";
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-primary);
    left: 0;
    bottom: 0;
  }
  
  .project-details .portfolio-info ul {
    list-style: none;
    padding: 0;
    font-size: 15px;
  }
  
  .project-details .portfolio-info ul li {
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
  }
  
  .project-details .portfolio-info ul strong {
    text-transform: uppercase;
    font-weight: 400;
    color: #838893;
    font-size: 14px;
  }
  
  .project-details .portfolio-info .btn-visit {
    padding: 8px 40px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50px;
    transition: 0.3s;
  }
  
  .project-details .portfolio-info .btn-visit:hover {
    background: #ffc019;
  }
  
  .project-details .portfolio-description h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-secondary);
  }
  
  .project-details .portfolio-description p {
    padding: 0;
  }
