/* Custom Styles for Cre8 Gym */

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
  }
}

/* Mobile responsiveness for WhatsApp button */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 56px;
    height: 56px;
    font-size: 28px;
  }
}

/* Prevent Horizontal Scrolling */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Ensure Header Stays Fixed on All Devices */
body > header,
header.sticky,
header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  background-color: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html {
  scroll-behavior: smooth;
}

/* Logo Hover Animation */
.logo-img {
  transition: transform 0.3s ease !important;
  will-change: transform;
}

.logo-link:hover .logo-img {
  transform: scale(1.1) !important;
}

/* Additional selectors for compatibility */
header a[aria-label="Cre8 Gym Home"]:hover img {
  transform: scale(1.1) !important;
}

a[href="index.php"]:hover img[alt="Cre8 Gym logo"] {
  transform: scale(1.1) !important;
}

/* Hero Video Section with Parallax */
.hero-video-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0.7));
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Mobile optimization - disable parallax for better performance */
@media (max-width: 768px) {
  .hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
  }

  .hero-overlay {
    position: absolute;
  }
}
