/********** Template CSS **********/
body {
  overflow-x: hidden;
}
.back-to-top {
  position: fixed;
  display: none;
  left: 45px;
  bottom: 45px;
  z-index: 99;
}

p {
  color: #000;
  line-height: 30px;
}

/*** Button ***/
.btn {
  transition: 0.5s;
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.sticky-top {
  top: -150px;
  transition: 0.5s;
}

.navbar {
  padding: 15px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.navbar .navbar-nav .nav-link {
  margin-left: 30px;
  padding: 0;
  outline: none;
  color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}
.navbar .dropdown-menu .dropdown-item {
  font-size: 18px;
  font-weight: 700;
}
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
  color: var(--bs-white);
  background: var(--bs-primary);
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-left: 0;
    padding: 10px 0;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Hero Header ***/
.hero-header {
  background: url(../img/hero-bg.webp) top center no-repeat;
  background-size: cover;
}

.hero-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

.header-carousel {
  position: relative;
  padding: 45px 90px 45px 0;
}

.header-carousel::before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  width: calc(50% + 45px);
  height: 100%;
  background: var(--bs-primary);
  z-index: -1;
}

.header-carousel .owl-dots {
  position: absolute;
  top: 50%;
  right: 38px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 5px 0;
  width: 15px;
  height: 15px;
  border: 2px solid var(--bs-white);
  transition: 0.5s;
}

.header-carousel .owl-dot.active {
  height: 30px;
  background: var(--bs-white);
}

.border-white {
  border-color: #0d6b68 !important;
}
/*** About ***/
.about-img {
  position: relative;
  overflow: hidden;
}

 
/*** Project ***/
.project-item img {
  transition: 0.5s;
}

.project-item:hover img {
  transform: scale(1.2);
}

.project-overlay {
  position: absolute;
  padding: 25px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: linear-gradient(rgba(255, 255, 255, 0.1) 50%, var(--bs-dark));
  z-index: 1;
}

/*** Service ***/
.service-item {
  position: relative;
  padding: 30px 25px;
  transition: 0.5s;
}

.service-item.bg-primary:hover {
  background: var(--bs-light) !important;
}

.service-item.bg-primary p {
  color: var(--bs-light);
  transition: 0.5s;
}

.service-item.bg-primary:hover p {
  color: var(--bs-secondary);
}

.service-item.bg-light:hover {
  background: var(--bs-primary) !important;
}

.service-item.bg-light p {
  color: var(--bs-secondary);
  transition: 0.5s;
}

.service-item.bg-light:hover p {
  color: var(--bs-light);
}

.service-item .service-img h3 {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0 12px 7px 0;
}

.service-item.bg-primary .service-img h3 {
  background: var(--bs-primary);
  color: var(--bs-white);
  transition: 0.5s;
}

.service-item.bg-primary:hover .service-img h3 {
  background: var(--bs-light);
  color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
  background: var(--bs-light);
  color: var(--bs-dark);
  transition: 0.5s;
}

.service-item.bg-light:hover .service-img h3 {
  background: var(--bs-primary);
  color: var(--bs-white);
}

/*** Our Team ***/
.team-item img {
  transition: 0.5s;
}

.team-item:hover img {
  transform: scale(1.2);
}

.team-overlay {
  position: absolute;
  padding: 30px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background: linear-gradient(rgba(255, 255, 255, 0.1) 50%, var(--bs-dark));
  z-index: 1;
}

.team-overlay small {
  display: inline-block;
  padding: 3px 15px;
  color: var(--bs-white);
  background: var(--bs-primary);
}

/*** Testimonial ***/
.testimonial-img {
  position: relative;
  padding: 45px 0 45px 90px;
}

.testimonial-img::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: calc(50% + 45px);
  height: 100%;
  background: var(--bs-primary);
  z-index: -1;
}

.testimonial-text h5 {
  position: relative;
  padding-left: 45px;
}

.testimonial-text h5::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 40px;
  height: 2px;
  background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
  position: absolute;
  height: 17px;
  bottom: 0;
  right: 0;
  left: auto;
}

.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  width: 15px;
  height: 15px;
  background: var(--bs-white);
  border: 2px solid var(--bs-primary);
  transition: 0.5s;
}

.testimonial-carousel .owl-dot.active {
  width: 30px;
  background: var(--bs-primary);
}

@media (max-width: 768px) {
  .testimonial-carousel .owl-dots {
    left: 0;
    right: auto;
  }

  .testimonial-carousel .owl-dot {
    margin-right: 10px;
    margin-left: 0;
  }
}
 
/*** Footer ***/
.footer .btn.btn-link {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
  transition: 0.3s;
}

.footer .btn.btn-link:hover {
  color: var(--bs-white);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .copyright {
  padding: 25px 0;
  font-size: 14px;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: rgba(255, 255, 255, 0.5);
}

.footer .copyright a:hover {
  color: var(--bs-white);
}

.footer .footer-menu a {
  margin-right: 15px;
  padding-right: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .footer-menu a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: none;
}
/*  */

/* Make each carousel cell overlay-able */
.header-carousel .owl-item {
  position: relative;
  overflow: hidden; /* keep effects inside the image frame */
}

/* Nice rounded look + pulsing glow on the active image */
.header-carousel .owl-item.active img {
  border-radius: 12px;
  animation: rc_pulseGlow 4.5s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18),
    0 0 14px rgba(var(--bs-primary-rgb, 13, 110, 253), 0.22);
}

/* Diagonal light sweep (glint) */
.header-carousel .owl-item.active::after {
  content: "";
  position: absolute;
  inset: -10%; /* slightly larger so edges don’t show */
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 45%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translateX(-160%) skewX(-20deg);
  filter: blur(0.5px);
  animation: rc_sheen 3.5s ease-in-out infinite;
}

/* Subtle twinkling sparkles */
.header-carousel .owl-item.active::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  /* two sparkle layers with different sizes/offsets */

  filter: drop-shadow(0 0 6px rgba(var(--bs-primary-rgb, 13, 110, 253), 0.55));
  opacity: 0.6;
}

/* Keyframes */
@keyframes rc_pulseGlow {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18),
      0 0 14px rgba(var(--bs-primary-rgb, 13, 110, 253), 0.22);
  }
  50% {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28),
      0 0 26px rgba(var(--bs-primary-rgb, 13, 110, 253), 0.38);
  }
}

@keyframes rc_sheen {
  0% {
    transform: translateX(-160%) skewX(-20deg);
  }
  25% {
    transform: translateX(160%) skewX(-20deg);
  }
  100% {
    transform: translateX(160%) skewX(-20deg);
  }
}

/* Optional: stagger timing a bit for variety */
.header-carousel .owl-item:nth-child(2n)::after {
  animation-delay: 0.6s;
}
.header-carousel .owl-item:nth-child(3n)::before {
  animation-delay: 0.9s;
}
/* -------- */
#obfuscatedEmail a {
  color: #fff;
}
/*  */
/* Scope to the services grid so other cards on the site aren't affected */
.col-lg-7 .service-item h3 {
  font-size: 1.1rem; /* uniform heading size */
  line-height: 1.25;
  margin: 0; /* keep spacing consistent (you already have mb-0 on p) */
  display: -webkit-box; /* clamp to 1 line */
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  min-height: 1.25em; /* ensures equal height even if shorter title */
}

.col-lg-7 .service-item p {
  font-size: 0.95rem; /* uniform body size */
  line-height: 1.5;
  display: -webkit-box; /* clamp to 2 lines */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  min-height: 3em; /* 2 lines × 1.5 line-height = 3em => equal height */
  word-break: break-word;
}

/* Optional: on very small screens, allow 3 lines to avoid over-truncating */
@media (max-width: 575.98px) {
  .col-lg-7 .service-item p {
    -webkit-line-clamp: 3;
    min-height: 4.5em; /* 3 lines × 1.5 */
  }
}

/*  */

.carpet-section {
  position: relative;
  background: #e6f0ef;
  padding: 80px 0;
}

.carpet-section h2 {
  font-weight: 700;
  color: #03201f;
  margin-bottom: 20px;
}

.carpet-section p {
  color: #333;
  line-height: 1.8;
}

.image-box img {
  border-radius: 50px 0; /* rounded 2 sides only */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.wave-divider {
  position: absolute;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
/*  */

/* Tweak these 2 numbers only */
.image-halo {
  --imgW: clamp(280px, 45vw, 600px); /* image width desktop ~520–640px */
  --circle: calc(var(--imgW) * 1.25); /* circle = 125% of image width */
  --offsetX: -18%; /* shift circle left/right */
  --offsetY: -8%; /* shift circle up/down */
  position: relative;
  width: var(--imgW);
  margin-inline: auto;
}
.image-halo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 40px 0 40px 0; /* your two-corner style */
  box-shadow: 0 18px 40px rgba(3, 32, 31, 0.15);
  position: relative;
  z-index: 2; /* above the circle */
  object-fit: cover;
}
.image-halo::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--circle);
  height: var(--circle);
  background: #03201f15; /* your halo color */
  border-radius: 50%;
  z-index: 1; /* behind the image, above page */
  /* center then offset so it peeks out */
  left: 50%;
  top: 59%;
  transform: translate(-50%, -50%) translate(var(--offsetX), var(--offsetY));
  pointer-events: none;
}

/* Mobile: make sure the circle still shows */
@media (max-width: 576px) {
  .image-halo {
    --imgW: 92vw; /* image nearly full width */
    --circle: calc(var(--imgW) * 1.3); /* a bit larger halo on small screens */
    --offsetX: -12%;
    --offsetY: -6%;
  }
}
