/* Base Colors & Variables */
:root {
  --neon-purple: #9d00ff;
  --neon-blue: #00f0ff;
  --neon-orange: #ff6200;
  --bg-dark: #0a0a0c;
}

body {
  scroll-behavior: smooth;
}

/* Glitch Effect */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-text::before {
  color: var(--neon-blue);
  z-index: -1;
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
  color: var(--neon-purple);
  z-index: -2;
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 1px); }
  20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
  40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 2px); }
  60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
  80% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 1px); }
  100% { clip-path: inset(30% 0 50% 0); transform: translate(1px, -1px); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -1px); }
  20% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 1px); }
  40% { clip-path: inset(50% 0 30% 0); transform: translate(2px, -2px); }
  60% { clip-path: inset(20% 0 70% 0); transform: translate(-2px, 2px); }
  80% { clip-path: inset(60% 0 20% 0); transform: translate(1px, -1px); }
  100% { clip-path: inset(5% 0 80% 0); transform: translate(-1px, 1px); }
}

/* Cyber Button */
.cyber-btn {
  background: transparent;
  border: 2px solid var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.2);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cyber-btn:hover {
  background: var(--neon-blue);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), inset 0 0 20px rgba(0, 240, 255, 0.6);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.cyber-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.cyber-btn:hover::before {
  left: 100%;
}

/* Watermark */
.watermark-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 0.75rem;
}

.watermark-container::after {
  content: 'Hazem Designer';
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.5rem;
  font-weight: 900;
  font-family: 'Cairo', sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 10;
  transform: rotate(-15deg);
}

/* Store Cards Hover Effect */
.store-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(157, 0, 255, 0.2);
  border-color: rgba(157, 0, 255, 0.5);
}

.store-card img {
  transition: transform 0.5s ease;
}

.store-card:hover img {
  transform: scale(1.05);
  filter: contrast(1.1) brightness(1.1);
}

/* AI Slider Handle */
#slider-handle::after {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -10px;
  right: -10px;
  cursor: ew-resize;
  z-index: 20;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--neon-purple);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
}