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

  /* Scroll reveal animations */
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hero floating orbs */
  @keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
  }
  .orb-1 { animation: float 8s ease-in-out infinite; }
  .orb-2 { animation: float 10s ease-in-out infinite reverse; }
  .orb-3 { animation: float 12s ease-in-out infinite; }

  /* Nav background on scroll */
  #nav.scrolled {
    background: rgba(93, 33, 182, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  }

  /* Mobile menu transition */
  #mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  #mobileMenu.open {
    max-height: 300px;
  }

  /* Selection color */
  ::selection {
    background: #c4b5fd;
    color: #4c1d95;
  }

  /* Focus visible */
  :focus-visible {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
  }

  /* Subtle gradient border on cards */
  @media (min-width: 768px) {
    .scroll-reveal:nth-child(1) { transition-delay: 0ms; }
    .scroll-reveal:nth-child(2) { transition-delay: 100ms; }
    .scroll-reveal:nth-child(3) { transition-delay: 200ms; }
    .scroll-reveal:nth-child(4) { transition-delay: 300ms; }
    .scroll-reveal:nth-child(5) { transition-delay: 400ms; }
    .scroll-reveal:nth-child(6) { transition-delay: 500ms; }
  }
