  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    overflow-x: hidden;
  }

  /* Floating animation for hero cards */
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
  }

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

  .animate-float {
    animation: float 4s ease-in-out infinite;
  }

  .animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
  }

  /* Service card hover effect */
  .service-card {
    position: relative;
    overflow: hidden;
  }

  .service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E07A5F, #d16247);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
  }

  .service-card:hover::after {
    transform: scaleX(1);
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(253, 248, 244, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.04);
  }

  #navbar.scrolled .font-serif {
    color: #1f1f26;
  }

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

  #mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
  }

  /* Hamburger animation */
  #bar1.open {
    transform: translateY(4px) rotate(45deg);
  }
  #bar2.open {
    opacity: 0;
  }
  #bar3.open {
    transform: translateY(-4px) rotate(-45deg);
  }

  /* Mobile links */
  .mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s 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; }

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

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

  /* Form focus styles */
  input:focus, select:focus, textarea:focus {
    border-color: #E07A5F !important;
    box-shadow: 0 0 0 4px rgba(224, 122, 95, 0.1) !important;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #FDF8F4;
  }
  ::-webkit-scrollbar-thumb {
    background: #c4c4cc;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #E07A5F;
  }

  /* Selection color */
  ::selection {
    background: rgba(224, 122, 95, 0.2);
    color: #1f1f26;
  }

  /* Smooth image loading */
  img {
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  /* Gallery hover overlay */
  .group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
  }

  /* Reduce motion for accessibility */
  @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;
    }
  }
