/* ===== Animations ===== */

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

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

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

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

.animate-in { animation: fadeIn 0.6s ease-in-out; }
.slide-down { animation: slideDown 0.6s ease-out; }
.slide-up { animation: slideUp 0.6s ease-out; }
.scale-in { animation: scaleIn 0.4s ease-out; }

.service-card {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-primary {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
  transform: scale(0.95);
}

.form-input {
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

nav {
  animation: slideDown 0.6s ease-out;
  position: sticky;
  top: 0;
  z-index: 50;
}

.message-success { 
  animation: slideDown 0.4s ease-out;
  background-color: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  padding: 12px 16px;
  border-radius: 6px;
}

.message-error { 
  animation: slideDown 0.4s ease-out;
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 6px;
}

.message-info { 
  animation: slideDown 0.4s ease-out;
  background-color: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1e3a8a;
  padding: 12px 16px;
  border-radius: 6px;
}

.card-grid > div {
  animation: scaleIn 0.4s ease-out backwards;
}

.card-grid > div:nth-child(1) { animation-delay: 0s; }
.card-grid > div:nth-child(2) { animation-delay: 0.1s; }
.card-grid > div:nth-child(3) { animation-delay: 0.2s; }
.card-grid > div:nth-child(4) { animation-delay: 0.3s; }
.card-grid > div:nth-child(5) { animation-delay: 0.4s; }
.card-grid > div:nth-child(6) { animation-delay: 0.5s; }

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

/* Smooth scroll for internal anchor links */
a[href^="#"] {
  scroll-behavior: smooth;
}

/* Adjust scroll position for fixed navbar */
html {
  scroll-padding-top: 70px;
}
