/********** Template CSS **********/
:root {
  --primary: #f8580e;
  --secondary: #fab92d;
  --light: #ffffff;
  --dark: #010714;
}

/* Layout helpers */
.pt-6 {
  padding-top: 90px;
}
.pb-6 {
  padding-bottom: 90px;
}
.py-6 {
  padding-top: 40px;
  padding-bottom: 90px;
}
@media (max-width: 576px) {
  /* tighter on phones */
  .py-6 {
    padding-top: 32px;
    padding-bottom: 64px;
  }
}

/* Buttons */
.btn {
  position: relative;
  font-weight: 600;
  text-transform: uppercase;
  transition: 0.5s;
}
.btn::after {
  position: absolute;
  content: "";
  width: 0;
  height: 5px;
  bottom: -1px;
  left: 50%;
  background: var(--primary);
  transition: 0.5s;
}
.btn.btn-primary::after {
  background: var(--dark);
}
.btn:hover::after,
.btn.active::after {
  width: 50%;
  left: 25%;
}
.btn-primary {
  color: #fff;
}
.btn-square {
  width: 36px;
  height: 36px;
}
.btn-sm-square {
  width: 28px;
  height: 28px;
}
.btn-lg-square {
  width: 46px;
  height: 46px;
}
.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

/* Back to top (base, mobile color variant is handled inline style tag) */
.back-to-top {
  position: fixed;
  display: none;
  left: 22px;
  bottom: 0;
  border-radius: 50px;
  z-index: 99;
  background-color: var(--primary);
  color: #fff;
}

/* Backgrounds */
.bg-dark-radial {
  background-image: repeating-radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.3) 1px,
    transparent 1px,
    transparent 100%
  );
  background-size: 3px 3px;
}
.bg-light-radial {
  background-image: repeating-radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.2) 1px,
    transparent 1px,
    transparent 100%
  );
  background-size: 3px 3px;
}

/* Navbar */
.navbar-dark .navbar-nav .nav-link {
  position: relative;
  padding: 35px 15px;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--light);
  outline: 0;
  transition: 0.5s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary);
}
@media (max-width: 991.98px) {
  .navbar-dark .navbar-nav .nav-link {
    margin-left: 0;
    padding: 10px 0;
  }
}

/* Carousel */
.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 15, 40, 0.7);
  z-index: 1;
}
@media (max-width: 576px) {
  .carousel-caption h4 {
    font-size: 18px;
    font-weight: 500 !important;
  }
  .carousel-caption h1 {
    font-size: 30px;
    font-weight: 600 !important;
  }
}

/* Page header (if used elsewhere) */
.page-header {
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(4, 15, 40, 0.7), rgba(4, 15, 40, 0.7)),
    url(../img/carousel-1.jpg) center/cover no-repeat;
}

/* Services */
.service-item .service-icon {
  margin-top: -50px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
}
.service-item .service-icon i {
  transition: 0.2s;
}
.service-item:hover .service-icon i {
  font-size: 60px;
}

/* Portfolio */
.portfolio-item {
  margin-bottom: 60px;
}
.portfolio-title {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 120px;
  padding: 0 30px;
  right: 30px;
  left: 30px;
  bottom: -60px;
  background: #fff;
  z-index: 3;
}
.portfolio-btn {
  position: absolute;
  display: inline-block;
  top: 50%;
  left: 50%;
  margin-top: -60px;
  margin-left: -60px;
  font-size: 120px;
  line-height: 0;
  transition: 0.1s;
  transition-delay: 0.3s;
  z-index: 2;
  opacity: 0;
}
.portfolio-item:hover .portfolio-btn {
  opacity: 1;
}
.portfolio-box::before,
.portfolio-box::after {
  position: absolute;
  content: "";
  width: 0;
  height: 100%;
  top: 0;
  transition: 0.5s;
  z-index: 1;
  background: rgba(4, 15, 40, 0.7);
}
.portfolio-box::before {
  left: 0;
}
.portfolio-box::after {
  right: 0;
}
.portfolio-item:hover .portfolio-box::before {
  left: 0;
  width: 50%;
}
.portfolio-item:hover .portfolio-box::after {
  right: 0;
  width: 50%;
}

/* Testimonial/contact layout nudge on large screens */
@media (min-width: 992px) {
  .testimonial,
  .contact-form {
    margin-left: -90px;
  }
}

/* Footer divider on lg+ */
@media (min-width: 992px) {
  .footer::after {
    position: absolute;
    content: "";
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    background: var(--primary);
  }
}
.footer-shape::before {
  position: absolute;
  content: "";
  width: 80px;
  height: 100%;
  top: 0;
  left: -40px;
  background: var(--primary);
  transform: skew(40deg);
}

/* --- Additional mobile polish --- */
img {
  max-width: 100%;
  height: auto;
}
textarea.form-control {
  min-height: 140px;
}
@media (max-width: 576px) {
  .btn {
    font-size: 0.9rem;
  }
  .form-control {
    height: 48px !important;
  }
  .display-2 {
    font-size: 2rem;
  }
  h1.display-5 {
    font-size: 1.75rem;
  }
}

/* WhatsApp chat widget */
.wa-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Round WhatsApp FAB */
.wa-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.12);
}
.wa-fab i {
  font-size: 28px;
  line-height: 1;
}

/* “Chat with us” pill */
.wa-tooltip {
  position: relative;
  background: #fff;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  padding: 10px 16px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12), inset 0 -5px 0 #1bd741; /* green bar at bottom */
  font-weight: 600;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.wa-tip-link {
  color: #111;
  text-decoration: none;
  display: block;
  padding: 0 6px;
}
.wa-tip-link:hover {
  text-decoration: underline;
}

/* Small black close bubble to the left */
.wa-close {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Hide the pill on small screens after first view */
@media (max-width: 575.98px) {
  .wa-tooltip {
    font-size: 0.9rem;
    padding: 8px 14px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12), inset 0 -4px 0 #1bd741;
  }
}
