/* Custom styles for Zlatna Lopta */

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

/* Prevent horizontal overflow on mobile without blocking child scroll containers */
main {
  overflow-x: clip;
}

/* Gallery hover zoom effect */
.gallery-item > div:first-child,
.gallery-item > div:nth-child(2) {
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* Animation for elements entering viewport */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

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

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

::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a3a3a3;
}

/* Focus visible styles for accessibility */
*:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile call button pulse */
@keyframes subtle-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(22, 163, 74, 0);
  }
}

a[aria-label="Pozovite odmah"] {
  animation: subtle-pulse 2s infinite;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
