#xacto-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  font-family: Inter, system-ui;
}

.xacto-nav {
  max-width: 1300px;
  margin: auto;
  margin-top: 14px;
  padding: 12px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.35s;
  position: relative;
}

.xacto-nav.scrolled {
  padding: 8px 26px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.xacto-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xacto-logo img {
  height: 50px;
}

.xacto-logo span {
  font-size: 12px;
  color: #64748b;
}

.xacto-menu {
  display: flex;
  gap: 28px;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}

.xacto-menu a {
  color: #334155;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  position: relative;
  transition: 0.3s;
}

.xacto-menu a::after,
.dropdown-content a::after,
.mobile-dropdown-content a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(
    90deg,
    #f43f5e,
    #f59e0b,
    #22c55e,
    #3b82f6,
    #8b5cf6,
    #ec4899,
    #f43f5e
  );
  border-radius: 2px;
  transition: width 0.35s ease;
}

.xacto-menu a:hover::after,
.dropdown-content a:hover::after,
.mobile-dropdown-content a:hover::after,
.xacto-menu a.active::after,
.dropdown-content a.active::after,
.mobile-dropdown-content a.active::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  z-index: 999;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.dropdown-content a {
  display: block;
  padding: 12px 18px;
  color: #334155;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.xacto-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.xacto-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.xacto-mobile-btn {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

.xacto-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 260px;
  height: 100%;
  background: white;
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: 0.35s;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
}

.xacto-mobile a {
  font-weight: 600;
  text-decoration: none;
  color: #334155;
  position: relative;
}

.xacto-mobile.open {
  right: 0;
}

.mobile-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-dropdown-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: 0.3s;
}

.mobile-dropdown-btn:hover {
  background: #f1f5f9;
}

.mobile-dropdown-content {
  overflow: hidden;
  max-height: 0;
  display: flex;
  flex-direction: column;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

.mobile-dropdown-content a {
  padding: 10px 18px;
  font-weight: 500;
  color: #334155;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.mobile-dropdown-content a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(
    270deg,
    #f43f5e,
    #f59e0b,
    #22c55e,
    #3b82f6,
    #8b5cf6,
    #ec4899,
    #f43f5e
  );
  border-radius: 2px;
  background-size: 200% 100%;
  animation: slideRainbow 2s linear infinite;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.mobile-dropdown-content a:hover::after,
.mobile-dropdown-content a.active::after {
  transform: scaleX(1);
}

@keyframes slideRainbow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.mobile-dropdown-content.show {
  opacity: 1;
}

.mobile-dropdown-content.show a {
  opacity: 1;
  transform: translateY(0);
}

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Arial, sans-serif;
  z-index: 999;
  /* Premium WhatsApp CTA: subtle pulse (no "shake") */
  transform: translateZ(0);
  animation: xacto-whatsapp-pulse 2.4s ease-in-out infinite;
}

.whatsapp-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}


.mascot-btn {
  position: fixed;
  bottom: 10px;
  background: transparent;
  color: #fff;
  padding: 0px 0px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0px;
  font-family: Arial, sans-serif;
  z-index: 999;
  animation: shake 3s infinite, zoom 3s infinite;
  animation-delay: 0s, 1s;
}

/* Tooltip for WhatsApp (added via data-tooltip in JS/HTML) */
.whatsapp-btn {
  position: fixed;
}
.whatsapp-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  color: white;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.whatsapp-btn:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse ring */
.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.35), transparent 60%);
  opacity: 0.0;
  transform: scale(0.9);
  pointer-events: none;
}
@keyframes xacto-whatsapp-pulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), 0 0 0 rgba(37, 211, 102, 0);
  }
  55% {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25), 0 0 28px rgba(37, 211, 102, 0.18);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), 0 0 0 rgba(37, 211, 102, 0);
  }
}



@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-4px);
  }
  20% {
    transform: translateX(4px);
  }
  30% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  50% {
    transform: translateX(0);
  }
}

@keyframes zoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

@media (max-width: 900px) {
  .xacto-menu {
    display: none;
  }
  .xacto-cta {
    padding: 6px 14px;
    font-size: 13px;
  }
  .xacto-mobile-btn {
    display: block;
  }
}

@media (max-width: 600px) {
  .whatsapp-btn {
    padding: 12px;
    border-radius: 50%;
    gap: 0;
  }
  .whatsapp-btn span {
    display: none;
  }
  .whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }
}
/* ================= MOBILE FIX ONLY ================= */
@media (max-width: 900px) {

  /* ✅ FIX SIDEBAR WIDTH (SMALL & CLEAN) */
  .xacto-mobile {
    width: 70%;          /* reduced */
    max-width: 240px;    /* control max size */
    padding: 20px 16px;
    background: #ffffff;
  }

  /* ✅ FIX DROPDOWN TEXT COLOR (VISIBLE) */
  .mobile-dropdown-content a {
    color: #334155 !important;   /* dark text */
    opacity: 1 !important;
    transform: none !important;
    font-size: 14px;
  }

  /* ✅ FIX MAIN MOBILE LINKS COLOR */
  .xacto-mobile a {
    color: #1e293b !important;
    font-size: 14px;
  }

  /* ✅ HOVER IMPROVEMENT */
  .xacto-mobile a:hover {
    background: #f1f5f9;
    color: #2563eb !important;
  }

  /* ✅ DROPDOWN BUTTON FIX */
  .mobile-dropdown-btn {
    color: #1e293b !important;
    font-size: 14px;
  }

  /* ✅ REMOVE WHITE TEXT ISSUE FROM ANIMATION */
  .mobile-dropdown-content.show a {
    opacity: 1;
    transform: translateY(0);
    color: #334155 !important;
  }

  /* ✅ CLEAN SPACING */
  .mobile-dropdown-content a {
    padding: 8px 14px;
  }

  /* ✅ SMALL CTA BUTTON */
  .xacto-cta {
    padding: 6px 12px;
    font-size: 12px;
  }
}