/* ===== CUSTOM STYLES ===== */

/* Marquee animation */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* Scroll reveal base states — content is VISIBLE by default */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
}

/* Only apply animations when JS adds the class AND user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up.animated {
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .reveal-left.animated {
    animation: slideLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .reveal-right.animated {
    animation: slideRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Selection color */
::selection {
  background-color: #4ade80;
  color: #052e16;
}

/* Mobile menu transition */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
  border-radius: 4px;
}
