/* =====================
  SECTION: Hero
  ====================== */
.hero {
  /* --hero-height-min: 60vh;
  min-height: var(--hero-height-min);

  & .carousel-item {
    max-height: calc(100svh - var(--header-height));
  } */

  /* & .carousel-item::before {
          --grad-dist: 60%;
          content: '';
          position: absolute;
          inset: 0;
          background:
              linear-gradient(65deg,
                  rgba(var(--secondary-color-rgb), .75) var(--grad-dist),
                  rgba(var(--primary-color-rgb), 0.75) var(--grad-dist),
                  rgba(var(--primary-color-rgb), 0.5) calc(var(--grad-dist) + 4%),
                  rgba(var(--secondary-color-rgb), .35) calc(var(--grad-dist) + 4%));
          z-index: 1;
      } */

  & .carousel-item img {
    animation: carouselScale 10s ease-out forwards;
    /* min-height: var(--hero-height-min); */
    object-fit: cover;
  }

  & .carousel-caption {
    z-index: 2;
    text-align: start;
    bottom: 50%;
    transform: translateY(50%);
    overflow: hidden;
  }

  & .carousel__title {
    font-size: var(--fs-title);
    font-weight: 700;
    font-family: var(--heading-font);
    margin-bottom: 1.5rem;
    transform: translateY(-175%);
    line-height: 1;
  }

  & .carousel-item.active .carousel__title {
    animation: resetCaptionTransform 1000ms 150ms ease forwards;
  }

  & .carousel__text {
    font-size: var(--fs-caption);
    margin-bottom: 1rem;
    transform: translateX(-125%);
  }

  & .carousel-item.active .carousel__text {
    animation: resetCaptionTransform 1500ms 500ms ease forwards;
  }

  & .btn-main {
    transform: translateY(150%);
  }

  & .carousel-item.active .btn-main {
    animation: resetCaptionTransform 1500ms 750ms ease forwards;
  }

  & .carousel-indicators {
    /* --indicator-size: 4px;
    bottom: 50%;
    right: 10%;
    left: unset;
    margin-inline: 0;
    flex-direction: column;
    row-gap: 0.5rem;
    transform: translateY(50%); */

    --indicator-size: 4px;
    bottom: 5%;
    /* right: 10%; */
    left: 50%;
    margin-inline: 0;
    flex-direction: column;
    row-gap: 0.5rem;
    transform: translate(-50%, 50%);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;


    & button {
      background: transparent;
      border-radius: 50%;
      border: calc(var(--indicator-size) * 1) solid var(--bs-light);
      height: auto;
      width: calc(var(--indicator-size) * 4);
      aspect-ratio: 1;
      position: relative;

      &::before {
        content: "";
        position: absolute;
        width: calc(var(--indicator-size) * 2);
        aspect-ratio: 1;
        border-radius: 50%;
        background: var(--primary-color);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }
  }
}

.custom-btn {
  background-color: var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
  /* ensure full visibility */
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  margin: 1rem;
}


/* =====================
  SECTION: About
  ====================== */

.product__section {
  position: relative;
  z-index: 1;
  background: rgba(var(--primary-color-rgb), 1);
}

.product__section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url(../images/bg/hero1.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.3;
  /* background: rgb(255 255 255 / 85%); */
  /* background: rgb(230 233 238 / 80%); */
}

.hero_title {
  background: linear-gradient(to left top,
      rgba(var(--secondary-color-rgb), 1),
      rgba(255, 255, 255, 1));
  background: linear-gradient(to left top,
      rgba(var(--secondary-color-rgb), 1),
      rgba(255, 165, 0, 1));
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =====================
  SECTION: Services
  ====================== */
.services {
  background: rgba(var(--secondary-color-rgb), 0.05);
}

[data-bs-theme="dark"] .services {
  background: rgba(var(--secondary-color-rgb), 0.2);
}

.service__box {
  display: grid;
  grid-template-areas: "stacked";
  align-items: end;
  overflow: hidden;
  position: relative;
}

.service__box>* {
  grid-area: stacked;
}

.service__image {
  position: relative;
  z-index: -1;
}

.service__image::before {
  content: "";
  position: absolute;
  inset: 0;
}

.service__image::before {
  background: linear-gradient(0deg, #000, transparent);
}

.service__info {
  font-size: var(--fs-caption);
  color: var(--bs-light);
  padding: 1rem;
  min-height: 100px;
  background: linear-gradient(0deg, var(--primary-color) 50%, transparent 50%);
  background-size: 100% 200%;
  transition: background 250ms ease-in-out;
  isolation: isolate;
  text-wrap: pretty;
}

.service__box:hover .service__info {
  background-position: center bottom;
}

.service__info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--secondary-color);
  opacity: 0.2;
  transform: translateY(-100%);
  transition: transform 250ms ease-in-out;
  z-index: -1;
}

.service__box:hover .service__info::before {
  transform: translateY(0);
}

/* =====================
  SECTION: Highlight
  ====================== */
.highlight {
  position: relative;
  /* background: #3a3a3acc; */

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #4a7cd21a;
    /* background: url(../images/bg/hero.webp); */
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    z-index: -1;
  }

  /* & ul li::marker {
            content: "\F26B    ";
            color: #ffcc00;
            font-family: "bootstrap-icons";
        } */

  & .btn-main {
    background: var(--secondary-color);
    color: var(--bs-light);
  }

  & .btn-main:hover {
    color: var(--bs-light);
  }
}

.highlight__image {
  position: relative;
  isolation: isolate;
}

.highlight__image::after {
  position: absolute;
  left: -25%;
  bottom: -5rem;
  content: "";
  width: 400px;
  aspect-ratio: 1;
  border: 60px solid var(--primary-color);
  z-index: -1;
  border-radius: 50%;
}

/* =====================
  SECTION: USP
  ====================== */
.usp {
  position: relative;
  z-index: 1;
  background: url(../images/bg/bg.webp);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.usp__box {
  padding: 2.5rem;
  position: relative;
  height: 100%;
  isolation: isolate;
  background: rgba(var(--secondary-color-rgb), 0.025);
  border-left: 3px solid var(--secondary-color);

  & h4 {
    color: var(--primary-color);
  }
}

[data-bs-theme="dark"] .usp__box {
  background: rgba(var(--secondary-color-rgb), 0.2);
}

.usp__box::before,
.usp__box::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 70%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: all 250ms ease-in-out;
  opacity: 0;
}

.usp__box::before {
  background-color: color-mix(in srgb, var(--primary-color) 100%, black 65%);
  opacity: 0;
  z-index: -1;
}

.usp__box.expert::after {
  background-image: url("../images/bg/why.webp");
}

.usp__box.client::after {
  background-image: url("../images/bg/why.webp");
}

.usp__box.compliance::after {
  background-image: url("../images/bg/why.webp");
}

.usp__box.responsiveness::after {
  background-image: url("../images/bg/why.webp");
}

.usp__box.excellence::after {
  background-image: url("../images/bg/why.webp");
}

.usp__box.pricing::after {
  background-image: url("../images/bg/why.webp");
}

.usp__icon {
  margin-bottom: 1rem;

  & .icon {
    font-size: 4rem;
    color: var(--primary-color);
  }
}

.usp__box:hover {
  color: var(--bs-light);

  &::before {
    width: 100%;
    opacity: 0.6;
  }

  &::after {
    width: 100%;
    opacity: 1;
  }

  & .usp__icon .icon {
    color: var(--bs-light);
  }

  & h4 {
    color: var(--bs-light);
  }
}

/* =====================
  SECTION: Clients
  ====================== */
.clients {
  background: rgba(var(--secondary-color-rgb), 0.05);
}

.clients .glide__slide {
  text-align: center;
  background: var(--bs-body-bg);
  box-shadow: 0 0 25px rgb(0 0 0 / 8%);
  padding: 1rem 0.5rem;
}

.clients__logo {
  width: 128px;
  display: block;
  margin-inline: auto;
  /* filter: grayscale(1); */
  transition: filter 150ms ease-in-out;
}

.clients__logo:hover {
  filter: grayscale(0);
}

/* =====================
  SECTION: CTA
  ====================== */
/* .cta {
  color: var(--bs-light);
  background: url(../images/bg/cta-bg.png) var(--secondary-color);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
} */

/* =====================
  SECTION: Services Tab
  ====================== */
[data-bs-theme="dark"] .services__tab .toc {
  background: rgba(var(--secondary-color-rgb), 0.25);
}

.services__tab {
  & .toc {
    background: rgba(var(--secondary-color-rgb), 0.05);
    padding: 1rem;
    top: var(--menu-height);
  }

  & .nav .nav-link {
    text-align: start;
    color: var(--bs-body-color);
    background: rgba(var(--secondary-color-rgb), 0.025);

    & .bi {
      display: inline-block;
    }

    &.active {
      color: var(--bs-light);
      background: var(--primary-color);
    }

    &:not(.active):hover {
      background: rgba(var(--primary-color-rgb), 0.05);

      & .bi {
        transform: translateX(3px);
      }
    }

    &:not(:last-of-type) {
      border-bottom: 1px solid rgba(var(--secondary-color-rgb), 0.15);
    }
  }

  .services__cta {
    display: grid;
    grid-template-areas: "stacked";
    place-items: center;
    text-align: center;
    color: var(--bs-light);
    position: relative;
    z-index: 1;

    &>* {
      grid-area: stacked;
    }

    & .scta__bg {
      position: relative;
      z-index: -1;
    }

    & .scta__bg::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(var(--secondary-color-rgb), 0.5);
    }

    & .bi {
      font-size: var(--fs-large-banner);
    }

    & .bi::before {
      background: var(--primary-color);
      padding: 1rem;
      border-radius: 50%;
      box-shadow: 0 0 0 1rem rgba(var(--primary-color-rgb), 0.25);
    }
  }

  & .heading,
  & .subheading {
    font-family: var(--heading-font);
    font-weight: 900;
    color: var(--bs-dark-text-emphasis);
    margin-bottom: 0.25rem;
  }

  & .heading {
    font-size: var(--fs-sub-title);
  }

  & .subheading {
    font-size: var(--fs-lead);
  }

  & .accordion-button {
    background: var(--primary-color);
    color: var(--bs-light);
    box-shadow: inset 0 8px 16px rgb(0 0 0 / 15%);
  }

  & .accordion-button::after {
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  }
}

/* =====================
  SECTION: Products
  ====================== */
.prism__cta {
  background: var(--secondary-color);
  border: none;
  color: #fff;

  & .underline {
    position: relative;
    z-index: 1;

    & img {
      position: absolute;
      width: 100%;
      height: 100%;
      filter: invert(99%) sepia(67%) saturate(2%) hue-rotate(149deg) brightness(112%) contrast(100%);
      left: 0;
      bottom: -50%;
      transform: rotate(2.5deg);
    }
  }
}

/* =====================
  SECTION: Contact
  ====================== */
.contact__box .list-group {
  --bs-list-group-bg: transparent;
  --bs-list-group-border-color: color-mix(in srgb,
      var(--primary-color) 75%,
      var(--bs-body-bg) 25%);
  margin-top: 1rem;

  & .list-group-item {
    border-bottom: none;

    & .bi {
      color: var(--bs-light);
      width: 40px;
      aspect-ratio: 1;
      text-align: center;
      border: 1px solid;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}

.card.contact__box {
  border: none;
  background: linear-gradient(135deg, #fff, #fafafa);
  background: var(--bs-body-bg);
  box-shadow: 0 0 30px rgb(0 0 0 / 5%);
  border-radius: 0.25rem;
  overflow: hidden;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/cirtuit.webp");
    opacity: 0.1;
  }

  & .list-group-item .bi {
    color: var(--primary-color);
  }

  & .card-title {
    color: #fff;
    font-size: var(--fs-small-banner);
    text-align: center;
    margin-top: 1rem;
  }

  & .contact__overlay {
    position: relative;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(var(--primary-color-rgb), 0.75);
    }
  }
}

/* =====================
  SECTION: TIME LINE
  ====================== */

.year__info .year {
  margin-bottom: 2rem;
}

.year__info .year span {
  display: flex;
  position: relative;
  height: 100px;
  width: 100px;
  align-items: center;
  justify-content: center;
  margin: auto;
  border-radius: 50%;
  background: var(--primary-color);
}

.year__info .year span::before {
  position: absolute;
  content: "";
  width: 2px;
  height: 30%;
  left: 50%;
  bottom: -45%;
  transform: translateX(-50%, 50%);
  background: #000;
}

.year__info .year span::after {
  position: absolute;
  content: "";
  width: 10px;
  height: 10px;
  left: 46%;
  bottom: -19%;
  border-radius: 100%;
  transform: translateX(-50%, 50%);
  background: #000;
}

/* =====================
  SECTION: TIMELINE
  ====================== */
.timeline {
  --col-gap: 2rem;
  --row-gap: 2rem;
  --line-w: 0.25rem;
  display: grid;
  grid-template-columns: var(--line-w) 1fr;
  grid-auto-columns: max-content;
  column-gap: var(--col-gap);
  list-style: none;
  width: min(60rem, 90%);
  margin-inline: auto;
}

/* line */
.timeline::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 20;
  background: rgb(225, 225, 225);
  border-radius: calc(var(--line-w) / 2);
}

/* columns*/

/* row gaps */
.timeline li:not(:last-child) {
  margin-bottom: var(--row-gap);
}

/* card */
.timeline li {
  grid-column: 2;
  --inlineP: 1.5rem;
  margin-inline: var(--inlineP);
  grid-row: span 2;
  display: grid;
  grid-template-rows: min-content min-content min-content;
}

/* date */
.timeline li .date {
  --dateH: 3rem;
  height: var(--dateH);
  margin-inline: calc(var(--inlineP) * -1);

  text-align: center;
  background-color: var(--accent-color);

  color: white;
  font-size: 1.25rem;
  font-weight: 700;

  display: grid;
  place-content: center;
  position: relative;

  border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
}

/* date flap */
.timeline li .date::before {
  content: "";
  width: var(--inlineP);
  aspect-ratio: 1;
  background: var(--accent-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
  position: absolute;
  top: 100%;

  clip-path: polygon(0 0, 100% 0, 0 100%);
  right: 0;
}

/* circle */
.timeline li .date::after {
  content: "";
  position: absolute;
  width: 2rem;
  aspect-ratio: 1;
  background: #f5f5f5;
  border: 0.3rem solid var(--accent-color);
  border-radius: 50%;
  top: 50%;

  transform: translate(50%, -50%);
  right: calc(100% + var(--col-gap) + var(--line-w) / 2);
}

/* title descr */
.timeline li .title,
.timeline li .descr {
  background: #f5f5f5;
  position: relative;
  padding-inline: 1.5rem;
}

.timeline li .title {
  overflow: hidden;
  padding-block-start: 1.5rem;
  padding-block-end: 1rem;
  font-weight: 500;
}

.timeline li .descr {
  padding-block-end: 1.5rem;
  font-weight: normal;
}

/* shadows */
.timeline li .title::before,
.timeline li .descr::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  left: 50%;
  border-radius: 50%;
  filter: blur(4px);
  transform: translate(-50%, 50%);
}

.timeline li .title::before {
  bottom: calc(100% + 0.125rem);
}

.timeline li .descr::before {
  z-index: -1;
  bottom: 0.25rem;
}

@media (min-width: 40rem) {
  .timeline {
    grid-template-columns: 1fr var(--line-w) 1fr;
  }

  .timeline::before {
    grid-column: 2;
  }

  .timeline li:nth-child(odd) {
    grid-column: 1;
  }

  .timeline li:nth-child(even) {
    grid-column: 3;
  }

  /* start second card */
  .timeline li:nth-child(2) {
    grid-row: 2/4;
  }

  .timeline li:nth-child(odd) .date::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    left: 0;
  }

  .timeline li:nth-child(odd) .date::after {
    transform: translate(-50%, -50%);
    left: calc(100% + var(--col-gap) + var(--line-w) / 2);
  }

  .timeline li:nth-child(odd) .date {
    border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
  }
}

.timeline li {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease-in-out;
}

/* Odd ones slide from left */
.timeline li:nth-child(odd) {
  transform: translateX(-100px);
}

/* Visible state */
.timeline li.show {
  opacity: 1;
  transform: translateX(0);
}

/* =====================
  SECTION: Contact
  ====================== */
.rq .form-control {
  border-radius: 0;
  background: rgba(var(--secondary-color-rgb), 0.05);
  border: 0;

  &::placeholder {
    color: var(--bs-dark-text-emphasis);
    font-size: small;
  }
}

/* =====================
  SECTION: Teams
  ====================== */

.team_img img {
  border-radius: 50%;
}

.product_img img {
  border-radius: 50%;
}

/* =====================
  SECTION: Testimonals
  ====================== */

.testimonial {
  background: #4a7cd21a;
  overflow: hidden !important;
}

.testimonial_content {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 1) 50%,
      rgba(255, 255, 255, 0) 100%);
  position: relative;
}

.testimonial_content::before {
  content: "\F6B0";
  position: absolute;
  font-family: bootstrap-icons;
  top: 0;
  left: -6px;
  font-size: 60px;
  color: var(--secondary-color);
}

.horizontal-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.accordion-header-row {
  display: flex;
}

.accordion-header-row .accordion-button {
  flex: 1;
  text-align: center;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 1rem 1rem 0 0;
  font-weight: 600;
  font-size: var(--fs-lead);
  border-bottom: 2px solid #e7e7e7;
}

.accordion-header-row .accordion-button:not(.collapsed) {
  border-bottom: 2px solid var(--secondary-color);
  background: rgba(var(--secondary-color-rgb), 0.05);
  color: var(--secondary-color);
}

.accordion-content {
  border: 0px;
  border-top: none;
}

.horizontal-accordion .accordion-button {
  display: block !important;
}

/*=====================
      SECTION: CONTACT
  ====================== */

.form-section {
  margin: 0 auto;
  /* overflow: hidden; */
  padding: 3em 3em 3em;
  background: #ffffff;
  box-shadow: 0px 4px 42px -14px rgb(205 210 216);
  border-radius: 30px;
  text-align: left;
  position: relative;
}

.form-section::before {
  position: absolute;
  content: "";
  top: -56px;
  left: -61px;
  width: 130px;
  height: 130px;
  background: #395e9b0d;
  border-radius: 100%;
  z-index: -1;
}

.form-section::after {
  position: absolute;
  content: "";
  bottom: -56px;
  right: -61px;
  width: 150px;
  height: 150px;
  background: #395e9b0d;
  border-radius: 100%;
  z-index: -1;
}