@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
  --primary: #0a0a0a;
  --secondary: #171717;
  --accent: #e50914;
  --accent-gold: #c5a880;
  --border-light: rgba(229, 231, 235, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  background-color: #fbfbfb;
  overflow-x: hidden;
}

h1, h2, h3, .font-heading {
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
}

/* Glassmorphism */
.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dark-glass-card {
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.35);
  }
  50% {
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.6);
  }
}

.glow-pulse {
  animation: pulseGlow 2.5s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Car Card Hover Lift */
.car-card-hover {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.car-card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.04);
}

/* Modal Backdrop Blur */
.modal-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Dynamic Typography Classes */
.h1-dynamic {
  font-size: var(--h1-desktop, 56px);
  text-transform: var(--text-transform, uppercase);
}
@media (max-width: 640px) {
  .h1-dynamic {
    font-size: var(--h1-mobile, 32px);
  }
}

.h2-dynamic {
  font-size: var(--h2-desktop, 40px);
  text-transform: var(--text-transform, uppercase);
}
@media (max-width: 640px) {
  .h2-dynamic {
    font-size: var(--h2-mobile, 24px);
  }
}

.body-dynamic {
  font-size: var(--body-desktop, 17px);
}
@media (max-width: 640px) {
  .body-dynamic {
    font-size: var(--body-mobile, 14px);
  }
}

/* Toast Notification (Hidden by default, slides up when active) */
.custom-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: rgba(24, 24, 27, 0.96) !important;
  color: #ffffff !important;
  padding: 12px 22px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(82, 82, 91, 0.7) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 99999;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-toast.show {
  display: flex !important;
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}