/* Custom styles for SpeedLine Junior Cars */

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

/* Custom transitions */
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Hover animations */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #EF4444;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #DC2626;
}

/* Gallery modal styles */
.modal-backdrop {
  backdrop-filter: blur(5px);
}

/* Custom button styles */
.btn-primary {
  @apply bg-red-600 hover:bg-red-700 text-white font-bold py-3 px-8 rounded-sm inline-block transition duration-300 transform hover:translate-y-1 hover:shadow-lg;
}

.btn-secondary {
  @apply bg-gray-900 hover:bg-gray-800 text-white font-bold py-3 px-8 rounded-sm 
         transition duration-300 transform hover:translate-y-1 hover:shadow-lg;
}

/* Card hover effects */
.card-hover {
  @apply transition-all duration-300 transform hover:-translate-y-2 hover:shadow-xl;
}

/* Custom image styles */
.img-hover {
  @apply transition-transform duration-500 hover:scale-110;
}

/* Navigation dropdown styles */
.nav-dropdown {
  @apply absolute right-0 mt-2 py-2 w-48 bg-white rounded-md shadow-xl z-50
         invisible opacity-0 transform translate-y-2 transition-all duration-300;
}

.nav-dropdown.active {
  @apply visible opacity-100 translate-y-0;
}

/* Custom form styles */
.form-input {
  @apply w-full px-4 py-2 border border-gray-300 rounded-sm focus:outline-none 
         focus:ring-2 focus:ring-red-500 focus:border-transparent;
}

.form-label {
  @apply block text-sm font-medium text-gray-700 mb-1;
}

/* Custom loading spinner */
.spinner {
  @apply animate-spin rounded-full h-8 w-8 border-4 border-red-600 border-t-transparent;
}

/* Carousel Styles */
.carousel-indicator {
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Hero Section Transitions */
#slide1, #slide2, #slide3 {
    transition: opacity 1s ease-in-out;
}

/* Gallery Image Hover Effects */
.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Navigation Bar Styles */
nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Custom Section Styles */
.section-title {
    @apply text-3xl md:text-4xl font-bold mb-4;
}

.section-subtitle {
    @apply text-gray-600 max-w-2xl mx-auto;
}
