/********** Template CSS **********/
:root {
    --primary: #F4780A;
    --secondary: #091E3E;
    --light: #EEF9FF;
    --dark: #F4780A;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#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;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}
.bg-primary {
    background-color:#F4780A !important;
}
.btn-primary {
    color: #FFFFFF !important;
    background-color: #F4780A !important;
    border-color: #FFFFFF !important;
    box-shadow: inset 0 0 0 50px transparent !important;
}
.btn-secondary {
    color: #FFFFFF !important;
    background-color: #091E3E !important;
    border-color: #FFFFFF !important;
    box-shadow: inset 0 0 0 50px transparent !important;
}
.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary) !important;
    background-color: var(--secondary) !important;
    color: var(--light) !important;
    border-color: var(--light) !important;
}
.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
    background-color: var(--light) !important;
    color: var(--secondary) !important;
    border-color: var(--light) !important;
}
a:hover {
    color: var(--light);
}
.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}




/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    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;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
/*** Service Section Styles ***/
.service-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    background: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: var(--secondary);
    transform: scale(1.1);
}

.service-hover {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.service-item:hover .service-hover {
    opacity: 1;
    transform: translateY(0);
}

.service-cta {
    background: var(--primary);
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.service-cta:hover {
    background: var(--dark);
    transform: translateY(-10px);
}

.cta-contact a {
    transition: color 0.3s ease;
}

.cta-contact a:hover {
    color: var(--secondary) !important;
}

@media (max-width: 768px) {
    .service-item {
        margin-bottom: 30px;
    }
}

/*** Testimonial ***/
/* Testimonial */
/*** Testimonial Section ***/
.testimonial-section {
    position: relative;
}

.testimonial-item {
    /* background: #fff; */
    border-radius: 15px;
    padding: 40px;
    margin: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.testimonial-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin-bottom: 25px;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    position: relative;
    padding: 0 30px;
}

.testimonial-content p::before,
.testimonial-content p::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    color: var(--primary);
    opacity: 0.3;
    font-size: 1.5rem;
}

/* .testimonial-content p::before {
    content: '\f10d';
    left: -15px;
    top: -10px;
}

.testimonial-content p::after {
    content: '\f10e';
    right: -15px;
    bottom: -10px;
} */

.carousel-control-prev,
.carousel-control-next {
    width: auto;
    opacity: 1 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 1.5rem;
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    .testimonial-item {
        padding: 25px;
        margin: 10px;
    }
    
    .testimonial-content p {
        padding: 0 15px;
        font-size: 1rem;
    }
}

/* Video Header Fix */
#header-carousel video {
    min-height: 300px;
    object-fit: cover;
}

@media (min-width: 768px) {
    #header-carousel video {
        height: 100vh;
    }
}

/* Why Choose Us Section Styles */
.why-choose-section {
    position: relative;
    overflow: hidden;
  }
  
  .stats-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
  }
  
  .stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  }
  
  .stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.2),
      transparent
    );
    transition: 0.5s;
  }
  
  .stats-card:hover::before {
    left: 100%;
  }
  
  .icon-box {
    transition: transform 0.3s ease;
  }
  
  .stats-card:hover .icon-box {
    transform: scale(1.1) rotate(0deg);
  }
  
  .stat-number {
    position: relative;
    transition: 0.3s ease;
  }
  
  .stat-number::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    transition: 0.3s ease;
  }
  
  .stats-card:hover .stat-number::after {
    width: 100px;
    background: var(--secondary);
  }
  
  .hover-border {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    transition: 0.3s ease;
  }
  
  .stats-card:hover .hover-border {
    border-color: var(--dark);
  }
  
  /* Tilt.js fallback */
  @media (max-width: 768px) {
    [data-tilt] {
      transform: none !important;
    }
  }
/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    width: 100%;                /* Make image responsive */
    height: 250px;              /* Fixed height for all blog images */
    object-fit: cover;          /* Ensures image covers the box while keeping aspect ratio */
    transition: .5s;
    border-radius: 5px;

}


.blog-item .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers area without stretching */
    transition: transform 0.5s ease;
    display: block;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);

}

.blog-img .service-hover {
    opacity: 1;
    transform: translateY(20px);
    transition: all 0.3s ease;
}



.blog-item:hover .service-hover {
    opacity: 1;
    transform: translateY(0);
}
/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

.client-section {
    position: relative;
    background: #f8f9fa;
    padding: 60px 0;
  }

  /* Blurry effect on start and end */
  .owl-carousel .owl-stage-outer {
    position: relative;
  }

  .owl-carousel .owl-stage-outer::before,
  .owl-carousel .owl-stage-outer::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  }

  .owl-carousel .owl-stage-outer::before {
    left: 0;
  }

  .owl-carousel .owl-stage-outer::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  }

  .owl-carousel .item {
    text-align: center;
    padding: 10px;
    transition: all 0.5s ease-in-out;
  }

  .owl-carousel .item img {
    width: 160px;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s ease-in-out;
    /* filter: grayscale(100%);
  opacity: 0.6; */
  }

  .owl-carousel .item img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
  }

  // Example: Place this after your HTML and after including jQuery and Owl Carousel JS
  $('.owl-carousel').owlCarousel({
      loop: true,
      margin: 20,
      autoplay: true,
      autoplayTimeout: 4000,      // 4 seconds between slides (increase for slower)
      autoplaySpeed: 1500,        // 1.5 seconds for slide transition (increase for slower effect)
      smartSpeed: 1500,           // Also controls transition speed
      autoplayHoverPause: true,
      responsive: {
          0: { items: 2 },
          600: { items: 3 },
          1000: { items: 5 }
      }
  });






