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

  /* Base selection color */
  ::selection {
    background-color: rgba(123, 45, 59, 0.15);
    color: #7B2D3B;
  }

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

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

  /* Staggered reveal delays */
  .reveal-up:nth-child(1) { transition-delay: 0ms; }
  .reveal-up:nth-child(2) { transition-delay: 100ms; }
  .reveal-up:nth-child(3) { transition-delay: 200ms; }
  .reveal-up:nth-child(4) { transition-delay: 300ms; }

  /* Navbar glass effect */
  #navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease;
  }

  #navbar.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.06);
  }

  /* Nav links underline effect */
  .nav-link {
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #7B2D3B, #d4455e);
    transition: width 0.3s ease;
  }

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

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

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

  /* Hamburger animation */
  .menu-line.active:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-line.active:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .menu-line.active:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
  }

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

  /* Custom select arrow */
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B2D3B' stroke-width='2' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
  }

  /* Image hover zoom wrapper */
  .group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .group:hover img {
    transform: scale(1.05);
  }

  /* Subtle gradient border on focus */
  input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.08);
  }

  /* Floating card animation */
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
  }

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

  /* Decorative blob animation */
  @keyframes blob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  }

  .blob {
    animation: blob 8s ease-in-out infinite;
  }

  /* Prefers 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; }
    .reveal-up { opacity: 1; transform: none; }
  }

  /* Print styles */
  @media print {
    nav, #contact, footer { display: none; }
    body { background: white; color: black; }
    section { padding: 1rem 0; }
  }
