body,
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  /* cursor: pointer; */
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

header {
  position: relative;
  top: 0;
  width: 100%;
}

.elementor-widget-container {
  cursor: pointer;
}

/* disable page scroll - when Offscreen menu is active */
body:has(.e-off-canvas[aria-hidden="false"]) {
  overflow-y: hidden !important;
  height: 100vh !important;
  position: fixed !important;
}

.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;

  .portfolio-item {
    width: calc(33.33% - 50px / 3);

    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;

    padding: 12px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;

    .portfolio-thumb {
      aspect-ratio: 650/506;
      background-color: #fbfbfb;
      overflow: hidden;
      max-width: 100%;
      margin-bottom: 10px;
      /* border: 1px solid #e6e6e6; */
      border-radius: 5px;

      & img {
        width: 100%;
        border-radius: 12px;
        aspect-ratio: 650/506;
        transition: all 800ms ease;
      }
    }

    & p.project-info {
      margin: 0;
      margin-top: auto;
      display: inline-flex;
      justify-content: space-between;
      align-items: center;

      & span.description {
        color: #7c7c7c;
        font-family: "DM Sans";
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;
        letter-spacing: -0.64px;
      }

      & a.view-site {
        color: var(--Secondary, #004f90);
        font-family: "DM Sans";
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        letter-spacing: -0.56px;
        text-decoration-line: underline;
        text-decoration-style: solid;
        text-decoration-skip-ink: none;
        text-decoration-thickness: auto;
        text-underline-offset: auto;
        text-underline-position: from-font;
      }
    }

    & h4 {
      margin: 0;
      margin-top: 10px;

      color: var(--BG-Black, #121212);
      font-family: "DM Sans";
      font-size: 21px;
      font-style: normal;
      font-weight: 600;
      line-height: 24px; /* 114.286% */
    }

    span.project-type {
      display: inline-flex;
      flex-direction: row;
      justify-conten: start;
      align-items: center;
      gap: 10px;

      span {
        display: inline-flex;
        padding: 1px 13px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border-radius: 6px;
        background: #fbfbfb;
        transition: all 500ms ease;

        color: #7c7c7c;
        font-family: "DM Sans";
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px;

        &:hover {
          background-color: #000;
          color: #fff !important;
        }
      }
    }

    &:hover img {
      transform: scale(1.1);
    }
  }
}

#portfolio-loading {
  text-align: center;
  width: 100%;
  margin-top: 10px;
  font-size: 14px;
}

#our-works #load-more-portfolio {
  display: block;
  margin: 0 auto;
  /* margin-top: 60px; */
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  color: var(--e-global-color-secondary, #121212);
  font-family: "DM Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 21.67px;
  border: 1px solid var(--e-global-color-secondary, #121212);
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background-color: #fff;
}

.btn-primary:focus {
  color: var(--e-global-color-secondary, #121212);
}

.btn-primary:focus:hover {
  color: #fff;
}

.btn-dark,
.btn-dark:focus {
  background-color: #070303;
  color: #e0e0e0;
  border: 1px solid #2e2e2e;
}

.btn-dark:hover,
.btn-dark:focus:hover {
  background-color: #070303;
  color: #ffffff;
  border-color: #2e2e2e;
}

.btn-spotlight {
  position: absolute;
  z-index: 1;
  height: 10px;
  width: 10px;
  opacity: 1;
  border-radius: 50%;
  background: linear-gradient(to right, #000, #333);
  inset: 0;
  top: 50%;
  transform: scale(0);
}

.btn-dark .btn-spotlight {
  background: linear-gradient(to right, #4a4a4a, #6a6a6a);
}

.btn-orange {
  background-color: #f0871f;
  color: #e0e0e0;
  border: 1px solid #f0871f;
}

.btn-orange:hover {
  background-color: #f0871f;
  color: #ffffff;
  border-color: #f0871f;
}

.btn-orange:hover,
.btn-orange:focus:hover {
  color: #f0871f;
  background-color: #fff;
}

.btn-orange:focus {
  color: #fff;
  background-color: #f0871f;
}

header .btn-primary {
  color: var(--White, #fff);
  leading-trim: both;
  text-edge: cap;
  font-family: "DM Sans";
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  padding: 20px 40px;
}

.btn-orange .btn-spotlight {
  background: linear-gradient(to right, #fff, #fff);
}

.btn-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-text {
  position: relative;
  z-index: 3;
}

/*temporary hide description - Home services*/
#home-services-grid .elementor-icon-box-content h3 {
  margin-bottom: 0 !important;
}
#home-services-grid .elementor-icon-box-content p {
  display: none;
}
/* remove above when it's needed */

/* Footer */
.footer-icon-box .elementor-icon {
  position: relative;
}

.footer-icon-box .elementor-icon::after {
  content: "";
  right: -18px;
  top: -6px;
  width: 1px;
  height: 44px;
  background-color: #2e2e2e;
  position: absolute;
}

.footer-icon-box .elementor-icon-box-title {
  margin: 0;
}

.footer-get-in-touch .elementor-icon-list-item:hover svg {
  filter: brightness(0) saturate(100%) invert(100%) sepia(92%) saturate(30%)
    hue-rotate(137deg) brightness(107%) contrast(106%);
}

/* About Us start */
.about-content .elementor-widget-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 70px;
  /*grid-row-gap: 70px; */
}

.team-member img {
  aspect-ratio: 341/315 !important;
  background-color: #004f90 !important;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  transition: all 800ms ease;
  cursor: pointer;
}

.team-member img:hover {
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
}

/* About Us end */

/*  */
@media (max-width: 1024px) {
  .portfolio-container {
    gap: 32px;
    .portfolio-item {
      gap: 0;
      width: calc(50% - 16px);
      img {
        margin-bottom: 16px;
      }
    }
  }

  #our-works #load-more-portfolio {
    margin-top: 45px;
  }

  #home-services-grid .elementor-icon-box-content h3 {
    margin: 0;
  }

  #home-services-grid .elementor-icon-box-description {
    font-size: 20px;
    display: none;
  }

  #home-services-grid .elementor-icon-box-content {
    display: flex;
    align-items: center;
  }

  #home-services-grid .elementor-icon-box-wrapper::after {
    content: url("/wp-content/uploads/2025/01/elements.svg");
    position: absolute;
    top: calc(50% - 12px);
    right: 17px;

    width: 24px;
    height: 24px;
    cursor: pointer;
  }

  .footer-border-full-top::after {
    content: "";
    width: 100vw;
    height: 1px;
    background-color: #2e2e2e;
    position: absolute;
    top: 0;
    left: -15px;
  }
}

@media (max-width: 767px) {
  .portfolio-container .portfolio-item {
    width: 100%;
  }

  .footer-icon-box .elementor-icon-box-icon {
    display: flex !important;
    align-items: center;
  }

  .footer-icon-box .elementor-icon::after {
    top: -10px;
  }
}

/* Services inner page */
.scrollWrapper {
  transition: none !important;
}

.scrollCards {
  transition: none;
  overscroll-behavior: none;
}

/* 
@media (max-width: 767px) {
    
} */

/* ANIMATION CSS */

.off-canvas-main,
.elementor-widget-container:has(> #blur) {
  background-color: black;
  height: 100vh !important;
  margin: 0rem !important;
  /* overflow: hidden !important; */
  position: relative !important;
}

.elementor-element.elementor-element-73d9f7f,
.elementor-element.elementor-element-7d56d56 {
  z-index: 9999999999999999999999999999;
}

#blob {
  background-color: white;
  height: 250px;
  aspect-ratio: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(aquamarine),
    to(mediumpurple)
  );
  background: -o-linear-gradient(left, aquamarine, mediumpurple);
  background: linear-gradient(to right, aquamarine, mediumpurple);
  -webkit-animation: rotate 20s infinite;
  animation: rotate 20s infinite;
  opacity: 0.8;
}

#blur {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 2;
  -webkit-backdrop-filter: blur(12vmax);
  backdrop-filter: blur(12vmax);
}

@-webkit-keyframes rotate {
  from {
    rotate: 0deg;
  }

  50% {
    scale: 1 1.5;
  }

  to {
    rotate: 360deg;
  }
}

@keyframes rotate {
  from {
    rotate: 0deg;
  }

  50% {
    scale: 1 1.5;
  }

  to {
    rotate: 360deg;
  }
}

/* portfolio animations */
.portfolio-container {
  perspective: 1000px;
}

.portfolio-item {
  transition: transform 0.4s ease, opacity 0.4s ease;
  will-change: transform, opacity;
}

.portfolio-item img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 12px;
}

/* card-3d hover animations */

.card-3d {
  perspective: 1000px;
  position: relative;
  transition: box-shadow 0.4s ease;
}

.card-3d .elementor-widget-container {
  /* width: 100%;
  height: 100%; */
  /* background: linear-gradient(145deg, #232323, #2e2e2e); */
  /* border-radius: 15px; */
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Optional Glow Overlay */
.card-3d:hover::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 20px;
  /* box-shadow: 0 0 40px 10px #0e4572; */
  z-index: -1;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
  will-change: transform;

  .elementor-icon-wrapper {
    display: flex;
  }
}

.header.is-sticky {
  background-color: #070303;
}

.header-hm {
  transition: all 1s ease !important;
}

.header-hm.elementor-sticky--effects {
  background-color: #000000 !important;
}

/* header menu */
.main-services .elementor-icon-list-item,
.main-services .elementor-icon-list-item span,
.sub-items .sub-item {
  transition: all 800ms ease !important;
}

.main-services .elementor-icon-list-item.active span {
  font-weight: 500;
  letter-spacing: 1px;
  color: #ffffff !important;
}

.smooth-scroll-wrapper {
  position: relative;
  z-index: 1;
}

#about-circle {
  stroke-dasharray: 576;
  stroke-dashoffset: 576;
  fill-opacity: 0;
}

.hover-3d-effects {
  perspective: 1000px;
}

.hover-3d-effects .inner {
  transform-style: preserve-3d;
  transition: transform 0.3s;
}

/* end */

.border-motion-1 {
  position: relative;
  background: white;
}
/* Static border */
.border-motion-1::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid #f0871f;
  border-radius: inherit;
  pointer-events: none;
}
/* Animated border */
.border-motion-1::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid #f0871f88;
  border-radius: inherit;
  pointer-events: none;
  clip-path: polygon(0 0, 0 0, 0 0);
  transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  background-color: #f0871f;
  opacity: 0;
  z-index: 10000;
  user-select: none;
  pointer-events: none;
  margin-left: -12px;
  margin-top: -12px;
}

.barba-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  transform: scaleY(0);
  transform-origin: top;
  z-index: 9999;
  pointer-events: none;
}
