:root {
  --red: #d40000;
  --black: #000;
  --white: #fff;
  --dark: #0b0b0b;
  --muted: rgba(255,255,255,0.75);
  --glass: rgba(255,255,255,0.03);
  --ease: 300ms cubic-bezier(.2,.9,.3,1);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, Segoe UI, Roboto, Arial;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* NAV */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 80px;
  z-index: 60;
  display: flex;
  align-items: center;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.35));
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: transform 260ms var(--ease);
}

.nav.nav--hidden {
  transform: translateY(-110%);
}

.nav .nav-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo & Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--white);
  font-size: 20px;
  box-shadow: none;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  line-height: 1;
}

.brand-name {
  display: block;
  font-weight: 700;
  font-size: 18px;
  color: var(--red);
}

.brand-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* Right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile {
  background: transparent;
  color: var(--red);
  border: 1px solid rgba(212,0,0,0.12);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.profile:hover {
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(212,0,0,0.08);
}

.lang-selector {
  position: relative;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--ease);
  white-space: nowrap;
}

.lang-current:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.lang-dropdown {
  position: fixed;
  top: auto;
  right: auto;
  margin-top: 0;
  margin-bottom: 0;
  min-width: 140px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--ease);
  z-index: 1001;
}

.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  padding: 10px 14px;
  cursor: pointer;
  transition: all var(--ease);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: block;
  color: var(--white);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: rgba(212,0,0,0.15);
  color: var(--red);
}

.lang-option.active {
  color: var(--red);
  font-weight: 600;
  background: rgba(212,0,0,0.05);
}

/* Hamburger */
.hamburger {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212,0,0,0.18);
}

/* SIDE NAV */
.side-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  z-index: 80;
  background: linear-gradient(180deg, var(--dark), rgba(11,11,11,0.95));
  padding: 28px;
  box-shadow: -40px 0 80px rgba(0,0,0,0.6);
  transition: right 360ms cubic-bezier(.2,.9,.3,1);
  border-left: 1px solid rgba(255,255,255,0.03);
}

.side-nav.open {
  right: 0;
}

.side-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.side-inner .close {
  align-self: flex-end;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.side-links {
  list-style: none;
  padding: 16px 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-links a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
  opacity: 0.95;
}

.side-links a:hover {
  color: var(--red);
  transform: translateX(6px);
  transition: all 180ms;
}

/* HERO */
.hero {
  position: relative;
  height: 72vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: contrast(1.05) brightness(0.45);
  transition: transform 800ms ease;
  will-change: transform;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 1100px;
}

.hero-title {
  font-size: 42px;
  margin: 0 0 12px;
  letter-spacing: 0.4px;
  font-weight: 800;
  color: var(--white);
}

.hero-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
  transition: all var(--ease);
}

.hero-cta:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(212,0,0,0.18);
}

/* SHOWROOM */
.showroom {
  max-width: 1200px;
  margin: 120px auto 40px;
  padding: 20px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.section-head .muted {
  color: var(--muted);
  font-size: 13px;
}

/* GRID / CARDS */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform 360ms cubic-bezier(.2,.9,.3,1), box-shadow 360ms;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Red underglow effect */
.card::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 10%;
  width: 80%;
  height: 20px;
  background: var(--red);
  filter: blur(15px);
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: -1;
}

.card:hover::after {
  opacity: 0.7;
}

.card-media {
  height: 200px;
  overflow: hidden;
  background: #111;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms;
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-body {
  padding: 16px 16px 18px;
  color: var(--muted);
  transition: padding 360ms ease;
}

.model {
  margin: 0;
  font-size: 16px;
  color: var(--white);
  font-weight: 700;
}

.specs {
  margin: 6px 0 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms ease;
}

.card:hover .more {
  max-height: 220px;
}

.more p {
  margin: 6px 0;
  font-size: 14px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 12px 36px rgba(212,0,0,0.12);
}

/* Extended card details */
.card-extended {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 11, 11, 0.95);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 400ms cubic-bezier(0.2, 0.9, 0.3, 1);
  z-index: 10;
  border-top: 1px solid rgba(212, 0, 0, 0.3);
}

.card:hover .card-extended {
  transform: translateY(0);
}

.card-extended h4 {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 16px;
}

.card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
}

.spec-label {
  color: var(--muted);
  font-size: 13px;
}

.spec-value {
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
}

.price-tag {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  margin: 10px 0;
  padding: 8px;
  background: rgba(212, 0, 0, 0.1);
  border-radius: 6px;
}

/* Chat sign-in overlay */
.sign-in-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.sign-in-prompt {
  background: var(--dark);
  border: 1px solid rgba(212, 0, 0, 0.3);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.sign-in-icon {
  margin-bottom: 20px;
  color: var(--red);
}

.sign-in-prompt h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  color: var(--white);
}

.sign-in-prompt p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-sign-in-btn {
  background: var(--red);
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--ease);
}

.chat-sign-in-btn:hover {
  background: #b30000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 0, 0, 0.3);
}

/* Make sure chat header stays on top */
.chat-header {
  position: relative;
  z-index: 11;
}

/* Hide input when prompt is shown */
.chat-input-container {
  transition: opacity 0.3s;
}

/* FOOTER */
.site-footer {
  padding: 28px 12px;
  border-top: 1px solid rgba(255,255,255,0.03);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    font-size: 32px;
  }
  .hero {
    min-height: 420px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nav-inner {
    padding: 0 14px;
  }
  .hero {
    height: 58vh;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .side-nav {
    width: 100%;
    right: -100%;
  }
  .side-nav.open {
    right: 0;
  }
  .card-extended {
    padding: 15px;
  }
  .card-specs {
    grid-template-columns: 1fr;
  }
}
