/* Additional styles for form messages and interactive elements */

/* Form Message Styles */
.form-message {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  animation: slideInDown 0.3s ease-out;
}

.form-message--success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message--error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

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

/* Loading state for buttons */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Enhanced mobile menu animation */
.mobile-menu-toggle span.active:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle span.active:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle span.active:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Header scroll effect */
.header.scrolled {
  background-color: rgba(10, 42, 102, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Enhanced hover effects */
.service-card:hover .service-icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.case-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-link:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(10, 42, 102, 0.1);
}

/* Smooth transitions for all interactive elements */
.nav-link,
.btn,
.service-card,
.case-card,
.feature,
.contact-item,
.social-links a {
  transition: all 0.3s ease;
}

/* Enhanced loading animation */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #0a2a66;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1001;
}

.skip-link:focus {
  top: 0;
}

/* Enhanced grid layouts for better spacing */
.services-grid,
.cases-grid,
.about-features {
  align-items: start;
}

/* Improved typography scale */
.hero-content p {
  color: rgba(255, 255, 255, 0.9);
}

/* Better contrast for readability */
.section-subtitle {
  color: #555;
}

/* Enhanced card shadows for depth */
.service-card,
.case-card,
.feature,
.contact-form {
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24);
  transition: box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
}

.service-card:hover,
.case-card:hover,
.feature:hover {
  box-shadow: 
    0 14px 28px rgba(0, 0, 0, 0.25),
    0 10px 10px rgba(0, 0, 0, 0.22);
}