/* ===== Ali Auto Shop - Custom Styles ===== */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
  background: #c8a45e;
  border-radius: 4px;
}

/* Gold accent color */
:root {
  --gold: #c8a45e;
  --gold-light: #d4b76a;
  --gold-dark: #b8944e;
  --dark: #0f0f1a;
  --dark-card: #1a1a2e;
  --dark-light: #232340;
}

/* Typography */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark);
  color: #e0e0e0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* Hero swiper */
.hero-swiper .swiper-slide {
  position: relative;
}
.hero-swiper .swiper-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,15,26,0.9) 0%, rgba(15,15,26,0.4) 50%, rgba(15,15,26,0.1) 100%);
  z-index: 1;
}
.hero-swiper .slide-content {
  z-index: 2;
}

.hero-swiper .swiper-slide img {
  filter: brightness(0.72);
}

/* Navigation */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Card hover effects */
.car-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(200, 164, 94, 0.15);
}
.car-card .car-image {
  transition: transform 0.6s ease;
}
.car-card:hover .car-image {
  transform: scale(1.05);
}

/* Gold gradient button */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0f0f1a;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  box-shadow: 0 8px 30px rgba(200, 164, 94, 0.3);
  transform: translateY(-2px);
}

/* Outline gold button */
.btn-gold-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  transition: all 0.3s ease;
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: #0f0f1a;
}

/* Animated counters */
.counter-section {
  background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-light) 100%);
}

/* Testimonial card */
.testimonial-card {
  background: var(--dark-card);
  border: 1px solid rgba(200,164,94,0.1);
  transition: border-color 0.3s ease;
}
.testimonial-card:hover {
  border-color: rgba(200,164,94,0.3);
}

/* Category card */
.category-card {
  transition: all 0.4s ease;
  overflow: hidden;
}
.category-card:hover {
  transform: translateY(-5px);
}
.category-card .cat-overlay {
  background: linear-gradient(to top, rgba(15,15,26,0.95) 0%, rgba(15,15,26,0.3) 60%, transparent 100%);
  transition: background 0.3s ease;
}
.category-card:hover .cat-overlay {
  background: linear-gradient(to top, rgba(200,164,94,0.3) 0%, rgba(15,15,26,0.3) 60%, transparent 100%);
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Price range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--dark-card) 25%, var(--dark-light) 50%, var(--dark-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Comparison table */
.compare-table th,
.compare-table td {
  border: 1px solid rgba(200,164,94,0.15);
  padding: 12px 16px;
}
.compare-table th {
  background: var(--dark-light);
  color: var(--gold);
}

/* Mobile menu transition */
.mobile-menu {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Image gallery thumbnail */
.gallery-thumb {
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  cursor: pointer;
}
.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--gold);
}

/* Form inputs */
.form-input {
  background: var(--dark-card);
  border: 1px solid rgba(200,164,94,0.2);
  color: #e0e0e0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,164,94,0.1);
  outline: none;
}

/* Swiper custom pagination */
.swiper-pagination-bullet {
  background: rgba(200,164,94,0.5) !important;
}
.swiper-pagination-bullet-active {
  background: var(--gold) !important;
}
.swiper-button-next,
.swiper-button-prev {
  color: var(--gold) !important;
}

/* Favorite heart animation */
.heart-btn {
  transition: transform 0.3s ease;
}
.heart-btn:hover {
  transform: scale(1.2);
}
.heart-btn.active {
  color: #ef4444;
}

/* Pulse animation for CTA */
@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(200, 164, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(200, 164, 94, 0);
  }
}
.pulse-gold {
  animation: pulse-gold 2s infinite;
}

/* Spinner */
.spinner {
  border: 3px solid var(--dark-light);
  border-top: 3px solid var(--gold);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Feature icon */
.feature-icon {
  background: linear-gradient(135deg, rgba(200,164,94,0.15) 0%, rgba(200,164,94,0.05) 100%);
  border: 1px solid rgba(200,164,94,0.2);
}

/* Blog card */
.blog-card {
  transition: transform 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
}

/* Step indicator */
.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--dark);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Print styles */
@media print {
  header, footer, .no-print { display: none !important; }
}
