/* Notion-inspired animations and effects */

/* Fade-in animation for elements */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.7s ease-out forwards;
}

/* Floating elements with parallax */
.floating-element {
  transition: transform 0.1s ease-out;
}

/* Smooth hover transitions */
.group {
  transition: all 0.2s ease-out;
}

/* Mobile navigation animations */
#mobile-menu {
  transition: all 0.3s ease-in-out;
  transform-origin: top;
}

#mobile-menu[hidden] {
  transform: scaleY(0);
  opacity: 0;
}

#mobile-menu:not([hidden]) {
  transform: scaleY(1);
  opacity: 1;
}

/* Dropdown menu animations */
.group .invisible {
  transform: translateY(-8px) scale(0.95);
  transition: all 0.2s ease-out;
}

.group:hover .invisible {
  transform: translateY(0) scale(1);
}

/* Button hover effects */
.group button svg {
  transition: transform 0.2s ease-out;
}

.group:hover button svg {
  transform: rotate(180deg);
}

/* Card hover effects with subtle lift */
.card,
.group .rounded-2xl {
  transition: all 0.2s ease-out;
}

.card:hover,
.group:hover .rounded-2xl {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient text animations */
.bg-gradient-to-r {
  background-size: 200% auto;
  animation: gradient 3s ease infinite;
}

@keyframes gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Arrow animation on hover */
.group svg {
  transition: transform 0.2s ease-out;
}

.group:hover svg {
  transform: translateX(2px);
}

/* Scale animation for floating elements */
.floating-element {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive animations - disable on reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}