@media (max-width: 1300px) {}

@media (max-width: 1120px) {}

/* ========================= home */
@media (max-width: 768px) {

  /* logo */
  .navbar-brand img {
    margin-left: -18px;
    width: 40px;
  }

  /* nav */
  /* .header_section ul {
    justify-items: start !important;
    display: block;
  }

  .header_section .navbar-nav {
    text-align: start !important;
  } */

  .header_section ul .nav-item {
    background-color: var(--blue);
    width: 130px;
    margin-bottom: 2px;
    text-align: end !important;
  }

  .header_section ul .nav-item-contact {
    margin-bottom: 30px !important;
  }


  .hero_area {
    /* min-height: auto; */
    height: 110vh !important;
  }

  .hero_area .hero_bg_box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    overflow: hidden;
    z-index: -1;
  }

  .hero_area .hero_bg_box .bg_img_box {
    min-width: 100%;
    min-height: 100%;
    height: 120vh !important;

  }

  .hero_area .hero_bg_box video {
    min-width: 100%;
    min-height: 110%;
  }




  /* slider */
  .slider_section {
    padding: 45px 0 75px 0;
  }

  .custom_nav-container .navbar-nav {
    padding-top: 15px;
    align-items: center;
  }


  .custom_nav-container .navbar-nav .nav-item .nav-link {
    padding: 5px 25px;
    margin: 5px 0;
  }


  .slider_section .row {
    margin-top: 10px;
  }

  .slider_section .detail-box h1 {
    margin-bottom: 50px;
  }

  /* modal button */
  .slider_section .modal-content {
    margin-top: 150px;
  }

  /* alert */
  .img-box {
    overflow: hidden;
  }

  #alertWrapper {
    overflow: hidden;
    transition: height 0.45s ease;
  }

  .carousel-indicators {
    transition: transform 0.45s ease;
  }



}










/* ========================= about */
/* ========================= about */
@media (max-width: 768px) {
  .about_section .img-box {
    margin-bottom: 45px;
  }

  .abt-list-ctn {
    text-align: left !important;
    margin-top: 15px;
  }

  .about_section .img-box img {
    max-width: 100%;
    margin-top: 30px;
  }

  .about_section .vision-ctn2 {
    display: none !important;
  }

  .about_section .vision-ctn1 {
    display: block !important;
  }

  .complementary-card-img {
    width: 100%;
    height: auto;
  }
}




/* ================= services */
/* ================= services */
@media (max-width: 576px) {
  #services .service-title2 {
    margin-top: 100px !important;
    text-align: center;
  }

  #services .service-ctn {
    align-items: center !important;

    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  #services .modal-content {
    margin-top: 80px !important;
  }
}

/* Desktop >= 768px only */
@media (min-width: 768px) {
  #services .modal {
    /* background-color: blue !important; */
    /* align-items: center;
    display: inline;
    justify-content: center;
    justify-items: center;
    width: 100%; */
  }

  #services .service-image-ctn {
    /* display: flex; */
  }

  #services .modal-dialog {
    /* background-color: yellow !important; */
    /* width: 1000% !important; */
    /* padding: 40px; */
  }

  #services .modal-header {
    /* width: 60vw; */
    /* background-color: green !important; */
  }

  #services .modal-footer {
    /* background-color: green !important; */
    /* width: 60vw; */
  }

  #services .modal-body {
    /* background-color: red !important; */
    /* width: 100%; */
    /* width: 60vw; */
  }
}

@media (min-width: 768px) {

  /* This targets the container that controls the modal width */
  #imageModal .modal-dialog,
  #imageModal2 .modal-dialog,
  #imageModal3 .modal-dialog {
    max-width: 850px;
    width: 90%;
    margin: 30px auto;
  }

  /* Ensures the image stretches to fill the new wide space if needed */
  #imageModal .img-fluid,
  #imageModal2 .img-fluid,
  #imageModal3 .img-fluid {
    width: 100% !important;
    height: 60vh !important;
    max-height: 500px;
    object-fit: cover;
  }
}






/* ================ project  */
/* ================ project */
/* Center project images on mobile */
@media (max-width: 576px) {
  #previewDesc {
    font-size: 14px;
  }

  .portfolio-item .hover-bg {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .portfolio-item img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  /* Ensure hover overlay stays aligned */
  .portfolio-item .hover-text {
    left: 0;
    right: 0;
  }
}

/* ===== Desktop >= 768px only */
@media (min-width: 768px) {

  /* text description */
  #projectPreviewModal #previewDesc {
    text-align: left !important;
    font-size: 15px !important;
    font-weight: 100;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  }

  /* prev and next */
  #projectPreviewModal #previewDesc,
  #projectPreviewModal .modal-body>.d-flex {
    grid-column: 2;
  }

  #projectPreviewModal .modal-body>.d-flex {
    margin-top: -100px !important;
  }

}



/* Desktop >= 768px only */
@media (min-width: 768px) {
  #projectPreviewModal .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* image | content */
    gap: 30px;
    align-items: start;
    text-align: left;

  }

  #projectPreviewModal .modal-body {
    background-color: var(--lightblack) !important;
  }

  /* Image on the left: fill container */
  #projectPreviewModal #previewImage {
    grid-column: 1;
    width: 100%;
    height: 100%;
    max-height: 60vh;
    /* control max height */
    object-fit: cover;
    /* 🔑 cover ensures no red background */
    border-radius: 10px !important;
    margin: 0;
    display: block;
  }

  /* Description + buttons on the right */
  #projectPreviewModal #previewDesc {
    grid-column: 2;
    margin-top: 0;
    line-height: 1.6;
  }

  /* Place prev/next below description */
  #projectPreviewModal .modal-body .d-flex {
    grid-column: 2;
    margin-top: 15px;
    justify-content: flex-start;
    gap: 10px;
    /* spacing between buttons */
  }
}


/* ====== Mobile (<768px) — stacked as before */
@media (max-width: 767px) {
  #projectPreviewModal .modal-body {
    background-color: var(--lightblack) !important;
  }

  #portfolio .section-title h4 {
    color: var(--black);
    font-size: 13px !important;
  }

  #projectPreviewModal .modal-body {
    display: block;
    text-align: center;
  }

  #projectPreviewModal #previewImage {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
  }

  #projectPreviewModal .modal-body .d-flex {
    justify-content: center;

  }

  /* text description */
  #projectPreviewModal #previewDesc {
    text-align: left !important;
    font-size: 16px !important;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;

  }

  /* Keep buttons steady at the bottom */
  #projectPreviewModal .modal-body .d-flex {
    /* position: absolute; */
    /* bottom: 15px; */
    /* distance from bottom of modal */
    /* left: 50%; */
    /* transform: translateX(-50%); */
    /* justify-content: center; */
    /* gap: 10px; */
  }



  /* modal spinner */
  #imageSpinner {
    z-index: 10;
    width: 3rem;
    height: 3rem;
    margin-left: 0;
  }

}




/* ================ testimonial section */
/* ================ testimonial section */
@media (max-width: 768px) {

  .testimonials {
    padding-top: 100px !important;
    /* background-color: red; */
    min-height: 90vh;
  }

  .testimonials .container h2 .title {
    font-size: 25px !important;
  }

  .testimonials button .fa {
    padding-left: 20px;
    color: transparent;
    font-size: 12px;
    position: absolute;
    top: 60px;

  }
}




/* ================ faqs section */
/* ================ faqs section */
@media (max-width: 768px) {

  .faqs {
    /* background-color: red; */
    padding-top: 0px !important;
  }

  /* according buttun */
  .faqs .accordion-button {
    border-left: 1px solid var(--blue);
    padding-left: 10px;
  }

  .faqs .accordion-body {
    font-size: 10px;
  }
}





/* ================ team section */
/* ================ team section */
@media (max-width: 768px) {
  #team .container .section-title p {
    margin-bottom: 11px !important;
  }

  /* image */
  #team .team-img {
    width: 180px !important;
    height: 180px !important;
  }

  /* link */
  #team .social-links {
    display: inline;
  }

  #team .social-links .intouch5 {
    display: inline;
  }

  #team .social-links i {
    margin: 14px;
  }
}




/* ================ contact section */
/* ================ contact section */
@media (max-width: 768px) {
  #contact #collapseContact2 .list-unstyled {
    font-size: 13px;
  }
}





/* ================ footer section */
/* ================ footer section */
@media (max-width: 768px) {

  /* icons */
  #footer .list-unstyled i {
    margin: 4px;
  }

}



html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Also target the main wrapper if you have one */
main,
.container-fluid {
  overflow: hidden;
}










@media (max-width: 576px) {
  .header_section .header_top .contact_nav a span {
    display: none;
  }


  .client_section .client_container {
    width: 100%;
  }

  .client_section .box {
    margin: 0;
  }

  .owl-nav {
    display: flex;
    justify-content: center;
    margin-top: 45px;
  }

  .client_section .owl-carousel .owl-nav .owl-prev,
  .client_section .owl-carousel .owl-nav .owl-next {
    position: unset;
    margin: 0 2.5px;
  }
}

@media (max-width: 480px) {
  .slider_section .detail-box h1 {
    font-size: 2rem;
  }

  .track_section form {
    flex-direction: column;
    align-items: flex-start;
  }

  .track_section form input {
    width: 100%;
  }

  .track_section form button {
    padding: 10px 60px;
    margin-top: 10px;
  }
}

@media (max-width: 420px) {
  .service_section .box {
    flex-direction: column;
  }

  .service_section .box .img-box {
    justify-content: flex-start;
    margin-bottom: 15px;
  }
}

@media (max-width: 376px) {}

@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}



/* ============ item can't be dragged, or highlighted */
/* ============ item can't be dragged, or highlighted */
.non-interactive-image {
  /* 1. Prevents the image from being selected/highlighted like text */
  -webkit-user-select: none;
  /* Safari, Chrome, Edge */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Standard syntax */

  /* 2. Prevents the image from being dragged (the key fix for desktop) */
  -webkit-user-drag: none;
  /* Safari, Chrome, Edge */
  user-drag: none;
  /* Standard syntax */

  /* 3. Removes the blue/colored outline that appears when the image is focused (if it was a link) */
  outline: none;

  /* 4. Changes the cursor from the pointer/grab icon back to the default arrow */
  cursor: default;
}


/* ============ logo can't be dragged, or highlighted */
/* ============ logo can't be dragged, or highlighted */
.non-interactive-image2 {
  /* 1. Prevents the image from being selected/highlighted like text */
  -webkit-user-select: none;
  /* Safari, Chrome, Edge */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Standard syntax */

  /* 2. Prevents the image from being dragged (the key fix for desktop) */
  -webkit-user-drag: none;
  /* Safari, Chrome, Edge */
  user-drag: none;
  /* Standard syntax */

  /* 3. Removes the blue/colored outline that appears when the image is focused (if it was a link) */
  outline: none;

  /* 4. Changes the cursor from the pointer/grab icon back to the default arrow */
  cursor: pointer;
}