@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none !important;
  list-style-type: none !important;
  user-select: none;
  -webkit-user-drag: none;
}

:root {
  --color-primary: #002f31;
  --color-white: #f5f5f5;
  --color-gray-1: #4b4848;
}

body {
  font-family: "Poppins", sans-serif !important;
}

.primary-bg {
  background-color: var(--color-primary) !important;
}

.primary-text {
  color: var(--color-primary) !important;
}

.secondary-text {
  color: var(--color-gray-1);
}
.gap-6 {
  gap: 5rem !important;
}

.p-20 {
  padding: 0 10em;
}
.fs-7 {
  font-size: 0.8em;
}

.text-lg {
  font-size: 40px;
}

.text-xl {
  font-size: 60px;
}
.text-sm {
  font-size: 20px;
}

button {
  border: none;
  outline: none;
}

.rounded-lg {
  border-radius: 20px;
}
.sub-header a {
  text-decoration: none !important;
  color: var(--color-white) !important;
}

.overlay-icon {
  background-color: var(--color-primary);
  z-index: 1500;
  position: fixed;
  right: 0;
  top: 240px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 1.5em 2em;
  border-radius: 60px 0 0 6px;
}
.overlay-icon a,
.overlay-icon h5 {
  color: var(--color-white) !important;
}

.phone-bg {
  background: var(--color-primary) !important;
  padding: 0.5em;
  border-radius: 6px;
}
/* PRELOADER */
.preloader {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 999999999999999999;
  background-color: #ffffff;
  background-position: center center;
  background-repeat: no-repeat;
  background-image: url(../img/preloader.gif);
}
/* ---------- HEADER ---------- */
.main-header {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.main-header nav li {
  list-style-type: none;
}

.main-header ul li a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  color: var(--color-gray-1);
  transition: all 0.3s ease-in-out;
}

.main-header ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--color-gray-1);
  transition: width 0.3s ease-in-out;
}

.main-header ul li a:hover::after {
  width: 100%;
}

.brand {
  width: 80px;
}

.system-btn {
  background-color: var(--color-primary);
  padding: 0.5em 1em;
  text-decoration: none;
  color: white;
  border-radius: 10px;
  font-weight: 600;
  font-size: 18px;
  transition: background-color 0.3s ease-in-out;
}

.mobile-btn {
  background-color: var(--color-white);
  padding: 0.5em 1em;
  text-decoration: none;
  color: var(--color-primary) !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 18px;
  border: 2px solid transparent;
  transition: all 0.5s ease-in-out;
}

.system-btn:hover {
  background-color: #004b4e;
}

.mobile-btn:hover {
  border-color: #fff;
  outline: 5px solid #fff; /* Creates the offset border */
  outline-offset: 5px;
}
/* --- FULLSCREEN MOBILE MENU --- */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-primary);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#mobile-menu ul li a {
  text-decoration: none;
  color: var(--color-white);
}
/* Active slide-in state */
#mobile-menu.active {
  transform: translateX(0);
}

/* Close Button (Top-Right Corner) */
.close-menu-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-white);
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2100;
}

.close-menu-btn:hover {
  color: #007f82; /* lighter tint */
}

/* Optional background dim when open */
body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1500;
  transition: opacity 0.3s ease;
}

/* Mobile Menu Items */
#mobile-menu ul {
  padding: 0;
  margin: 0;
}

#mobile-menu li {
  margin: 1.2rem 0;
}

/* Hamburger Button */
.navbar-toggler {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-primary);
}

/* FOOTER */
.overlay-subscribe {
  z-index: 100;
  width: 50%;
  position: absolute;
  bottom: -220px;
  border-radius: 20px;
}

footer .brand {
  width: 120px;
}
.white-icon {
  color: var(--color-white);
}

.bg-country {
  background-image: url("../img/footer-bg.png");
  background-position: center;
  background-repeat: no-repeat;
}

.brand-text {
  width: 50% !important;
}

/* HOME HERO SECTION */
.home {
  padding: 1em 0em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero {
  background-image: url("../img/hero_bg.png");
  width: 100%;
  min-height: 65vh;
  background-repeat: no-repeat;
  background-position: center 10%;
}
.hero-card-container {
  margin-top: -200px !important;
}
.hero-card {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 2em 2em;
  border-radius: 20px;
  width: 240px;
  height: 150px;
}
.hero-card img {
  width: 65px;
  height: auto;
}

.icon-bg {
  background-color: var(--color-primary);
  color: #fff;
  width: fit-content;
  padding: 0.8em;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.icon-bg i {
  font-size: 30px;
}
/* HOME HERO SECTION */

/* HOME ABOUT SECTION */
.home-about {
  margin-top: 10em;
  background-image: url("../img/about_bg.png");
  width: 100%;
  min-height: 100vh;
  background-repeat: no-repeat;
  padding: 4em 13em;
  background-position: 40% 6%;
  background-size: 72%;
}
.home-about p {
  width: 85%;
}

.about-img {
  width: 500px;
  height: auto;
}
.highlight-border {
  width: fit-content;
  height: auto;
  background: #fff;
  padding: 1em;
}
.highlight-about {
  background-color: var(--color-primary);
  color: var(--color-white);
  position: absolute;
  border-radius: 20px;
  padding: 1em;
  right: 145px;
  bottom: -255px;
}

.highligh-card {
  box-sizing: border-box;
  background: #ffffff;
  border: 0.5px solid #002f31;
  box-shadow: 0px 3px 32px rgba(0, 47, 49, 0.23);
  border-radius: 5px;
  padding: 1em 1.5em;
  position: relative;
}

.highligh-card::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  right: 0;
  bottom: 0;
  border-radius: 20px 0 0 0;
  background-color: var(--color-primary);
}
/* HOME ABOUT SECTION */

/* HOME AD SECTION */
.ad-section {
  background: url("../img/ad_bg.png");
  width: 100%;
  min-height: 60vh;
  background-repeat: no-repeat;
  background-position: center;
}

.ad-card-1 {
  padding: 3em 5em;
  width: 50%;
}

.ad-card-1 h1 {
  font-size: 52px !important;
}

.ad-card-1 span {
  font-size: 20px;
}

.ad-card-2 {
  width: 40%;
  display: flex;
  padding: 1em 2em;
  align-items: center;
  justify-content: space-between;
}
.ad-card-2 p {
  font-size: 20px;
  color: var(--color-gray-1);
  width: 70%;
}
.ad-card-2 img {
  width: 182px;
}

.ad-card-1,
.ad-card-2 {
  border-radius: 0 20px 20px 0;
}
/* HOME AD SECTION */

/* CHOOSE COUNTRY CARDS SECTION */
.country {
  margin-top: 150px;
}

.country-card {
  width: 300px;
  height: auto;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  cursor: grab;
}
.country-card img {
  width: 100%;
  border-radius: 20px;
}
.country-card {
  width: 300px;
  height: auto;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.country-card img {
  width: 300px;
  border-radius: 20px;
}

/* Gradient overlay */
.country-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  border-radius: 20px;
  background: linear-gradient(
    179.89deg,
    rgba(0, 0, 0, 0) 0.08%,
    rgba(0, 18, 19, 0.38) 15.83%,
    rgba(0, 35, 37, 0.76) 93.65%
  );
  z-index: 1; /* below text and flag */
}

/* Position flag + name over the image */
.country-card .d-flex {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2; /* above gradient */
  background: rgba(0, 0, 0, 0.4); /* optional for contrast */
  padding: 5px 10px;
  border-radius: 8px;
}

.country-card .d-flex h6 {
  color: white;
  margin: 0;
}

/* Flag image styling */
.flag {
  width: 40px !important;
  border-radius: 5px !important;
}

/* Details on hover */
.country-details {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 150px;
  color: white;
  padding: 0 1em;
  cursor: grab;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2; /* above overlay */
}

.country-card:hover .country-details {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.country-card:hover .country-details {
  opacity: 1;
  transform: translateY(0); /* Slide up into place */
  pointer-events: auto;
}
.country-details {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  height: 150px;
  color: white;
  padding: 0 1em;
  cursor: grab;

  opacity: 0; /* Start invisible */
  transform: translateY(20px); /* Start slightly lower */
  pointer-events: none; /* Prevent hover issues */
  transition: opacity 0.4s ease, transform 0.4s ease; /* Smooth fade & slide */
}
.flag {
  width: 50px !important;
  border-radius: 5px !important;
}
/* CHOOSE COUNTRY CARDS SECTION */

/* WHY US SECTION */
.why-us {
  background-image: url("../img/why-us.png");
  width: 100%;
  min-height: 60vh;
  background-repeat: no-repeat;
  background-position: center top;
}
.score-img {
  width: 200px;
}
/* WHY US SECTION */

/* ---------- RESPONSIVE NAV ---------- */

.navbar-toggler {
  border: none;
  background: none;
  font-size: 1.8rem !important;
  color: var(--color-gray-1);
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

@media (max-width: 992px) {
  .text-xl {
    font-size: 40px;
  }
  .text-lg {
    font-size: 25px;
  }
  .text-sm {
    font-size: 15px;
  }
  .sub-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    font-size: 12px;
  }

  .brand-text {
    width: 100% !important;
  }
  .phone-bg img {
    width: 30px;
  }
  .overlay-icon {
    padding: 0.5em 2em;
    background-color: #fff !important;
    color: var(--color-primary) !important;
    box-shadow: 0 0.5rem 1rem rgba(68, 68, 68, 0.15);
    border: 1px solid #b6f3f5;
  }
  .overlay-icon h5 {
    display: none;
  }
  .overlay-icon a {
    color: var(--color-gray-1) !important;
  }
  .main-header {
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(68, 68, 68, 0.15);
  }

  nav ul {
    flex-direction: column !important;
    align-items: center;
    gap: 1rem;
    background-color: #fff;
    padding: 1rem 0;
    border-radius: 10px;
  }

  .system-btn {
    font-size: 16px;
    padding: 0.4em 0.8em;
  }
  .p-20 {
    padding: 0 2em;
  }

  footer .brand {
    width: 50px;
  }

  .hero {
    background-position: 53% 1%;
  }

  .hero-card-container {
    margin-top: -30px !important;
  }
  .home-about {
    margin-top: 5em;
  }
  .home-about {
    padding: 0 2em;
    background-size: 100vw;
    min-height: 100vh;
  }

  .home-about p {
    width: 100%;
  }
  .about-img {
    width: 295px;
    /* height: auto; */
  }
  .ad-card-1 {
    padding: 1em;
    width: 100%;
  }

  .ad-card-1 h1 {
    font-size: 25px !important;
  }

  .ad-card-1 span {
    font-size: 10px;
  }
  .ad-card-2 {
    width: 100%;
    display: flex;
    padding: 1em;
    align-items: center;
    justify-content: space-between;
  }
  .ad-card-2 p {
    font-size: 10px;
    color: var(--color-gray-1);
    width: 100%;
  }
  .ad-card-2 img {
    width: 100px;
  }
  .ad-card-2 {
    border-radius: 20px 0 0 20px;
    margin-top: 1em;
  }

  .why-us-img {
    width: 281px;
  }
}
