/* Custom CSS for UK Casino Review Website */

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

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

::-webkit-scrollbar-track {
  background: #1e1b2e;
}

::-webkit-scrollbar-thumb {
  background: #9333ea;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7e22ce;
}

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

/* Image fallback handling */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Hero section with fixed background effect */
.hero-section {
  position: relative;
}

.hero-bg-container {
  background-image: url('../public/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Fallback if hero.png doesn't load */
.hero-bg-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../public/bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0;
  z-index: -1;
}

/* Disable fixed attachment on mobile for better performance */
@media (max-width: 768px) {
  .hero-bg-container {
    background-attachment: scroll;
  }
  
  .hero-bg-container::before {
    background-attachment: scroll;
  }
}

/* Unique Hero Section Styles */
@keyframes floatCard1 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-10px, -15px) rotate(-2deg);
  }
  66% {
    transform: translate(10px, -10px) rotate(2deg);
  }
}

@keyframes floatCard2 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(15px, -20px) rotate(3deg);
  }
}

@keyframes floatCard3 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-15px, 10px) rotate(-3deg);
  }
  66% {
    transform: translate(10px, 15px) rotate(2deg);
  }
}

.floating-card-1 {
  animation: floatCard1 6s ease-in-out infinite;
}

.floating-card-2 {
  animation: floatCard2 8s ease-in-out infinite;
  animation-delay: 1s;
}

.floating-card-3 {
  animation: floatCard3 7s ease-in-out infinite;
  animation-delay: 2s;
}

/* Animated gradient text */
@keyframes gradientText {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient-text {
  background-size: 200% auto;
  animation: gradientText 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Print styles */
@media print {
  header,
  footer,
  nav {
    display: none;
  }
}

