* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  font-family: 'Roboto', 'Noto Sans Bengali', sans-serif;
  font-weight: 400;
  background-color: #1c130a;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   BACKGROUND SLIDESHOW & OPTIONAL VIDEO
   ========================================================================== */
.bg_site {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: block;
  z-index: 0;
}

.background-image,
.background-image-sp {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-position: top center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
  background-color: #1c130a;
}

.background-image.active,
.background-image-sp.active {
  opacity: 1;
}

/* Show PC slides on >=768px, Mobile slides on <=767px */
@media screen and (min-width: 768px) {
  .background-image {
    display: block;
  }
  .background-image-sp {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .background-image {
    display: none;
  }
  .background-image-sp {
    display: block;
    background-size: 100% 100%;
    background-position: center center;
    background-attachment: scroll;
  }
}

.bg-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: none;
}

.bg-video-wrap.has-video {
  display: block;
}

.bg-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.bg-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   TOP BRAND LOGO (ACE9)
   ========================================================================== */
.logo-wrap {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  pointer-events: none;
}

.logo {
  width: 190px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.72));
}

/* ==========================================================================
   BOTTOM COUNTRY FLAG GLOBES (PHILIPPINES & BANGLADESH)
   ========================================================================== */
.gates-bottom-area {
  position: absolute;
  left: 0;
  bottom: 3.5%;
  width: 100%;
  z-index: 10;
  text-align: center;
}

.gates-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 96px;
  padding: 0 20px;
}

.btn-join {
  position: relative;
  cursor: pointer;
  z-index: 20;
  max-width: 292px;
  width: 100%;
  transition: transform 0.22s ease-in-out, filter 0.22s ease-in-out;
}

.btn-join:hover {
  transform: translateY(-6px) scale(1.04);
  filter: drop-shadow(0 10px 24px rgba(245, 190, 45, 0.35));
}

.btn-join:active {
  transform: translateY(-2px) scale(0.99);
}

.gate-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

.globe-shell {
  position: relative;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.65),
    0 0 22px rgba(255, 255, 255, 0.12);
}

.image-logo.globe-canvas {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  display: block;
  object-fit: contain;
}

.globe-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.12) 22%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 64%, rgba(0, 0, 0, 0.48) 100%);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.35), inset 0 -8px 16px rgba(0, 0, 0, 0.55);
}

.text-country {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  width: 100%;
  white-space: nowrap;
}

.greeting-word,
.country-word {
  display: inline;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
@media screen and (max-width: 1200px) and (min-width: 768px) {
  .gates-container {
    gap: 56px;
  }

  .globe-shell,
  .image-logo.globe-canvas {
    width: 130px;
    height: 130px;
  }

  .text-country {
    font-size: 26px;
  }
}

@media screen and (max-width: 767px) {
  .logo-wrap {
    top: 24px;
  }

  .logo {
    width: 180px;
  }

  .gates-bottom-area {
    bottom: 15%;
  }

  .gates-container {
    max-width: 480px;
    justify-content: space-around;
    gap: 24px;
    padding: 0 16px;
  }

  .btn-join {
    width: 45%;
    max-width: 180px;
  }

  .globe-shell,
  .image-logo.globe-canvas {
    width: 108px;
    height: 108px;
  }

  .text-country {
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.32;
    white-space: normal;
  }

  /* Match 789b mobile 2-line greeting + country layout */
  .greeting-word,
  .country-word {
    display: block;
  }
}

@media screen and (max-width: 420px) {
  .logo {
    width: 160px;
  }

  .globe-shell,
  .image-logo.globe-canvas {
    width: 92px;
    height: 92px;
  }

  .text-country {
    font-size: 16px;
  }
}
