  /* Custom styles beyond Tailwind */

  html {
    scroll-behavior: smooth;
  }

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Nav scroll state */
  .nav-scrolled {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  }

  /* Mobile link hover */
  .mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(123, 45, 139, 0.3);
    transition: color 0.2s ease, padding-left 0.2s ease;
  }

  .mobile-link:last-child {
    border-bottom: none;
  }

  .mobile-link:hover {
    color: #F5A623;
    padding-left: 0.5rem;
  }

  /* Fade-in animation */
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger children */
  .stagger-children > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
  .stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
  .stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
  .stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
  .stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
  .stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

  .stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
  }

  /* Input focus ring for accessibility */
  input:focus,
  textarea:focus {
    outline: none;
  }

  /* Selection color */
  ::selection {
    background-color: rgba(245, 166, 35, 0.3);
    color: #fff;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #250f2d;
  }

  ::-webkit-scrollbar-thumb {
    background: #7B2D8B;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #9b3fa0;
  }
