/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  animation: none;
}

.animate-on-scroll.in-view {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-on-scroll.in-view:nth-child(2) {
  animation-delay: 0.1s;
}

.animate-on-scroll.in-view:nth-child(3) {
  animation-delay: 0.2s;
}

.animate-on-scroll.in-view:nth-child(4) {
  animation-delay: 0.3s;
}

.animate-on-scroll.in-view:nth-child(5) {
  animation-delay: 0.4s;
}

.animate-on-scroll.in-view:nth-child(6) {
  animation-delay: 0.5s;
}

/* ============================================
   HOVER EFFECTS
   ============================================ */
.card {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(139, 105, 20, 0.3);
}

.image-hover {
  overflow: hidden;
  border-radius: 4px;
}

.image-hover img {
  transition: transform 0.3s ease;
}

.image-hover:hover img {
  transform: scale(1.05);
}

/* ============================================
   LOADING & TRANSITIONS
   ============================================ */
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(139, 105, 20, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 2rem;
  background: rgba(26, 10, 0, 0.95);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  color: var(--text-light);
  z-index: 9999;
  animation: slideIn 0.3s ease;
  max-width: 350px;
}

.toast.success {
  border-left-color: #28a745;
}

.toast.error {
  border-left-color: #dc3545;
}

.toast.info {
  border-left-color: var(--gold);
}

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

@media (max-width: 768px) {
  .toast {
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}
