/* Premium Cards Advanced Effects */

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

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

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

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

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px var(--primary-color);
  }
  50% {
    box-shadow: 0 0 40px var(--primary-color), 0 0 60px var(--primary-color);
  }
}

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

/* Advanced 3D Card Effects */
.premium-card {
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
  border-radius: inherit;
}

.premium-card:hover::before {
  animation: shimmer 1.5s ease-in-out;
}

/* Holographic Effect */
.holographic {
  position: relative;
  background: linear-gradient(
    45deg,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.2) 25%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.2) 75%,
    rgba(255,255,255,0.1) 100%
  );
  background-size: 400% 400%;
  animation: gradient-shift 3s ease infinite;
}

/* Particle System */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
  opacity: 0.7;
}

.particle:nth-child(1) { animation-delay: 0s; left: 20%; top: 20%; }
.particle:nth-child(2) { animation-delay: 0.5s; left: 80%; top: 30%; }
.particle:nth-child(3) { animation-delay: 1s; left: 60%; top: 70%; }
.particle:nth-child(4) { animation-delay: 1.5s; left: 30%; top: 80%; }
.particle:nth-child(5) { animation-delay: 2s; left: 70%; top: 10%; }
.particle:nth-child(6) { animation-delay: 2.5s; left: 10%; top: 60%; }

/* Glass Morphism Enhanced */
.glass-enhanced {
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

/* Icon Animation Effects */
.icon-container {
  position: relative;
  overflow: hidden;
}

.icon-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-card:hover .icon-glow {
  opacity: 0.6;
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Text Gradient Effects */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow:hover {
  text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

/* Border Animation */
.animated-border {
  position: relative;
  overflow: hidden;
}

.animated-border::after {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, var(--primary-color), transparent, var(--primary-color));
  border-radius: inherit;
  opacity: 0;
  animation: rotate-border 3s linear infinite;
  transition: opacity 0.3s ease;
}

.premium-card:hover .animated-border::after {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .premium-card:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
  }

  .particle {
    display: none; /* Hide particles on mobile for performance */
  }
}

/* Performance Optimizations */
.premium-card {
  will-change: transform;
  transform: translateZ(0); /* Force hardware acceleration */
}

.premium-card * {
  backface-visibility: hidden;
}