/********** Template CSS **********/

:root {
  --primary: #003163;
  --secondary: #28a745;
  --light: #f2f5f8;
  --dark: #111111;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.floating-btns {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.floating-btns a {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: 0.3s ease;
}

.floating-btns a:hover {
  transform: scale(1.1);
}

.btn-whatsapp {
  background-color: #25d366;
}

.btn-call {
  background-color: #003163;
}

.fw-medium {
  font-weight: 600;
}

.mt-6 {
  margin-top: 5rem;
}

.mb-6 {
  margin-bottom: 5rem;
}

.pt-6 {
  padding-top: 5rem;
}

.pb-6 {
  padding-bottom: 5rem;
}

/*** 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;
}

/*** Button ***/
.btn {
  transition: 0.5s;
  font-weight: 600;
  text-transform: uppercase;
}

.btn-primary,
.btn-outline-primary:hover {
  color: #ffffff;
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #00264d;
  border-color: #00264d;
  color: #ffffff;
}

.btn-secondary,
.btn-outline-secondary:hover {
  color: var(--bs-dark);
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-xl-square {
  width: 60px;
  height: 60px;
}

.btn-xxl-square {
  width: 75px;
  height: 75px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-xl-square,
.btn-xxl-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

/*** Navbar ***/
.sticky-top {
  top: -100px;
  transition: 0.5s;
}

.navbar .navbar-nav .nav-link {
  margin-right: 35px;
  padding: 25px 0;
  color: var(--bs-dark);
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  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;
}

.letter-spacing-1 {
  letter-spacing: 0.2em;
  font-size: 0.85rem;
}

.hero-static {
  position: relative;
  padding: 110px 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1920&q=80")
      center center / cover no-repeat;
}

.hero-static .hero-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 991.98px) {
  .hero-static {
    padding: 90px 0;
  }
}

@media (max-width: 575.98px) {
  .hero-static {
    padding: 70px 0;
  }
}

/* Modern Hero (Home 3) */
.hero-modern {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.15),
      transparent 45%
    ),
    linear-gradient(120deg, rgba(0, 49, 99, 0.95), rgba(3, 19, 37, 0.98)),
    url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1920&q=80")
      center center / cover no-repeat;
}

.hero-modern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-modern .container,
.hero-modern .row {
  position: relative;
  z-index: 1;
}

.hero-orbit {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  top: -140px;
  left: -140px;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.04);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: "Crimson Pro", serif;
  font-size: clamp(2.6rem, 2.2rem + 2.5vw, 4.2rem);
  line-height: 1.1;
  text-transform: none;
  color: #ffffff;
}

.hero-subtitle {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
}

.hero-metrics h4 {
  font-family: "Crimson Pro", serif;
  font-size: 1.8rem;
  color: #ffffff;
}

.hero-metrics p {
  font-family: "Manrope", sans-serif;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.hero-card-modern {
  background: #ffffff;
  color: #111111;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-family: "Manrope", sans-serif;
}

.hero-badge {
  background: rgba(0, 49, 99, 0.1);
  color: #003163;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-insight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hero-insight span {
  font-family: "Crimson Pro", serif;
  font-size: 1.4rem;
  color: #003163;
}

.hero-insight h6 {
  margin-bottom: 6px;
  font-family: "Manrope", sans-serif;
}

.hero-insight p {
  margin-bottom: 0;
  color: #4d4d4d;
  font-size: 0.95rem;
}

.hero-card-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: "Manrope", sans-serif;
}

@media (max-width: 991.98px) {
  .hero-modern {
    padding: 90px 0;
  }

  .hero-orbit {
    width: 260px;
    height: 260px;
    top: -120px;
    left: -120px;
  }
}

@media (max-width: 575.98px) {
  .hero-modern {
    padding: 70px 0;
  }

  .hero-card-modern {
    padding: 22px;
  }

  .hero-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.service-list {
  --bs-gutter-y: 16px;
}

.service-list .col-sm-6 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-list h5 {
  margin: 0 !important;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
}

.service-list h5 i {
  margin-right: 0 !important;
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }

  .navbar .navbar-nav {
    margin-top: 15px;
    border-top: 1px solid #eeeeee;
  }
}

@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/*** Header ***/
/* Limit carousel height */
#header-carousel,
#header-carousel .carousel-item,
#header-carousel .carousel-item img {
  max-height: 600px;
}

/* Ensure images cover properly without distortion */
#header-carousel .carousel-item img {
  width: 100%;
  object-fit: cover;
}

/* Keep caption full height inside limited carousel */
#header-carousel .carousel-caption {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  background: rgba(0, 0, 0, 0.5);
  padding: clamp(1.25rem, 4vw, 3rem);
  padding-left: 11rem;
  z-index: 1;
}

#header-carousel .carousel-caption h1 {
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  line-height: 1.15;
  max-width: 16ch;
}

@media (min-width: 993px) {
  #header-carousel .carousel-caption h1 {
    max-width: 30ch;
  }
}

#header-carousel .carousel-indicators {
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: 80px;
  flex-direction: column;
  margin: 0;
  margin-left: 3rem;
}

#header-carousel .carousel-indicators [data-bs-target] {
  width: 70px;
  height: 70px;
  text-indent: 0;
  margin: 5px 0;
  border: 2px solid #ffffff;
  overflow: hidden;
}

#header-carousel .carousel-indicators [data-bs-target] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 992px) {
  #header-carousel .carousel-item {
    position: relative;
    min-height: 520px;
  }

  #header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #header-carousel .carousel-caption h1 {
    max-width: 14ch;
  }

  #header-carousel .carousel-indicators {
    display: none;
  }

  #header-carousel .carousel-caption {
    padding-left: clamp(1.25rem, 4vw, 3rem);
  }
}

@media (max-width: 768px) {
  #header-carousel .carousel-item {
    min-height: 460px;
  }

  #header-carousel .carousel-caption {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
  }

  #header-carousel .carousel-caption h1 {
    font-size: clamp(1.9rem, 9vw, 2.7rem);
    max-width: 11ch;
    margin-bottom: 1rem !important;
  }

  #header-carousel .carousel-caption .btn {
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
  }
}

@media (min-width: 1200px) {
  .carousel .carousel-item .display-1 {
    font-size: 7rem;
  }
}

.page-header {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../img/carousel-1.jpg) center center no-repeat;
  background-size: cover;
}

/*** About ***/
.about-img {
  position: relative;
  padding-left: 45px;
}

.about-img img {
  height: 100%;
  object-fit: cover;
}

.about-img::before {
  position: absolute;
  content: "";
  width: 200px;
  height: 300px;
  top: 0;
  left: 0;
  border: 5px solid var(--primary);
  /* The frame shouldn't have an initial offset if we want things aligned at the top */
  animation: animateUpDown 3s ease-in-out infinite;
  z-index: -1;
}

/* Precision Alignment Classes */
.about-row {
  display: flex !important;
  align-items: stretch !important;
}

.about-col-img {
  display: flex !important;
  flex-direction: column !important;
}

.about-img-wrap {
  flex: 1 1 auto !important;
  position: relative !important;
  overflow: hidden !important;
}

.about-img-wrap img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@keyframes animateUpDown {
  0% {
    top: 0;
  }
  50% {
    top: -20px;
  }
  100% {
    top: 0;
  }
}

/*** Service ***/
.service .service-item {
  position: relative;
  margin-top: 45px;
}

.service .service-inner {
  position: relative;
  height: 100%;
  margin-top: 25px;
  background: var(--bs-white);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.05);
}

.service .service-inner::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  left: 0;
  bottom: 0;
  transition: 1s;
  background: var(--primary);
}

.service .service-inner:hover::before {
  height: 100%;
  top: 0;
}

.service .service-item img {
  margin-top: -45px;
  padding-left: 25px;
}

.service .service-item * {
  position: relative;
  transition: 0.5s;
  z-index: 1;
}

.service .service-item:hover h5,
.service .service-item:hover p {
  color: var(--bs-white);
}

.service .service-item:hover a {
  padding-left: 25px !important;
}

/*** Team ***/
.team .team-item {
  background: var(--bs-white);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.05);
}

.team .team-item .team-social {
  position: absolute;
  width: 0;
  height: 100%;
  top: 0;
  right: 0;
  transition: 0.5s;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team .team-item:hover .team-social {
  width: 100%;
  left: 0;
}

.team .team-item .team-social .btn {
  opacity: 0;
  transition: 0.5s;
}

.team .team-item:hover .team-social .btn {
  opacity: 1;
}

/*** Testimonial ***/
.testimonial-img {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

.testimonial-img div {
  position: absolute;
  width: 100px;
  height: 100px;
  animation-duration: 5s;
}

.testimonial-img div:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0.1s;
}

.testimonial-img div:nth-child(2) {
  top: 60%;
  left: 20%;
  animation-delay: 0.4s;
}

.testimonial-img div:nth-child(3) {
  top: 20%;
  left: 60%;
  animation-delay: 0.7s;
}

.testimonial-img div:nth-child(4) {
  bottom: 10%;
  right: 10%;
  animation-delay: 1s;
}

.testimonial-img div::after {
  position: absolute;
  content: "";
  top: -1px;
  right: -1px;
  bottom: -1px;
  left: -1px;
  box-shadow: 0 0 10px 10px var(--bs-white) inset;
  z-index: 1;
}

.testimonial-carousel .owl-item img {
  width: 100px;
  height: 100px;
}

.testimonial-carousel .owl-nav {
  margin-top: 15px;
  display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
  margin-right: 15px;
  color: var(--primary);
  font-size: 45px;
  transition: 0.5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
  color: var(--bs-dark);
}

/*** Contact ***/
.contact {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../img/carousel-3.jpg) left center no-repeat;
  background-size: cover;
}

@media (min-width: 992px) {
  .contact-info::after {
    position: absolute;
    content: "";
    width: 0px;
    height: 100%;
    top: 0;
    left: 50%;
    border-left: 1px dashed rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 991.98px) {
  .contact-info::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0px;
    top: 50%;
    left: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
  }
}

/*** Newsletter ***/
.newsletter {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../img/carousel-3.jpg) left center no-repeat;
  background-size: cover;
}

/*** Footer ***/
.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
  color: var(--bs-secondary);
  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: var(--bs-primary);
  margin-right: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--primary);
  letter-spacing: 1px;
  box-shadow: none;
}

.copyright {
  background: #222222;
}

.copyright a {
  color: var(--bs-white);
}

.copyright a:hover {
  color: var(--bs-primary);
}

.core-values-section {
  background: linear-gradient(135deg, #0b2c47, #0f3d5e);
}

.core-value-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.core-value-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
}

.core-icon {
  width: 70px;
  height: 70px;
  background: var(--primary); /* dark blue accent */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 24px;
  color: #ffffff;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-carousel .owl-dots .owl-dot span {
  background: #d6d6d6;
}

.testimonial-carousel .owl-dots .owl-dot.active span {
  background: #0d6efd; /* Match your theme primary */
}

.service-item img {
  height: 220px;
  object-fit: cover;
}

/* Why Choose Us – Dark */
.why-choose-dark {
  position: relative;
}

.choose-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 40px 30px;
  text-align: center;
  color: #ffffff;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.choose-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.12);
}

.choose-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
}

.choose-card h4 {
  margin-bottom: 15px;
  font-weight: 700;
  color: #ffffff;
}

.choose-card p {
  color: #d1d1d1;
  font-size: 15px;
  line-height: 1.7;
}

.choose-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(234, 85, 1, 0.15);
  color: #ea5501;
  font-size: 13px;
  font-weight: 600;
}

.vendor-item {
  background: #ffffff;
  padding: 10px 5px;
  border-radius: 12px;
  transition: all 0.35s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);

  /* Centering */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.vendor-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.08);
}

.client-logo {
  max-height: 95px;
  max-width: 100%;
  transition: all 0.35s ease;
  filter: grayscale(0%) brightness(1);
  opacity: 0.9;
}

.vendor-item:hover .client-logo {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.08);
}

/* Topbar Social Icons */
.topbar-social .btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Mobile Optimization for Team Section */
@media (max-width: 768px) {
  /* Hide decorative side images on mobile */
  .team .team-item::before,
  .team .team-item::after {
    display: none !important;
  }

  /* Ensure team images are centered and properly sized */
  .team .team-item img {
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* Remove any absolute positioned decorative elements */
  .team-item .position-relative::before,
  .team-item .position-relative::after {
    display: none !important;
  }

  /* Center team content on mobile */
  .team .team-item {
    margin-bottom: 2rem;
  }

  .team .row {
    justify-content: center;
  }
}
