/********** Template CSS **********/
:root {
  --primary: #5fde4c;
  --secondary: #0011649a;
  --light: #f6f7f8;
  --dark: #010a35;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}
textarea {
  resize: none;
}

/*** 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;
}

/* slide logo text */
nav {
  background: #333;
  padding: 1rem;
}

.logo {
  color: white;
  font-size: 24px;
  width: 250px;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid white; /* cursor effect */
  box-shadow: 2px 2px 2px 2px rgba(83, 70, 70, 0.274);
  /* margin-bottom: 20px; */
  height: 85px;
  padding-left: 25px;
}

.btn-call {
  position: relative;
  padding: 8px 10px !important;
  background: var(--primary);
  color: #fff !important;
  font-size: 18px;
  border: 2px solid #00bcd4; /* base border */
  cursor: pointer;
  overflow: hidden;
  transition: color 0.4s ease;
  box-shadow: 1px 2px 2px 2px rgba(83, 70, 70, 0.274);
}

.btn-call::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #00bbd445;
  transition: left 0.4s ease;
  z-index: 0;
}

.btn-call:hover::before {
  left: 0;
}

.btn-call:hover {
  color: #fff !important; /* text color changes when hover */
}

.btn-call {
  z-index: 1;
}

/*** Button ***/
.btn {
  transition: 0.5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover,
.btn.btn-secondary,
.btn.btn-outline-secondary:hover {
  color: #ffffff;
}

.btn.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  border-radius: 15px;
}

.btn.btn-secondary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.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;
}

.logo-air-cond {
  color: rgb(76, 222, 110);
}

/* Call Now Button Styles */
.play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(#72a36f89 50%, rgba(18, 206, 168, 0.148) 52%);
  border-radius: 50%;
  display: flex;
  justify-content: center; /* Center the icon horizontally */
  align-items: center; /* Center the icon vertically */
  position: fixed;
  right: 30px; /* Positioned on the right side */
  bottom: 30px; /* Positioned near the bottom of the page */
  z-index: 9999;
  cursor: pointer;
  border: 5px solid rgba(62, 206, 18, 0.495); /* Border with initial color */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Slight shadow for depth */
  animation: pulsate-btn 2s infinite ease-in-out; /* Pulsating effect on button */
}

/* Icon Styling */
.play-btn i {
  color: rgb(24, 176, 42) !important; /* Icon color */
  font-size: 40px !important; /* Adjust icon size */
  transition: transform 0.3s ease; /* Smooth transition for icon */
}

/* Hover effect - Icon and scale animation */
.play-btn:hover {
  transform: scale(1.1); /* Slightly enlarge the button */
  background-color: #f9fcf9f9; /* Darker shade on hover */
}

/* Hover effect for icon */
.play-btn:hover i {
  transform: scale(1.2); /* Slightly enlarge the icon on hover */
}

/* Focus effect (when clicked or tapped) */
.play-btn:focus {
  outline: none; /* Remove default focus outline */
  box-shadow: 0 0 10px rgba(255, 87, 34, 0.6); /* Focus ring for accessibility */
}

/* Active button effect (shrinks when clicked) */
.play-btn:active {
  transform: scale(0.95); /* Shrinks slightly on click */
}

/* Pulsating animation for button */
@keyframes pulsate-btn {
  0% {
    transform: scale(0.9); /* Start small */
    opacity: 1;
    border-width: 5px; /* Initial border size */
  }
  50% {
    transform: scale(1.1); /* Grow slightly */
    opacity: 0.8;
    border-width: 8px; /* Increase border width */
  }
  100% {
    transform: scale(0.9); /* Shrink back to start size */
    opacity: 1;
    border-width: 5px; /* Return to original border size */
  }
}

.span-customer {
  display: flex;
  text-align: center;
  justify-content: center;
}

/*** Navbar ***/
.navbar.sticky-top {
  top: -100px;
  transition: 0.5s;
}

.navbar .navbar-brand img {
  max-height: 100px;
}

.navbar .navbar-nav .nav-link {
  margin-left: 25px;
  padding: 10px 0;
  color: #696e77;
  font-weight: 400;
  outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  vertical-align: middle;
  margin-left: 8px;
}

.carousel-item img {
  height: 90vh;
  width: 100%;
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .navbar .navbar-brand img {
    max-height: 45px;
  }

  .navbar .navbar-nav {
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .navbar .nav-item .dropdown-menu {
    padding-left: 30px;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(1, 5, 53, 0.701);
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--dark);
  border: 12px solid var(--dark);
  border-radius: 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(1, 10, 53, 0.8), rgba(1, 10, 53, 0.8)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--light);
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
  color: var(--primary);
}

.service-img-dev img {
  height: 500px;
  background-size: cover;
  object-fit: cover;
  object-position: bottom;
}
/*** Facts ***/
.facts {
  position: relative;
}

.facts * {
  position: relative;
  z-index: 1;
}

.facts::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(1, 10, 53, 0.8);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-item {
  overflow: hidden;
  height: 180px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*** Quote ***/
@media (min-width: 992px) {
  .container.quote {
    max-width: 100% !important;
  }

  .container.quote .quote-text {
    padding-left: calc(((100% - 960px) / 2) + 0.75rem);
  }

  .container.quote .quote-form {
    padding-right: calc(((100% - 960px) / 2) + 0.75rem);
  }
}

@media (min-width: 1200px) {
  .container.quote .quote-text {
    padding-left: calc(((100% - 1140px) / 2) + 0.75rem);
  }

  .container.quote .quote-form {
    padding-right: calc(((100% - 1140px) / 2) + 0.75rem);
  }
}

@media (min-width: 1400px) {
  .container.quote .quote-text {
    padding-left: calc(((100% - 1320px) / 2) + 0.75rem);
  }

  .container.quote .quote-form {
    padding-right: calc(((100% - 1320px) / 2) + 0.75rem);
  }
}

.container.quote .quote-text,
.container.quote .quote-form {
  position: relative;
}

.container.quote .quote-text *,
.container.quote .quote-form * {
  position: relative;
  z-index: 1;
}

.container.quote .quote-text::after,
.container.quote .quote-form::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.container.quote .quote-text::after {
  background: rgba(1, 10, 53, 0.8);
}

.container.quote .quote-form::after {
  background: rgba(255, 255, 255, 0.8);
}

.container.quote .quote-text .h-100,
.container.quote .quote-form .h-100 {
  padding: 6rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/*** Service ***/
.service-item .service-icon {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-item .service-icon img {
  max-width: 60px;
  max-height: 60px;
}

.animated.pulse {
  animation-duration: 1.5s;
}

.testimonial-left,
.testimonial-right {
  position: relative;
}

.testimonial-left img,
.testimonial-right img {
  position: absolute;
  border-radius: 70px;
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
  width: 70px;
  height: 70px;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
  width: 50px;
  height: 50px;
  bottom: 10%;
  right: 10%;
}

.testimonial-carousel .owl-item img {
  width: 100px;
  height: 100px;
  border-radius: 100px;
}

.testimonial-carousel .owl-nav {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  margin: 0 5px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary);
  border-radius: 45px;
  font-size: 22px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  background: var(--secondary);
}

/*** Footer ***/
.footer {
  color: #7f8499;
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: #7f8499;
  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;
  color: #7f8499;
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--primary);
  letter-spacing: 1px;
  box-shadow: none;
}

.footer .btn.btn-square {
  color: #7f8499;
  border: 1px solid #7f8499;
}

.footer .btn.btn-square:hover {
  color: var(--light);
  border-color: var(--primary);
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid rgba(256, 256, 256, 0.1);
}

.footer .copyright a {
  color: var(--primary);
}

.footer .copyright a:hover {
  color: #ffffff;
}

@media (max-width: 391px) {
  .logo {
    width: 180px !important;
    font-size: 15px;
  }
}
@media (max-width: 321px) {
  .logo {
    width: 100px;
  }
}
@media (max-width: 415px) {
  .logo {
    width: 378px;
  }
}
@media (max-width: 575px) {
  .logo {
    /* color: white; */
    font-size: 20px;
    width: 200px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid white;
    box-shadow: 2px 2px 2px 2px rgba(83, 70, 70, 0.274);
    height: 85px;
    padding-left: 11px;
    padding-top: 15px;
  }
  .logo span.text-dark {
    font-size: 60px;
    color: red;
  }
  .logo-img {
    display: none;
  }
}
