/* Hero Sparkles and Colorful Effects */

.modern-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    #667eea 0%, 
    #667eea 25%, 
    #667eea 50%, 
    #667eea 75%, 
    #667eea 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

/* Sparkle Container */
.hero-sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Individual Sparkles */
.sparkle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: sparkleFloat 4s ease-in-out infinite;
}

/* Different Sparkle Sizes */
.sparkle-small {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 10px currentColor;
}

.sparkle-medium {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 15px currentColor;
}

.sparkle-large {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 20px currentColor;
}

/* Colorful Sparkle Colors */
.sparkle-pink { color: #ff6b9d; }
.sparkle-purple { color: #c44cf0; }
.sparkle-blue { color: #4facfe; }
.sparkle-green { color: #43e97b; }
.sparkle-yellow { color: #feca57; }
.sparkle-orange { color: #ff9ff3; }
.sparkle-cyan { color: #54a0ff; }
.sparkle-mint { color: #5f27cd; }

/* Sparkle Animations */
@keyframes sparkleFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0);
  }
  10% {
    opacity: 1;
    transform: translateY(-10px) rotate(45deg) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateY(-50px) rotate(315deg) scale(1.2);
  }
}

/* Floating Orbs */
.hero-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
  animation: orbFloat 8s ease-in-out infinite;
  opacity: 0.6;
}

.orb-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 107, 157, 0.4), transparent);
  animation-delay: 0s;
}

.orb-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  background: radial-gradient(circle at 30% 30%, rgba(79, 172, 254, 0.4), transparent);
  animation-delay: 2s;
}

.orb-3 {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 70%;
  background: radial-gradient(circle at 30% 30%, rgba(196, 76, 240, 0.4), transparent);
  animation-delay: 4s;
}

.orb-4 {
  width: 120px;
  height: 120px;
  top: 40%;
  left: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(67, 233, 123, 0.4), transparent);
  animation-delay: 6s;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  33% {
    transform: translateY(-30px) translateX(20px) scale(1.1);
  }
  66% {
    transform: translateY(20px) translateX(-15px) scale(0.9);
  }
}

/* Particle Rain Effect */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: particleRain 10s linear infinite;
  opacity: 0.7;
}

@keyframes particleRain {
  0% {
    transform: translateY(-100px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* Rainbow Wave Effect */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(90deg, 
    #3e8df4 0%, 
    #4ca3f0 16.66%, 
    #4facfe 33.33%, 
    #43e97b 50%, 
    #feca57 66.66%, 
    #ff9ff3 83.33%, 
    #e99cb6 100%);
  opacity: 0.3;
  clip-path: polygon(0 50%, 100% 80%, 100% 100%, 0% 100%);
  animation: waveShimmer 3s ease-in-out infinite;
}

@keyframes waveShimmer {
  0%, 100% {
    transform: translateX(0) scaleX(1);
  }
  50% {
    transform: translateX(10px) scaleX(1.05);
  }
}

/* Enhanced Hero Content */
.modern-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.modern-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #FFFFFF, #FFFFFF, #FFFFFF, #FFFFFF);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

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

.modern-hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
  to { text-shadow: 0 2px 20px rgba(255, 255, 255, 0.4); }
}

/* Enhanced Buttons */
.modern-hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.modern-hero-cta .btn {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.modern-hero-cta .btn-primary {
  background: linear-gradient(45deg, rgba(255, 107, 157, 0.9), rgba(196, 76, 240, 0.9));
  color: white;
}

.modern-hero-cta .btn-secondary {
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  color: white;
}

.modern-hero-cta .btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.modern-hero-cta .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;
}

.modern-hero-cta .btn:hover::before {
  left: 100%;
}

/* Floating Icons */
.hero-floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.6);
  animation: iconFloat 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
  top: 15%;
  left: 15%;
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  top: 25%;
  right: 20%;
  animation-delay: 1s;
}

.floating-icon:nth-child(3) {
  bottom: 30%;
  left: 25%;
  animation-delay: 2s;
}

.floating-icon:nth-child(4) {
  bottom: 20%;
  right: 30%;
  animation-delay: 3s;
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Mouse Interaction Effects */
.modern-hero:hover .sparkle {
  animation-duration: 2s;
}

.modern-hero:hover .orb {
  animation-duration: 4s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .modern-hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-orbs .orb {
    transform: scale(0.7);
  }
  
  .sparkle-large {
    width: 8px;
    height: 8px;
  }
  
  .sparkle-medium {
    width: 6px;
    height: 6px;
  }
  
  .modern-hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .floating-icon {
    font-size: 1.5rem;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .sparkle,
  .orb,
  .particle,
  .floating-icon {
    animation: none !important;
  }
  
  .modern-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  
  .modern-hero-title,
  .modern-hero-subtitle {
    animation: none !important;
  }
}

/* High Performance Mode */
.sparkle,
.orb,
.particle {
  will-change: transform, opacity;
}

.modern-hero-title,
.modern-hero-subtitle {
  will-change: background-position;
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
  .modern-hero {
    background: linear-gradient(135deg, 
      #1a1a2e 0%, 
      #16213e 25%, 
      #0f3460 50%, 
      #533483 75%, 
      #7209b7 100%);
  }
}