/* Custom animations and overrides */

/* Parallax effect */
.parallax-bg {
  transform: translateZ(0);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .parallax-bg {
    animation: parallaxFloat 20s ease-in-out infinite;
  }
}

@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1.05);
  }
  50% {
    transform: translateY(-20px) scale(1.08);
  }
}

/* Marquee animation */
.marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Duplicate content for seamless loop */
.marquee-content::after {
  content: "";
  display: flex;
  flex-shrink: 0;
  width: 100%;
}

/* Hover effects */
.hover-glow:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Prose styling for readability */
.prose {
  line-height: 1.7;
}

.prose p {
  margin-bottom: 1.5rem;
  color: rgba(229, 228, 226, 0.9);
}

.prose h2 {
  color: #d4af37;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  color: #d4af37;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose ul {
  margin-bottom: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
  color: rgba(229, 228, 226, 0.85);
}

.prose a {
  color: #d4af37;
  text-decoration: none;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #f4d03f;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .marquee-content {
    animation-duration: 20s;
  }

  .parallax-bg {
    animation: none;
    transform: scale(1.02);
  }
}

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

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

::-webkit-scrollbar-track {
  background: #0b1426;
}

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

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

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

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

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

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

/* Table responsive styling */
@media (max-width: 768px) {
  table {
    font-size: 0.875rem;
  }

  th,
  td {
    padding: 0.5rem !important;
  }
}

/* Button hover effects */
.btn-glow:hover {
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

/* Card hover effects */
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .marquee-content {
    animation: none;
  }

  .parallax-bg {
    animation: none;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
