  /* Custom styles and overrides */
  :root {
    --coral-500: #E8654A;
    --coral-100: #FFE0D6;
    --coral-50: #FFF0EC;
    --charcoal-800: #1E1E26;
    --charcoal-700: #2E2E38;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

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

  /* Nav styles */
  #navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(30, 30, 38, 0.08);
  }

  #navbar.scrolled .nav-text {
    color: #1E1E26;
  }

  #navbar.scrolled .nav-link {
    color: #525260;
  }

  /* Mobile menu animation */
  #mobileMenu.open {
    max-height: 500px;
  }

  #bar1 {
    transform-origin: center;
  }

  #bar2 {
    transform-origin: center;
  }

  #bar3 {
    transform-origin: center;
  }

  body.menu-open #bar1 {
    transform: translateY(4px) rotate(45deg);
  }

  body.menu-open #bar2 {
    opacity: 0;
    transform: scaleX(0);
  }

  body.menu-open #bar3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
  }

  /* Scroll reveal - progressive enhancement */
  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .scroll-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }

    /* Default state is visible — JS adds the 'revealed' class for timing */
    .scroll-reveal {
      will-change: opacity, transform;
    }
  }

  /* Hero decorative pulse */
  @keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
  }

  /* Subtle gradient animation for hero */
  @keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

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

  ::-webkit-scrollbar-track {
    background: #F5F5F7;
  }

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

  ::-webkit-scrollbar-thumb:hover {
    background: #A8A8B4;
  }

  /* Select styling */
  select option {
    background: #2E2E38;
    color: #E8E8EC;
  }

  /* Focus visible for accessibility */
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #E8654A;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Mobile menu links */
  .mobile-link {
    display: block;
    border-radius: 0.75rem;
  }

  /* Back to top button animation */
  #backToTop.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  #backToTop:not(.visible) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
  }
