/* Custom animations and overrides */
@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes emberGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 87, 34, 0.6);
  }
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes ashParticle {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Ember theme colors and effects */
.ember-gradient {
  background: linear-gradient(135deg, #ff5722 0%, #bf360c 50%, #212121 100%);
}

.ember-glow {
  animation: emberGlow 3s ease-in-out infinite;
}

.parallax-float {
  animation: parallaxFloat 6s ease-in-out infinite;
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marqueeScroll 30s linear infinite;
}

/* Ash particles */
.ash-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 87, 34, 0.7);
  border-radius: 50%;
  animation: ashParticle 8s linear infinite;
}

.ash-particle:nth-child(2) {
  left: 20%;
  animation-delay: 1s;
}
.ash-particle:nth-child(3) {
  left: 40%;
  animation-delay: 2s;
}
.ash-particle:nth-child(4) {
  left: 60%;
  animation-delay: 3s;
}
.ash-particle:nth-child(5) {
  left: 80%;
  animation-delay: 4s;
}

/* Charred wood texture pattern */
.charred-texture {
  background-image: radial-gradient(circle at 25% 25%, #424242 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, #616161 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Ember filigree borders */
.ember-border {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box, linear-gradient(45deg, #ff5722, #ff9800, #ff5722) border-box;
}

/* Prose styling for readability */
.prose {
  line-height: 1.7;
  color: #333;
}

.prose h1,
.prose h2,
.prose h3 {
  color: #bf360c;
  font-weight: 700;
}

.prose p {
  margin-bottom: 1.25rem;
}

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

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

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

/* Mobile burger menu */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger-line {
  width: 25px;
  height: 3px;
  background: #ff5722;
  margin: 3px 0;
  transition: 0.3s;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 1023px) {
  .burger-menu {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: #212121;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    z-index: 50;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 2.5rem 0;
  }
}

/* Bonus badge styling */
.bonus-badge {
  background: linear-gradient(135deg, #ff5722, #ff9800);
  border: 3px solid #ffe0b2;
  box-shadow: 0 0 30px rgba(255, 87, 34, 0.4);
}

/* CTA button styling */
.cta-primary {
  background: linear-gradient(135deg, #ff5722, #ff9800);
  transition: all 0.3s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 87, 34, 0.4);
}

.cta-secondary {
  border: 2px solid #ff5722;
  color: #ff5722;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: #ff5722;
  color: white;
}
