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

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
}

.marquee-container {
  position: relative;
}

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

.marquee-content:hover {
  animation-play-state: paused;
}

/* Duplicate content for seamless loop */
.marquee-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
}

/* Particle Animation */
.particle-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle-container::before,
.particle-container::after {
  content: '';
  position: absolute;
  width: 0.25rem;
  height: 0.25rem;
  background: #d4af37;
  border-radius: 50%;
  animation: particle-float 8s ease-in-out infinite;
}

.particle-container::before {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.particle-container::after {
  top: 60%;
  left: 80%;
  animation-delay: 4s;
}

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

/* Prose Styling for Markdown Content */
.prose {
  color: #c0c5ce;
  max-width: 100%;
}

.prose h2 {
  color: #c0c5ce;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  border-bottom: 0.125rem solid rgba(212, 175, 55, 0.3);
  padding-bottom: 0.5em;
}

.prose h3 {
  color: #c0c5ce;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: #c0c5ce;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  line-height: 1.75;
  color: rgba(192, 197, 206, 0.85);
}

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

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

.prose strong {
  color: #c0c5ce;
  font-weight: 700;
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.75em;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.75;
  color: rgba(192, 197, 206, 0.85);
}

.prose li::marker {
  color: #d4af37;
}

.prose blockquote {
  font-style: italic;
  border-left: 0.25rem solid #d4af37;
  padding-left: 1.5em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  color: rgba(192, 197, 206, 0.9);
  background-color: rgba(26, 31, 46, 0.5);
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin: 0;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  overflow-x: auto;
  display: block;
  border: 0.0625rem solid rgba(192, 197, 206, 0.2);
  border-radius: 0.5rem;
}

.prose thead {
  background-color: #0a1628;
  border-bottom: 0.125rem solid rgba(212, 175, 55, 0.3);
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #c0c5ce;
  border-bottom: 0.0625rem solid rgba(192, 197, 206, 0.2);
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid rgba(192, 197, 206, 0.1);
  color: rgba(192, 197, 206, 0.85);
}

.prose tbody tr:hover {
  background-color: rgba(10, 22, 40, 0.5);
  transition: background-color 0.2s ease;
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 2em;
  margin-bottom: 2em;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.3);
}

.prose code {
  background-color: rgba(26, 31, 46, 0.8);
  color: #d4af37;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background-color: #1a1f2e;
  color: #c0c5ce;
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 0.0625rem solid rgba(192, 197, 206, 0.2);
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.875em;
}

.prose hr {
  border: none;
  border-top: 0.125rem solid rgba(212, 175, 55, 0.3);
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1em;
  margin-bottom: 1em;
}

/* Ensure readable contrast */
.prose {
  --tw-prose-body: rgba(192, 197, 206, 0.85);
  --tw-prose-headings: #c0c5ce;
  --tw-prose-links: #d4af37;
  --tw-prose-bold: #c0c5ce;
  --tw-prose-quotes: rgba(192, 197, 206, 0.9);
  --tw-prose-code: #d4af37;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }

  .prose h2 {
    font-size: 1.5rem;
  }

  .prose h3 {
    font-size: 1.25rem;
  }

  .prose h4 {
    font-size: 1.125rem;
  }

  .prose table {
    font-size: 0.875rem;
  }

  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
  }
}

/* Additional utility for mobile menu background */
#mobile-menu {
  backdrop-filter: blur(10px);
}
