/* Modern Effects and Animations */

/* Particle Background Effect */
.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float-particles 20s infinite linear;
}

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

/* Glowing Elements */
.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  border-radius: inherit;
  z-index: -1;
  animation: glow-rotate 2s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
  opacity: 1;
}

@keyframes glow-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Morphing Shapes */
.morphing-shape {
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 50%;
  animation: morph 4s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% {
    border-radius: 50%;
    transform: rotate(0deg);
  }
  25% {
    border-radius: 25% 75% 75% 25%;
    transform: rotate(90deg);
  }
  50% {
    border-radius: 75% 25% 25% 75%;
    transform: rotate(180deg);
  }
  75% {
    border-radius: 25% 75% 25% 75%;
    transform: rotate(270deg);
  }
}

/* Text Reveal Animation */
.text-reveal {
  overflow: hidden;
  position: relative;
}

.text-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transform: translateX(-100%);
  animation: reveal 1.5s ease-out forwards;
}

@keyframes reveal {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Magnetic Button Effect */
.magnetic-btn {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.magnetic-btn:hover {
  transform: scale(1.05);
}

/* Liquid Button Effect */
.liquid-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.liquid-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.liquid-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Parallax Effect */
.parallax-element {
  transform: translateZ(0);
  transition: transform 0.1s ease-out;
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Animation */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  animation: staggerIn 0.6s ease-out forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gradient Border Animation */
.gradient-border {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 2px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: gradient-rotate 3s linear infinite;
}

@keyframes gradient-rotate {
  0% {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
  }
  25% {
    background: linear-gradient(135deg, #764ba2, #f093fb, #f5576c, #667eea);
  }
  50% {
    background: linear-gradient(225deg, #f093fb, #f5576c, #667eea, #764ba2);
  }
  75% {
    background: linear-gradient(315deg, #f5576c, #667eea, #764ba2, #f093fb);
  }
  100% {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
  }
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Neon Glow Effect */
.neon-glow {
  color: #fff;
  text-shadow: 
    0 0 5px currentColor,
    0 0 10px currentColor,
    0 0 15px currentColor,
    0 0 20px #ff00de,
    0 0 35px #ff00de,
    0 0 40px #ff00de;
  animation: neon-flicker 2s infinite alternate;
}

@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow: 
      0 0 5px currentColor,
      0 0 10px currentColor,
      0 0 15px currentColor,
      0 0 20px #ff00de,
      0 0 35px #ff00de,
      0 0 40px #ff00de;
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .morphing-shape {
    width: 60px;
    height: 60px;
  }
  
  .magnetic-btn:hover {
    transform: scale(1.02);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}