/* Custom Animations & Patterns */

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.8), 0 0 60px rgba(220, 38, 38, 0.4);
  }
}

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

@keyframes slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes tilt {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: rotate(1deg);
  }
}

/* Global Styles */
body {
  background: linear-gradient(180deg, #000000 0%, #1a0000 50%, #000000 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Pulse Glow Effect */
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Floating Hero */
.floating-hero {
  animation: float 6s ease-in-out infinite;
}

/* Slide Up Animation */
.animate-slide-up {
  animation: slide-up 0.5s ease-out forwards;
}

/* Pattern Background */
.pattern-bg {
  background-image: radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(190, 18, 60, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(153, 27, 27, 0.1) 0%, transparent 40%);
}

/* Shimmer Effect */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* Tilt Animation */
.tilt {
  animation: tilt 4s ease-in-out infinite;
}

/* Prose Styling for Readability */
.prose {
  color: #d1d5db;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #ffffff;
  font-weight: 800;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.875rem;
  border-bottom: 2px solid rgba(220, 38, 38, 0.3);
  padding-bottom: 0.5rem;
}

.prose h3 {
  font-size: 1.5rem;
  color: #fca5a5;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  line-height: 1.75;
}

.prose a {
  color: #ef4444;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}

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

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose blockquote {
  border-left: 4px solid #ef4444;
  padding-left: 1.5em;
  font-style: italic;
  color: #9ca3af;
  margin: 2em 0;
}

.prose code {
  background-color: rgba(31, 41, 55, 0.7);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #fca5a5;
}

.prose pre {
  background-color: #1f2937;
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2em 0;
}

.prose img {
  border-radius: 0.75rem;
  margin: 2em 0;
}

.prose table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
}

.prose th {
  background-color: rgba(220, 38, 38, 0.2);
  color: #ffffff;
  font-weight: 700;
  padding: 0.75em;
  text-align: left;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.prose td {
  padding: 0.75em;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.prose hr {
  border: none;
  border-top: 2px solid rgba(220, 38, 38, 0.3);
  margin: 3em 0;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #991b1b;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #dc2626;
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

/* Selection Styles */
::selection {
  background-color: #dc2626;
  color: #ffffff;
}

/* Responsive Image Fixes */
img {
  max-width: 100%;
  height: auto;
}

/* Details/Summary Cursor */
summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}
