/* animations.css */

/* Fade In */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* 3D Rotating Icons for Hero Section */
@keyframes rotate3D {
  0% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: perspective(1000px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

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

.hero-icon-container {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-icon {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  box-shadow: 0 0 30px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  animation: float 6s ease-in-out infinite, rotate3D 15s linear infinite;
}

.hero-icon:nth-child(1) {
  top: 10%;
  left: 20%;
  animation-delay: 0s, 0s;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.hero-icon:nth-child(2) {
  bottom: 20%;
  left: 30%;
  animation-delay: 2s, 0s;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.hero-icon:nth-child(3) {
  top: 30%;
  right: 20%;
  animation-delay: 4s, 0s;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

/* Hover glow for buttons and cards */
.hover-glow {
  transition: box-shadow var(--transition-normal);
}

.hover-glow:hover {
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Smooth reveal on scroll (Requires JS Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
