/* ==========================================================================
   Cars for GTA6 & GTA5 / Codevsit — Modern Design System (Glassmorphism & Neon)
   Inspired by Leonida / Vice City aesthetics
   ========================================================================== */

:root {
  --bg-main: #06090e;
  --bg-secondary: #0c1219;
  --surface-glass: rgba(16, 25, 36, 0.65);
  --surface-glass-hover: rgba(24, 38, 54, 0.82);
  --surface-border: rgba(56, 189, 248, 0.18);
  --surface-border-hover: rgba(56, 189, 248, 0.45);

  --primary: #38bdf8;        /* Electric Cyan */
  --primary-glow: rgba(56, 189, 248, 0.35);
  --pink-neon: #f43f5e;      /* Leonida Pink */
  --pink-glow: rgba(244, 63, 94, 0.35);
  --amber-accent: #fbbf24;   /* Amber / Gold */
  --emerald-accent: #34d399; /* Emerald Green */

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(244, 63, 94, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(52, 211, 153, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #06090e 0%, #030508 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Floating Orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--pink-neon) 0%, transparent 70%);
  top: -150px;
  left: -150px;
  animation: floatOrb 22s infinite alternate ease-in-out;
}
.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: 30%;
  right: -200px;
  animation: floatOrb 26s infinite alternate-reverse ease-in-out;
}
.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--emerald-accent) 0%, transparent 70%);
  bottom: 5%;
  left: 10%;
  animation: floatOrb 20s infinite alternate ease-in-out;
}
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(70px, 40px) scale(1.1); }
}

/* Container */
.container {
  max-width: 1200px;
  width: 92%;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  width: 100%;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 14, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
}
.brand-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.brand-text-accent {
  background: linear-gradient(135deg, #fff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.lang-select {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 30px 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
  max-width: 170px;
}
.lang-select option {
  background-color: #0c1219;
  color: #f8fafc;
}
.lang-select:hover, .lang-select:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}
.lang-select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
}
[dir="rtl"] .lang-select-wrapper::after {
  right: auto;
  left: 12px;
}
[dir="rtl"] .lang-select {
  padding: 6px 14px 6px 30px;
}

/* Hero Section */
.hero {
  padding: 40px 0 24px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.badge-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
  max-width: 90%;
  text-align: center;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink-neon);
  box-shadow: 0 0 8px var(--pink-neon);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

h1.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 40%, var(--primary) 85%, var(--pink-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto 32px;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.play-store-btn,
.app-store-btn {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  text-decoration: none;
}
.play-store-btn:hover {
  transform: translateY(-3px) scale(1.03);
}
.play-store-btn img {
  height: 58px;
  border-radius: 8px;
}

.app-store-btn img {
  display: block;
  height: 40px;
  width: auto;
}

/* Disclaimer Notice Box */
.disclaimer-card {
  max-width: 820px;
  margin: 0 auto 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: left;
}
.disclaimer-card strong {
  color: var(--text-secondary);
}
.disclaimer-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--amber-accent);
}

/* Screenshots Showcase Section */
.showcase-section {
  width: 100%;
  padding: 20px 0 60px;
}
.section-header {
  text-align: center;
  margin-bottom: 30px;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Horizontal Screenshot Scroll */
.screenshots-wrapper {
  position: relative;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
}
.scroller-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 25, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  user-select: none;
}
.scroller-arrow:hover {
  background: var(--surface-glass-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}
.arrow-left {
  left: 8px;
}
.arrow-right {
  right: 8px;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}
.carousel-dot.active {
  width: 24px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}
.screenshots-scroller {
  display: flex;
  gap: 24px;
  padding: 36px 14px 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.screenshots-scroller::-webkit-scrollbar {
  display: none;
}
.screenshot-item {
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  background: #000;
  cursor: pointer;
  position: relative;
}
.screenshot-item:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.85), 0 0 30px var(--primary-glow);
}
.screenshot-item img {
  display: block;
  height: 480px;
  width: auto;
  object-fit: cover;
  border-radius: 20px;
  pointer-events: none;
}

/* Fullscreen Screenshot Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 5, 8, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.lightbox-content img {
  max-height: 88vh;
  max-width: 88vw;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1010;
}
.lightbox-close:hover {
  background: rgba(244, 63, 94, 0.8);
  border-color: var(--pink-neon);
  transform: scale(1.1);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 25, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  font-size: 2.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1010;
  transition: all 0.2s ease;
  user-select: none;
}
.lightbox-nav:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 20px var(--primary);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev {
  left: 24px;
}
.lightbox-next {
  right: 24px;
}
@media (max-width: 768px) {
  .lightbox-nav { display: none; }
  .lightbox-close { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox-content img { max-height: 82vh; max-width: 92vw; border-radius: 16px; }
}

/* Stats Counter Banner */
.stats-strip {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 900px;
  width: 92%;
  margin: 20px auto 70px;
  padding: 24px 30px;
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  gap: 20px;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 4px;
}

/* Features Grid */
.features-section {
  width: 100%;
  padding: 30px 0 70px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  text-align: left;
  transition: all 0.3s ease;
}
.feature-card:hover {
  background: var(--surface-glass-hover);
  border-color: var(--surface-border-hover);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.feature-icon-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Footer */
footer {
  width: 100%;
  padding: 60px 20px 40px;
  background: rgba(3, 5, 8, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  margin-top: auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--primary);
}
.copyright {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* RTL Support for Arabic */
[dir="rtl"] {
  text-align: right;
}
[dir="rtl"] .hero,
[dir="rtl"] .section-header,
[dir="rtl"] .stat-item,
[dir="rtl"] footer {
  text-align: center;
}
[dir="rtl"] .feature-card {
  text-align: right;
}
[dir="rtl"] .disclaimer-card {
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar { padding: 8px 0; }
  .brand-text-accent { font-size: 0.95rem; }
  .brand-logo-img { width: 24px; height: 24px; }
  .hero { padding: 22px 0 16px; }
  h1.hero-title { 
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .badge-capsule { 
    font-size: 0.72rem; 
    padding: 5px 12px; 
    max-width: 100%;
    line-height: 1.35;
    margin-bottom: 16px;
  }
  .scroller-arrow { display: none; }
  .screenshot-item img { height: 350px; }
  .stats-strip { flex-direction: column; gap: 16px; padding: 18px 20px; }
  .disclaimer-card { flex-direction: column; text-align: center; }
  [dir="rtl"] .disclaimer-card { text-align: center; }
  .features-grid { grid-template-columns: 1fr; }
  .lang-select { 
    max-width: 120px; 
    font-size: 0.76rem; 
    padding: 4px 22px 4px 8px; 
  }
}

/* Bandeau de consentement (analytics.js) */
.ga-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 760px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px;
  background: rgba(12, 18, 25, 0.96); border: 1px solid var(--surface-border-hover); border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); }
.ga-banner[hidden] { display: none; }
.ga-banner-text { flex: 1 1 320px; font-size: 0.88rem; color: var(--text-secondary); margin: 0; }
.ga-banner-more { color: var(--primary); margin-left: 4px; }
.ga-banner-actions { display: flex; gap: 10px; }
.ga-btn { padding: 0.5rem 1.2rem; border-radius: var(--radius-full); border: 1.5px solid var(--primary); background: transparent;
  color: var(--primary); font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; }
.ga-btn:hover, .ga-btn:focus-visible { background: rgba(56, 189, 248, 0.14); color: var(--text-primary); }
