
/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 4%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

/* .header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 4%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.505) 55%,
    rgba(255, 255, 255, 0.2) 100%
  );

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  z-index: 1000;
} */

.logo img {
  height: 40px;
}

.navbar {
  display: flex;
  gap: 16px;
  align-items: center;
}

.navbar a {
  color: #ddd;
  text-decoration: none;
  font-size: 12px;
  position: relative;
  opacity: 0;
  animation: slideTop .5s ease forwards;
  animation-delay: calc(.15s * var(--i));
}

@keyframes slideTop {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2caa50;
  transition: .3s;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

/* ================= DROPDOWN ================= */
.nav-item {
  position: relative;
  opacity: 0;
  animation: slideTop .5s ease forwards;
  animation-delay: calc(.15s * var(--i));
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item i {
  font-size: 18px;
  font-weight: 700;
  position: relative;
  top: 1px;
}

.dropdown-menu {
  position: absolute;
  top: 150%;
  left: 0;
  background: rgba(20, 20, 20, .95);
  min-width: 200px;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .4s;
}

.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  color: #eee;
}

.dropdown-menu a:hover {
  background: linear-gradient(90deg, #327958, #6ba48b, #91b78d);
  color: #000;
  text-decoration: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* No underline for dropdown & button */
.dropdown>a::after,
.shop-btn::after {
  display: none !important;
}

.dropdown-menu a::after {
  display: none;
}

/* ========== SHOP BUTTON ========== */
.shop-btn {
  position: relative;
  padding: 5px 14px;
  border-radius: 28px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  z-index: 0;
}

.shop-btn span,
.shop-btn i {
  position: relative;
  z-index: 5;
}

/* Gold sliding background */
.shop-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 26px;
  background: linear-gradient(90deg, #c8fcc8, #4dc997, #0c7248);
  left: -100%;
  transition: all 0.45s ease-in-out;
  z-index: 1;
}

.shop-btn:hover::after {
  left: 0;
}

/* Animated border */
.shop-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1.6px;
  background: linear-gradient(90deg, #f1eee9, #ffffff, #7ac943, #0a643a, #0aae77);
  background-size: 300% 300%;
  animation: borderMove 3s linear infinite;
  z-index: 2;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes borderMove {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

.shop-btn:hover {
  color: #000;
  background: linear-gradient(50deg, #0a7950, #ffffff);
}

.shop-btn i {
  font-size: 16px;
  animation: arrowMove 1.2s ease-in-out infinite;
}

@keyframes arrowMove {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }

  100% {
    transform: translateX(0);
  }
}

/* ================= SEARCH ================= */
.nav-search {
  position: relative;
  width: 42px;
  background: #48514dae;
  border-radius: 30px;
  overflow: hidden;
  transition: .4s;
  opacity: 0;
  animation: slideTop .5s ease forwards;
  animation-delay: calc(.15s * var(--i));
}

.nav-search:hover,
.nav-search:focus-within {
  width: 220px;
}

.nav-search input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  background: transparent;
  border: none;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-search:hover input,
.nav-search:focus-within input {
  opacity: 1;
}

.nav-search i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}

#menu-icon {
  display: none;
}

/* ================= MOBILE ================= */
@media (max-width:900px) {

  #menu-icon {
    font-size: 30px;
    display: block;
    cursor: pointer;
  }

  /* MOBILE NAVBAR */
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    border-radius: 0 0 12px 12px;
    gap: 10px;
    z-index: 999;

    /* hidden by default */
    display: none;
  }

  /* SHOW NAVBAR */
  .navbar.active {
    display: flex;
  }

  .navbar a,
  .nav-item {
    padding: 10px 14px;
    text-align: center;
    width: auto;
  }

  /* DROPDOWN */
  .dropdown-menu {
    position: relative;
    display: none;
    background: #111;
    padding: 5px 0;
    border-radius: 8px;
    min-width: max-content;
    margin-top: 5px;
  }

  .nav-item.dropdown.show .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 8px 15px;
  }

  .shop-btn {
    margin: 10px 0;
  }

  .nav-search {
    display: none;
  }

  /* 🚀 KILL ALL ANIMATIONS ON MOBILE */
  .navbar,
  .navbar a,
  .nav-item,
  .dropdown-menu {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
