/* 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: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

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

.particle-container::after {
  bottom: -10%;
  right: -10%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(3rem, 3rem) scale(1.1);
  }
}

/* Parallax Effect */
.parallax-wrapper {
  position: relative;
  overflow: hidden;
}

.parallax-image {
  transition: transform 0.3s ease-out;
}

.parallax-wrapper:hover .parallax-image {
  transform: scale(1.05) translateY(-0.5rem);
}

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

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

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  color: #065f46;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #047857;
}

.prose h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: #059669;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1.0625rem;
}

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

.prose a:hover {
  color: #047857;
}

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

.prose em {
  font-style: italic;
}

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

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
  padding-left: 0.5rem;
}

.prose ul > li {
  padding-left: 0.5rem;
}

.prose ol > li {
  padding-left: 0.5rem;
}

.prose blockquote {
  font-style: italic;
  border-left: 0.25rem solid #10b981;
  padding-left: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  color: #374151;
  background: #f0fdf4;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-right: 1rem;
  border-radius: 0.5rem;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  overflow-x: auto;
  display: block;
}

.prose thead {
  background: linear-gradient(to right, #059669, #14b8a6);
  color: white;
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid #d1fae5;
}

.prose td {
  padding: 0.875rem 1rem;
  border: 1px solid #d1fae5;
  line-height: 1.5;
}

.prose tbody tr:nth-child(odd) {
  background: #f0fdf4;
}

.prose tbody tr:hover {
  background: #d1fae5;
  transition: background 0.2s ease;
}

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

.prose code {
  background: #f0fdf4;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #065f46;
  font-family: ui-monospace, monospace;
}

.prose pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.prose hr {
  border: none;
  border-top: 2px solid #d1fae5;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }
  
  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .prose h4 {
    font-size: 1.125rem;
  }
  
  .prose table {
    font-size: 0.875rem;
  }
  
  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
  }
}

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

/* Animation utilities */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}
