  /* Base & Reset */
  *, *::before, *::after {
    box-sizing: border-box;
  }

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

  body {
    overflow-x: hidden;
  }

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

  /* Selection */
  ::selection {
    background: #99f6e4;
    color: #134e4a;
  }

  /* Navbar transitions */
  #navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  }

  #navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
  }

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

  #navbar.scrolled .nav-link:hover {
    color: #0d9488;
  }

  #navbar.scrolled .font-heading {
    color: #1e293b;
  }

  /* Mobile menu transitions */
  #mobile-menu {
    transition: opacity 0.4s ease, transform 0.4s ease, pointer-events 0.4s ease;
  }

  #mobile-menu.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  /* Reveal animations - progressive enhancement */
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  /* Mobile link hover */
  .mobile-link {
    opacity: 1;
  }

  /* Image hover effects */
  .rounded-2xl img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Focus styles */
  a:focus-visible, button:focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    .reveal {
      transition: none;
      opacity: 1;
      transform: none;
    }
    .rounded-2xl img {
      transition: none;
    }
    #navbar {
      transition: none;
    }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* Smooth image loading */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
