/* Reset & Variables */
:root {
  /* Colors */
  --color-primary: #000000;
  --color-secondary: #222222;
  --color-accent: #D4AF37;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-text: #000000;
  --color-text-light: #555555;
  --color-border: #DDDDDD;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Typography */
  --font-primary: 'Be Vietnam Pro', sans-serif;
  --font-size-base: 16px;
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Animation Easings */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Match sticky header height (80px) */
}

html, body {
  /* Prevent layout-breaking properties on main containers */
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: var(--font-size-base);
  overflow-x: hidden; /* Prevent horizontal scroll from animations */
  user-select: none; /* Make entire page non-copyable */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.hidden {
  display: none !important;
}

/* Page Transitions - Applied to #page-wrapper */
#page-wrapper.page-fade-in {
  animation: fadeIn 0.8s var(--ease-out-expo) forwards;
}

#page-wrapper.page-fade-out {
  animation: fadeOut 0.6s var(--ease-out-expo) forwards;
}

@keyframes goldSweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes slideUp {
  0% { 
    opacity: 0; 
    transform: translateY(40px) rotate(2deg) scale(0.95);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes sway {
  0% { transform: translateY(-2px) rotate(0deg) scale(1.1); }
  33% { transform: translateY(-2px) rotate(-2deg) scale(1.1); }
  66% { transform: translateY(-2px) rotate(2deg) scale(1.1); }
  100% { transform: translateY(-2px) rotate(0deg) scale(1.1); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes ticker-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes shiver {
  0% { transform: translateY(-5px) scale(1.02) rotate(0deg); }
  25% { transform: translateY(-5px) scale(1.02) rotate(-1deg); }
  50% { transform: translateY(-5px) scale(1.02) rotate(1deg); }
  75% { transform: translateY(-5px) scale(1.02) rotate(-1deg); }
  100% { transform: translateY(-5px) scale(1.02) rotate(0deg); }
}

@keyframes slideDown {
  0% { 
    opacity: 0; 
    transform: translateY(-20px);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  0% { 
    opacity: 0; 
    transform: scale(0.9);
  }
  100% { 
    opacity: 1; 
    transform: scale(1);
  }
}
