/* Keyframe Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  33% {
    transform: translateY(-1rem) translateX(0.5rem);
  }
  66% {
    transform: translateY(0.5rem) translateX(-0.5rem);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 1.25rem rgba(0, 212, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 2rem rgba(0, 212, 255, 0.7);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Parallax effect class */
.parallax {
  transition: transform 0.3s ease-out;
}

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

.table-responsive table {
  min-width: 100%;
}

/* Prose Styling */
.prose {
  color: #c5d5e4;
  max-width: 100%;
}

.prose h2 {
  color: #00d4ff;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose h3 {
  color: #00d4ff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.875em;
  line-height: 1.4;
}

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

.prose p {
  margin-top: 0;
  margin-bottom: 1.5em;
  line-height: 1.75;
  font-size: 1.0625rem;
  color: rgba(197, 213, 228, 0.9);
}

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

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

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

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

.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(197, 213, 228, 0.85);
}

.prose li::marker {
  color: #00d4ff;
}

.prose blockquote {
  font-style: italic;
  border-left: 0.25rem solid #00d4ff;
  padding-left: 1.5em;
  margin: 2em 0;
  color: rgba(197, 213, 228, 0.8);
  background: rgba(26, 77, 92, 0.1);
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  overflow-x: auto;
  display: block;
}

@media (min-width: 48rem) {
  .prose table {
    display: table;
  }
}

.prose thead {
  background: rgba(26, 77, 92, 0.3);
  border-bottom: 0.125rem solid #00d4ff;
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #00d4ff;
  font-size: 0.9375rem;
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid rgba(26, 77, 92, 0.3);
  color: rgba(197, 213, 228, 0.85);
}

.prose tbody tr:hover {
  background: rgba(26, 77, 92, 0.15);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2em auto;
  display: block;
  border: 0.0625rem solid rgba(0, 212, 255, 0.3);
}

.prose code {
  background: rgba(26, 77, 92, 0.4);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: #00d4ff;
  font-family: 'Courier New', monospace;
}

.prose pre {
  background: rgba(26, 29, 41, 0.8);
  border: 0.0625rem solid rgba(0, 212, 255, 0.3);
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 2em 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #c5d5e4;
}

.prose hr {
  border: none;
  border-top: 0.125rem solid rgba(26, 77, 92, 0.5);
  margin: 3em 0;
}

/* Responsive Typography */
@media (max-width: 48rem) {
  .prose h2 {
    font-size: 1.625rem;
  }
  
  .prose h3 {
    font-size: 1.375rem;
  }
  
  .prose h4 {
    font-size: 1.125rem;
  }
  
  .prose p,
  .prose li {
    font-size: 1rem;
  }
}

/* Ensure readability */
.prose ::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #ffffff;
}

/* Additional spacing for first paragraph after heading */
.prose h2 + p,
.prose h3 + p,
.prose h4 + p {
  margin-top: 0.75em;
}
