/* Custom Utilities & Animations */
:root {
  --gold: #d4af37;
  --dark-bg: #0a0a0a;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background-color: var(--gold);
  color: #000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Base Styles */
body {
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Buttons */
.btn-luxury {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--gold);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--gold);
  transition: all 0.4s ease;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.btn-luxury:hover {
  color: #000;
  border-color: #fff;
}

.btn-luxury:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-outline-luxury {
  display: inline-block;
  padding: 12px 28px;
  background-color: transparent;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  border: 1px solid var(--gold);
  transition: all 0.3s ease;
  position: relative;
}

.btn-outline-luxury:hover {
  background-color: var(--gold);
  color: #000;
}

/* Loader Animations */
.loader-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: spin 1.5s linear infinite;
  position: absolute;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes loading-bar {
  0% { width: 0%; }
  50% { width: 100%; left: 0; }
  100% { width: 0%; left: 100%; }
}
.animate-loading-bar {
  animation: loading-bar 2s ease-in-out infinite;
}

/* Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Parallax Utilities */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

/* Animations Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.slide-right {
  transform: translateX(-50px);
}
.animate-on-scroll.slide-right.in-view {
  transform: translateX(0);
}
.animate-on-scroll.slide-left {
  transform: translateX(50px);
}
.animate-on-scroll.slide-left.in-view {
  transform: translateX(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Filter Tabs */
.tab-btn {
  position: relative;
  padding-bottom: 4px;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.tab-btn:hover::after,
.tab-btn.active::after {
  width: 100%;
}

.hidden-item {
  display: none !important;
}

/* Hero Animations (initial load) */
.fade-up-1, .fade-up-2, .fade-up-3, .fade-up-4 {
  opacity: 0;
  transform: translateY(20px);
}
.loaded .fade-up-1 { animation: fadeUp 0.8s ease forwards 0.3s; }
.loaded .fade-up-2 { animation: fadeUp 0.8s ease forwards 0.5s; }
.loaded .fade-up-3 { animation: fadeUp 0.8s ease forwards 0.7s; }
.loaded .fade-up-4 { animation: fadeUp 0.8s ease forwards 0.9s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
