/* LOOPZ GYM Custom Styles */

/* Smooth scrolling for all anchors */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #2ecc71;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #27ae60;
}

/* Loading animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Image lazy loading placeholder */
img {
  transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Prevent layout shift */
img {
  max-width: 100%;
  height: auto;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid #2ecc71;
  outline-offset: 2px;
}

/* Mobile menu transition */
@media (max-width: 768px) {
  .mobile-menu {
    transition: transform 0.3s ease-in-out;
  }
  
  .mobile-menu.closed {
    transform: translateX(-100%);
  }
  
  .mobile-menu.open {
    transform: translateX(0);
  }
}
