/* Site-wide floating WhatsApp button, based on the existing GITEX design. */
.gitex-whatsapp {
  position: fixed;
  z-index: 80;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  min-height: 62px;
  padding: .38rem .42rem .38rem .92rem;
  border: 2px solid #25d366;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(3, 34, 43, .98), rgba(5, 52, 61, .98));
  box-shadow:
    0 22px 55px rgba(0, 12, 18, .34),
    0 0 0 1px rgba(157, 255, 193, .16) inset,
    0 0 30px rgba(37, 211, 102, .08);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(20px);
  animation: gitex-whatsapp-enter 650ms cubic-bezier(.2, .78, .2, 1) both;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.gitex-whatsapp:hover,
.gitex-whatsapp:focus-visible {
  box-shadow:
    0 28px 65px rgba(0, 12, 18, .42),
    0 0 0 1px rgba(255, 255, 255, .06) inset,
    0 0 34px rgba(37, 211, 102, .18);
  color: #fff;
  transform: translateY(-5px);
}

.gitex-whatsapp:focus-visible {
  outline: 3px solid rgba(132, 241, 225, .88);
  outline-offset: 5px;
}

.gitex-whatsapp__copy {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
}

.gitex-whatsapp__copy::after {
  position: absolute;
  top: -120%;
  bottom: -120%;
  left: -48%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  content: "";
  pointer-events: none;
  transform: rotate(17deg);
  animation: gitex-whatsapp-sheen 5.5s 1.4s ease-in-out infinite;
}

.gitex-whatsapp__copy strong {
  position: relative;
  z-index: 1;
  display: block;
}

.gitex-whatsapp__copy strong {
  margin: 0;
  color: #fff;
  font-size: .79rem;
  font-weight: 900;
  letter-spacing: .005em;
  line-height: 1.2;
  white-space: nowrap;
}

.gitex-whatsapp__tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + .72rem);
  padding: .58rem .72rem;
  border: 1px solid rgba(119, 226, 217, .2);
  border-radius: 12px;
  background: rgba(1, 29, 38, .96);
  box-shadow: 0 12px 30px rgba(0, 10, 15, .25);
  color: rgba(239, 251, 249, .88);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .025em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.gitex-whatsapp__tooltip::after {
  position: absolute;
  top: 100%;
  right: 1.35rem;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: rgba(1, 29, 38, .96);
  content: "";
}

.gitex-whatsapp:hover .gitex-whatsapp__tooltip,
.gitex-whatsapp:focus-visible .gitex-whatsapp__tooltip {
  opacity: 1;
  transform: translateY(0);
}

.gitex-whatsapp__icon {
  position: relative;
  display: grid;
  width: 49px;
  height: 49px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 16px;
  background: linear-gradient(145deg, #2ce173, #1ebd58);
  box-shadow:
    0 13px 28px rgba(37, 211, 102, .28),
    inset 0 1px 0 rgba(255, 255, 255, .35);
  color: #fff;
}

.gitex-whatsapp__icon::before,
.gitex-whatsapp__icon::after {
  position: absolute;
  z-index: -1;
  inset: -7px;
  border: 1px solid rgba(55, 225, 119, .45);
  border-radius: 24px;
  content: "";
  pointer-events: none;
  animation: gitex-whatsapp-ripple 2.8s ease-out infinite;
}

.gitex-whatsapp__icon::after {
  animation-delay: 1.4s;
}

.gitex-whatsapp__icon svg {
  width: 27px;
  height: 27px;
  filter: drop-shadow(0 2px 5px rgba(0, 83, 33, .2));
}

.gitex-whatsapp:hover .gitex-whatsapp__icon,
.gitex-whatsapp:focus-visible .gitex-whatsapp__icon {
  background: linear-gradient(145deg, #35e77c, #20c961);
}

@keyframes gitex-whatsapp-enter {
  from { opacity: 0; clip-path: inset(0 0 0 100% round 24px); }
  to { opacity: 1; clip-path: inset(0 0 0 0 round 24px); }
}

@keyframes gitex-whatsapp-ripple {
  0% { opacity: .7; transform: scale(.88); }
  72%, 100% { opacity: 0; transform: scale(1.34); }
}

@keyframes gitex-whatsapp-sheen {
  0%, 66% { left: -48%; opacity: 0; }
  72% { opacity: 1; }
  88%, 100% { left: 125%; opacity: 0; }
}

@media (max-width: 820px) {
  .gitex-whatsapp {
    right: .85rem;
    bottom: 5.65rem;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
    clip-path: none;
    opacity: 1;
    backdrop-filter: none;
    animation: none;
  }

  .gitex-whatsapp:hover,
  .gitex-whatsapp:focus-visible {
    box-shadow: none;
    transform: translateY(-4px);
  }

  .gitex-whatsapp__copy {
    display: none;
  }

  .gitex-whatsapp__tooltip {
    display: none;
  }

  .gitex-whatsapp__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .gitex-whatsapp__icon {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 820px) and (max-height: 700px) {
  .gitex-whatsapp {
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gitex-whatsapp,
  .gitex-whatsapp__copy::after,
  .gitex-whatsapp__icon::before,
  .gitex-whatsapp__icon::after {
    animation: none;
  }
}


/* Other pages do not have GITEX's fixed mobile booking CTA. */
@media (max-width: 820px) {
  .gitex-whatsapp:not(.gitex-whatsapp--gitex) { bottom: 1rem; }
}
