/* Custom styles for L K Wong Oriental Therapy */

/* Gold gradient */
.gold-gradient {
  background: linear-gradient(135deg, #d4a843 0%, #f0d078 50%, #c49a35 100%);
}

.gold-gradient-inline {
  background: linear-gradient(135deg, #d4a843 0%, #f0d078 50%, #c49a35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Scroll reveal base - content always visible by default */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Only apply hidden state when JS adds the class */
.reveal-up.animated {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left.animated {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-right.animated {
  opacity: 0;
  transform: translateX(40px);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(4, 47, 46, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(212, 168, 67, 0.1);
}

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

::-webkit-scrollbar-track {
  background: #022c22;
}

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

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

/* Selection color */
::selection {
  background: rgba(212, 168, 67, 0.3);
  color: #fefcf3;
}

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

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