  /* Custom styles for Maximiliana Pereiro Real Estate */

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

  /* Selection color */
  ::selection {
    background-color: rgba(6, 95, 70, 0.15);
    color: #065f46;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 6px;
  }
  ::-webkit-scrollbar-track {
    background: #fdf9f0;
  }
  ::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 3px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #047857;
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
  }

  /* Mobile menu animation */
  #mobile-menu.open {
    opacity: 1;
    pointer-events: all;
  }

  /* Menu toggle animation */
  #menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  #menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.25rem;
  }

  /* Service card hover effect */
  .service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Floating stat cards animation */
  @media (prefers-reduced-motion: no-preference) {
    .stat-card {
      animation: float 6s ease-in-out infinite;
    }
    .stat-card:nth-child(2) {
      animation-delay: -2s;
      animation-duration: 7s;
    }
    .stat-card:nth-child(3) {
      animation-delay: -4s;
      animation-duration: 5s;
    }
  }

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

  /* Scroll reveal animations (progressive enhancement) */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Mobile menu links */
  .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  /* Image hover zoom */
  .img-zoom {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .img-zoom:hover {
    transform: scale(1.03);
  }

  /* Input autofill styling */
  input:-webkit-autofill,
  textarea:-webkit-autofill,
  select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fefdf8 inset !important;
    -webkit-text-fill-color: #374151 !important;
  }

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

  /* 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;
    }
  }
