/* Custom styles for Hoshen Development landing page */
html { 
  scroll-behavior: smooth; 
}

/* Simple and fast theme transitions */
html,
body {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.skip-link { 
  position: absolute; 
  inset-inline-start: 1rem; 
  top: -40px; 
  background: #fff; 
  color: #111; 
  padding: .5rem 1rem; 
  border-radius: .5rem; 
  transition: top .2s ease; 
  z-index: 999; 
  border: 1px solid #e5e7eb; 
}

.skip-link:focus { 
  top: 1rem; 
  outline: 2px solid #C7A76C; 
}

/* Selection color */
::selection {
  background: rgba(199, 167, 108, 0.2);
}

/* Dark mode selection */
.dark ::selection {
  background: rgba(199, 167, 108, 0.3);
}

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

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

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

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

.dark ::-webkit-scrollbar-track {
  background: #0B0B0C;
}

.dark ::-webkit-scrollbar-thumb {
  background: #C7A76C;
}

/* Animation classes for reveal on scroll */
.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.translate-y-0 {
  transform: translateY(0);
}

.translate-y-4 {
  transform: translateY(1rem);
}

/* Ensure animations work properly */
[data-animate] {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Custom hover effects */
.hover-scale:hover {
  transform: scale(1.02);
}

.hover-scale:active {
  transform: scale(0.99);
}

/* Additional utilities */
.transition-max-height {
  transition: max-height 0.3s ease-in-out;
}

/* Focus styles for accessibility */
.focus-gold:focus {
  outline: 2px solid #C7A76C;
  outline-offset: 2px;
}

/* Custom button animations */
.btn-hover:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.btn-hover:active {
  transform: scale(0.99);
}

/* Project card tilt effect */
.project-card {
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: perspective(700px) rotateX(0deg) rotateY(0deg);
}
