  /* Custom styles for Perfect Cuts Barber Shop */

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

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

  body {
    overflow-x: hidden;
  }

  /* Selection */
  ::selection {
    background: rgba(249, 117, 131, 0.3);
    color: #f5f6f8;
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #1f2530;
  }
  ::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #47505e;
  }

  /* Scroll reveal animations */
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .scroll-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(15, 19, 24, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  }

  /* Hero image subtle float */
  @media (prefers-reduced-motion: no-preference) {
    #top .relative > div:first-child {
      animation: float 6s ease-in-out infinite;
    }
  }

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

  /* Button focus styles */
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #F97583;
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Image aspect ratios */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Smooth image loading */
  img {
    transition: opacity 0.3s ease;
  }
  img[loading="lazy"] {
    opacity: 0;
  }
  img.loaded {
    opacity: 1;
  }
