* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0f;
  color: #e2e8f0;
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
}

/* Particle Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-green {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effects */
.glow-purple {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3), 0 0 30px rgba(139, 92, 246, 0.1);
}

.glow-purple-strong {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.2), 0 0 60px rgba(139, 92, 246, 0.1);
}

.glow-green {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3), 0 0 30px rgba(16, 185, 129, 0.1);
}

.glow-red {
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3), 0 0 30px rgba(239, 68, 68, 0.1);
}

.glow-text-purple {
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Card styling */
.card {
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.9) 0%, rgba(26, 26, 46, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

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

.card-featured {
  border: 2px solid rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.3), 0 0 50px rgba(139, 92, 246, 0.1);
}

/* Animated background for hero */
.hero-bg {
  background: linear-gradient(-45deg, #0a0a0f, #1a0a2e, #0a1628, #0a0a0f, #1a0a2e);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Bounce animation for scroll indicator */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

.bounce-arrow {
  animation: bounce 2s infinite;
}

/* Fade in animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up.visible {
  animation: fadeInUp 0.8s ease forwards;
}

/* Typewriter effect */
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blinkCursor {
  50% { border-color: transparent; }
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #8b5cf6;
  animation: typewriter 3s steps(40) 1s forwards, blinkCursor 0.75s step-end infinite;
  width: 0;
  display: inline-block;
}

/* Pulse glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.4); }
  50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.7), 0 0 60px rgba(139, 92, 246, 0.3); }
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Stability bar colors */
.stability-green { background: linear-gradient(90deg, #10b981, #34d399); }
.stability-yellow { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stability-orange { background: linear-gradient(90deg, #f97316, #fb923c); }
.stability-red { background: linear-gradient(90deg, #ef4444, #f87171); }

/* Nav blur */
.nav-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Ribbon */
.ribbon {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 10;
}

.ribbon span {
  display: inline-block;
  padding: 4px 16px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px 12px 4px 12px;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.5);
}

/* Pixel border */
.pixel-border-top {
  background-image: repeating-linear-gradient(
    90deg,
    #8b5cf6 0px,
    #8b5cf6 4px,
    transparent 4px,
    transparent 8px
  );
  background-size: 8px 4px;
  background-repeat: repeat-x;
  background-position: top;
}

/* Hamburger */
.hamburger-line {
  transition: all 0.3s ease;
}

/* Table styling */
.comparison-table {
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th {
  background: rgba(139, 92, 246, 0.15);
  border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.comparison-table tr:nth-child(even) td {
  background: rgba(13, 17, 23, 0.5);
}

.comparison-table tr:nth-child(odd) td {
  background: rgba(26, 26, 46, 0.3);
}

.comparison-table td, .comparison-table th {
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

/* Section backgrounds */
.section-alt {
  background: linear-gradient(180deg, #0d1117 0%, #0a0a0f 100%);
}

.section-darker {
  background: linear-gradient(180deg, #080810 0%, #0d1117 100%);
}

/* Mobile menu overlay */
.mobile-overlay {
  transition: opacity 0.3s ease;
}

.mobile-menu {
  transition: transform 0.3s ease;
}

/* Progress bar animation */
@keyframes fillBar {
  from { width: 0%; }
}

.fill-animate {
  animation: fillBar 1.5s ease forwards;
}

/* Screenshot placeholder gradients */
.ss-1 { background: linear-gradient(135deg, #1a0a2e, #2d1b69); }
.ss-2 { background: linear-gradient(135deg, #0a1628, #1a3a5c); }
.ss-3 { background: linear-gradient(135deg, #1a0a2e, #4a1942); }
.ss-4 { background: linear-gradient(135deg, #0a2818, #1a5c3a); }
.ss-5 { background: linear-gradient(135deg, #2d1b69, #1a0a2e); }
.ss-6 { background: linear-gradient(135deg, #1a3a5c, #0a1628); }