@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

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

.pulse {
  animation: pulse 2s infinite;
}

/* Hero elements specific styles */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: float 6s ease-in-out infinite;
  color: white;
  font-weight: 500;
}

.floating-badge.top-right {
  top: 10%;
  right: 5%;
  animation-delay: 0.5s;
}

.floating-badge.bottom-left {
  bottom: 15%;
  left: 5%;
  animation-delay: 1s;
}

.floating-badge:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.dashboard-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease;
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  z-index: 10;
  will-change: transform;
  transform-style: preserve-3d;
}

.dashboard-preview:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(16, 170, 128, 0.15), rgba(16, 170, 200, 0.15));
  color: #10e5c0;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(16, 170, 128, 0.2);
  box-shadow: 0 5px 15px rgba(16, 170, 128, 0.1);
  transition: all 0.3s ease;
}

.feature-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 170, 128, 0.15);
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-color);
  margin-right: 1.2rem;
  box-shadow: 0 8px 20px rgba(88, 80, 236, 0.35);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(88, 80, 236, 0.5);
}

.play-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  animation: pulse 2s infinite;
}

.stats-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stats-container:hover {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-count {
  font-size: 2.4rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.6rem;
  font-family: 'Manrope', sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.text-gradient {
  background: linear-gradient(90deg, #00c6ff, #0072ff, #7b5eff, #4462d5);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 8s infinite;
  font-weight: 800;
}

/* Add additional cool elements to the hero section */
.btn-primary {
  background: linear-gradient(135deg, #5850ec, #7b5eff);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px rgba(88, 80, 236, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: 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: all 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(88, 80, 236, 0.3);
}

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

.hero-notification {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  z-index: 10;
  color: #1f2937;
  transition: all 0.3s ease;
  animation: float 6s ease-in-out infinite;
  animation-delay: 1.5s;
  will-change: transform;
  backface-visibility: hidden;
}

.hero-notification.top-left {
  top: 15%;
  left: 5%;
}

.hero-notification.bottom-right {
  bottom: 20%;
  right: 10%;
}

.hero-notification:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.dashboard-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: inherit;
  z-index: 5;
}

/* Performance optimizations */
.dashboard-preview {
  will-change: transform;
  transform-style: preserve-3d;
}

.floating-badge,
.hero-notification {
  will-change: transform;
  backface-visibility: hidden;
}

/* Enhanced responsive design */
@media (max-width: 640px) {
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .floating-badge,
  .hero-notification {
    display: none; /* Hide on mobile for better performance */
  }
  
  .stats-container {
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .stat-count {
    font-size: 1.8rem;
  }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
  .floating-badge {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
  
  .dashboard-preview:hover {
    transform: perspective(1000px) rotateY(-3deg) rotateX(3deg) translateY(-5px);
  }
}

/* Large screen enhancements */
@media (min-width: 1025px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .floating-badge {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .floating-badge:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
}
