/* JOKER PRO - Luxury Marketing Site */
* {
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

body {
  background: #0a0a0f;
  color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Animated gradient background */
.luxury-bg {
  background: radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a0f 50%, #000 100%);
  position: relative;
}

.luxury-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 230, 118, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 82, 82, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Gold gradient text */
.gold-text {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gold-shimmer 3s ease-in-out infinite;
}

@keyframes gold-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Glowing border */
.gold-border {
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1), inset 0 0 20px rgba(255, 215, 0, 0.05);
  transition: all 0.4s ease;
}

.gold-border:hover {
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.3), inset 0 0 30px rgba(255, 215, 0, 0.1);
  transform: translateY(-5px);
}

/* Animated grid background */
.grid-bg {
  background-image:
    linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  from { background-position: 0 0; }
  to { background-position: 50px 50px; }
}

/* Floating particles */
.particle {
  position: absolute;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-up 15s linear infinite;
}

@keyframes float-up {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* Hero pulse effect */
.hero-pulse {
  animation: hero-pulse 4s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.02); filter: brightness(1.15); }
}

/* Feature card */
.feature-card {
  background: linear-gradient(135deg, rgba(20, 20, 35, 0.9) 0%, rgba(10, 10, 20, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 215, 0, 0.1) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 30px 60px rgba(255, 215, 0, 0.2), 0 0 80px rgba(255, 215, 0, 0.1);
}

/* Pulse button */
.pulse-btn {
  position: relative;
  overflow: hidden;
}

.pulse-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.pulse-btn:hover::before {
  transform: translateX(100%);
}

/* Audio player custom */
audio {
  width: 100%;
  border-radius: 50px;
  outline: none;
  filter: invert(0.85) hue-rotate(180deg);
}

audio::-webkit-media-controls-panel {
  background-color: #1a1a2e;
}

/* Demo chart animations */
.demo-chart {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.candle {
  position: absolute;
  bottom: 30%;
  width: 8px;
  border-radius: 2px;
  transition: all 0.6s ease;
  animation: candle-grow 2s ease-out;
}

@keyframes candle-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.candle.bull { background: linear-gradient(180deg, #00E676 0%, #00C853 100%); box-shadow: 0 0 8px rgba(0, 230, 118, 0.6); }
.candle.bear { background: linear-gradient(180deg, #FF5252 0%, #D32F2F 100%); box-shadow: 0 0 8px rgba(255, 82, 82, 0.6); }
.candle.gold { background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%); box-shadow: 0 0 12px rgba(255, 215, 0, 0.8); }

/* Heatmap layers */
.heat-layer {
  position: absolute;
  height: 8px;
  width: 100%;
  border-radius: 2px;
  animation: heat-pulse 3s ease-in-out infinite;
}

@keyframes heat-pulse {
  0%, 100% { opacity: 0.6; transform: scaleX(0.95); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* SR Lines with varied widths */
.sr-line {
  position: absolute;
  width: 100%;
  border-radius: 2px;
  transition: all 0.4s ease;
}

.sr-line.strong { height: 6px; box-shadow: 0 0 16px currentColor; }
.sr-line.medium { height: 3px; box-shadow: 0 0 10px currentColor; opacity: 0.7; }
.sr-line.weak { height: 1px; opacity: 0.4; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FFD700, #FFA500);
  border-radius: 10px;
}

/* Number counter */
.counter {
  font-variant-numeric: tabular-nums;
}

/* Loading dots */
.loading-dots span {
  animation: blink 1.4s infinite both;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

/* Gradient borders */
.gradient-border {
  position: relative;
  background: #0d1117;
  border-radius: 16px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FFD700, #00E676, #FF5252, #FFD700);
  background-size: 300% 300%;
  z-index: -1;
  animation: gradient-rotate 6s linear infinite;
}

@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Glassmorphism */
.glass {
  background: rgba(15, 15, 30, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

/* Mobile optimization */
@media (max-width: 768px) {
  .hero-title { font-size: 3rem !important; }
  .feature-card { padding: 1.5rem !important; }
}
