@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --background: 0 0% 95%;
  --foreground: 0 0% 10%;

  --card: 0 0% 98%;
  --card-foreground: 0 0% 10%;

  --popover: 0 0% 98%;
  --popover-foreground: 0 0% 10%;

  --primary: 220 95% 24%;
  --primary-foreground: 0 0% 100%;

  --secondary: 90 30% 20%;
  --secondary-foreground: 0 0% 100%;

  --muted: 0 0% 90%;
  --muted-foreground: 0 0% 40%;

  --accent: 140 70% 50%;
  --accent-foreground: 0 0% 10%;

  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;

  --border: 0 0% 85%;
  --input: 0 0% 85%;
  --ring: 140 70% 50%;

  --radius: 1rem;

  /* VOX EV Premium Tokens */
  --vox-navy: 220 95% 24%;
  --vox-navy-deep: 220 100% 12%;
  --vox-green: 90 30% 20%;
  --vox-electric: 140 70% 50%;
  --vox-electric-glow: 140 80% 60%;
  --vox-cyan: 185 80% 50%;
  --vox-gold: 45 100% 60%;

  /* Premium Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(220 100% 8%) 0%, hsl(220 95% 15%) 50%, hsl(220 80% 20%) 100%);
  --gradient-electric: linear-gradient(135deg, hsl(var(--vox-electric)) 0%, hsl(var(--vox-cyan)) 100%);
  --gradient-radial: radial-gradient(ellipse at center, hsl(var(--vox-electric) / 0.15) 0%, transparent 70%);
  --gradient-glass: linear-gradient(135deg, hsl(0 0% 100% / 0.1) 0%, hsl(0 0% 100% / 0.05) 100%);
  --gradient-card: linear-gradient(180deg, hsl(220 25% 12%) 0%, hsl(220 25% 8%) 100%);

  /* Premium Shadows */
  --shadow-glow-sm: 0 0 20px hsl(var(--vox-electric) / 0.3);
  --shadow-glow-md: 0 0 40px hsl(var(--vox-electric) / 0.4);
  --shadow-glow-lg: 0 0 80px hsl(var(--vox-electric) / 0.5);
  --shadow-card: 0 25px 50px -12px hsl(0 0% 0% / 0.5);
  --shadow-elevated: 0 50px 100px -20px hsl(0 0% 0% / 0.6);

  /* 3D Perspective */
  --perspective: 1200px;
}

* {
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  perspective: var(--perspective);
  margin: 0;
  padding: 0;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', sans-serif;
}

/* Immersive Gradients */
.gradient-hero {
  background: var(--gradient-hero);
  position: relative;
}

.gradient-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-radial);
  pointer-events: none;
}

.gradient-electric {
  background: var(--gradient-electric);
}

.gradient-glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border: 1px solid hsl(0 0% 0% / 0.1);
}

.gradient-card {
  background: var(--gradient-card);
}

.gradient-green {
  background: linear-gradient(135deg, hsl(var(--vox-green)) 0%, hsl(90 35% 25%) 50%, hsl(90 30% 20%) 100%);
  position: relative;
}

/* Text Effects */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: var(--gradient-electric);
}

.text-glow {
  text-shadow: 0 0 40px hsl(var(--vox-electric) / 0.5);
}

/* Glass Morphism */
.glass-premium {
  background: hsl(0 0% 100% / 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid hsl(0 0% 0% / 0.08);
}

.glass-card {
  background: hsl(0 0% 98% / 0.8);
  backdrop-filter: blur(30px);
  border: 1px solid hsl(0 0% 0% / 0.1);
}

/* Glow Effects */
.glow-accent {
  box-shadow: var(--shadow-glow-md);
}

.glow-accent-hover:hover {
  box-shadow: var(--shadow-glow-lg);
}

/* Electric Border Animation */
.electric-border {
  position: relative;
  overflow: hidden;
}

.electric-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: var(--gradient-electric);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: inherit;
  animation: electric-pulse 2s ease-in-out infinite;
}

/* Particle Grid Background */
.particle-grid {
  background-image: radial-gradient(circle at 1px 1px, hsl(var(--vox-electric) / 0.15) 1px, transparent 0);
  background-size: 50px 50px;
}

/* Shadow Effects */
.shadow-card {
  box-shadow: var(--shadow-card);
}

.shadow-elevated {
  box-shadow: var(--shadow-elevated);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 20px hsl(var(--vox-electric) / 0.5));
  }

  50% {
    opacity: 0.8;
    filter: drop-shadow(0 0 40px hsl(var(--vox-electric) / 0.8));
  }
}

@keyframes electric-pulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

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

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin 3s linear infinite;
}

/* Utility Classes */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 100%;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 100%;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

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

::-webkit-scrollbar-track {
  background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--vox-electric) / 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--vox-electric) / 0.5);
}

/* Selection */
::selection {
  background: hsl(var(--vox-electric) / 0.3);
  color: hsl(var(--foreground));
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  border: none;
  position: relative;
  z-index: 10;
}

.btn-primary {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-primary:hover {
  background-color: hsl(var(--accent) / 0.9);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--muted));
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Card Styles */
.card {
  background-color: hsl(var(--card));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid hsl(var(--border) / 0.5);
  transition: all 0.3s;
  opacity: 1;
  /* Ensure cards are visible by default */
  visibility: visible;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

/* Feature Card specific styles */
.feature-card {
  opacity: 1 !important;
  /* Override any animation opacity issues */
  visibility: visible !important;
  position: relative;
  z-index: 1;
  /* Reduced shadow for feature cards */
  box-shadow: 0 4px 12px -2px hsl(0 0% 0% / 0.1) !important;
}

.feature-card:hover {
  box-shadow: 0 8px 20px -4px hsl(0 0% 0% / 0.15) !important;
}

/* Ensure Why Choose section grid displays properly */
.why-choose-section .grid {
  display: grid;
  width: 100%;
}

.why-choose-content {
  position: relative;
  z-index: 10;
  opacity: 1 !important;
}

/* Ensure Featured Vehicles section content is visible */
.featured-content {
  position: relative;
  z-index: 10;
  opacity: 1 !important;
}

/* Vehicle cards should be in normal flow */
.featured-cards {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.featured-cards .vehicle-card {
  position: relative;
  z-index: 1;
}

/* Reduced shadow for featured vehicle cards */
.featured-vehicles-section .shadow-card {
  box-shadow: 0 4px 12px -2px hsl(0 0% 0% / 0.1) !important;
}

.featured-vehicles-section .vehicle-card:hover .shadow-card {
  box-shadow: 0 8px 20px -4px hsl(0 0% 0% / 0.15) !important;
}

/* Reduced shadow for contact page cards */
.contact-section .card {
  box-shadow: 0 4px 12px -2px hsl(0 0% 0% / 0.1) !important;
}

.contact-section .card:hover {
  box-shadow: 0 8px 20px -4px hsl(0 0% 0% / 0.15) !important;
}

/* Reduced shadow for blog page cards */
section:has(article.shadow-card) article.shadow-card {
  box-shadow: 0 4px 12px -2px hsl(0 0% 0% / 0.1) !important;
}

section:has(article.shadow-card) article.shadow-card:hover {
  box-shadow: 0 8px 20px -4px hsl(0 0% 0% / 0.15) !important;
}

/* Reduced shadow for services page cards */
section:has(a.shadow-card) a.shadow-card {
  box-shadow: 0 4px 12px -2px hsl(0 0% 0% / 0.1) !important;
}

section:has(a.shadow-card) a.shadow-card:hover {
  box-shadow: 0 8px 20px -4px hsl(0 0% 0% / 0.15) !important;
}

/* Reduced shadow for zero deposit page cards */
.zero-deposit-section .card {
  box-shadow: 0 4px 12px -2px hsl(0 0% 0% / 0.1) !important;
}

.zero-deposit-section .card:hover {
  box-shadow: 0 8px 20px -4px hsl(0 0% 0% / 0.15) !important;
}

/* Reduced shadow for step card number badges on zero deposit page */
.step-card .shadow-lg {
  box-shadow: 0 4px 12px -2px hsl(0 0% 0% / 0.15) !important;
}

/* Reduced shadow for vehicle cards on vehicles page */
.vehicle-card-item .shadow-card {
  box-shadow: 0 4px 12px -2px hsl(0 0% 0% / 0.1) !important;
}

.vehicle-card-item:hover .shadow-card {
  box-shadow: 0 8px 20px -4px hsl(0 0% 0% / 0.15) !important;
}

/* Reduced shadow for about page cards */
.about-section .card {
  box-shadow: 0 4px 12px -2px hsl(0 0% 0% / 0.1) !important;
}

.about-section .card:hover {
  box-shadow: 0 8px 20px -4px hsl(0 0% 0% / 0.15) !important;
}

.about-section .feature-card {
  box-shadow: 0 4px 12px -2px hsl(0 0% 0% / 0.1) !important;
}

.about-section .feature-card:hover {
  box-shadow: 0 8px 20px -4px hsl(0 0% 0% / 0.15) !important;
}

/* Filter button borders - always show border */
.category-filter.btn {
  border: 1px solid hsl(var(--border)) !important;
  background-color: transparent;
}

.category-filter.btn:hover {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--accent)) !important;
}

.category-filter.btn.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent)) !important;
}

/* Fix list item text wrapping and alignment - specific to benefits list */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  margin-bottom: 1rem !important;
  min-height: auto;
}

.benefits-list li:last-child {
  margin-bottom: 0 !important;
}

.benefits-list li span {
  word-wrap: break-word;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.6 !important;
  flex: 1;
  min-width: 0;
  display: block;
}

/* Ensure CTA buttons are in normal flow below cards */
.featured-vehicles-section>.container>.text-center {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  clear: both;
}

.featured-vehicles-section .btn {
  position: relative;
  z-index: 1;
}

/* How It Works CTA */
.how-it-works-section>.container>.text-center {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
}

/* CTA Section - ensure content is in normal flow */
.cta-content {
  position: relative;
  z-index: 10;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

/* Opacity utilities for animations */
.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

/* Navbar scrolled state */
.navbar.scrolled {
  background-color: hsl(var(--card) / 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Navbar text color on gradient backgrounds - make nav links white when over gradient */
body:has(.gradient-hero) .navbar .container a:not(.btn):not([class*="btn"]) {
  color: hsl(var(--primary-foreground) / 0.9) !important;
}

body:has(.gradient-hero) .navbar .container a:not(.btn):not([class*="btn"]):hover {
  color: hsl(var(--primary-foreground)) !important;
}

/* Active nav item on gradient background - ensure it's visible */
body:has(.gradient-hero) .navbar .container a[class*="bg-accent"] {
  color: hsl(var(--primary-foreground)) !important;
  background-color: hsl(var(--primary-foreground) / 0.15) !important;
}

/* Mobile menu nav items on gradient backgrounds */
body:has(.gradient-hero) #mobile-menu a:not(.btn):not([class*="btn"]) {
  color: hsl(var(--primary-foreground) / 0.9) !important;
}

body:has(.gradient-hero) #mobile-menu a:not(.btn):not([class*="btn"]):hover {
  color: hsl(var(--primary-foreground)) !important;
}

body:has(.gradient-hero) #mobile-menu a[class*="bg-accent"] {
  color: hsl(var(--primary-foreground)) !important;
  background-color: hsl(var(--primary-foreground) / 0.15) !important;
}

/* Vehicle card hover effects */
.vehicle-card-item {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.vehicle-card-item .group:hover .vehicle-card-img {
  transform: scale(1.15) translateY(-10px);
  transition: transform 0.6s ease-out;
}

.vehicle-card-item .group:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
  transition: transform 0.4s ease-out;
}

.vehicle-card-item .group:hover .vehicle-card-icon {
  transform: rotate(360deg) scale(1.2);
  transition: transform 0.6s ease-out;
}

/* Active button state */
.btn.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}

/* Input and Textarea Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 1rem;
  transition: all 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  ring: 2px;
  ring-color: hsl(var(--accent));
  border-color: hsl(var(--accent));
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}