  /* Custom styles for Cookeville Housing */

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

  /* Selection color */
  ::selection {
    background-color: #d6c4e0;
    color: #3a1d40;
  }

  /* Scrollbar styling */
  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #f5f0f7;
  }
  ::-webkit-scrollbar-thumb {
    background: #b99dcb;
    border-radius: 5px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #7B3F8E;
  }

  /* Navigation scroll state */
  #navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 63, 142, 0.08);
  }

  /* Reveal animations - progressive enhancement */
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      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.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Default visible state (no JS) */
  .reveal {
    opacity: 1;
    transform: none;
  }

  /* Room card hover */
  .room-card {
    opacity: 1;
    transform: none;
  }

  @media (prefers-reduced-motion: no-preference) {
    .room-card {
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .room-card:hover {
      transform: translateY(-4px);
    }
  }

  /* Back to top button */
  #backToTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Navbar link underline animation */
  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #7B3F8E, #D4A017);
    transition: width 0.3s ease;
    border-radius: 1px;
  }
  .nav-link:hover::after {
    width: 100%;
  }

  /* Mobile menu transition */
  #mobileMenu {
    animation: slideDown 0.3s ease forwards;
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      max-height: 0;
    }
    to {
      opacity: 1;
      max-height: 500px;
    }
  }

  /* Gradient text utility */
  .gradient-text {
    background: linear-gradient(to right, #7B3F8E, #D4A017);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

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

  /* Subtle pattern overlay for sections */
  .pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(123, 63, 142, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
  }
