/* ============================================
   VIOSLOT - Custom Styles
   ============================================ */

:root {
  --primary: #8B5CF6;
  --primary-light: #A78BFA;
  --accent: #3B82F6;
  --neon-pink: #EC4899;
  --dark-bg: #0A0A14;
  --dark-card: #0F0F23;
  --dark-border: #1E1E3A;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* Glassmorphism */
.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}

.glass-card {
  background: rgba(15,15,35,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(139,92,246,0.5);
  box-shadow: 0 0 30px rgba(139,92,246,0.15);
  transform: translateY(-4px);
}

/* Navbar */
#navbar { transition: all 0.3s ease; }

#navbar.scrolled {
  background: rgba(10,10,20,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139,92,246,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-link {
  position: relative;
  color: rgba(248,250,252,0.7);
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8B5CF6, #3B82F6);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: #A78BFA; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #A78BFA, #60A5FA, #F472B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero gradient */
.hero-gradient {
  background: radial-gradient(ellipse at top left, rgba(139,92,246,0.25) 0%, transparent 55%),
              radial-gradient(ellipse at bottom right, rgba(59,130,246,0.15) 0%, transparent 55%),
              #0A0A14;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124,58,237,0.5);
}

.btn-secondary {
  background: rgba(139,92,246,0.1);
  color: #A78BFA;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  border: 1px solid rgba(139,92,246,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-secondary:hover {
  background: rgba(139,92,246,0.2);
  border-color: rgba(139,92,246,0.6);
  transform: translateY(-2px);
}

/* Section badge */
.section-badge {
  display: inline-block;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  color: #A78BFA;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.floating { animation: float 6s ease-in-out infinite; }

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(139,92,246,0.4); }
  50% { box-shadow: 0 0 40px rgba(139,92,246,0.8), 0 0 80px rgba(139,92,246,0.3); }
}
.pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }

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

.typing-cursor::after {
  content: '|';
  animation: blink 0.7s infinite;
  color: #A78BFA;
  margin-left: 2px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Grid pattern */
.grid-pattern {
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Slider */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.testimonial-slide { animation: fadeIn 0.5s ease; }

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(139,92,246,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.slider-dot.active {
  background: #8B5CF6;
  width: 24px;
  border-radius: 4px;
}

/* FAQ */
.faq-icon { transition: transform 0.3s ease; }
.faq-question { cursor: pointer; user-select: none; }

/* Feature icon */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.2);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}
.glass-card:hover .feature-icon {
  background: rgba(139,92,246,0.25);
  box-shadow: 0 0 20px rgba(139,92,246,0.3);
}

/* Form */
.form-input {
  background: rgba(15,15,35,0.9);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 12px;
  color: white;
  padding: 12px 16px;
  width: 100%;
  transition: all 0.3s ease;
  outline: none;
  font-family: inherit;
}
.form-input:focus {
  border-color: rgba(139,92,246,0.6);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}
.form-input::placeholder { color: #94A3B8; }

/* Tags */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(139,92,246,0.15);
  color: #A78BFA;
  border: 1px solid rgba(139,92,246,0.2);
}

/* Mobile menu */
#mobileMenu {
  background: rgba(10,10,20,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139,92,246,0.2);
}

/* Article content */
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #A78BFA;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #60A5FA;
  margin: 1.8rem 0 0.75rem;
}
.article-content p {
  margin-bottom: 1.2rem;
  line-height: 1.85;
  color: rgba(248,250,252,0.82);
}
.article-content ul {
  margin: 1rem 0 1.2rem 0;
  list-style: none;
  padding: 0;
}
.article-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: rgba(248,250,252,0.82);
  line-height: 1.7;
}
.article-content ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: #8B5CF6;
}
.article-content ol {
  margin: 1rem 0 1.2rem 1.5rem;
  padding: 0;
}
.article-content ol li {
  margin-bottom: 0.6rem;
  color: rgba(248,250,252,0.82);
  line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #94A3B8; flex-wrap: wrap; }
.breadcrumb a { color: #A78BFA; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Timeline */
.timeline-item { position: relative; padding-left: 2rem; padding-bottom: 2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #8B5CF6 0%, rgba(139,92,246,0.1) 100%);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8B5CF6;
  box-shadow: 0 0 10px rgba(139,92,246,0.6);
}

/* Blog card hover */
.blog-card {
  transition: all 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
}

/* Shimmer */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.08), transparent);
  background-size: 1000px 100%;
  animation: shimmer 2.5s infinite;
}

/* Stat card */
.stat-card {
  background: rgba(15,15,35,0.85);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: rgba(139,92,246,0.5);
  box-shadow: 0 0 30px rgba(139,92,246,0.12);
  transform: translateY(-4px);
}

/* Mockup */
.mockup-screen {
  background: linear-gradient(135deg, #0F0F23, #1A1A3A);
  border-radius: 20px;
  border: 1px solid rgba(139,92,246,0.3);
  overflow: hidden;
  position: relative;
}
.mockup-topbar {
  background: rgba(139,92,246,0.1);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(139,92,246,0.1);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Service icon colors */
.icon-purple { background: rgba(139,92,246,0.15); border-color: rgba(139,92,246,0.3); }
.icon-blue { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.3); }
.icon-pink { background: rgba(236,72,153,0.15); border-color: rgba(236,72,153,0.3); }
.icon-green { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.3); }
.icon-orange { background: rgba(249,115,22,0.15); border-color: rgba(249,115,22,0.3); }

/* Responsive */
@media (max-width: 768px) {
  .glass-card { border-radius: 12px; }
  .article-content h2 { font-size: 1.3rem; }
  .article-content h3 { font-size: 1.1rem; }
}
