/* Custom animations and additional styles */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
  animation: slideUp 0.7s ease-in-out;
}

.pulse {
  animation: pulse 2s infinite;
}

/* Animations for scroll observer */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Smooth transitions */
.btn-active, a, button, .transition-all {
  transition: all 0.3s ease !important;
}

/* Improve form field focus states */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
}

/* Better hover states for interactive elements */
a:hover, button:hover:not([disabled]) {
  transform: translateY(-1px);
}

/* Progress bar for skills (optional to use with data attributes) */
.skill-progress {
  height: 4px;
  background: rgba(14, 165, 233, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.skill-progress-bar {
  height: 100%;
  background: rgb(14, 165, 233);
  border-radius: 2px;
  transition: width 1s ease-in-out;
}

/* Improved accessibility focus states */
:focus-visible {
  outline: 2px solid rgb(14, 165, 233);
  outline-offset: 2px;
}
