/* Enhanced 3D Animations and Effects - Responsive */

/* Fade-in animations */
[data-animate] {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3D perspective cards */
.card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(-5deg);
  transition: transform 0.3s ease-out;
}

/* Glow effect */
.glow {
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.8),
               0 0 20px rgba(0, 255, 136, 0.4);
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8),
                 0 0 20px rgba(0, 255, 136, 0.4);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 255, 136, 1),
                 0 0 30px rgba(0, 255, 136, 0.6),
                 0 0 40px rgba(0, 255, 136, 0.4);
  }
}

/* Pulse animation */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

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

/* Float animation */
.float {
  animation: float 3s ease-in-out infinite;
}

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

/* Rotate animation */
.rotate {
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Slide in animations */
.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Notification styles */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  max-width: 90vw;
}

@media (max-width: 768px) {
  .notification {
    bottom: 10px;
    right: 10px;
    left: 10px;
    padding: 14px 16px;
  }
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification-success {
  background: linear-gradient(135deg, #00ff88, #00ffaa);
  color: #000;
}

.notification-error {
  background: linear-gradient(135deg, #ff0054, #ff0088);
  color: #fff;
}

/* Gradient text animation */
.gradient-text {
  background: linear-gradient(135deg, #00ff88, #00ffff, #ff00ff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

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

/* Hover scale animation */
.hover-scale {
  transition: transform 0.3s ease;
}

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

/* Bounce animation */
.bounce {
  animation: bounce 1s ease-in-out;
}

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

/* Shimmer effect */
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

/* Shimmer effect for 3D cards */
@keyframes shimmerEffect {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Icon float animation */
@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Badge pulse animation */
@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    transform: scale(1.05);
  }
}

/* Timeline marker glow animation */
@keyframes markerGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.8), inset 0 0 10px rgba(0, 255, 136, 0.3);
  }
}

/* Responsive Canvas */
canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 768px) {
  canvas {
    max-height: 100vh;
  }
}
