/* ============================================
   Visual Eyes — Custom Styles
   ============================================ */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f0f7;
}
::-webkit-scrollbar-thumb {
  background: #b999c5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9a6fa8;
}

/* Selection color */
::selection {
  background: #d6c3dd;
  color: #201325;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* Mobile menu animation */
#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(30px);
    transition: opacity 0.7s ease-out, transform 0.7s 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; }
}

/* Navbar scroll state */
.nav-scrolled {
  box-shadow: 0 1px 20px rgba(83, 49, 92, 0.08);
}

/* Hero floating card animation */
@media (prefers-reduced-motion: no-preference) {
  .float-card {
    animation: float 4s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
}

/* Service card hover effect */
.group:hover .group-hover\\:bg-amber-100 ~ .service-icon,
.service-icon {
  transition: background-color 0.3s ease;
}

/* Testimonial card hover */
.bg-stone-50:hover {
  border-color: #fbbf24;
  transition: border-color 0.3s ease;
}

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

/* Form input focus ring */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(125, 79, 138, 0.15);
}

/* Print styles */
@media print {
  header, footer, #contactForm, #mobileMenu {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
  a {
    color: #000;
  }
}
