/* Particle Animation */
.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle-container::before,
.particle-container::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(6, 182, 212, 0.6);
  border-radius: 50%;
  animation: particle-float 15s infinite linear;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}

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

.particle-container::after {
  top: 60%;
  left: 70%;
  animation-delay: 3s;
  animation-duration: 18s;
}

@keyframes particle-float {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(100px, -500px) scale(0.5);
    opacity: 0;
  }
}

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

.tilt-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.3);
}

/* Prose Styling for Markdown Content */
.prose {
  color: #cbd5e1;
  line-height: 1.6;
}

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

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

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

.prose p {
  margin-top: 1em;
  margin-bottom: 1em;
  color: #cbd5e1;
}

.prose a {
  color: #22d3ee;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.3);
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #06b6d4;
  text-decoration-color: rgba(6, 182, 212, 0.8);
}

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

.prose ul,
.prose ol {
  margin-top: 1em;
  margin-bottom: 1em;
  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;
  color: #cbd5e1;
}

.prose li::marker {
  color: #22d3ee;
}

.prose blockquote {
  border-left: 4px solid #22d3ee;
  padding-left: 1.5em;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-style: italic;
  color: #94a3b8;
  background: rgba(10, 22, 40, 0.5);
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0.25rem;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 2em;
  margin-bottom: 2em;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  overflow-x: auto;
  display: block;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 0.5rem;
}

.prose thead {
  background: rgba(10, 22, 40, 0.8);
}

.prose th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #22d3ee;
  border-bottom: 2px solid rgba(34, 211, 238, 0.3);
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
  color: #cbd5e1;
}

.prose tbody tr:hover {
  background: rgba(10, 22, 40, 0.3);
}

.prose code {
  background: rgba(10, 22, 40, 0.8);
  color: #22d3ee;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, monospace;
}

.prose pre {
  background: rgba(10, 22, 40, 0.8);
  color: #cbd5e1;
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.prose hr {
  border: none;
  border-top: 1px solid rgba(34, 211, 238, 0.2);
  margin-top: 3em;
  margin-bottom: 3em;
}

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

/* Ensure mobile responsiveness */
@media (max-width: 768px) {
  .prose {
    font-size: 0.9375rem;
  }
  
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.5rem;
  }
}
