/* Particle Animation */
.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  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: rgba(192, 192, 192, 0.6);
  border-radius: 50%;
  animation: particle-float 15s infinite ease-in-out;
}

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

.particle-container::after {
  top: 60%;
  right: 15%;
  animation-delay: 7s;
}

@keyframes particle-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    transform: translate(3rem, -5rem) scale(1.5);
    opacity: 0.8;
  }
  90% {
    opacity: 0.4;
  }
}

/* Tilt Card Effect */
.card-tilt {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-tilt:hover {
  transform: perspective(62.5rem) rotateX(2deg) rotateY(2deg);
}

/* Burger Menu Animation */
#burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.3125rem, 0.3125rem);
}

#burger.active span:nth-child(2) {
  opacity: 0;
}

#burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

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

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

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

/* Prose Styling for Markdown Content */
.prose {
  max-width: 100%;
  line-height: 1.6;
}

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

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

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

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  color: #d4d4d8;
  line-height: 1.6;
}

.prose a {
  color: #4A9EFF;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #7EC8FF;
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
  color: #d4d4d8;
}

.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;
}

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

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

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

.prose blockquote {
  font-style: italic;
  border-left: 0.25rem solid #4A9EFF;
  padding-left: 1.5em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  color: #a1a1aa;
}

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

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

.prose thead {
  background-color: rgba(15, 37, 87, 0.6);
}

.prose th {
  padding: 0.875em 1em;
  text-align: left;
  font-weight: 600;
  color: #E5E5E5;
  border-bottom: 0.125rem solid rgba(192, 192, 192, 0.2);
}

.prose td {
  padding: 0.875em 1em;
  color: #d4d4d8;
  border-bottom: 0.0625rem solid rgba(192, 192, 192, 0.1);
}

.prose tbody tr:hover {
  background-color: rgba(15, 37, 87, 0.3);
  transition: background-color 0.2s ease;
}

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

.prose code {
  background-color: rgba(15, 37, 87, 0.5);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #7EC8FF;
  font-family: monospace;
}

.prose pre {
  background-color: rgba(15, 37, 87, 0.5);
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 0.0625rem solid rgba(192, 192, 192, 0.2);
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: #E5E5E5;
  font-size: 0.875rem;
}

.prose hr {
  margin-top: 3em;
  margin-bottom: 3em;
  border: 0;
  border-top: 0.0625rem solid rgba(192, 192, 192, 0.2);
}

/* Responsive Typography */
@media (max-width: 48rem) {
  .prose h2 {
    font-size: 1.5rem;
  }

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

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

  .prose {
    font-size: 0.9375rem;
  }
}

/* Ensure readable contrast */
.prose {
  color: #d4d4d8;
}

.prose-invert {
  color: #d4d4d8;
}
