/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC SITE — MODERN GLASSMORPHISM DESIGN SYSTEM
   Car Showroom · Inter Font · particles.js · AOS · Bootstrap 5.3
═══════════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --p1: #667eea;
  --p2: #764ba2;
  --p3: #f093fb;
  --accent: #4facfe;
  --accent2: #00f2fe;

  /* Gradients */
  --grad-brand:   linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --grad-aurora:  linear-gradient(135deg, #0d1117 0%, #1a1f3a 30%, #0f172a 60%, #1a0a2e 100%);
  --grad-card:    linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
  --grad-hero:    linear-gradient(135deg, #0d1117 0%, #1a1f3a 25%, #0f172a 50%, #1a0a2e 75%, #0d1117 100%);

  /* Glass */
  --glass-bg:       rgba(255, 255, 255, 0.08);
  --glass-bg-light: rgba(255, 255, 255, 0.85);
  --glass-border:   rgba(255, 255, 255, 0.15);
  --glass-border-light: rgba(255, 255, 255, 0.6);
  --glass-blur:     blur(20px);
  --glass-blur-sm:  blur(10px);
  --glass-shadow:   0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-shadow-light: 0 8px 32px rgba(102, 126, 234, 0.15);

  /* Text */
  --text-white:   #ffffff;
  --text-muted-w: rgba(255, 255, 255, 0.65);
  --text-dark:    #0f172a;
  --text-gray:    #64748b;
  --text-light:   #94a3b8;

  /* Layout */
  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: #0d1117;
  color: var(--text-dark);
}

/* ── Animated Gradient Background ────────────────────────────────────────── */
.animated-bg {
  background: var(--grad-hero);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Aurora overlay */
.aurora-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(102, 126, 234, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(79, 172, 254, 0.12) 0%, transparent 50%);
  animation: auroraMove 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes auroraMove {
  0%   { opacity: 0.6; transform: scale(1) rotate(0deg); }
  50%  { opacity: 1;   transform: scale(1.05) rotate(2deg); }
  100% { opacity: 0.7; transform: scale(0.98) rotate(-1deg); }
}

/* ── Particles Container ──────────────────────────────────────────────────── */
#particles-js,
#particles-hero,
#particles-login {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Glassmorphism Utilities ──────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.glass-sm {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.glass-light {
  background: var(--glass-bg-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow-light);
}

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.pub-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}

.pub-navbar.scrolled {
  background: rgba(13, 17, 23, 0.92) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.pub-navbar .navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  transition: padding 0.3s ease;
}

.pub-navbar.scrolled .navbar-inner { padding: 10px 0; }

.pub-navbar .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.pub-navbar .brand-icon {
  width: 38px; height: 38px;
  background: var(--grad-brand);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
  flex-shrink: 0;
}

.pub-navbar .brand-name {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.pub-navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}

.pub-navbar .nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.pub-navbar .nav-links a:hover,
.pub-navbar .nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.pub-navbar .nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: inherit;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-brand {
  background: var(--grad-brand);
  border: none;
  color: #fff;
  padding: 9px 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.btn-brand:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.55);
  opacity: 0.95;
}

.btn-brand-lg {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.btn-brand-lg:hover {
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

.nav-toggle:hover { background: rgba(255, 255, 255, 0.18); }

@media (max-width: 991.98px) {
  .nav-toggle { display: flex; }
  .pub-navbar .nav-links,
  .pub-navbar .nav-actions { display: none; }
  .pub-navbar .nav-links.open,
  .pub-navbar .nav-actions.open { display: flex; }
  .pub-navbar .nav-links.open {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px 16px;
    gap: 2px;
  }
  .pub-navbar .nav-links.open a { display: block; padding: 10px 14px; }
  .pub-navbar .nav-actions.open {
    flex-direction: column;
    padding: 0 16px 16px;
    position: absolute;
    top: calc(100% + 120px);
    left: 0; right: 0;
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(24px);
  }
}

/* ── Section Utilities ────────────────────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title-light {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.section-title-dark {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #667eea, #a78bfa, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Stat Cards ───────────────────────────────────────────────────────────── */
.stat-glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-brand);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-glass-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-glass-card .stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.stat-glass-card .stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ── Car Cards ────────────────────────────────────────────────────────────── */
.car-glass-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.car-glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.3);
}

.car-img-wrap {
  position: relative;
  overflow: hidden;
  height: 210px;
  flex-shrink: 0;
}

.car-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-glass-card:hover .car-img-wrap img {
  transform: scale(1.06);
}

.car-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.car-glass-card:hover .car-img-overlay { opacity: 1; }

.car-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.car-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.car-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.spec-chip {
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.car-price {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.car-hp-price {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
}

.car-footer {
  margin-top: auto;
  padding: 0 20px 20px;
}

.btn-view-car {
  display: block;
  width: 100%;
  background: var(--grad-brand);
  color: #fff;
  text-align: center;
  padding: 11px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-view-car:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
  opacity: 0.95;
}

/* ── Feature Cards ────────────────────────────────────────────────────────── */
.feature-glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.feature-glass-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(102, 126, 234, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.feature-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  transition: var(--transition);
}

.feature-glass-card:hover .feature-icon-wrap {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.55);
}

/* ── HP Section ───────────────────────────────────────────────────────────── */
.hp-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: var(--transition);
}

.hp-feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
}

.hp-feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}

/* ── Calculator Glass ─────────────────────────────────────────────────────── */
.calc-glass {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.calc-glass .form-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.calc-glass .form-control,
.calc-glass .form-select {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  font-family: 'Inter', sans-serif !important;
  transition: var(--transition) !important;
}

.calc-glass .form-control::placeholder { color: rgba(255,255,255,0.35) !important; }

.calc-glass .form-control:focus,
.calc-glass .form-select:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(102, 126, 234, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
  color: #fff !important;
}

.calc-glass .form-select option { background: #1a1f3a; color: #fff; }

.calc-result {
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.calc-result .result-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.calc-result .result-value {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ── Public Footer ────────────────────────────────────────────────────────── */
.pub-footer {
  background: #080c14;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 0;
  color: rgba(255, 255, 255, 0.55);
}

.pub-footer h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.pub-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.pub-footer a:hover { color: #fff; }

.pub-footer .footer-brand-icon {
  width: 42px; height: 42px;
  background: var(--grad-brand);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
  margin-bottom: 14px;
}

.pub-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
  margin-top: 40px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 14px;
  transition: var(--transition);
  margin-bottom: 0 !important;
}

.social-link:hover {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* ── Responsive Utilities ─────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .section-title-light,
  .section-title-dark { font-size: 1.7rem; }
  .calc-glass { padding: 24px 20px; }
  .pub-footer { padding: 40px 0 0; }
}

@media (max-width: 575.98px) {
  .hero-stats { gap: 20px; }
  .hero-stat-item .num { font-size: 1.4rem; }
  .btn-brand-lg { padding: 12px 24px; font-size: 14px; }
}
