/********** Template CSS **********/
:root {
  --primary: #f3525a;
  --secondary: #f6f6f6;
  --light: #ffffff;
  --dark: #152440;
}

h1,
h2,
.font-weight-bold {
  font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
  font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
  font-weight: 500 !important;
}

.pt-6 {
  padding-top: 90px;
}

.pb-6 {
  padding-bottom: 90px;
}

.py-6 {
  padding-top: 90px;
  padding-bottom: 90px;
}

.btn {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  transition: 0.5s;
}

.btn-primary {
  color: #ffffff;
  background: #31bdc3 !important;
  border: 1px solid #31bdc3 !important;
}

.componets-item li{
padding-bottom: 10px;
}

.bgimg {
  background: #31bdc3 !important;
}

.bgp {
  width: 100%;
  background: url(../img/bg.jpg);
  margin: 0 0 54px 0;
}
.footbg {
  background: #2cbbc1;
}
.footbg a {
  color: #fff !important;
}

.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 {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}

.top-shape::before {
  position: absolute;
  content: "";
  width: 35px;
  height: 100%;
  top: 0;
  left: -17px;
  background: var(--primary);
  transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
  font-family: "Barlow", sans-serif;
  padding: 35px 15px;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--dark);
  outline: none;
  transition: 0.5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
  padding: 20px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    padding: 10px 0;
  }
}

.carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(21, 36, 64, 0.7);
  z-index: 1;
}

@media (max-width: 576px) {
  .carousel-caption h5 {
    font-size: 14px;
    font-weight: 500 !important;
  }

  .carousel-caption h1 {
    font-size: 30px;
    font-weight: 600 !important;
  }
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
}

.service-item {
  position: relative;
  overflow: hidden;
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.service-item::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 50px;
  bottom: -50px;
  left: 0;
  background: var(--light);
  border-radius: 100% 100% 0 0;
  box-shadow: 0px -10px 5px #eeeeee;
  transition: 0.5s;
}

.service-item:hover::after {
  bottom: -25px;
}

.service-item p {
  transition: 0.3s;
}

.service-item:hover p {
  margin-bottom: 25px !important;
}

.team-item img {
  transform: scale(1.15);
  margin-left: -30px;
  transition: 0.5s;
}

.team-item:hover img {
  margin-left: 0;
}

.team-item .team-text {
  left: -100%;
  transition: 0.5s;
}

.team-item .team-text::after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  top: 50%;
  right: -60px;
  margin-top: -30px;
  border: 30px solid;
  border-color: transparent transparent transparent var(--primary);
}

.team-item:hover .team-text {
  left: 0;
}

.testimonial-carousel .owl-nav {
  margin-top: 30px;
  display: flex;
  justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  position: relative;
  margin: 0 5px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary);
  font-size: 22px;
  border-radius: 45px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--dark);
}

.testimonial-carousel .owl-item img {
  width: 90px;
  height: 90px;
}

.blog-item img {
  transition: 0.5s;
}

.blog-item:hover img {
  transform: scale(1.1);
}

@media only screen and (min-width: 200px) and (max-width: 768px) {
  .navbar img {
    width: 50%;
  }
  .navbar-toggler {
    float: right !important;
    position: absolute;
    right: 10px;
  }
  .bgp {
    width: 100%;
    background: #f7f7f7;
  }
}

/* -------background start---------- */
.background {
  padding-bottom: 50px !important;
  background: red !important;
  padding: 10px;
}
/* -------background- end---------- */




/* Overlay background */
/* ========== POPUP OVERLAY ========== */
/* ========== POPUP OVERLAY ========== */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  display: none; /* hidden by default */

  /*  Center popup with flex */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========== POPUP BOX ========== */
.popup-box {
  background: #fff;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;       /* keep it big but inside viewport */
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  z-index: 1000;
  animation: popupZoom 0.35s ease forwards;
  overflow: hidden;
  position: relative;

  display: flex;
  flex-direction: column;
}

/* For the content wrapper */
.popup-content {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: auto;
}

/* Force iframe to fill full popup height */
.popup-content iframe {
  width: 100%;
  height: 100%;       /*  fill parent height */
  min-height: 80vh;   /*  ensure it’s tall enough */
  border: none;
  display: block;
}

/* Images should auto-scale */
.popup-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== CLOSE BUTTON ========== */
.close-btn {
  position: absolute;
  top: 10px; 
  right: 15px;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1100;
}

.close-btn:hover {
  color: #000;
}

/* ========== ANIMATION ========== */
@keyframes popupZoom {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ========== TESTIMONIAL LIST ========== */
.popup-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 100%;
  text-align: left;
}

.popup-list li {
  background: #fff;
  margin: 12px 0;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  position: relative;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.popup-list li i {
  margin-right: 10px;
  color: #2575fc;
}

.popup-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #f9f9f9, #eef5ff);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 480px) {
  .popup-box {
    width: 100%;
    max-height: 85vh;
    border-radius: 10px;
  }
  .close-btn {
    font-size: 24px;
    top: 8px; right: 12px;
  }
  .popup-list li {
    font-size: 16px;
    padding: 12px 16px;
  }
}

/* Mobile full-screen popup */
@media (max-width: 600px) {
  .popup-box {
    width: 100%;
    height: 95vh;        /* almost full screen */
    max-width: none;
    max-height: none;
    border-radius: 8px;
  }

  .popup-content {
    height: 100%;
    overflow: auto;      /* scroll inside on small screens */
  }

  .popup-content iframe {
    height: 100%;        /* force PDF to fill */
    min-height: auto;    /* reset min-height */
  }

  .popup-content img {
    max-height: 100%;    /* prevent overflow */
    object-fit: contain;
  }
}


/* homepage modal css */

/* ================= INDEX WELCOME MODAL ================= */
/* Overlay */
.dumbBoxWrap {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.dumbBoxOverlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.75); /* darker overlay */
  z-index: 10001;
}

/* Popup Box */
.dumbBox {
  width: 500px;
  max-width: 90%;
  max-height: 80vh;
  background: #ffffff;
  border-radius: 15px;
  position: relative;
  z-index: 10002;

  /* 3D shadow for depth */
  box-shadow: 0 25px 50px rgba(0,0,0,0.4), inset 0 4px 12px rgba(255,255,255,0.5);

  display: flex;
  flex-direction: column;
  text-align: center;

  overflow: visible; /* allows close button to float outside */
}

/* Title Bar */
.dumbBoxTitle {
  background: linear-gradient(135deg, #31bdc3, #1ca7a8);
  padding: 20px;
  border-radius: 15px 15px 0 0;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.2);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.dumbBoxTitle h2 {
  margin: 0;
  color: #fff;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3), 0 0 5px rgba(255,255,255,0.2);
  text-align: center;
}

/* Scrollable content */
.dumbBoxContent {
  padding: 20px 25px 25px 25px;
  overflow-y: auto;
  max-height: calc(80vh - 80px); /* subtract title bar height */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Paragraph */
.dumbBoxContent p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 20px;
}

/* Button */
.dumbBoxContent .btn {
  background: linear-gradient(135deg, #31bdc3, #1ca7a8);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 20px; /* extra margin below */
}

.dumbBoxContent .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* Close Button - floating outside top-right corner */
#closeModal {
  position: absolute;
  top: -20px;          /* outside the popup */
  right: -20px;        /* outside the popup */
  font-size: 28px;
  color: #fff;
  background: linear-gradient(135deg, #f3525a, #f87676);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 10003;
  transition: transform 0.3s, box-shadow 0.3s;
}

#closeModal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .dumbBox {
    width: 95%;
    max-height: 85vh;
  }
  .dumbBoxTitle {
    padding: 15px;
  }
  #closeModal {
    top: -16px;
    right: -16px;
    font-size: 28px;
    width: 36px;
    height: 36px;
    line-height: 36px;
  }
  .dumbBoxContent .btn {
    margin-bottom: 15px;
  }
}
