/********** 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);
}

/* Global img reset — but DON'T override height on position-absolute imgs
   (e.g. the about section image uses h-100 which needs height:100%) */
img:not(.position-absolute) {
  max-width: 100%;
  height: auto;
}
/* Ensure position-absolute images still cap their width */
img.position-absolute {
  max-width: none;
}
/* About section image fix */
.about-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}
.about-img-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
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
   bottom: 80px keeps the FAB clearly above the copyright footer strip (~54px tall)
   so it never overlaps the "Developed by Infotecsys" text.                       */
.wa-chat {
  position: fixed;
  right: 24px;
  bottom: 80px;          /* was 18px – raised to clear the footer bar */
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 767.98px) {
  .wa-chat {
    right: 16px;
    bottom: 72px;        /* slightly less on mobile where footer is taller */
  }
}

/* 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;
  }
}

/* =========================================================
   SKIP NAVIGATION LINK (W3C / WCAG Accessibility)
   ========================================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
  font-size: 0.9rem;
}
.skip-link:focus { top: 0; }

/* =========================================================
   PAGE HEADER BANNER (About / Services / Contact inner pages)
   ========================================================= */
.page-header-banner {
  background: linear-gradient(rgba(4,15,40,0.80), rgba(4,15,40,0.80)),
              url('../img/Carousel_1.jpeg') center/cover no-repeat;
  min-height: clamp(150px, 26vw, 290px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.page-header-banner h1 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.page-header-banner .breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.page-header-banner .breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
}
.page-header-banner .breadcrumb-item.active { color: rgba(255,255,255,0.75); }
.page-header-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.45); }

/* =========================================================
   FLUID TYPOGRAPHY OVERRIDES
   ========================================================= */
.display-5 { font-size: clamp(1.5rem, 3.5vw, 2.5rem) !important; }
.display-2 { font-size: clamp(1.8rem, 5vw, 3.5rem) !important; }

/* =========================================================
   STATS STRIP (About page)
   ========================================================= */
.stats-strip {
  background: var(--primary);
  padding: clamp(28px, 4vw, 50px) clamp(16px, 4vw, 80px);
}
.stats-strip .stat-item h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.stats-strip .stat-item p {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  margin: 0;
  font-size: 0.95rem;
}

/* =========================================================
   WHY CHOOSE US CARDS (About page)
   ========================================================= */
.why-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
  height: 100%;
}
.why-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.10); }
.why-card i { font-size: 2.4rem; color: var(--primary); margin-bottom: 14px; display: block; }
.why-card h5 { font-weight: 700; text-transform: uppercase; font-size: 0.93rem; letter-spacing: 0.5px; }

/* =========================================================
   SERVICE DETAIL CARDS (Services page)
   ========================================================= */
.service-detail-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-detail-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,0.10); }
.service-detail-card img { width: 100%; height: 200px; object-fit: cover; }
.service-detail-card .card-body { padding: 24px; flex: 1; }
.service-detail-card .card-body h3 {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-detail-card .card-body ul { padding-left: 18px; margin-bottom: 14px; }
.service-detail-card .card-body ul li { font-size: 0.87rem; color: #555; margin-bottom: 4px; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-info-card {
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
  height: 100%;
}
.contact-info-card .ci-label {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 2px;
}
.contact-info-card .ci-value {
  color: rgba(255,255,255,0.84);
  margin-bottom: 22px;
  font-size: 0.95rem;
}
.contact-info-card a { color: rgba(255,255,255,0.84); text-decoration: none; }
.contact-info-card a:hover { color: var(--primary); }

.map-wrapper { border-radius: 8px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,0.13); }
.map-wrapper iframe { width: 100%; height: clamp(260px, 40vw, 420px); border: 0; display: block; }

/* =========================================================
   CTA STRIP
   ========================================================= */
.cta-strip {
  background: linear-gradient(135deg, #010714 60%, #1a1a2e 100%);
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 80px);
}
.cta-strip h2 { font-size: clamp(1.35rem, 3vw, 2rem); color: #fff; font-weight: 700; }
.cta-strip p { color: rgba(255,255,255,0.75); font-size: 1rem; }

/* =========================================================
   EXTRA RESPONSIVE FIXES
   ========================================================= */
@media (max-width: 991.98px) {
  .stats-strip .stat-item { margin-bottom: 20px; }
}
@media (max-width: 767.98px) {
  .contact-info-card { margin-bottom: 24px; }
  .page-header-banner { min-height: 130px; }
  .cta-strip { text-align: center; }
}
@media (max-width: 575.98px) {
  .why-card { margin-bottom: 14px; }
  .service-detail-card { margin-bottom: 14px; }
  .service-item { margin-bottom: 14px; }
}
