/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(200, 168, 85, 0.3);
  color: #f1f5f9;
}

/* ===== GOLD PARTICLES ===== */
.gold-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #c8a855, transparent);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 6s ease-in-out infinite;
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  20% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
    transform: translate(var(--dx), var(--dy)) scale(1);
  }
  80% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--dx) * -0.5), calc(var(--dy) * 1.5)) scale(0.5);
  }
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c8a855;
  transition: width 0.3s ease;
}

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

#navbar.scrolled {
  background: rgba(6, 13, 22, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 168, 85, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== BUTTONS ===== */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #c8a855 0%, #b8944a 100%);
  color: #060d16;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e8d5a3 0%, #c8a855 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 168, 85, 0.3);
  color: #060d16;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #f1f5f9;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(148, 163, 184, 0.3);
  cursor: pointer;
}

.btn-outline:hover {
  border-color: #c8a855;
  color: #c8a855;
  transform: translateY(-2px);
}

/* ===== STAT CARDS ===== */
.stat-card {
  opacity: 0;
  animation: card-enter 0.6s ease forwards;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card-inner {
  background: rgba(13, 31, 50, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(200, 168, 85, 0.15);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  transition: all 0.4s ease;
}

.stat-card:hover .stat-card-inner {
  border-color: rgba(200, 168, 85, 0.4);
  box-shadow: 0 8px 32px rgba(200, 168, 85, 0.1);
  transform: translateY(-4px);
}

/* ===== SCROLL REVEAL ===== */
.reveal-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 0;
    transform: translateY(30px);
  }

  .reveal-left {
    transform: translateX(-40px);
  }

  .reveal-right {
    transform: translateX(40px);
  }

  .reveal-up.is-visible,
  .reveal-left.is-visible,
  .reveal-right.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}

/* ===== MOBILE MENU ===== */
.mobile-link {
  display: block;
}

.mobile-link::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: #c8a855;
  margin-top: 4px;
  transition: width 0.3s ease;
}

.mobile-link:hover::after {
  width: 60%;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #060d16;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #c8a855;
}

/* ===== FOCUS ===== */
:focus-visible {
  outline: 2px solid #c8a855;
  outline-offset: 2px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .stat-card {
    animation-delay: 0.1s !important;
  }
}
