.style-box.background-section::after, .background-section .style-box::after {
    border-bottom:
  50px solid #0f0;
  }

  
  /* Define the pulsing animation */
@keyframes pulseGlow {
  0% {
      box-shadow: 0 0 5px rgba(0, 255, 0, 0.3); /* Subtle green glow */
      border-color: #ffffff; /* Default white border */
  }
  50% {
      box-shadow: 0 0 15px rgba(0, 255, 0, 0.7); /* Brighter green glow */
      border-color: #00FF00; /* Green border at peak */
  }
  100% {
      box-shadow: 0 0 5px rgba(0, 255, 0, 0.3); /* Back to subtle glow */
      border-color: #ffffff; /* Back to white border */
  }
}

/* Apply the animation to the button */
.link-custom {
  color: #ffffff; /* White text */
  border: 1px solid #ffffff; /* White border */
  background: transparent; /* Transparent background */
  padding: 10px 20px; /* Adjust padding as needed */
  text-decoration: none; /* Remove underline */
  transition: all 0.3s ease; /* Smooth transition for hover */
  animation: pulseGlow 2s infinite ease-in-out; /* Apply the pulsing animation */

}

.link-custom {
  color: #ffffff;
  border: 2px solid #ffffff; /* Thicker border */
  background: transparent;
  padding: 10px 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Hover state (keep the existing hover effect) */
.link-custom:hover {
  color: #00FF00; /* Green text on hover */
  border-color: #00FF00; /* Green border on hover */
  background: rgba(0, 255, 0, 0.1); /* Slight green background tint */
  animation: none; /* Optional: stop the pulsing on hover for a solid glow */
}

.link-custom:hover {
  color: #000000; /* Green text */
  border-color: #00FF00; /* Green border */
  background: rgba(0, 255, 0, 0.3); /* Stronger green background tint */
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.9); /* Add a stronger green glow */
  animation: none; /* Stop the pulsing */
}

.slide-content {
  bottom: -5% !important;
  top: auto !important; /* Ensures top doesn’t conflict */
  transform: none !important;
}

/* #custom_project_image_1 {
  object-fit: cover !important;
  object-position: center !important;
} */

#custom_project_image_2 {
  object-fit: cover;
  object-position: left; /* Adjust as necessary */
}



/* TEMPORARY HOVER DISABLE - Remove this to bring hover back! Added March 25, 2025 */
/* .work-item,
.work-item * {
    pointer-events: none !important;
    cursor: default !important;
}
.work-item:hover,
.work-item a:hover,
.work-item .img-next-box:hover,
.work-item [data-overlay]:hover::before {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    box-shadow: none !important;
    background: none !important;
    color: inherit !important;
} */



/* ###################### This is all for the past project section ####################### */
.work-item {
  position: relative;
  border: none;
  overflow: hidden;
}

/* Hover text styling */
.work-item .hover-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -65%);
  color: #bbb;
  opacity: 0;
  transition: opacity 2.0s ease;
  z-index: 5;
  pointer-events: none;
  font-size: 16px; /* Slightly smaller font size for better fit */
  font-weight: normal;
  text-align: left;
  white-space: normal; /* Allow natural wrapping */
  max-width: 95%; /* Give more width to prevent excessive wrapping */
  width: 350px; /* Set a fixed width to control wrapping */
  line-height: 1.4; /* Tighter line spacing for better fit */
  padding: 10px; /* Add padding for better readability */
  border-radius: 5px; /* Optional: Rounded corners for the background */
}

/* Show hover text on hover */
.work-item:hover .hover-text {
  opacity: 1;
}

/* Darken only the image on hover */
.work-item .img-next-box {
  transition: opacity 2.3s ease;
}

.work-item:hover .img-next-box {
  opacity: 0.1;
}

/* Ensure box-content (text below) is unaffected */
.work-item .box-content {
  transition: none;
  opacity: 1;
}

/* Remove any potential borders */
.work-item,
.work-item .img-next-box,
.work-item .box-content {
  border: none !important;
  box-shadow: none !important;
}

/* turns off the animation */
.work-item,
.work-item * {
    transition: none !important;
}

.work-item {
    transition-property: color, background, opacity, box-shadow !important;
}

/* #################################### End for the past project section ################################## */

/* changing the image size of project 5 image */
#responsive-image-container {
  height: 600px;
}

/* changing the image size of project 5 image for smartphones*/
@media (max-width: 768px) {
  #responsive-image-container {
      height: 300px;
  }
}

.container-content {
  display: flex;
  justify-content: center; /* Centers items horizontally */
  align-items: center;     /* Centers items vertically */
  height: 100%;            /* Ensure the container has a height */
}

/* a#contactLink.link-hover.custom-nouppercase {
  text-transform: none !important;
} */

/* write email address lowercase */
a.link-hover {
  color: var(--heading-color);
  display: inline-block;
  letter-spacing: 2px;
  font-size: 13px;
  font-family: var(--heading-font);
  font-weight: 400;
  position: relative;
  text-transform: none;
  transition: all 0.25s ease-in-out;
}

.success-message {
  font-size: 45px;
  font-weight: bold;
  color: #00ff00 !important;
  padding: 10px;
  border-radius: 5px;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.speaker-toggle {
  position: fixed;
  z-index: 99999;
  top: 40%;
  left: calc(var(--s-box-left-social) / 2.4 );
  width: 30px;
  height: 30px;
  cursor: pointer;
  transform: translateX(-50%);
}
.admin-bar .speaker-toggle {
  top: 74px;
}
@media screen and (min-width: 783px) {
  .admin-bar .speaker-toggle {
    top: 60px;
  }
}
@media only screen and (max-width: 991px) {
  .speaker-toggle {
    top: 20px;
    left: 250px;
  }
}
@media only screen and (max-width: 767px) {
  .speaker-toggle {
    top: 50px;
    left: 150px;
    display: none;
  }
}

.style-box.background-section::after,
.background-section .style-box::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  
  /* Original shape: pointing up */
  border-left: 0px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 40px solid #0f0;

  /* Rotate 180 degrees */
  transform: rotate(-90deg);

  /* Centering as needed */
  margin: 0 auto;

  /* The glow */
  filter: drop-shadow(0 0 12px #0f0) drop-shadow(0 0 25px #0f0);
}

@keyframes pulse {
  0%, 100% {
    filter: drop-shadow(0 0 12px #0f0) drop-shadow(0 0 25px #0f0);
  }
  50% {
    filter: drop-shadow(0 0 2px #0f0) drop-shadow(0 0 12px #0f0);
  }
}

.style-box.background-section::after,
.background-section .style-box::after {
  /* existing styles */
  animation: pulse 2s infinite ease-in-out;
}

.site-header .inner-header .main-logo {
  width: 80px;
  pointer-events: all;
}


#additionalContactTrigger {
  white-space: nowrap;  /* prevent text wrapping */
  padding: 10px 20px;   /* ensure background area */
  background-color: white !important; /* force background */
  color: black;
}

.service-item-inner {
  height: 330px; /* set desired fixed height */
}

@media only screen and (max-width: 800px) {
  .grid-md-2 {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (min-width: 801px) and (max-width: 1500px) {
  .grid-mid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1501px) {
  .d-grid.grid-mid-3.grid-lg-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


.item:has(#translateSixtySix) {
  position: relative;
  padding-right: 100px;
}

.item:has(#translateSixtySix)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: url("/assets/img/qrcode.png") center / cover no-repeat;
}

@media (max-width: 1780px) {
  .item:has(#translateSixtySix) {
    padding-right: 0;
  }

  .item:has(#translateSixtySix)::after {
    position: static;
    display: block;
    margin-top: 15px;
  }
}

.language-menu {
  position: absolute;
  top: 10px;
  right: 5%;
  z-index: 1000;

  display: inline-flex;
  align-items: center;
  gap: 2px;

  padding: 3px;
  border-radius: 999px;
  background: #101010;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Your old 文 button is now the EN segment */
.language-button,
.language-dropdown button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  min-width: 0;
  height: 28px;
  margin: 0;
  padding: 0 11px;

  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #969696;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  text-align: center;

  cursor: pointer;
  animation: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

/* langMenu is no longer an actual popup dropdown */
.language-dropdown {
  display: flex;
  align-items: center;

  position: static;
  inset: auto;

  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Selected button */
.language-button.active,
.language-dropdown button.active {
  color: #ffffff;
  background: #2b2b2b;
  animation: greenGlowPulse 2.4s ease-in-out infinite;
}

@keyframes greenGlowPulse {

  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(70, 255, 130, 0.35),
      0 0 6px rgba(70, 255, 130, 0.3),
      0 0 12px rgba(70, 255, 130, 0.15);
  }

  50% {
    box-shadow:
      inset 0 0 0 1px rgba(70, 255, 130, 0.75),
      0 0 10px rgba(70, 255, 130, 0.65),
      0 0 22px rgba(70, 255, 130, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {

  .language-button.active,
  .language-dropdown button.active {
    animation: none;
  }
}


/* Hover / keyboard focus */
.language-button:hover,
.language-dropdown button:hover {
  color: #ffffff;
}

.language-button:focus-visible,
.language-dropdown button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}