/* =============================================
   SLEEK SALON — Custom Styles
   ============================================= */

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

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

body {
  overflow-x: hidden;
}

/* Scroll 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);
  }
}

/* Fallback: ensure content is visible even without JS */
@supports not (animation: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Navbar transition */
#navbar.scrolled {
  background: rgba(61, 15, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

#navbar.scrolled .nav-logo,
#navbar.scrolled a {
  color: white;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fdf2f2;
}

::-webkit-scrollbar-thumb {
  background: #d94f4f;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a12d2d;
}

/* Selection color */
::selection {
  background: #fce7e7;
  color: #6f2525;
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Print styles */
@media print {
  #navbar, #mobile-menu, .reveal {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}
