/* Mobile-first responsive styles */

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

/* Better touch targets on mobile */
@media (max-width: 768px) {
  button, a {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Animation classes for Tailwind */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeIn 0.5s ease-out forwards, slideInFromBottom 0.5s ease-out forwards;
}

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

.slide-in-from-bottom-4 {
  animation: slideInFromBottom 0.5s ease-out forwards;
}

.slide-in-from-bottom-8 {
  animation: slideInFromBottom 0.7s ease-out forwards;
}

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

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #627EEA;
  outline-offset: 2px;
}

/* Hide decorative elements on small screens for cleaner mobile UX */
@media (max-width: 640px) {
  .decorative-element {
    display: none;
  }
}

/* Improve text readability on mobile */
@media (max-width: 640px) {
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}
