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

.marquee-container {
  overflow: hidden;
  position: relative;
}

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

.marquee-content::after {
  content: '';
  display: flex;
  flex-shrink: 0;
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(77, 208, 225, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(77, 208, 225, 0.6), 0 0 60px rgba(77, 208, 225, 0.3);
  }
}

.glow-effect {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Table Responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  min-width: 40rem;
}

/* Parallax Effect */
.parallax {
  will-change: transform;
}

/* Prose Styling for Markdown Content */
.prose {
  color: #CFD8DC;
  line-height: 1.6;
  font-size: 1rem;
}

.prose h2 {
  color: #4DD0E1;
  font-size: 2em;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.2;
  border-bottom: 0.125em solid rgba(77, 208, 225, 0.2);
  padding-bottom: 0.5em;
}

.prose h3 {
  color: #80DEEA;
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  line-height: 1.3;
}

.prose h4 {
  color: #B0BEC5;
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.25em;
  line-height: 1.7;
}

.prose a {
  color: #4DD0E1;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #80DEEA;
}

.prose strong {
  color: #E0F7FA;
  font-weight: 600;
}

.prose em {
  font-style: italic;
  color: #B0BEC5;
}

.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.6;
  padding-left: 0.375em;
}

.prose li::marker {
  color: #4DD0E1;
  font-weight: 600;
}

.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose blockquote {
  border-left: 0.25em solid #4DD0E1;
  padding-left: 1.5em;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-style: italic;
  color: #B0BEC5;
  background: rgba(0, 131, 143, 0.1);
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0 0.5em 0.5em 0;
}

.prose blockquote p {
  margin-bottom: 0.5em;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  border: 0.0625em solid rgba(77, 208, 225, 0.3);
  border-radius: 0.5em;
  overflow: hidden;
  background: rgba(0, 131, 143, 0.2);
  font-size: 0.9375em;
}

.prose thead {
  background: rgba(0, 96, 100, 0.8);
}

.prose thead th {
  color: #4DD0E1;
  font-weight: 700;
  text-align: left;
  padding: 0.875em 1em;
  border-bottom: 0.125em solid rgba(77, 208, 225, 0.4);
}

.prose tbody tr {
  border-bottom: 0.0625em solid rgba(77, 208, 225, 0.15);
  transition: background-color 0.2s ease;
}

.prose tbody tr:hover {
  background: rgba(0, 131, 143, 0.3);
}

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

.prose tbody td {
  padding: 0.875em 1em;
  color: #CFD8DC;
  line-height: 1.5;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75em;
  margin-top: 2em;
  margin-bottom: 2em;
  border: 0.125em solid rgba(77, 208, 225, 0.2);
  box-shadow: 0 0.25em 1em rgba(0, 0, 0, 0.3);
}

.prose code {
  background: rgba(0, 96, 100, 0.4);
  color: #80DEEA;
  padding: 0.125em 0.375em;
  border-radius: 0.25em;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
  border: 0.0625em solid rgba(77, 208, 225, 0.2);
}

.prose pre {
  background: rgba(0, 96, 100, 0.5);
  border: 0.0625em solid rgba(77, 208, 225, 0.3);
  border-radius: 0.5em;
  padding: 1.25em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  overflow-x: auto;
}

.prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #CFD8DC;
  font-size: 0.875em;
}

.prose hr {
  border: none;
  border-top: 0.125em solid rgba(77, 208, 225, 0.2);
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Responsive Typography Adjustments */
@media (min-width: 1024px) {
  .prose {
    font-size: 1.125rem;
  }
  
  .prose h2 {
    font-size: 2.25em;
  }
  
  .prose h3 {
    font-size: 1.75em;
  }
  
  .prose table {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .prose {
    font-size: 0.9375rem;
  }
  
  .prose h2 {
    font-size: 1.75em;
  }
  
  .prose h3 {
    font-size: 1.375em;
  }
  
  .prose table {
    font-size: 0.875em;
  }
  
  .prose thead th,
  .prose tbody td {
    padding: 0.625em 0.75em;
  }
}

/* Ensure Table Scrollability */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

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