html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

/* Initial fade-in animations for hero section */
.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

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

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

/* Scroll-triggered animations */
.scroll-animate .scroll-animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate .scroll-animate-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for items within the same section */
.scroll-animate .scroll-animate-item:nth-child(1) { transition-delay: 0s; }
.scroll-animate .scroll-animate-item:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate .scroll-animate-item:nth-child(3) { transition-delay: 0.2s; }
.scroll-animate .scroll-animate-item:nth-child(4) { transition-delay: 0.3s; }
.scroll-animate .scroll-animate-item:nth-child(5) { transition-delay: 0.4s; }
.scroll-animate .scroll-animate-item:nth-child(6) { transition-delay: 0.5s; }
.scroll-animate .scroll-animate-item:nth-child(7) { transition-delay: 0.6s; }
.scroll-animate .scroll-animate-item:nth-child(8) { transition-delay: 0.7s; }

/* Experience section cards need slide from left animation */
#experience .scroll-animate-item {
  transform: translateX(-30px);
}

/* Ensure cards have smooth hover transitions */
[class*="bg-gradient-to-br"] {
  transition: all 0.3s ease;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide mobile menu initially */
#mobile-menu.hidden {
  display: none;
}
