/* Neon Glow Effects */
.neon-glow {
  box-shadow: 0 0 20px rgba(20, 241, 217, 0.3), 0 0 40px rgba(153, 69, 255, 0.2);
}

.neon-glow-text {
  text-shadow: 0 0 20px rgba(20, 241, 217, 0.5), 0 0 40px rgba(153, 69, 255, 0.3);
}

/* Tilt Animation */
.tilt-card {
  transition: transform 0.3s ease;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.02);
}

/* Particle Animation */
.particle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: -10%;
  width: clamp(1rem, 2vw, 2.5rem);
  height: clamp(1rem, 2vw, 2.5rem);
  background: radial-gradient(circle, rgba(20, 241, 217, 0.6), rgba(153, 69, 255, 0.3));
  border-radius: 50%;
  filter: blur(2px);
  animation: float-up 15s ease-in-out infinite;
  opacity: 0;
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-110vh) scale(0.5);
    opacity: 0;
  }
}

/* Burger Menu Active State */
#burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

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

.prose h2 {
  color: #14f1d9;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
  background: linear-gradient(135deg, #14f1d9, #9945ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prose h3 {
  color: #9945ff;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: #e2e8f0;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.5em;
  line-height: 1.75;
  font-size: clamp(0.938rem, 2vw, 1.125rem);
}

.prose a {
  color: #14f1d9;
  text-decoration: underline;
  text-decoration-color: rgba(20, 241, 217, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: #9945ff;
  text-decoration-color: rgba(153, 69, 255, 0.6);
}

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.75;
  font-size: clamp(0.938rem, 2vw, 1.063rem);
}

.prose ul > li {
  position: relative;
  padding-left: 0.5em;
}

.prose ul > li::marker {
  color: #14f1d9;
}

.prose ol > li::marker {
  color: #9945ff;
  font-weight: 700;
}

.prose blockquote {
  border-left: 0.25rem solid #14f1d9;
  padding-left: 1.5em;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-style: italic;
  color: #94a3b8;
  background: rgba(20, 241, 217, 0.05);
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin-top: 2em;
  margin-bottom: 2em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 0.75rem;
  overflow: hidden;
}

.prose thead {
  background: linear-gradient(135deg, rgba(20, 241, 217, 0.1), rgba(153, 69, 255, 0.1));
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #14f1d9;
  border-bottom: 2px solid rgba(20, 241, 217, 0.3);
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
}

.prose tbody tr:hover {
  background: rgba(20, 241, 217, 0.05);
}

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

.prose code {
  color: #ff3eb5;
  background: rgba(153, 69, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.prose pre {
  background: rgba(15, 23, 42, 0.8);
  padding: 1.5em;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

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

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

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