/********** Template CSS **********/
:root {
  --primary: #f77d0a;
  --secondary: #2b2e4a;
  --light: #f4f5f8;
  --dark: #1c1e32;
}

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

.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: 30px;
  bottom: 30px;
  z-index: 99;
}

.nav-bar::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 50%;
  top: 0;
  left: 0;
  background: var(--dark);
}

.nav-bar::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 50%;
  bottom: 0;
  left: 0;
  background: #ffffff;
}

.navbar-dark .navbar-nav .nav-link {
  padding: 30px 15px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--light);
  outline: none;
}

.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 {
    padding: 10px 15px;
  }
}

/* ===== FULL HEIGHT CAROUSEL ON MOBILE ===== */

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    height: 100vh !important; /* Full screen height */
  }

  #header-carousel .carousel-item img {
    height: 100vh !important; /* Image takes full screen */
    width: 100%;
    object-fit: cover; /* Crop correctly */
    object-position: center;
  }

  .carousel-caption {
    padding: 20px !important;
    height: 100vh !important; /* Text overlay full height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    text-align: center;
  }

  .carousel-caption h1 {
    font-size: 32px !important;
  }

  .carousel-caption h4 {
    font-size: 18px !important;
  }

  .carousel-caption a.btn {
    padding: 10px 25px !important;
    font-size: 16px !important;
  }
}

/* Smaller phones */
@media (max-width: 480px) {
  .carousel-caption h1 {
    font-size: 26px !important;
  }

  .carousel-caption h4 {
    font-size: 15px !important;
  }
}

.page-header {
  height: 400px;
  margin-bottom: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(28, 30, 50, 0.9), rgba(28, 30, 50, 0.9)),
    url(../img/bg-banner.jpg);
  background-attachment: fixed;
}

@media (max-width: 991.98px) {
  .page-header {
    height: 300px;
  }
}
/* ===== PAGE HEADER SECTION - MOBILE RESPONSIVE ===== */
.page-header {
  height: 400px;
  margin-bottom: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(28, 30, 50, 0.9), rgba(28, 30, 50, 0.9)),
    url(../img/bg-banner.jpg);
  background-attachment: scroll; /* Changed from fixed for better mobile support */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Tablet devices */
@media (max-width: 991.98px) {
  .page-header {
    height: 300px;
    background-attachment: scroll;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .page-header {
    height: 250px;
    padding: 20px;
    background-attachment: scroll;
    background-position: center center;
  }

  .page-header h1 {
    font-size: 2rem !important; /* Smaller heading on mobile */
  }

  .page-header h6 {
    font-size: 0.875rem !important;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  .page-header {
    height: 200px;
    padding: 15px;
  }

  .page-header h1 {
    font-size: 1.75rem !important;
  }

  .page-header .d-inline-flex {
    font-size: 0.85rem;
  }
}

/* Very small devices */
@media (max-width: 400px) {
  .page-header {
    height: 180px;
  }

  .page-header h1 {
    font-size: 1.5rem !important;
  }
}
.service-item {
  height: 320px;
  background: var(--light);
  transition: 0.5s;
}

.service-item:hover,
.service-item.active {
  background: var(--secondary);
}

.service-item h1,
.service-item h4 {
  transition: 0.5s;
}

.service-item:hover h1,
.service-item.active h1 {
  color: var(--dark) !important;
}

.service-item:hover h4,
.service-item.active h4 {
  color: var(--light);
}

.rent-item {
  padding: 30px;
  text-align: center;
  background: var(--light);
  transition: 0.5s;
}

.rent-item:hover,
.rent-item.active {
  background: var(--secondary);
}

.rent-item h4 {
  transition: 0.5s;
}

.rent-item:hover h4,
.rent-item.active h4 {
  color: var(--light);
}

.team-item {
  padding: 30px 30px 0 30px;
  text-align: center;
  background: var(--light);
  transition: 0.5s;
}

.team-item:hover,
.owl-item.center .team-item {
  background: var(--secondary);
}

.team-item h4 {
  transition: 0.5s;
}

.owl-item.center .team-item h4,
.owl-item.center .rent-item h4 {
  color: var(--light);
}

.team-item .team-social {
  top: 0;
  left: 0;
  opacity: 0;
  transition: 0.5s;
  background: var(--light);
}

.owl-item.center .team-item .team-social,
.owl-item.center .rent-item {
  background: var(--secondary);
}

.team-item:hover .team-social {
  opacity: 1;
  background: var(--secondary);
}

.team-carousel .owl-nav,
.related-carousel .owl-nav {
  position: absolute;
  width: 100%;
  height: 60px;
  top: calc(50% - 30px);
  left: 0;
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next,
.related-carousel .owl-nav .owl-prev,
.related-carousel .owl-nav .owl-next {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary);
  font-size: 22px;
  transition: 0.5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover,
.related-carousel .owl-nav .owl-prev:hover,
.related-carousel .owl-nav .owl-next:hover {
  background: var(--secondary);
}

.vendor-carousel .owl-dots,
.testimonial-carousel .owl-dots {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vendor-carousel .owl-dot,
.testimonial-carousel .owl-dot {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  transition: 0.5s;
}

.vendor-carousel .owl-dot.active,
.testimonial-carousel .owl-dot.active {
  width: 40px;
  height: 40px;
  background: var(--primary);
}

.testimonial-carousel .owl-item img {
  width: 80px;
  height: 80px;
}

.testimonial-carousel .owl-item .testimonial-item {
  height: 350px;
  transition: 0.5s;
  background: var(--light);
}

.testimonial-carousel .owl-item.center .testimonial-item {
  background: var(--secondary);
}

.testimonial-carousel .owl-item .testimonial-item h1,
.testimonial-carousel .owl-item .testimonial-item h4 {
  transition: 0.5s;
}

.testimonial-carousel .owl-item.center .testimonial-item h1 {
  color: var(--dark) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item h4 {
  color: var(--light);
}

.bg-banner {
  background: linear-gradient(rgba(28, 30, 50, 0.9), rgba(28, 30, 50, 0.9)),
    url(../img/bg-banner.jpg);
  background-attachment: fixed;
}
