/* Custom Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Apply animations */
.animate-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Typography */
body {
  font-family: 'Space Grotesk', sans-serif;
}

.font-serif {
  font-family: 'Instrument Serif', serif;
}

/* Custom button styles */
button {
  transition: all 0.3s ease;
}

/* Smooth scroll links */
a[href^="#"] {
  text-decoration: none;
}

/* Image fallback gradient */
img {
  background: linear-gradient(135deg, #e0e7ff 0%, #cffafe 100%);
}

/* Grain overlay effect subtle */
.grain-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise' /%3E%3CfeColorMatrix in='noise' type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Section animations on scroll - use CSS only */
section {
  animation: fadeIn 0.6s ease-out;
}

/* Card hover effects */
.group {
  transition: all 0.3s ease;
}

/* Marquee-style text scroll effect (if needed) */
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Link underline animation */
a.hover-underline {
  position: relative;
  display: inline-block;
}

a.hover-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

a.hover-underline:hover::after {
  width: 100%;
}

/* Mobile menu smooth transitions */
#mobile-menu {
  transition: all 0.3s ease;
  max-height: 500px;
  overflow: hidden;
}

#mobile-menu.hidden {
  max-height: 0;
  opacity: 0;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print styles */
@media print {
  .sticky {
    position: static;
  }
  
  button {
    border: 1px solid #000;
  }
}

