/* =========================================
   Amaz Car - Used Car Export Platform
   Custom Styles (extends Tailwind)
   ========================================= */

:root {
  --primary: #F97316;
  --primary-dark: #EA580C;
  --secondary: #1A1A2E;
  --dark: #0F0F1A;
  --darker: #08080F;
  --light: #F8F9FA;
  --gray: #6C757D;
  --success: #28A745;
  --danger: #DC3545;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--darker);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 184, 0, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 184, 0, 0.5); }
}

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

.animate-slide-left {
  animation: slideInLeft 0.6s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(15, 15, 26, 0.95) 0%, rgba(26, 26, 46, 0.9) 100%),
              url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?w=1920&h=1080&fit=crop') center/cover no-repeat;
  min-height: 100vh;
}

.hero-badge {
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid rgba(255, 184, 0, 0.3);
  backdrop-filter: blur(10px);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--darker);
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 184, 0, 0.4);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--darker);
  transform: translateY(-2px);
}

/* Car Card */
.car-card {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  overflow: hidden;
}

.car-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 184, 0, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.car-card .car-image {
  transition: transform 0.5s ease;
}

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

.car-card .price-tag {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--darker);
}

/* Stats */
.stat-card {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 15, 26, 0.9) 100%);
  border: 1px solid rgba(255, 184, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(255, 184, 0, 0.3);
  transform: translateY(-5px);
}

.stat-number {
  background: linear-gradient(135deg, var(--primary) 0%, #FB923C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Region Cards */
.region-card {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 15, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.region-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.region-card:hover::before {
  transform: scaleX(1);
}

.region-card:hover {
  border-color: rgba(255, 184, 0, 0.2);
  transform: translateY(-5px);
}

/* Search Bar */
.search-bar {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.search-bar label {
  color: #6B7280;
}

.search-bar select,
.search-bar input[type="text"] {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  color: #111827;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  width: 100%;
  height: 48px;
}

.search-bar select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

.search-bar input[type="text"] {
  padding-left: 44px;
  background: #F9FAFB;
}

.search-bar input[type="text"]:focus {
  background: #fff;
}

.search-bar select:focus,
.search-bar input[type="text"]:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
  background: #fff;
}

.search-bar select option {
  background: #fff;
  color: #111827;
}

.search-bar #resetSearch {
  background: #fff;
  border: 1px solid #E5E7EB;
  color: #6B7280;
}

.search-bar #resetSearch:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
}

/* Filter Tags */
.filter-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-tag:hover,
.filter-tag.active {
  background: rgba(255, 184, 0, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

/* Navigation */
.nav-scrolled {
  background: rgba(15, 15, 26, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Section Title */
.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

/* Feature Icons */
.feature-icon {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.1) 0%, rgba(255, 184, 0, 0.05) 100%);
  border: 1px solid rgba(255, 184, 0, 0.2);
  transition: all 0.3s ease;
}

.feature-icon:hover {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.2) 0%, rgba(255, 184, 0, 0.1) 100%);
  transform: rotate(5deg) scale(1.1);
}

/* Testimonials */
.testimonial-card {
  background: rgba(26, 26, 46, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

/* Contact Form */
.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Footer */
.footer-link {
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 5px;
}

/* Gallery */
.gallery-thumbnail {
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  opacity: 1;
  border-color: var(--primary);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  animation: pulse-glow 2s ease infinite;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }
}
