/* Custom Styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

* {
  font-family: "Inter", sans-serif;
}

/* Navigation Links */
.nav-link {
  @apply text-gray-700 dark:text-gray-300 hover:text-primary-500 dark:hover:text-primary-400 transition-colors duration-200 font-medium;
}

.nav-link-mobile {
  @apply block py-2 px-4 text-gray-700 dark:text-gray-300 hover:text-primary-500 dark:hover:text-primary-400 hover:bg-gray-50 dark:hover:bg-gray-800 rounded-lg transition-all duration-200;
}

/* Buttons */
.btn-primary {
  @apply inline-flex items-center px-8 py-4 bg-gradient-to-r from-primary-500 to-secondary-500 text-white font-semibold rounded-lg hover:shadow-lg transform hover:scale-105 transition-all duration-200;
}

.btn-secondary {
  @apply inline-flex items-center px-8 py-4 border-2 border-primary-500 text-primary-500 dark:text-primary-400 font-semibold rounded-lg hover:bg-primary-500 hover:text-white transition-all duration-200;
}

/* Service Cards */
.service-card {
  @apply bg-white dark:bg-gray-800 p-8 rounded-xl shadow-lg hover:shadow-xl transform hover:-translate-y-2 transition-all duration-300 border border-gray-100 dark:border-gray-700;
}

/* Footer Links */
.footer-link {
  @apply text-gray-400 hover:text-primary-400 transition-colors duration-200;
}

.social-link {
  @apply w-10 h-10 bg-gray-800 hover:bg-primary-500 rounded-lg flex items-center justify-center transition-colors duration-200;
}

/* Adding responsive carousel styles with smooth animations and proper spacing */
/* Carousel Styles */
.carousel-track {
  @apply transition-transform duration-500 ease-in-out;
  /* Enable horizontal scrolling on mobile */
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Responsive carousel spacing */
@media (max-width: 768px) {
  .carousel-track {
    @apply space-x-6 px-4;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

  .carousel-track > div {
    scroll-snap-align: center;
    flex: 0 0 auto;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .carousel-track {
    @apply space-x-10;
  }
}

@media (min-width: 1025px) {
  .carousel-track {
    @apply space-x-16;
  }
}

/* Carousel animation for auto-scroll */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.carousel-auto-scroll {
  animation: scroll 20s linear infinite;
}

/* Pause animation on hover */
.carousel-track:hover {
  animation-play-state: paused;
}

/* Client logo hover effects */
.carousel-track > div:hover {
  transform: translateY(-4px);
}

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

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

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

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

::-webkit-scrollbar-track {
  @apply bg-gray-100 dark:bg-gray-800;
}

::-webkit-scrollbar-thumb {
  @apply bg-gradient-to-b from-primary-500 to-secondary-500 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
  @apply from-primary-600 to-secondary-600;
}

/* Form Styles */
.form-input {
  @apply w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-800 text-gray-900 dark:text-white focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-200;
}

.form-textarea {
  @apply w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-800 text-gray-900 dark:text-white focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-200 resize-vertical min-h-[120px];
}

.form-select {
  @apply w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-800 text-gray-900 dark:text-white focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-200;
}

/* Loading Animation */
.loading {
  @apply animate-pulse;
}

/* Smooth Transitions */
* {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
