/* animation.css */

/* Smooth fade-in for sections */
section {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease-out forwards;
}

/* Delay for sequential appearance */
section:nth-child(1) { animation-delay: 0.2s; }
section:nth-child(2) { animation-delay: 0.4s; }
section:nth-child(3) { animation-delay: 0.6s; }
section:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover animations for buttons & links */
button, a {
  transition: all 0.3s ease;
}

button:hover, a:hover {
  transform: scale(1.05);
}

/* Project card hover effect */
.project-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Skills bounce animation */
.skill-box {
  transition: transform 0.3s ease;
}

.skill-box:hover {
  transform: translateY(-5px) scale(1.1);
}

/* Contact form focus effect */
input:focus, textarea:focus {
  transform: scale(1.02);
  transition: 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
}
