/* Floating Particles Animation Styles */
.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4);
  border-radius: 50%;
  animation: float 15s infinite linear;
  opacity: 0.6;
  filter: blur(0.5px);
}

.particle::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: inherit;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.5;
}

/* Individual particle animations */
.particle-1 {
  left: 10%;
  animation-duration: 20s;
  animation-delay: -2s;
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
}

.particle-2 {
  left: 20%;
  animation-duration: 18s;
  animation-delay: -4s;
  background: linear-gradient(45deg, #8b5cf6, #7c3aed);
  width: 3px;
  height: 3px;
}

.particle-3 {
  left: 30%;
  animation-duration: 25s;
  animation-delay: -6s;
  background: linear-gradient(45deg, #06b6d4, #0891b2);
}

.particle-4 {
  left: 40%;
  animation-duration: 22s;
  animation-delay: -8s;
  background: linear-gradient(45deg, #3b82f6, #6366f1);
  width: 2px;
  height: 2px;
}

.particle-5 {
  left: 50%;
  animation-duration: 16s;
  animation-delay: -10s;
  background: linear-gradient(45deg, #8b5cf6, #a855f7);
}

.particle-6 {
  left: 60%;
  animation-duration: 24s;
  animation-delay: -12s;
  background: linear-gradient(45deg, #06b6d4, #0284c7);
  width: 3px;
  height: 3px;
}

.particle-7 {
  left: 70%;
  animation-duration: 19s;
  animation-delay: -14s;
  background: linear-gradient(45deg, #3b82f6, #2563eb);
}

.particle-8 {
  left: 80%;
  animation-duration: 21s;
  animation-delay: -16s;
  background: linear-gradient(45deg, #8b5cf6, #9333ea);
  width: 2px;
  height: 2px;
}

.particle-9 {
  left: 90%;
  animation-duration: 17s;
  animation-delay: -18s;
  background: linear-gradient(45deg, #06b6d4, #0369a1);
}

.particle-10 {
  left: 95%;
  animation-duration: 23s;
  animation-delay: -20s;
  background: linear-gradient(45deg, #3b82f6, #1e40af);
  width: 3px;
  height: 3px;
}

/* Floating animation keyframes */
@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* Additional particles for variety */
.particle:nth-child(odd) {
  animation-direction: reverse;
}

.particle:nth-child(even) {
  animation-duration: 18s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .particle {
    width: 3px;
    height: 3px;
  }
  
  .particle-2, .particle-4, .particle-8 {
    width: 2px;
    height: 2px;
  }
}

/* Enhanced glow effect for navbar */
.navbar-glow {
  position: relative;
}

.navbar-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(59, 130, 246, 0.1) 25%, 
    rgba(139, 92, 246, 0.1) 50%, 
    rgba(6, 182, 212, 0.1) 75%, 
    transparent 100%);
  opacity: 0.5;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.3;
    transform: translateX(-100%);
  }
  50% {
    opacity: 0.7;
    transform: translateX(100%);
  }
}

/* Enhanced Navigation Link Effects */
.nav-link-enhanced {
  position: relative;
  overflow: hidden;
}

.nav-link-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.nav-link-enhanced:hover::before {
  left: 100%;
}

/* Enhanced Dropdown Animations */
.dropdown-enhanced {
  animation: dropdownFadeIn 0.3s ease-out;
  transform-origin: top;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Profile Avatar Glow Effect */
.profile-avatar-glow {
  position: relative;
}

.profile-avatar-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
  animation: avatarGlow 2s linear infinite;
  z-index: -1;
}

@keyframes avatarGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Menu Enhancements */
@media (max-width: 1024px) {
  .floating-particles {
    opacity: 0.3;
  }
  
  .particle {
    animation-duration: 20s;
  }
}

@media (max-width: 768px) {
  .floating-particles {
    opacity: 0.2;
  }
  
  .nav-link-enhanced {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
  }
  
  .dropdown-enhanced {
    border-radius: 0.75rem;
    margin-top: 0.5rem;
  }
}

/* Additional smooth transitions for interactive elements */
.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulse effect for important elements */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
  }
}

/* Overlay-specific particles for sidebar */
.particle-overlay-1 {
  left: 15%;
  animation: overlayFloat 25s infinite linear;
  animation-delay: -1s;
  background: linear-gradient(45deg, #3b82f6, #1e40af);
  width: 3px;
  height: 3px;
  opacity: 0.4;
}

.particle-overlay-2 {
  left: 35%;
  animation: overlayFloat 30s infinite linear;
  animation-delay: -8s;
  background: linear-gradient(45deg, #8b5cf6, #6d28d9);
  width: 2px;
  height: 2px;
  opacity: 0.3;
}

.particle-overlay-3 {
  left: 55%;
  animation: overlayFloat 22s infinite linear;
  animation-delay: -3s;
  background: linear-gradient(45deg, #06b6d4, #0891b2);
  width: 4px;
  height: 4px;
  opacity: 0.35;
}

.particle-overlay-4 {
  left: 75%;
  animation: overlayFloat 28s infinite linear;
  animation-delay: -12s;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  width: 2.5px;
  height: 2.5px;
  opacity: 0.25;
}

.particle-overlay-5 {
  left: 85%;
  animation: overlayFloat 35s infinite linear;
  animation-delay: -5s;
  background: linear-gradient(45deg, #8b5cf6, #06b6d4);
  width: 3.5px;
  height: 3.5px;
  opacity: 0.3;
}

/* Slow drift animation for overlay particles */
@keyframes overlayFloat {
  0% {
    transform: translateY(100vh) translateX(-10px) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.4;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-10vh) translateX(30px) rotate(180deg);
    opacity: 0;
  }
}

/* Ripple effect animation for overlay clicks */
@keyframes ripple-effect {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}