/* animation */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }

}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
  }

}

.animate-slide-in {
  animation: slideInFromBottom 0.75s ease-out forwards;
  pointer-events: auto;
  opacity: 0;
}

.banner-overlay.animate-slide-in {
  animation: slideInFromRight 0.75s ease-out forwards;
  pointer-events: auto;
  opacity: 0;
}
/* animation */


.banner-container {
  position: relative;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.banner {
  position: absolute;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(50%);
  z-index: 0;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
  box-sizing: border-box;
}

.banner-text {
  color: white;
  font-weight: 500;
  font-size: clamp(24px, 5vw, 60px);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

.banner-button a {
  color: black;
  text-decoration: none;
  background-color: #268fff;
  padding: 10px 20px;
  font-weight: 500;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.banner-button a:hover {
  background-color: #0056b3;
}

.breadcrumb {
  font-size: small;
  flex: 1 1 45%;
  display: flex;
  gap: 0.5rem;
}

.image-flex-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  /* Align images vertically */
  gap: 1rem;
  /* Optional spacing between images */
  margin-top: 1rem;
  flex-wrap: wrap;
}

.image-flex-container .image-flex {
  width: 20%
}

.light-container,
.light-container-not-animated,
.light-container-reversed,
.light-container-breadcrumb {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0;
  gap: 2rem;
  background-color: rgb(245, 245, 245);
  border-style: none;
  border-width: 1px;
  border-color: grey;
  flex-wrap: wrap;
}

.light-container-contact-us {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  margin: 0;
  gap: 2rem;
  background-color: rgb(245, 245, 245);
  border-style: none;
  border-width: 1px;
  border-color: grey;
  flex-wrap: wrap;
}



.light-container-centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  gap: 2rem;
  background-color: rgb(245, 245, 245);
  border-style: none;
  border-width: 1px;
  border-color: grey;
  flex-wrap: wrap;
}



.hidden-before-animate {
  opacity: 0;
  transform: translateX(25px);
  pointer-events: none;
  visibility: hidden;
}

.light-container-centered a,
.light-container a {
  text-align: justify;
  line-height: 1.5;
  font-size: 1rem;
  color: #333;
}

.left-section,
.right-section {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}


.left-section p,
.left-section a,
.left-section li,
.right-section p,
.right-section a,
.right-section li {
  text-align: justify;
  line-height: 1.5;
  font-size: 1rem;
  color: #333;
}

.left-section figure,
.right-section figure {
  display: block;
  margin: 0 auto;
}

.left-section img,
.right-section img {
  width: 100%;
  /* Make image scale to container */
  height: auto;
  /* Prevent inline spacing issues */
  object-fit: cover;
}

.list-with-pictures-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-direction: row;
  justify-content: center;
  box-sizing: border-box;
  max-width: 900px;
}

.vertical-card {
  border: 1px solid rgb(170, 170, 170);
  width: 240px;
  height: 320px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  box-sizing: border-box;
  margin: 1rem;
}

.vertical-card:hover {
  opacity: 90%;
  transform: scale(1.05);
}

.vertical-card img {
  object-fit: cover;
  /* Makes sure the image covers the area without distortion */
  display: block;
  flex: 3;
  height: 240px;
}

.vertical-card div {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 1));
  font-weight: 500;
  font-size: large;
  text-decoration: none;
  color: white;
}

.horizontal-card {
  aspect-ratio: 4/3;
  width: 100%;
  max-width: 300px;
  height: fit-content;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  border-radius: 10px;
  /* Optional for rounded corners */
  box-sizing: border-box;
  flex: 1 1 250px;
  /* makes it responsive in a flex wrap container */
}

.horizontal-card:hover {
  transform: scale(1.05);
  /* Slight zoom */
}

.horizontal-card img {
  border: 1px solid rgb(170, 170, 170);
  width: 100%;
  height: 100%;
  /* Set a fixed height for consistent layout */
  object-fit: cover;
  /* Makes sure the image covers the area without distortion */
  display: block;
  flex-shrink: 0;
}

.horizontal-card caption {
  margin-top: 1px;
}

.vertical-card-2 {
  width: 240px;
  height: 320px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.vertical-card-2:hover {
  transform: scale(1.05);
  /* Slight zoom */
}

.vertical-card-2 img {
  border: 1px solid rgb(170, 170, 170);
  width: 100%;
  /* Set a fixed height for consistent layout */
  height: 20px;
  object-fit: cover;
  /* Makes sure the image covers the area without distortion */
  display: block;
  flex: 2;
}

.vertical-card-2 caption {
  margin-top: 1px;
}

.button {
  text-decoration: none;
  font-weight: 500;
  color: black;
  background: linear-gradient(to bottom, rgba(255, 211, 117, 1), rgba(255, 211, 117, 1));
  border: 1px solid rgb(190, 190, 190);
  border-radius: 4px;
  border-color: rgb(190, 190, 190);
  padding: 10px 15px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
}

.button:hover {
  background: linear-gradient(to bottom, rgba(255, 211, 117, 1), rgba(255, 211, 117, 1));
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.button:active {
  background: linear-gradient(to bottom, rgba(255, 211, 117, 0.8), rgba(255, 211, 117, 0.8));
  transform: scale(0.97); /* optional "pressed" effect */
}

.contact-us-box {
  background-color: rgb(220, 220, 220);
  padding: 20px;
  border-style: solid;
  border-width: 0.1px;
  border-color: rgb(200, 200, 200);
  border-radius: 5px;
  line-height: 1.6;
}

.google-maps {
  display: flex;
  flex: 1;
}

.google-maps iframe {
  width: 100%;
  border: none;
}

.columned-list-container {
  background-color: rgb(245, 245, 245);
  padding: 3% 10%;
}

.columned-list {
  display: flex;
  flex-wrap: wrap;
  margin: 5vh 0;
  gap: 20px;
  /* Optional: adds spacing between items */
}

.columned-list-left-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.columned-list-left-section figure {
  text-align: center;
  margin: 0;
  /* Remove default figure margin */
}

.columned-list-left-section img {
  display: block;
  width: 35vw;
  max-width: 400px;         /* Fixed width for consistency */
  aspect-ratio: 4/3;
  object-fit: cover;    /* Crops to fill the space */
  margin: 0 auto;
}

.columned-list-right-section {
  margin: 10px;
  /* Remove default figure margin */
}

.columned-list-right-section li {
  margin-bottom: 0.5rem;
}

.image-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.image-group img {
  max-width: 100%;
  height: 300px;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
}

.image-group-vertical img {
  max-width: 100%;
  height: auto;
  width: 300px;
  border-radius: 8px;
  margin-right: 10px;
}

.figure-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  /* smooth transition */
}

.figure-wrapper:hover {
  transform: scale(1.025);
  /* smooth transition */
}

.job-list {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2rem;
}

.job-box {
  border: 1px solid grey;
  border-radius: 5px;
  padding: 1rem;
  width: 250px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.job-box:hover {
  transform: scale(1.03);
  background-color: #eef;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: flex-start;
  overflow: auto;
}

.modal-body-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  position: relative;
  max-height: 80%;
}

.modal-body-content li {
  margin-bottom: 0.5rem;
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 1010; /* Ensure it stays above the text content */
  line-height: 1;
  transition: color 0.2s
}

.thrust-boring-flash-container,
.horizontal-drain-flash-container {
  display: flex;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: center; 
}

@media (min-width: 900px) {

  .light-container,
  .light-container-not-animated,
  .light-container-centered,
  .light-container-breadcrumb{
    padding: 2rem 8vw;
  }
}

/*
@media (max-width: 1023px) {

  .light-container,
  .light-container-not-animated,
  .light-container-centered {
    padding: 2rem 4vw;
    flex-direction: column;
    justify-content: center;
  }
}
*/
@media (max-width: 900px) {

  .light-container,
  .light-container-not-animated,
  .light-container-centered,
  .light-container-breadcrumb
 {
    padding: 1.5rem 1rem;
    flex-direction: column;
    justify-content: center;
  }
}

@media (min-width: 900px) {

  .light-container-reversed {
    padding: 2rem 8vw;
  }
}
/*
@media (max-width: 1023px) {

  .light-container-reversed {
    padding: 2rem 4vw;
    flex-direction: column-reverse;
  }
}
*/
@media (max-width: 900px) {

  .light-container-reversed {
    padding: 1.5rem 1rem;
    flex-direction: column-reverse;
  }
}

@media (min-width: 1024px) {
  .light-container-contact-us {
    padding: 2rem 8vw;
  }
}

@media (max-width: 1023px) {
  .light-container-contact-us {
  flex-direction: column;
  padding: 2rem 8vw;
  }
}

@media (max-width: 900px) {
  .thrust-boring-flash-container,
  .horizontal-drain-flash-container {
    width:70vw;
    height:auto;
  }
}

/* Mobile style */
@media (max-width: 768px) {
  .left-section,
  .right-section {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
  }
}

/* Mobile style */
@media (max-width: 768px) {
  .left-section figure,
  .right-section figure {
    margin: 0 auto;
  }
}

/* Desktop & wider screens: side-by-side layout */
@media (max-width: 768px) {
  .columned-list {
    flex-direction: column-reverse;
  }

  .columned-list-left-section img {
  display: block;
  width: 65vw;
  max-width: 400px;         /* Fixed width for consistency */
  aspect-ratio: 4/3;
  object-fit: cover;    /* Crops to fill the space */
  margin: 0 auto;
}
}

@media (min-width: 768px) {

  .columned-list-left-section,
  .columned-list-right-section {
    flex: 1 1 45%;
    /* side-by-side on larger screens */
  }
}

@media (min-width: 768px) {
  .google-maps iframe {
    height: 100%;
  }
}

@media (max-width: 768px) {
  .google-maps iframe {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .job-list {
  align-items: center;
  justify-content: center;
  }
}

.download-link {
  display: flex;
  height: 1.5rem;
  background-color: rgb(230, 230, 230);
  align-items: left;
  margin-bottom: 10px;
  padding: 10px;
  justify-content: left;
}

.download-link img{
  height: 1.5rem;
  width: auto;
  margin-right: 10px;
}