/* Particle Animation */
.particles-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particles-container::before,
.particles-container::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: #00d4ff;
  border-radius: 50%;
  box-shadow: 0 0 20px #00d4ff, 0 0 40px #00d4ff;
  animation: particleFloat 15s infinite ease-in-out;
  opacity: 0.6;
}

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

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

@keyframes particleFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(100px, -50px) scale(1.5);
    opacity: 0.8;
  }
  50% {
    transform: translate(200px, 50px) scale(1);
    opacity: 0.4;
  }
  75% {
    transform: translate(100px, 100px) scale(1.2);
    opacity: 0.7;
  }
}

/* Tilt Card Effect */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #00d4ff;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #33e0ff;
}

/* Prose Styling for Markdown Content */
.prose-custom {
  color: #d1d5db;
  line-height: 1.75;
}

.prose-custom h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.3;
  position: relative;
  padding-bottom: 0.5em;
}

.prose-custom h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 3px;
  background: linear-gradient(to right, #00d4ff, transparent);
}

.prose-custom h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #00d4ff;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.prose-custom p {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  margin-top: 0;
  margin-bottom: 1.25em;
  color: #d1d5db;
  line-height: 1.8;
}

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

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

.prose-custom a:hover {
  color: #33e0ff;
  text-decoration: underline;
}

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

.prose-custom li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.7;
}

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

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

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

.prose-custom ol li::marker {
  color: #00d4ff;
  font-weight: 700;
}

.prose-custom blockquote {
  border-left: 4px solid #00d4ff;
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: #9ca3af;
  background: rgba(0, 212, 255, 0.05);
  padding-top: 1em;
  padding-bottom: 1em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose-custom table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
}

.prose-custom th {
  background: #2a2a2a;
  color: #00d4ff;
  font-weight: 700;
  padding: 0.75em 1em;
  text-align: left;
  border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.prose-custom td {
  padding: 0.75em 1em;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  color: #d1d5db;
}

.prose-custom tr:hover {
  background: rgba(0, 212, 255, 0.05);
}

.prose-custom img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: 2px solid rgba(0, 212, 255, 0.2);
}

.prose-custom code {
  background: #2a2a2a;
  color: #00d4ff;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
}

.prose-custom pre {
  background: #1a1a1a;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 0.5rem;
  padding: 1.5em;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

.prose-custom pre code {
  background: transparent;
  padding: 0;
  color: #d1d5db;
}

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

.table-responsive table {
  min-width: 640px;
}

/* Additional Responsive Utilities */
@media (max-width: 768px) {
  .prose-custom h2 {
    margin-top: 1.5em;
  }

  .prose-custom ul,
  .prose-custom ol {
    padding-left: 1.25em;
  }

  .prose-custom blockquote {
    padding-left: 1em;
  }
}

/* Animation for elements coming into view */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Electric glow effect on hover for buttons */
.hover\:shadow-electric-glow:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 212, 255, 0.3);
}

/* Prevent horizontal overflow globally */
body {
  overflow-x: clip;
}
