/********** Template CSS **********/
:root {
    --primary: #FD5D14;
    --secondary: #FDBE33;
    --light: #F4F6F8;
    --dark: #040F28;
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top:36px;
    padding-bottom: 90px;
}

.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    transition: .5s;
}

.btn::after {
    position: absolute;
    content: "";
    width: 0;
    height: 5px;
    bottom: -1px;
    left: 50%;
    background: var(--primary);
    transition: .5s;
}

.btn.btn-primary::after {
    background: var(--dark);
}

.btn:hover::after,
.btn.active::after {
    width: 50%;
    left: 25%;
}

.btn-primary {
    color: #FFFFFF;
}

.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;
    left: 50%;
    bottom: 0;
    margin-left: -22px;
    border-radius: 0;
    z-index: 99;
}

.bg-dark-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}



.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 18px;
    /*text-transform: uppercase;*/
    color: #08355f;
    outline: none;
    transition: .5s;
	font-weight:bold;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 15, 40, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h4 {
        font-size: 18px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
    .bg-img {
    /*background-image: url(../img/abtb.jpeg);*/
    /*min-height: 324px;*/
    /* height: 100%; */
    background-position: bottom;
    background-size: contain;
    background-repeat: no-repeat;
}
}
.page-header {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(4, 15, 40, .7), rgba(4, 15, 40, .7)), url(../img/carousel-1.webp) center center no-repeat;
    background-size: cover;
}

.page-headerService {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    background-size: cover;
}
.service-item .service-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
}

.service-item .service-icon i {
    transition: .2s;
}

.service-item:hover .service-icon i {
    font-size: 60px;
}

.portfolio-item {
    margin-bottom: 60px;
}

.portfolio-title {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 120px;
    padding: 0 30px;
    right: 30px;
    left: 30px;
    bottom: -60px;
    background: #FFFFFF;
    z-index: 3;
}

.portfolio-btn {
    position: absolute;
    display: inline-block;
    top: 50%;
    left: 50%;
    margin-top: -60px;
    margin-left: -60px;
    font-size: 120px;
    line-height: 0;
    transition: .1s;
    transition-delay: .3s;
    z-index: 2;
    opacity: 0;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
}

.portfolio-box::before,
.portfolio-box::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    transition: .5s;
    z-index: 1;
    /* background: rgba(4, 15, 40, .7); */
}

.portfolio-box::before {
    left: 0;
}

.portfolio-box::after {
    right: 0;
}

.portfolio-item:hover .portfolio-box::before {
    left: 0;
    width: 50%;
}

.portfolio-item:hover .portfolio-box::after {
    right: 0;
    width: 50%;
}

@media (min-width: 992px) {
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        /*background: var(--primary)*/
    }
}

.footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--primary);
    transform: skew(40deg);
}

.mep-img{
  /* The image used */
  background-image: url("../img/bnn.jpg");

  min-height: 580px;
  /*height: 100%;*/

  /* Center and scale the image nicely */
  background-size: cover;
}

.bg-img{
  /* The image used */
  background-image: url("../img/abtb.jpeg");

  min-height: 580px;
  /*height: 100%;*/

  /* Center and scale the image nicely */
  background-size: cover;
}

.bg-img .text-overlay {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Optional styles */
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 20px; /* Padding around the text */
    border-radius: 5px; /* Rounded corners */
}

.bg-imgservice{
  /* The image used */
  background-image: url("../img/Architure.webp");

  min-height: 180px;
  height: 100%;

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  
  /* Needed to position the navbar */
  position: relative;
}

.img-service {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.img-project {
    height: 300px;
    max-width: 100%;
}

.img-logo {
    /*height: 100px !important;*/
}

@media (max-width: 768px) {
    .img-logo {
        height: 66px !important;
    }
}

.owl-text-overlay {
    position: absolute;
    text-align: center;
    width: 60%;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    border-radius: 5px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
}

h2.owl-title {
    margin: 20px;
    color: whitesmoke;
    font-weight: bold;
}

.owl-img{
    height: 697px;
    margin-top:111px;
}

@media (max-width: 768px) {
    .owl-img {
        height: 450px;
        margin-top:92px;
    }
}
.custom-toggler {
    border: none;
    background: transparent;
    padding: 0.25rem 0.5rem;
}

.toggler-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #08355f;
    margin: 4px 0;
    transition: all 0.3s ease-in-out;
}
.custom-hover-img {
    transition: transform 0.6s ease, filter 0.6s ease;
    transform-origin: center center;
  }
  
  .custom-hover-img:hover {
    transform: rotate(-2deg) scale(1.03) translate(-5px, -5px);
    filter: brightness(1.05);
  }
  
  .img-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
  }
  
  .img-service {
    transition: transform 0.4s ease;
    display: block;
    width: 100%;
  }
  
  .img-service:hover {
    transform: scale(1.05);
  }
  
  /* Optional: Keep icon visually above or below */
  .service-icon {
    margin-top: -30px; /* Adjust as needed to overlap slightly */
    z-index: 1;
    position: relative;
  }
  
  
  /*.video-container1 {*/
  /*  position: relative;*/
  /*  width: 100%;*/
    /*height: 60vh; */
    /*margin-top: 7rem; */
  /*  overflow: hidden;*/
  /*}*/
  
  /*.video-container1 video {*/
  /*  position: absolute;*/
  /*  top: 0;*/
  /*  left: 0;*/
  /*  width: 100%;*/
  /*  height: auto;*/
  /*  object-fit: cover;*/
  /*}*/
  /*@media (max-width: 768px) {*/
  /*  .video-container1 {*/
  /*    height: 60vh;*/
      /*margin-top: 5rem;*/
  /*  }*/
  /*}*/
  
  /*@media (max-width: 480px) {*/
  /*  .video-container1 {*/
  /*    height: 50vh;*/
      /*margin-top: 93px;*/
  /*  }*/
  /*}*/
  
  
  .p{
  max-width: 60ch;                 /* comfortable line length ( 45–75 chars) */
  line-height: 1.6;                /* tighter but readable */
  text-align: justify;             /* both edges aligned */
  text-align-last: left;           /* don't stretch the last line */
  -webkit-hyphens: auto;           /* allow hyphenation to reduce big gaps */
  -ms-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;       /* safe breaks instead of giant spaces */
  word-break: normal;
  letter-spacing: normal;
  word-spacing: normal;
}

/* On small screens, avoid justification (it creates rivers in narrow columns) */
@media (max-width: 640px){
  .copy{ text-align: left; }
}

  
  
  
  
  .video-container1 {
  position: relative;
  width: 100%;

  /* Modern browsers: maintain 16:9 ratio */
  aspect-ratio: 16 / 9;

  /* Fallback for older browsers: use padding-top hack */
  padding-top: 56.25%; /* 9/16 = 0.5625 = 56.25% */
  height: 0; /* required for padding-based aspect ratio fallback */
  margin-top:6rem;
  overflow: hidden;
  background: #000; /* optional: black background before video loads */
}

/* Responsive video inside container */
.video-container1 video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

  .img-project {
    transition: transform 0.5s ease;
  }
  
  .portfolio-box:hover .img-project {
    transform: scale(1.1); 
  }