body {
  box-sizing: border-box;
}

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

:root {
  --primary: #8b5cf6;
  --secondary: #6366f1;
  --accent: #a855f7;
  --dark: #0f0b1f;
  --light: #f8f7ff;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0f0b1f;
  color: #ffffff;
  overflow-x: hidden;
}

.orbitron {
  font-family: 'Poppins', sans-serif;
}

/* Animated gradient background */
.hero-gradient {
  background: linear-gradient(135deg, #0f0b1f 0%, #1a1038 25%, #2d1b69 50%, #1a1038 75%, #0f0b1f 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

/* Glassmorphism */
.glass {
  background: rgba(139, 92, 246, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
}

.glass-strong {
  background: rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

/* Pulse glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), 0 0 40px rgba(139, 92, 246, 0.2); }
  50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.6), 0 0 80px rgba(139, 92, 246, 0.3); }
}

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

/* Particles background */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(139, 92, 246, 0.6);
  border-radius: 50%;
  animation: particleFloat 20s infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100%) translateX(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-100%) translateX(100px);
    opacity: 0;
  }
}

/* Counter animation */
.counter {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #8b5cf6, #a855f7, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 50px;
  transition: all 0.3s ease;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 20px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.5), transparent);
}

.timeline-item:hover {
  transform: translateX(10px);
}

/* Calculator */
.calc-input {
  background: rgba(139, 92, 246, 0.1);
  border: 2px solid rgba(139, 92, 246, 0.3);
  color: white;
  padding: 16px;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.calc-input:focus {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.2);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.calc-result {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
  border: 2px solid rgba(139, 92, 246, 0.4);
  padding: 30px;
  border-radius: 20px;
  margin-top: 30px;
  animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hover card effects */
.hover-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
}

/* Neon button */
.neon-btn {
  position: relative;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  overflow: hidden;
}

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

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

.neon-btn:hover {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.8), 0 0 60px rgba(139, 92, 246, 0.4);
  transform: scale(1.05);
}

/* Progress bar */
.progress-bar {
  height: 8px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #a855f7, #c084fc);
  border-radius: 10px;
  transition: width 1s ease;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  max-height: 600px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-20px); }
  60% { transform: translateX(-50%) translateY(-10px); }
}

/* Energy wave effect */
@keyframes wave {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.wave-container {
  position: relative;
  overflow: hidden;
}

.wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
  animation: wave 3s linear infinite;
}
