/* Custom styles for William Santana Hair Design */

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

/* Base font settings */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0F0C09;
}
::-webkit-scrollbar-thumb {
  background: #3a2c24;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c74420;
}

/* Selection color */
::selection {
  background: rgba(199, 68, 32, 0.3);
  color: #fdf0eb;
}

/* Scroll reveal base state - content is visible by default */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Only animate when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Gold line animation on hover for nav links */
nav a {
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c74420;
  transition: width 0.3s ease;
}
nav a:hover::after {
  width: 100%;
}

/* Image hover zoom */
img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Subtle glow on cards */
.group:hover .group-hover\:bg-terracotta-600\/20 {
  box-shadow: 0 0 30px rgba(199, 68, 32, 0.1);
}

/* Navbar glass effect */
#navbar.scrolled {
  background: rgba(15, 12, 9, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(200, 149, 108, 0.08);
}

/* Form focus animations */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 1px rgba(199, 68, 32, 0.3);
}

/* Mobile menu link hover */
.mobile-link {
  position: relative;
}

/* Ensure all interactive elements have cursor pointer */
a, button {
  cursor: pointer;
}

/* Prevent layout shift on images */
img {
  display: block;
}

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