@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Noto+Serif+SC:wght@300;500;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --color-emerald-deep: #020f0b;
  --color-emerald-mid: #051c15;
  --color-emerald-light: #0b3d30;
  --color-gold-bright: #f2c765;
  --color-gold-dark: #c59b27;
  --color-gold-cream: #faeec7;
  --font-serif: 'Noto Serif SC', 'Cinzel', serif;
  --font-sans: 'Inter', sans-serif;
}

body {
  background-color: var(--color-emerald-deep);
  color: #f1ebd9;
  font-family: var(--font-sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

h1, h2, h3, h4, h5, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: 0.15em;
  line-height: 1.4;
}

/* Global Luxury Cursor Glow */
#luxury-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(242, 199, 101, 0.09) 0%, rgba(11, 90, 71, 0.04) 50%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
  mix-blend-mode: screen;
}

#luxury-cursor-glow.hover-active {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(242, 199, 101, 0.16) 0%, rgba(17, 90, 71, 0.08) 60%, transparent 80%);
}

@media (pointer: coarse) {
  #luxury-cursor-glow { display: none !important; }
}

.gold-text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-gold-bright) 50%, var(--color-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-border-gradient {
  position: relative;
  background: linear-gradient(var(--color-emerald-mid), var(--color-emerald-deep)) padding-box,
              linear-gradient(135deg, rgba(242,199,101,0.5), rgba(197,155,39,0.1), rgba(242,199,101,0.4)) border-box;
  border: 1px solid transparent;
}

.glass-panel {
  background: rgba(5, 28, 21, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(242, 199, 101, 0.18);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.75);
}

.glass-panel-luxury {
  background: linear-gradient(135deg, rgba(8, 40, 31, 0.75) 0%, rgba(3, 18, 14, 0.85) 100%);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(242, 199, 101, 0.25);
  box-shadow: 0 15px 45px -5px rgba(0, 0, 0, 0.9);
}

/* Premium Gold flow button animations */
.gold-shimmer-btn {
  position: relative;
  overflow: hidden;
  background-size: 200% auto;
  transition: background-position 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, transform 0.2s ease;
}

.gold-shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 35%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(254, 238, 199, 0.45), transparent);
  transform: rotate(30deg);
  transition: none;
}

.gold-shimmer-btn:hover {
  box-shadow: 0 0 25px rgba(242, 199, 101, 0.35);
  transform: translateY(-1px);
}

.gold-shimmer-btn:hover::after {
  left: 150%;
  transition: all 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3D Perspective Card Tilt Class */
.perspective-container {
  perspective: 1200px;
}

.tilt-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.tilt-card-inner {
  transform: translateZ(35px);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--color-emerald-deep);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--color-gold-bright), var(--color-gold-dark));
  border-radius: 4px;
}

/* Subtle Floating Animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.4deg); }
}

.animate-float-slow {
  animation: float 8s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 15px rgba(242, 199, 101, 0.2); }
  50% { box-shadow: 0 0 32px rgba(242, 199, 101, 0.5); }
}

.pulse-glow-gold {
  animation: pulse-gold 3s infinite ease-in-out;
}

/* Gold navigation indicator line */
.gold-line-grow {
  position: relative;
}

.gold-line-grow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-bright), transparent);
  transition: width 0.4s ease, left 0.4s ease;
}

.gold-line-grow:hover::after {
  width: 100%;
  left: 0;
}

.text-spacing-wide {
  letter-spacing: 0.18em;
}

/* Dynamic Reveal on Scroll classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Shimmer overlay on hover */
.card-gloss-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(254, 238, 199, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tilt-card:hover .card-gloss-shimmer {
  opacity: 1;
}

/* Mobile responsive carousel */
@media (max-width: 1024px) {
  .mobile-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;
    gap: 20px;
  }
  
  .mobile-carousel-item {
    scroll-snap-align: center;
    flex-shrink: 0;
    width: 82vw;
    max-width: 320px;
  }
}

/* Mobile menu cascade animations */
.cascade-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu-overlay.active .cascade-item {
  opacity: 1;
  transform: translateY(0);
}

/* Gold sand particles loader animation */
@keyframes goldSandFlow {
  0% { transform: translateY(-50%) rotate(0deg); opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { transform: translateY(50%) rotate(360deg); opacity: 0.3; }
}

.gold-sand-particle {
  position: absolute;
  background: var(--color-gold-bright);
  border-radius: 50%;
  pointer-events: none;
  animation: goldSandFlow 4s infinite linear;
}

/* Red / Gold Seal Stamp down animation */
@keyframes stampDown {
  0% { transform: scale(3) rotate(45deg); opacity: 0; }
  70% { transform: scale(0.9) rotate(8deg); opacity: 0.9; }
  100% { transform: scale(1) rotate(12deg); opacity: 0.95; }
}

.seal-stamp-animate {
  animation: stampDown 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards;
}
