/* Custom styles beyond Tailwind */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Scroll reveal base state — always visible */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar glass effect */
nav.scrolled {
  background: rgba(2, 6, 23, 0.85) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold accent line animation */
.gold-gradient-text {
  background: linear-gradient(135deg, #c9a84c 0%, #e2c97e 50%, #a8872e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Selection color */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #f1f5f9;
}

/* Form select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Subtle hover glow on cards */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Smooth image loading */
img {
  image-rendering: auto;
}

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

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.2s ease-out;
}

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

/* Hero image subtle float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-float {
  animation: float 6s ease-in-out infinite;
}

/* Pulse dot */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.animate-pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}
