*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: #070d10;
  color: #c5d6dc;
  font-family: 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(212, 175, 55, 0.3);
  color: #e8f0f2;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #070d10;
}

::-webkit-scrollbar-thumb {
  background: #1c323e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #25404d;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #d4af37;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #d4af37 !important;
}

/* Navbar scrolled state */
.nav-scrolled {
  background: rgba(7, 13, 16, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(28, 50, 62, 0.5);
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

/* Mobile menu */
.mobile-link {
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
  0% {
    top: 0;
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.animate-scroll-indicator {
  animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Reveal animations */
.reveal {
  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);
}

.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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Floating animation for hero cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-1 { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 5s ease-in-out infinite 0.5s; }
.float-3 { animation: float 7s ease-in-out infinite 1s; }

/* Gold shimmer on hover for buttons */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Focus styles */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #14252e 0%, #0d1b22 100%);
}

/* Subtle gradient border for cards */
.card-gradient-border {
  position: relative;
  background: rgba(20, 37, 46, 0.6);
  border-radius: 1rem;
}

.card-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), transparent, rgba(29, 165, 165, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Parallax-like subtle movement */
@media (prefers-reduced-motion: no-preference) {
  .parallax-slow {
    will-change: transform;
  }
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #1c323e inset !important;
  -webkit-text-fill-color: #e8f0f2 !important;
  caret-color: #e8f0f2;
}
