/* Animation Effects */

/* Keyframes for various animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-45deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Apply animations to elements */
.logo {
  animation: pulse 3s ease-in-out infinite;
}

.hero-media {
  animation: float 6s ease-in-out infinite;
}

.about-icon, .skill-icon {
  animation: rotateIn 0.8s ease-out forwards;
  opacity: 0;
}

.testimonial-portrait {
  animation: pulse 5s ease-in-out infinite;
}

.hero-buttons .btn {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.hero-buttons .btn-outline {
  animation-delay: 0.5s;
}

.skill-card:nth-child(odd) {
  animation: fadeInLeft 0.8s ease-out forwards;
  animation-delay: calc(0.1s * var(--animation-order));
  opacity: 0;
}

.skill-card:nth-child(even) {
  animation: fadeInRight 0.8s ease-out forwards;
  animation-delay: calc(0.1s * var(--animation-order));
  opacity: 0;
}

.timeline-item:nth-child(odd) {
  animation: fadeInLeft 0.8s ease-out forwards;
  animation-delay: calc(0.15s * var(--animation-order));
  opacity: 0;
}

.timeline-item:nth-child(even) {
  animation: fadeInRight 0.8s ease-out forwards;
  animation-delay: calc(0.15s * var(--animation-order));
  opacity: 0;
}

.hero h1 {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

.hero p {
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.form-container {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

/* Gradient shimmer effect for buttons */
.btn.shimmer {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.2) 50%, 
    rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Hover effects with motion */
.skill-card:hover .skill-icon,
.about-card:hover .about-icon {
  animation: bounce 1s ease infinite;
}

.nav-links a:hover {
  animation: pulse 0.5s ease-out;
}

/* Scroll effects for content sections */
.scroll-fade {
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0;
  transform: translateY(50px);
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
