/* --- PREMIUM UI STYLES --- */

/* Base & Typography */
body {
  background-color: #050505;
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.03), transparent);
  transform: skewX(-25deg);
  transition: all 0.7s ease;
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover::before {
  left: 200%;
}

.glass-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
}

/* Gold Accents & CTA */
.btn-gold {
  background: #D4AF37;
  color: #050505;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.4), rgba(255,255,255,0));
  transform: skewX(-25deg);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn-gold:hover::after {
  left: 200%;
}

.btn-gold:hover {
  background: #E5C158;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}
.btn-gold:active {
  transform: translateY(1px);
}

.text-gold {
  color: #D4AF37;
}

.border-gold {
  border-color: #D4AF37;
}

.bg-gold {
  background-color: #D4AF37;
}

/* Text Gradients */
.hero-gradient-text {
  background-image: linear-gradient(to right, #D4AF37, #E5C158, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.secondary-gradient-text {
  background-image: linear-gradient(to right, #D4AF37, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

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

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

/* Custom Scrollbar for Horizontal Scrolling Sections */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.6);
}

/* Horizontal Snap Scrolling */
.snap-x-mandatory {
  scroll-snap-type: x mandatory;
}
.snap-center {
  scroll-snap-align: center;
}
.snap-start {
  scroll-snap-align: start;
}

/* Parallax Background */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-image: url('dubai_bg.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.8;
  pointer-events: none;
}

.gradient-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.1) 40%, rgba(5,5,5,0.1) 70%, rgba(5,5,5,0.95) 100%);
  pointer-events: none;
}

/* Ambient Glows */
.ambient-glow-1, .ambient-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
  animation: float-glow 10s infinite ease-in-out alternate;
}

.ambient-glow-1 {
  background: rgba(212, 175, 55, 0.2);
  width: 600px;
  height: 600px;
  top: -100px;
  left: -200px;
}

.ambient-glow-2 {
  background: rgba(124, 58, 237, 0.15); /* Deep Violet */
  width: 500px;
  height: 500px;
  bottom: -50px;
  right: -100px;
  animation-duration: 12s;
  animation-delay: -5s;
}

@keyframes float-glow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

/* --- CHAT WIDGET CUSTOM STYLES (Preserved) --- */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.typing-dot {
  animation: typing-bounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* --- PREMIUM LIGHT THEME OVERRIDES --- */
[data-theme="light"] body { background-color: #f1f5f9; color: #1e293b; }
[data-theme="light"] .text-white { color: #0f172a !important; }
[data-theme="light"] .text-gray-100 { color: #1e293b !important; }
[data-theme="light"] .text-gray-200 { color: #334155 !important; }
[data-theme="light"] .text-gray-300 { color: #334155 !important; }
[data-theme="light"] .text-gray-400 { color: #475569 !important; }
[data-theme="light"] .text-gray-500 { color: #64748b !important; }
[data-theme="light"] .text-gray-600 { color: #475569 !important; }
[data-theme="light"] .bg-black, [data-theme="light"] .bg-primary { background-color: #ffffff !important; }
[data-theme="light"] .bg-\[\#050505\] { background-color: #f1f5f9 !important; }
[data-theme="light"] .bg-surface { background-color: rgba(0, 0, 0, 0.03) !important; }
[data-theme="light"] .border-white\/5, [data-theme="light"] .border-white\/10 { border-color: rgba(0, 0, 0, 0.1) !important; }
[data-theme="light"] .glass-panel { background: rgba(255, 255, 255, 0.75) !important; box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02); }
[data-theme="light"] .glass-card { background: rgba(255, 255, 255, 0.85) !important; border-color: rgba(0, 0, 0, 0.05) !important; border-top-color: rgba(212, 175, 55, 0.3) !important; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important; }
[data-theme="light"] .glass-card:hover { background: rgba(255, 255, 255, 0.98) !important; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.08), 0 0 30px rgba(212, 175, 55, 0.2) !important; }
[data-theme="light"] .text-sky-400 { color: #0284c7 !important; }
[data-theme="light"] .text-gold { color: #b48600 !important; }
[data-theme="light"] .text-red-400 { color: #dc2626 !important; }
[data-theme="light"] .text-green-400 { color: #16a34a !important; }
[data-theme="light"] .hero-gradient-text { background-image: linear-gradient(to right, #b48600, #d4af37, #64748b) !important; }
[data-theme="light"] .secondary-gradient-text { background-image: linear-gradient(to right, #b48600, #1e293b) !important; }
[data-theme="light"] .ambient-glow-1, [data-theme="light"] .ambient-glow-2 { opacity: 0.15; filter: blur(120px) invert(1); }
[data-theme="light"] .parallax-bg { opacity: 0.15 !important; filter: grayscale(100%) contrast(120%) brightness(150%) !important; }
[data-theme="light"] .gradient-overlay { background: linear-gradient(180deg, rgba(241,245,249,0.95) 0%, rgba(241,245,249,0.6) 40%, rgba(241,245,249,0.8) 70%, rgba(241,245,249,1) 100%) !important; }

[data-theme="light"] .tv-widget-invert, [data-theme="light"] .tradingview-widget-container { filter: invert(1) hue-rotate(180deg) !important; background-color: transparent !important; }
[data-theme="light"] #news .glass-card > div { background: #ffffff !important; }
