/* ========================================
   Youchi Holstein Real Estate — Custom Styles
   ======================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
  background: #8194c4;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5770b2;
}

/* Selection color */
::selection {
  background: #4ade80;
  color: #0c1528;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}

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

/* Nav links */
.nav-link {
  position: relative;
}

/* Mobile menu */
#mobileMenu {
  animation: slideDown 0.25s ease-out;
}

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Service card hover glow */
.group:hover .group-hover\:scale-110 {
  box-shadow: 0 8px 24px rgba(74, 222, 128, 0.3);
}

/* Image hover */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Button ripple effect */
button, a {
  -webkit-tap-highlight-color: transparent;
}

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