/* Neon Text Effects */
.neon-text-cyan {
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
}

.neon-text-magenta {
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
}

.neon-text-glow {
  background: linear-gradient(90deg, #00ffff, #ff00ff, #00ffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: neon-gradient 3s linear infinite;
}

@keyframes neon-gradient {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Neon Glow Effects */
.neon-glow-header {
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.15);
}

.neon-glow-btn {
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4), 0 0 40px rgba(255, 0, 255, 0.2);
  transition: all 0.3s ease;
}

.neon-glow-btn:hover {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), 0 0 60px rgba(255, 0, 255, 0.4);
}

.neon-glow-box {
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3), 0 0 60px rgba(255, 0, 255, 0.2);
}

.neon-glow-card {
  transition: all 0.3s ease;
}

.neon-glow-card:hover {
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3), 0 0 50px rgba(255, 0, 255, 0.15);
  transform: translateY(-4px);
}

/* Neon Pulse Animation */
.neon-pulse {
  animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

/* Parallax Background */
.parallax-bg {
  animation: parallax-float 20s ease-in-out infinite;
}

@keyframes parallax-float {
  0%,
  100% {
    transform: translateY(0) scale(1.1);
  }
  50% {
    transform: translateY(-20px) scale(1.15);
  }
}

/* Neon Grid Pattern */
.neon-grid {
  background-image: linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

/* Neon Lines Pattern */
.neon-lines {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0, 255, 255, 0.05) 0px,
    rgba(0, 255, 255, 0.05) 2px,
    transparent 2px,
    transparent 10px,
    rgba(255, 0, 255, 0.05) 10px,
    rgba(255, 0, 255, 0.05) 12px,
    transparent 12px,
    transparent 20px
  );
  animation: lines-scroll 15s linear infinite;
}

@keyframes lines-scroll {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

/* Neon Pulse Background */
.neon-pulse-bg {
  background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1), transparent);
  animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* Prose Styling for Readability */
.prose-custom {
  max-width: 100%;
  line-height: 1.7;
  color: #e5e7eb;
  font-size: 1rem;
}

.prose-custom > * {
  max-width: 100%;
}

.prose-custom h1,
.prose-custom h2,
.prose-custom h3,
.prose-custom h4,
.prose-custom h5,
.prose-custom h6 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.prose-custom h1 {
  font-size: 2.5em;
  color: #00ffff;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  margin-top: 0;
}

.prose-custom h2 {
  font-size: 2em;
  color: #00ffff;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  padding-bottom: 0.5em;
  border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

.prose-custom h3 {
  font-size: 1.5em;
  color: #ff00ff;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
}

.prose-custom h4 {
  font-size: 1.25em;
  color: #00ffff;
}

.prose-custom h5 {
  font-size: 1.125em;
  color: #ff00ff;
}

.prose-custom h6 {
  font-size: 1em;
  color: #00ffff;
}

.prose-custom p {
  margin-bottom: 1.5em;
  color: #e5e7eb;
  line-height: 1.8;
}

.prose-custom p:first-of-type {
  font-size: 1.125em;
  line-height: 1.7;
}

.prose-custom a {
  color: #00ffff;
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 255, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.3s ease;
  font-weight: 500;
}

.prose-custom a:hover {
  color: #ff00ff;
  text-decoration-color: rgba(255, 0, 255, 0.5);
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.prose-custom ul,
.prose-custom ol {
  margin-bottom: 1.5em;
  padding-left: 2em;
  color: #e5e7eb;
}

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

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

.prose-custom ul > li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #00ffff;
  font-weight: bold;
}

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

.prose-custom ol > li::marker {
  color: #ff00ff;
  font-weight: bold;
}

.prose-custom li {
  margin-bottom: 0.75em;
  color: #e5e7eb;
  line-height: 1.7;
}

.prose-custom li > p {
  margin-bottom: 0.75em;
}

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

.prose-custom em,
.prose-custom i {
  font-style: italic;
  color: #f3f4f6;
}

.prose-custom code {
  background-color: rgba(0, 255, 255, 0.1);
  padding: 0.2em 0.5em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: #00ffff;
  border: 1px solid rgba(0, 255, 255, 0.2);
  font-family: "Courier New", monospace;
}

.prose-custom pre {
  background-color: rgba(10, 10, 20, 0.8);
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.prose-custom pre code {
  background-color: transparent;
  padding: 0;
  border: none;
  font-size: 0.875em;
}

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

.prose-custom blockquote p {
  color: #d1d5db;
}

.prose-custom img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em 0;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2), 0 0 60px rgba(255, 0, 255, 0.1);
  border: 2px solid rgba(0, 255, 255, 0.2);
}

.prose-custom figure {
  margin: 2em 0;
}

.prose-custom figcaption {
  margin-top: 0.75em;
  font-size: 0.875em;
  color: #9ca3af;
  text-align: center;
  font-style: italic;
}

.prose-custom table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.9375em;
  background-color: rgba(10, 10, 20, 0.5);
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose-custom thead {
  background-color: rgba(0, 255, 255, 0.15);
}

.prose-custom th,
.prose-custom td {
  padding: 0.875em 1em;
  border: 1px solid rgba(0, 255, 255, 0.2);
  text-align: left;
  vertical-align: top;
}

.prose-custom th {
  font-weight: 700;
  color: #00ffff;
  text-transform: uppercase;
  font-size: 0.875em;
  letter-spacing: 0.05em;
}

.prose-custom td {
  color: #e5e7eb;
}

.prose-custom tbody tr {
  transition: background-color 0.2s ease;
}

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

.prose-custom tbody tr:nth-child(even) {
  background-color: rgba(0, 255, 255, 0.02);
}

.prose-custom hr {
  border: none;
  border-top: 2px solid rgba(0, 255, 255, 0.2);
  margin: 3em 0;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 0.5rem;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.table-responsive table {
  margin: 0;
}

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

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

::-webkit-scrollbar-track {
  background: #0a0a14;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ffff, #ff00ff);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00cccc, #cc00cc);
}

/* Motion Lines Effect */
@keyframes motion-lines {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Strobe Effect */
@keyframes strobe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .prose-custom {
    font-size: 0.9375rem;
  }

  .prose-custom h1 {
    font-size: 2em;
  }

  .prose-custom h2 {
    font-size: 1.75em;
  }

  .prose-custom h3 {
    font-size: 1.375em;
  }

  .prose-custom h4 {
    font-size: 1.125em;
  }

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

  .prose-custom ul > li {
    padding-left: 1.25em;
  }

  .prose-custom th,
  .prose-custom td {
    padding: 0.625em 0.75em;
    font-size: 0.875em;
  }

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

@media (max-width: 480px) {
  .prose-custom {
    font-size: 0.875rem;
  }

  .prose-custom h1 {
    font-size: 1.75em;
  }

  .prose-custom h2 {
    font-size: 1.5em;
  }

  .prose-custom h3 {
    font-size: 1.25em;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
