/* Snake Pattern Background */
.snake-pattern-bg {
  background-color: #1a1a1a;
  background-image: radial-gradient(circle at 20% 50%, rgba(244, 197, 66, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(244, 197, 66, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(244, 197, 66, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

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

@keyframes pulse-slow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

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

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

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

.floating-banner {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

.tilt-element {
  animation: tilt 3s ease-in-out infinite;
}

.parallax-element {
  transition: transform 0.5s ease-out;
}

/* Parallax effect on scroll */
@media (min-width: 1024px) {
  .parallax-element {
    transform: translateY(calc(var(--scroll, 0) * -0.5px));
  }
}

/* Smooth scrolling for parallax */
@supports (scroll-behavior: smooth) {
  html {
    scroll-behavior: smooth;
  }
}

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

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #f4c542;
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.prose h1 {
  font-size: 2.25rem;
}

.prose h2 {
  font-size: 1.875rem;
}

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

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

.prose a {
  color: #ffd700;
  text-decoration: underline;
  transition: color 0.2s;
}

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

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

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

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

.prose code {
  background-color: #2d2d2d;
  color: #f4c542;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

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

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

.prose th,
.prose td {
  padding: 0.75em;
  border: 1px solid #374151;
}

.prose th {
  background-color: #2d2d2d;
  color: #f4c542;
  font-weight: bold;
}

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

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

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

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

/* Hover Effects */
.hover-glow:hover {
  box-shadow: 0 0 20px rgba(244, 197, 66, 0.5);
}

/* Loading Animation for Images */
img {
  transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Mobile Menu Smooth Transition */
#mobile-menu {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Snake-themed cursor effect (optional) */
@media (min-width: 1024px) {
  body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="%23f4c542" opacity="0.3"/></svg>'),
      auto;
  }

  a,
  button {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="%23ffd700"/></svg>'),
      pointer;
  }
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #f4c542 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card Hover Effects */
.bg-cobra-gray:hover {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

/* Responsive Video Embeds */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Print Styles */
@media print {
  .no-print,
  header,
  footer,
  #mobile-menu,
  #desktop-cta {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}

/* Accessibility: Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #f4c542;
  outline-offset: 2px;
}

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