  /* Base & Smooth Scrolling */
  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    overflow-x: hidden;
  }

  /* Scroll Reveal Animations */
  .scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  /* Floating Card Animations */
  .floating-card {
    animation: float 6s ease-in-out infinite;
  }

  .card-top {
    animation-delay: 0s;
  }

  .card-mid {
    animation-delay: -2s;
  }

  .card-bot {
    animation-delay: -4s;
  }

  .card-accent {
    animation-delay: -1s;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
  }

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

  #navbar.scrolled {
    background-color: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(45, 106, 79, 0.08), 0 4px 24px rgba(45, 106, 79, 0.06);
  }

  /* Nav Links */
  .nav-link {
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2d6a4f, #52b788);
    border-radius: 1px;
    transition: width 0.3s ease;
  }

  .nav-link:hover::after {
    width: 100%;
  }

  /* Mobile Menu */
  #mobileMenu.open {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
  }

  #mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
  }

  #mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
  #mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
  #mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
  #mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
  #mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

  /* Custom Selection */
  ::selection {
    background-color: rgba(45, 106, 79, 0.15);
    color: #1c4533;
  }

  /* Focus Styles */
  input:focus, textarea:focus {
    outline: none;
  }

  /* Image Placeholder Fallback */
  img {
    background: linear-gradient(135deg, #d9eddf 0%, #b7dbbf 100%);
  }

  /* Subtle Gradient Text */
  .gradient-text {
    background: linear-gradient(135deg, #2d6a4f 0%, #52b788 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Button Ripple */
  button, a {
    cursor: pointer;
  }

  /* Reduced Motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    html {
      scroll-behavior: auto;
    }

    .scroll-reveal {
      opacity: 1;
      transform: none;
    }
  }

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

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

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

  ::-webkit-scrollbar-thumb:hover {
    background: #8ec39a;
  }
