/* Custom styles beyond Tailwind */

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0B1321;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4A853;
}

/* Gold shimmer effect on hover */
.gold-gradient {
  position: relative;
  overflow: hidden;
}
.gold-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}
.gold-gradient:hover::before {
  left: 100%;
}

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

/* Service card image hover */
.card-hover img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card-hover:hover img {
  transform: scale(1.05);
}

/* Nav scroll state */
nav.scrolled {
  background: rgba(11, 19, 33, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 168, 83, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-hover { transition: none; }
  .float-anim { animation: none; }
  .pulse-gold { animation: none; }
  .gold-gradient::before { display: none; }
}

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

/* Form focus states */
input:focus, textarea:focus {
  border-color: rgba(212, 168, 83, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1) !important;
}
