/* Advanced animations for hero section */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px rgba(108,140,255,0.1),
                0 0 10px rgba(108,140,255,0.2),
                0 0 15px rgba(108,140,255,0.3);
  }
  50% {
    box-shadow: 0 0 10px rgba(108,140,255,0.2),
                0 0 20px rgba(108,140,255,0.3),
                0 0 30px rgba(108,140,255,0.4);
  }
  100% {
    box-shadow: 0 0 5px rgba(108,140,255,0.1),
                0 0 10px rgba(108,140,255,0.2),
                0 0 15px rgba(108,140,255,0.3);
  }
}

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

/* Apply animations to elements */
.hero-text > * {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.hero-text > *:nth-child(1) { animation-delay: 0.2s; }
.hero-text > *:nth-child(2) { animation-delay: 0.4s; }
.hero-text > *:nth-child(3) { animation-delay: 0.6s; }
.hero-text > *:nth-child(4) { animation-delay: 0.8s; }
.hero-text > *:nth-child(5) { animation-delay: 1s; }

.profile-img {
  animation: float 6s ease-in-out infinite;
}

.stat-item {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.stat-item:nth-child(1) { animation-delay: 1.2s; }
.stat-item:nth-child(2) { animation-delay: 1.4s; }
.stat-item:nth-child(3) { animation-delay: 1.6s; }

/* Enhanced typewriter effect */
.typewriter {
  border-right: 2px solid var(--primary);
  animation: blink 0.8s infinite;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 1rem;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--primary); }
}

/* Glowing effect for buttons */
.btn-primary:hover {
  animation: glowPulse 2s infinite;
}

/* Orbit animation enhancement */
.tech-orbit {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.orbit-item {
  transition: transform 0.3s ease, background-color 0.3s ease;
  transform-style: preserve-3d;
}

.orbit-item:hover {
  transform: scale(1.1) translateZ(20px);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

/* Stats hover enhancement */
.stat-item {
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(135deg, rgba(108,140,255,0.1), rgba(34,211,238,0.1));
}

.stat-number {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive adjustments */
@media (prefers-reduced-motion: reduce) {
  .hero-text > *,
  .stat-item,
  .profile-img {
    animation: none;
    opacity: 1;
  }
  
  .orbit-item:hover {
    transform: scale(1.1);
  }
}