  /* Custom styles for J J Fashion Wear */

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

  /* Selection color */
  ::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: #0f766e;
  }

  /* Scroll reveal base — always visible by default for progressive enhancement */
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal-up {
      opacity: 0;
      transform: translateY(30px);
    }
    .reveal-left {
      opacity: 0;
      transform: translateX(-30px);
    }
    .reveal-right {
      opacity: 0;
      transform: translateX(30px);
    }
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
      opacity: 1;
      transform: none;
    }
  }

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

  #navbar.scrolled .nav-link,
  #navbar.scrolled #nav-logo,
  #navbar.scrolled #menu-toggle {
    color: #1e293b !important;
  }

  /* Hero subtle parallax */
  #hero {
    perspective: 1px;
  }

  #hero .absolute.inset-0 img {
    will-change: transform;
  }

  /* Button hover glow */
  .btn-glow:hover {
    box-shadow: 0 0 30px rgba(13, 148, 136, 0.4) !important;
  }

  /* Collection card overlay transition */
  .group .absolute.inset-0 {
    transition: background 0.5s ease;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #f1f5f9;
  }
  ::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 9999px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
  }

  /* Mobile nav link animation */
  .mobile-nav-link {
    position: relative;
  }
  .mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: width 0.3s ease;
  }
  .mobile-nav-link:hover::after {
    width: 100%;
  }

  /* Subtle gradient animation for hero */
  @keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }

  /* Fade in for page load */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #hero > .relative {
    animation: fadeInUp 0.8s ease forwards;
  }

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