/* Custom Animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}
@keyframes glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

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

/* Particle effect in hero */
.particle {
  position: absolute;
  border-radius: 50%;
  animation: float linear infinite;
}

/* Nav scroll effect */
.nav-scrolled {
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.nav-scrolled .nav-link,
.nav-scrolled a:first-child span {
  color: #2f2510;
}

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

/* Selection color */
::selection {
  background: rgba(110, 45, 163, 0.2);
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid #6e2da3;
  outline-offset: 2px;
}

/* Blog article hover effect */
.article-card img {
  transition: transform 0.5s ease;
}
.article-card:hover img {
  transform: scale(1.05);
}

/* Form input styling */
input:focus, textarea:focus {
  border-color: #6e2da3;
}

/* Gradient text fallback */
@supports not (background-clip: text) {
  .text-transparent {
    color: #c9a8e4;
  }
}

/* Print styles */
@media print {
  nav, footer, .particles { display: none; }
  body { background: white; }
}
