/* Additional custom styles for NoblePath Business Services */

/* Carousel specific styles */
.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide.entering {
  opacity: 1;
}

.carousel-slide.exiting {
  opacity: 0;
}

/* Navigation enhancements */
.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: transform 0.3s ease-in-out;
}

.navbar-hidden {
  transform: translateY(-100%);
}

/* Dropdown menu animations */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile menu animations */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.mobile-menu.open {
  max-height: 500px;
}

/* Hover effects for service cards */
.service-card {
  transition: all 0.3s ease-in-out;
}

.service-card:hover {
  transform: translateY(-5px) scale(1.02);
}

/* Testimonial card animations */
.testimonial-card {
  transition: all 0.3s ease-in-out;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(17, 34, 80, 0.15);
}

/* Button hover effects */
.btn-hover-lift {
  transition: all 0.3s ease-in-out;
}

.btn-hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(17, 34, 80, 0.2);
}

/* Icon animations */
.icon-hover {
  transition: transform 0.2s ease-in-out;
}

.icon-hover:hover {
  transform: scale(1.1);
}

/* Footer logo sizing */
.footer-logo {
  height: 40px;
  max-height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Form styles */
.form-input {
  @apply w-full px-4 py-3 border border-hellstone/20 rounded-lg focus:ring-2 focus:ring-sapphire focus:border-transparent transition-all duration-200;
}

.form-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 80, 125, 0.1);
}

.form-error {
  @apply text-red-500 text-sm mt-1;
}

.form-success {
  @apply text-green-500 text-sm mt-1;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }
  
  .mobile-full {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .desktop-hidden {
    display: none;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--royal-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .text-royal-blue\/70 {
    color: var(--royal-blue);
  }
  
  .text-swan-wing\/80 {
    color: var(--swan-wing);
  }
}

/* Enhanced Equivalency Certificate Section Styles */
.equivalency-step-card {
  position: relative;
  overflow: hidden;
}

.equivalency-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.equivalency-step-card:hover::before {
  left: 100%;
}

/* Floating Animation for Step Numbers */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.step-number-float {
  animation: float 3s ease-in-out infinite;
}

/* Pulse Animation for Accent Dots */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Progress Bar Animation */
@keyframes progress-fill {
  from {
    width: 0%;
  }
  to {
    width: var(--progress-width, 100%);
  }
}

.progress-animated {
  animation: progress-fill 1s ease-out forwards;
}

/* Gradient Text Animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-text-animated {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Button Ripple Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:hover::after {
  width: 300px;
  height: 300px;
}

/* Card Tilt Effect */
.card-tilt {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.card-tilt:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Staggered Animation for Cards */
.stagger-animation {
  opacity: 0;
  transform: translateY(30px);
  animation: stagger-fade-in 0.6s ease-out forwards;
}

.stagger-animation:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation:nth-child(3) { animation-delay: 0.3s; }

@keyframes stagger-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Hover Effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(17, 34, 80, 0.25);
}

/* Glassmorphism Enhancement */
.glass-enhanced {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(17, 34, 80, 0.1);
}

/* Icon Bounce Animation */
@keyframes icon-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.icon-bounce:hover {
  animation: icon-bounce 1s ease;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .carousel-slide {
    transition: none;
  }
  
  .equivalency-step-card::before,
  .step-number-float,
  .pulse-glow,
  .progress-animated,
  .gradient-text-animated,
  .btn-ripple::after,
  .stagger-animation,
  .icon-bounce {
    animation: none !important;
  }
}