/********** Template CSS **********/
:root {
  --primary: #eb1616;
  --secondary: #191c24;
  --light: #6c7293;
  --dark: #000000;
}

.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: 500;
  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;
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 10px 2px rgba(0, 128, 128, 0),
      inset 0 0 6px 1px rgba(0, 128, 128, 0);
  }
  50% {
    box-shadow: 0 0 20px 8px rgba(0, 128, 128, 0.7),
      inset 0 0 12px 3px rgba(0, 128, 128, 0.5);
  }
}

#navbarCollapse {
  position: absolute;
  top: 100%;
  right: 1rem;
  background-color: rgba(40, 40, 40, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1050;
  border-radius: 0 !important;

  max-height: 400px;
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  overflow: hidden;
  padding: 0.5rem 1rem;

  white-space: nowrap;
  min-width: 180px;
  width: max-content;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  border: none !important;
}

#navbarCollapse.collapse.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: glowPulse 1.5s ease forwards;
}

.custom-toggler {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  padding: 0;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none !important;
  cursor: pointer;
  border-radius: 0;

  /* Red shadow on all edges */
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

.custom-toggler::before {
  display: none;
}

.custom-toggler:focus {
  outline: none !important;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
  border: none !important;
}

.custom-toggler .navbar-toggler-icon {
  transition: opacity 0.2s ease-in-out !important;
  transition-delay: 0s !important;
}

.custom-toggler .cross-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2.5px;
  background-color: red;
  border-radius: 1.5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(0deg) scale(0.9);
  transition: opacity 0.25s ease-in-out, transform 0.3s ease-in-out;
}

.custom-toggler:not(.collapsed) .line1 {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
  transition-delay: 0s !important;
}

.custom-toggler:not(.collapsed) .line2 {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(-45deg) scale(1);
  transition-delay: 0s !important;
}

.custom-toggler:not(.collapsed) .navbar-toggler-icon {
  opacity: 0;
  transition-delay: 0s !important;
}

.custom-toggler.collapsed .navbar-toggler-icon {
  opacity: 1;
  transition-delay: 0s !important;
}

@media (min-width: 992px) {
  .navbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  #navbarCollapse {
    all: unset;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
    position: static !important;
    width: auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    max-height: none !important;
    box-shadow: none !important;
    animation: none !important;
    padding: 0 !important;
    border: none !important;
  }

  .navbar-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto !important;
    flex-wrap: wrap;
    gap: 30px;
  }

  .navbar-nav .nav-link {
    padding: 20px 0 !important;
    white-space: nowrap;
  }

  .navbar .btn {
    margin-left: 20px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .custom-toggler::before {
    display: none;
  }
}

.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 2030 !important;
  background-color: #000 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.85) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

/*** Header ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 450px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

/*** Service ***/
.service-item .btn {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 50px;
  height: 50px;
  color: var(--primary);
  background: var(--dark);
  opacity: 0;
}

.service-item:hover .btn {
  right: 0;
  bottom: 0;
  opacity: 1;
}

/*** Team ***/
.team-item .team-img::before,
.team-item .team-img::after {
  position: absolute;
  content: "";
  width: 0;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.85);
  transition: 0.5s;
}

.team-item .team-img::after {
  left: auto;
  right: 0;
}

.team-item:hover .team-img::before,
.team-item:hover .team-img::after {
  width: 50%;
}

.team-item .team-img .team-social {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  z-index: 3;
  opacity: 0;
}

.team-item:hover .team-img .team-social {
  transition-delay: 0.3s;
  opacity: 1;
}

.team-item .team-social .btn {
  display: inline-flex;
  margin: 0 3px;
  color: var(--primary);
  background: var(--dark);
}

.team-item .team-social .btn:hover {
  color: #ffffff;
  background: var(--primary);
}

/*** 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(--secondary);
  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;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
  opacity: 1;
}

/*** Footer ***/
.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: var(--light);
  font-size: 15px;
  font-weight: normal;
  text-transform: capitalize;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--primary);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .copyright {
  padding: 1.5rem;
  font-size: 15px;
  background: var(--dark);
}

.footer .copyright a {
  color: var(--light);
}

.footer .copyright a:hover {
  color: var(--primary);
}
