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

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes shimmer {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

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

.scale-up {
  animation: scaleUp 0.8s ease-out forwards;
}

.slide-in {
  animation: slideIn 0.8s ease-out forwards;
}

.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgb(30, 58, 138);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #1e3a8a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e3a8a;
}

/* Subtle gradient overlay for image sections */
.grain-overlay {
  background-image: 
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='400' height='400' fill='%23000' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
}

/* Micro-interaction on links */
a {
  position: relative;
}

a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* Button hover effect */
button {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

input, textarea, select {
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  transform: scale(1.01);
}

/* Mobile menu smooth transitions */
#mobile-menu {
  transition: all 0.3s ease;
  max-height: 400px;
  overflow: hidden;
}

#mobile-menu.hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

