/* Custom overrides and animations */

/* Smooth scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #080f18; }
::-webkit-scrollbar-thumb { background: #1e3a3a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b8943e; }

/* Selection color */
::selection { background: rgba(184,148,62,0.3); color: #f0d060; }

/* Base body */
body {
  background-color: #080f18;
  color: #e5e7eb;
}

/* Gold gradient line */
.gold-line {
  background: linear-gradient(90deg, transparent, #b8943e, #e8c96d, #b8943e, transparent);
}

/* Gold text gradient */
.gold-text {
  background: linear-gradient(135deg, #d4af37 0%, #f0d060 50%, #c9a227 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover glow */
.card-hover:hover {
  box-shadow: 0 20px 60px rgba(184,148,62,0.08), 0 0 0 1px rgba(184,148,62,0.1);
}

/* Fade-up animation classes */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* Pulse dot */
.pulse-dot {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Nav scroll state */
.nav-scrolled {
  background: rgba(8,15,24,0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Input autofill override */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #1a2736 inset !important;
  -webkit-text-fill-color: #e5e7eb !important;
}

/* Focus ring utility */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(184,148,62,0.3);
}

/* Mobile menu transition */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

/* Smooth section transitions */
section {
  position: relative;
}

/* Image lazy load fade */
img[loading="lazy"] {
  transition: opacity 0.5s ease;
}

img[loading="lazy"]:not(.loaded) {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}
