/* Custom styles that complement Tailwind */

html {
  scroll-behavior: smooth;
}

/* Subtle entrance animation for hero elements */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header > .relative.z-10 > .max-w-2xl > * {
  animation: fadeUp 0.7s ease forwards;
}

header > .relative.z-10 > .max-w-2xl > :nth-child(1) { animation-delay: 0.1s; }
header > .relative.z-10 > .max-w-2xl > :nth-child(2) { animation-delay: 0.25s; }
header > .relative.z-10 > .max-w-2xl > :nth-child(3) { animation-delay: 0.4s; }
header > .relative.z-10 > .max-w-2xl > :nth-child(4) { animation-delay: 0.55s; }

/* Ensure above-the-fold content is visible immediately */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  header > .relative.z-10 > .max-w-2xl > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0fdfa;
}
::-webkit-scrollbar-thumb {
  background: #99f6e4;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5eead4;
}
