/* Custom animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.8s ease-out both;
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out both;
}

.animate-fade-in-up-delay {
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.animate-fade-in-up-delay-2 {
  animation: fade-in-up 0.8s ease-out 0.4s both;
}

/* Hero background video */
.hero-video {
  filter: blur(2px) saturate(0.3);
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-video {
    display: none;
  }
}

/* Hero grid pattern */
.hero-grid {
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #222222;
  border-radius: 4px;
}

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

/* Navbar glass effect when scrolled */
.navbar-scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.08);
}

/* Section reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Form focus states */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.08);
}

/* Selection color */
::selection {
  background: rgba(0, 255, 136, 0.25);
  color: white;
}

/* Crossed-out magazine cover */
.crossed-out-wrapper {
  filter: drop-shadow(0 0 40px rgba(220, 38, 38, 0.15));
}

/* X lines draw-on animation */
@keyframes draw-x {
  from { stroke-dashoffset: 500; }
  to { stroke-dashoffset: 0; }
}

.x-line-1, .x-line-2 {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.6));
}

.crossed-out-wrapper.animate .x-line-1 {
  animation: draw-x 0.5s ease-out 0.3s forwards;
}

.crossed-out-wrapper.animate .x-line-2 {
  animation: draw-x 0.5s ease-out 0.6s forwards;
}

/* REJECTED stamp animation */
@keyframes stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(2.5); }
  60% { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(0.9); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); }
}

.crossed-out-wrapper .absolute.-rotate-12 {
  opacity: 0;
}

.crossed-out-wrapper.animate .absolute.-rotate-12 {
  animation: stamp 0.4s ease-out 1s forwards;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #166534;
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.4s ease-out;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
