/* ---------- NAVBAR HIDE ON SCROLL ---------- */
.navbar-hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

/* ---------- FONTS ---------- */
@font-face {
  font-family: "Fredoka One";
  src: url("https://hippo.school/1-assets/fonts/Fredoka.ttf") format("truetype");
}

body {
  user-select: none;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f8fbff, #eef3ff);
  color: #222;
}

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

/* ---------- NAVBAR LAYOUT ---------- */
.container {
  font-family: 'Fredoka One', cursive;
  position: fixed;
  display: flex;
  align-items: center;
  background-color: transparent;
  padding: 15px 5%;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
  transform: translateY(0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-radius: 0 0 20px 20px;
}

.area-1 {
  width: 25%;
  height: 50px;
}

.area-2 {
  padding-top: 15px;
  width: 50%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.area-3 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 25%;
  height: 50px;
  gap: 15px;
}

/* ---------- LOGO + QR ---------- */
.logo-qr-container {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 6px 15px rgba(0, 114, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.logo-qr-container:hover {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  box-shadow: 0 8px 20px rgba(0, 114, 255, 0.5);
  transform: translateY(-2px);
}

.logo-qr-container img {
  width: 30px;
  height: auto;
  margin-right: 10px;
}

.logo-qr-container span {
  color: #fff;
  font-weight: bold;
}

/* QR popup */
.qr-popup {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  filter: drop-shadow(4px 6px 8px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
  visibility: hidden;
}

.qr-popup img {
  width: 200px;
}

.logo-qr-container:hover .qr-popup {
  transform: translateX(-50%) scale(1);
  visibility: visible;
}

.qr-popup::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent white transparent;
}

/* ---------- NAV CENTER ---------- */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.navbar {
  list-style: none;
  display: flex;
  gap: 30px;
}

.navbar li {
  position: relative;
}

.navbar a {
  text-decoration: none;
  color: #123c4a;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.navbar a:hover {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 117, 252, 0.3);
}

/* ---------- DROPDOWN (Desktop) ---------- */
.dropdown-content {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(-15px);
  opacity: 0;
  visibility: hidden;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-width: 320px;
  z-index: 2000;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.li-content {
  display: flex;
  gap: 30px;
}

.li-content h1 {
  font-size: 1rem;
  font-weight: 600;
  color: #2575fc;
  margin-bottom: 10px;
}

.li-content a {
  display: block;
  color: #333;
  font-weight: 500;
  margin-bottom: 8px;
}

.li-content a:hover {
  color: #2575fc;
  text-shadow: 0 0 8px rgba(37, 117, 252, 0.5);
}

.seprator {
  width: 1px;
  background-color: #eee;
}

/* ---------- COUNTRY DROPDOWN (Desktop) ---------- */
.select-country {
  position: relative;
}

.country-dropdown {
  border-radius: 30px;
  font-weight: bold;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  padding: 10px 20px;
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
  transition: all 0.3s ease;
}

.country-dropdown:hover {
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  box-shadow: 0 6px 20px rgba(37, 117, 252, 0.6);
}

.country-content {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  opacity: 0;
  visibility: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 8px 0;
  transition: all 0.3s ease;
  width: 180px;
}

.country-dropdown:hover .country-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.country-content li a {
  display: block;
  padding: 10px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.country-content li a:hover {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 117, 252, 0.4);
}

/* ---------- LOGIN BUTTON ---------- */
.login-page-btn a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #ff512f, #dd2476);
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(221, 36, 118, 0.4);
}

.login-page-btn a:hover {
  background: linear-gradient(135deg, #dd2476, #ff512f);
  box-shadow: 0 6px 20px rgba(221, 36, 118, 0.6);
  transform: translateY(-2px);
}

/* ---------- BRAND TEXT (Mobile) ---------- */
.brand-text {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: none;
}

/* ---------- HAMBURGER ---------- */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #123c4a;
  margin-left: auto;
}

/* ---------- MOBILE OVERLAY (Controlled by JS) ---------- */
#mobileOverlay {
  position: fixed;
  top: 0;
  /* left: 100%; */
  /* hidden off-screen */
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* transition: left 0.4s ease; */
  z-index: 3000;
  padding-top: 60px;
}

/* Shown when JS adds .active */
/* #mobileOverlay.active {
  left: 0;
} */

/* ---------- CLOSE BUTTON ---------- */
.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 36px;
  font-weight: bold;
  color: #123c4a;
  cursor: pointer;
}

/* ---------- OVERLAY MENU ---------- */
.overlay-menu {
  list-style: none;
  text-align: center;
  width: 100%;
  padding: 0;
}

.overlay-menu li {
  margin: 15px 0;
}

.overlay-menu a,
.accordion-btn {
  font-size: 1.4rem;
  font-weight: 600;
  color: #123c4a;
  text-decoration: none;
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: pointer;
}

.overlay-menu a:hover,
.accordion-btn:hover {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- ACCORDION ---------- */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content h1 {
  font-size: 1rem;
  margin: 10px 0 5px;
  color: #2575fc;
}

.accordion-content a {
  display: block;
  margin: 5px 0;
  font-size: 1rem;
  color: #333;
}

.accordion-content a:hover {
  color: #2575fc;
}

/* Accordion arrow flip when open (controlled by JS toggleAccordion) */
.accordion-btn.open::after {
  content: " ▲";
}

.accordion-btn::after {
  content: " ▼";
  font-size: 1rem;
  transition: transform 0.3s;
}

/* QR code in mobile menu */
.qr-mobile img {
  margin-top: 20px;
  width: 180px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .li-content {
    flex-direction: column;
  }

  .seprator {
    display: none;
  }
}

@media (max-width: 768px) {

  .area-1,
  .area-3,
  #navMenuDesktop {
    display: none;
  }

  .brand-text {
    display: block;
    margin: 0 auto;
  }

  .hamburger {
    display: block;
  }

  .area-2 {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}