/********** Template CSS **********/

.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  font-weight: 600;
  transition: 0.5s;
  border-radius: 50px;
}

.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: inherit;
}

.btn-primary {
  color: var(--bs-white);
}

/*** Navbar ***/
.nav-logo {
  width: 70px;
  height: 70px;
}

.logo {
  font-size: 1.25rem;
}

.navbar {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 9;
  transition: 0.5s;
}

.navbar .navbar-nav .nav-link {
  margin-right: 25px;
  padding: 40px 0;
  color: var(--bs-white);
  font-size: 17px;
  text-transform: uppercase;
  outline: none;
  transition: 0.5s;
}

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

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

  .navbar .navbar-nav {
    margin-top: 8px;
    border-top: 1px solid var(--bs-light);
  }
}

@media (max-width: 425px) {
  .nav-logo {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 375px) {
  .nav-logo {
    display: none;
  }
}

@media (min-width: 992px) {
  .navbar.bg-dark .navbar-nav .nav-link {
    padding: 20px 0;
  }

  .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;
  }
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

/*** Header ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding-top: 100px;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.carousel-caption p {
  max-width: 1100px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}

@media (min-width: 1024px) {
  .carousel-caption p {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 550px;
  }

  .carousel-caption p {
    max-width: 500px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.page-header {
  padding-top: 200px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../img/carousel-1.jpg) top center no-repeat;
  background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--bs-white);
}

/*** Title ***/
.title {
  margin-bottom: 2rem;
}

.title .title-left,
.title .title-center,
.title .title-right {
  display: inline-block;
  text-transform: uppercase;
  overflow: hidden;
}

.title .title-center {
  text-align: center;
}

.title .title-right {
  text-align: right;
}

.title .title-left h5,
.title .title-center h5,
.title .title-right h5 {
  position: relative;
  display: inline-block;
  font-size: 18px;
  font-weight: 300;
}

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
  position: absolute;
  content: "";
  width: 500%;
  height: 0;
  top: 9px;
  border-bottom: 1px solid var(--bs-white);
}

.title .title-left h5::after,
.title .title-center h5::after {
  left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
  right: calc(100% + 15px);
}

.title .title-left h1,
.title .title-center h1,
.title .title-right h1 {
  border-bottom: 1px solid var(--bs-white);
}

.display-1 {
  text-transform: initial;
}

/*** Service ***/
.service-item {
  position: relative;
  margin-top: 2.5rem;
  overflow: hidden;
}

.service-item .service-img {
  position: relative;
  display: inline-block;
}

.service-item .service-img::before {
  position: absolute;
  content: "";
  width: calc(100% - 12rem);
  height: calc(100% - 12rem);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3rem solid rgba(0, 0, 0, 0.5);
  border-radius: 300px;
  z-index: 1;
}

.service-item.service-item-left {
  border-radius: 500px 0 0 500px;
  background: linear-gradient(to right, var(--bs-secondary), var(--bs-dark));
}

.service-item.service-item-right {
  border-radius: 0 500px 500px 0;
  background: linear-gradient(to left, var(--bs-secondary), var(--bs-dark));
}

@media (max-width: 767.98px) {
  .service-item.service-item-left,
  .service-item.service-item-right {
    border-radius: 500px 500px 0 0;
    background: linear-gradient(to bottom, var(--bs-secondary), var(--bs-dark));
    text-align: center;
  }
}

.newsletter-form {
  align-items: center;
  justify-content: center;
}

/*** Team ***/
.team-item {
  position: relative;
}

.team-item .team-name {
  position: absolute;
  width: 100%;
  height: 60px;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}

.team-item .team-body {
  position: relative;
  overflow: hidden;
}

.team-item .team-body .team-before,
.team-item .team-body .team-after {
  position: absolute;
  content: "";
  width: 0;
  height: calc(100% - 60px);
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: 0.5s;
}

.team-item .team-body .team-after {
  left: auto;
  right: 0;
}

.team-item .team-body .team-before {
  text-align: right;
}

.team-item:hover .team-body .team-before,
.team-item:hover .team-body .team-after {
  width: 50%;
}

.team-item .team-body .team-before span,
.team-item .team-body .team-after span {
  margin: 5px;
  color: var(--bs-white);
  opacity: 0;
  transition: 0.5s;
}

.team-item:hover .team-body .team-before span,
.team-item:hover .team-body .team-after span {
  opacity: 1;
  transition-delay: 0.2s;
}

/*** Testimonial ***/
.testimonial-carousel {
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-carousel .owl-dots {
  margin-top: 35px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
  width: 60px;
  height: 60px;
  margin: 0 5px;
  padding: 10px;
  background: var(--bs-dark);
  border-radius: 100px;
  transition: 0.5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
  width: 100px;
  height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
  opacity: 0.1;
  transition: 0.5s;
  border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
  opacity: 1;
}

.plan-container {
  display: grid;
  justify-content: center;
  grid-auto-flow: column;
  place-content: center;
  gap: 2rem;
}

.plan {
  --border-radius: 0.75rem;
  --spacing-horizontal: 2rem;
  --bg-color: #333;
  --bg-alternation: rgba(0, 0, 0, 0.05);
  --fg-color: rgba(0, 0, 0, 0.9);
  --size: 20rem;

  position: relative;
  background: var(--bg-color);
  color: white;
  width: var(--size);
  border-radius: var(--border-radius);
  display: grid;
  grid-auto-flow: row;
  font-weight: 500;
  box-shadow: 4px 8px 16px 0px var(--fg-color);
}

.plan--basic {
  --hi-primary: rgb(0, 255, 157);
  --hi-secondary: rgb(0, 199, 255);
}

.plan--professional {
  --hi-primary: rgb(255, 203, 33);
  --hi-secondary: rgb(255, 0, 171);
}

.plan--premium {
  --hi-primary: rgb(0, 173, 255);
  --hi-secondary: rgb(230, 0, 201);
}

.plan-header {
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.plan-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    -45deg,
    var(--hi-secondary) 25%,
    var(--hi-primary) 60%
  );
  z-index: -1;
}

.plan-header h1 {
  padding: 1.5rem 0;
  color: var(--bg-color);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
}

.plan-price {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  margin-bottom: 1rem;
  color: #333;
}

.plan-price > * {
  display: flex;
  align-content: middle;
  font-weight: 400;
}

.plan-price .dollar {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  align-items: flex-end;
}

.plan-price .int {
  font-size: 3rem;
  line-height: 2.5rem;
}

.plan-price .currency {
  font-size: 1rem;
}

.plan-description {
  padding: 1rem var(--spacing-horizontal);
  margin: 1rem 0rem;
  font-size: 0.75rem;
  text-align: center;
  position: relative;
}

.plan-description::before,
.plan-description::after {
  content: "";
  position: absolute;
  left: var(--spacing-horizontal);
  right: var(--spacing-horizontal);
  height: 2px;

  background: linear-gradient(90deg, var(--hi-primary), var(--hi-secondary));
}

.plan-description::before {
  top: 0%;
}

.plan-description::after {
  top: 100%;
}

.plan-features {
  list-style-type: none;
  margin-bottom: 1rem;
}

.plan-features li {
  padding: 0.5rem var(--spacing-horizontal);
}

.plan-features li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--hi-primary);
  margin-right: 0.5rem;
  visibility: hidden;
}

.plan-features li.plan-active::before {
  visibility: visible;
}

.plan-features li:nth-child(2n) {
  background-color: var(--bg-alternation);
}

.plan-btn {
  display: flex;
  align-self: center;
  justify-self: center;
  width: max-content;
  margin: 1.5rem 0;
}

.best-value {
  position: absolute;
  z-index: 2;
  top: -0.2rem;
  right: var(--border-radius);
  color: gold;
  filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.5));
}

.best-value > * {
  padding: 1rem 0.5rem;
  background: linear-gradient(-45deg, #101010, #2b2b2b);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 0.5rem), 0 100%);
}

@media (max-width: 1024px) {
  .plan {
    width: 15rem;
  }
}

@media (max-width: 768px) {
  .plan-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .plan {
    width: 30rem;
  }
}

@media (max-width: 650px) {
  .plan {
    width: 100%;
  }
}
/*** Footer ***/
@keyframes footerAnimatedBg {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: -1000px 0;
  }
}

.footer {
  background-image: url(../img/footer-bg.png);
  background-position: 0px 0px;
  background-repeat: repeat-x;
  animation: footerAnimatedBg 40s linear infinite;
}
