/* ===== اتواکسپو — استایل اصلی ===== */
:root {
  --bg: #070b12;
  --bg-2: #0c1320;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.1);
  --gold: #f5c542;
  --gold-2: #ffdf8a;
  --red: #e63946;
  --text: #eef2f7;
  --muted: #9aa7b8;
  --sky: #8ec9e8;
  --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Lalezar', 'Vazirmatn', 'Segoe UI', sans-serif;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(245, 197, 66, 0.35); }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ===== صحنهٔ سه‌بعدی ===== */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ===== دکمه‌ها ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #241a02;
  box-shadow: 0 10px 30px rgba(245, 197, 66, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(245, 197, 66, 0.45); }
.btn-outline { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: rgba(255,255,255,0.06); backdrop-filter: blur(6px); }
.btn-outline:hover { background: rgba(255,255,255,0.16); transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.18); padding: 9px 20px; font-size: 14px; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }

/* ===== ناوبری ===== */
#navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  padding: 14px 0;
}
#navbar.scrolled {
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
  padding: 8px 0;
}
.nav-inner {
  width: min(1180px, 94%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 26px; letter-spacing: 0.5px; }
.brand-badge { font-size: 22px; }
.brand-name { color: var(--gold); text-shadow: 0 2px 12px rgba(245,197,66,0.4); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text); opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 32px; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; height: 2.5px; width: 26px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 6% 18px;
  background: rgba(7, 11, 18, 0.96);
  backdrop-filter: blur(14px);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.06); font-weight: 500; }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== هیرو ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 140px;
  background: linear-gradient(180deg, rgba(7,11,18,0.42) 0%, rgba(7,11,18,0.05) 45%, transparent 70%);
  pointer-events: none;
}
.hero .btn, .hero a { pointer-events: auto; }
.hero-inner { max-width: 840px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.55);
  border: 1px solid rgba(245, 197, 66, 0.4);
  color: var(--gold-2);
  font-size: 13.5px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  margin-bottom: 26px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.5vw, 92px);
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
}
.grad-text {
  background: linear-gradient(100deg, var(--gold), var(--gold-2) 45%, #ff9a5a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18.5px);
  color: #e8eef6;
  max-width: 640px;
  margin: 0 auto 32px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.hero-sub strong { color: var(--gold-2); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
  font-size: 13.5px;
  color: #dbe4ee;
}
.hero-meta span {
  background: rgba(7, 11, 18, 0.5);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}
.scroll-hint {
  position: absolute;
  bottom: 26px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.mouse-icon {
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.mouse-icon .wheel {
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 3px;
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ===== بخش جادهٔ مجازی ===== */
.drive {
  position: relative;
  z-index: 1;
  height: 600vh;
  pointer-events: none;
}
.drive-badge {
  position: sticky;
  top: 90px;
  margin-inline: auto;
  width: fit-content;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.6);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-2);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.drive-badge.show { opacity: 1; }

.drive-hud {
  position: sticky;
  top: calc(100vh - 150px);
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(560px, 92%);
  margin-inline: auto;
  padding: 14px 22px;
  border-radius: var(--radius);
  background: rgba(7, 11, 18, 0.62);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.drive-hud.show { opacity: 1; transform: translateY(0); }
.speed-wrap { display: flex; align-items: baseline; gap: 6px; min-width: 110px; }
.speed-val { font-family: var(--font-display); font-size: 40px; color: var(--gold); line-height: 1; }
.speed-unit { font-size: 12.5px; color: var(--muted); }
.progress-wrap { flex: 1; }
.progress-track { height: 8px; border-radius: 6px; background: rgba(255,255,255,0.12); overflow: hidden; }
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transition: width 0.1s linear;
}
.progress-meta { margin-top: 6px; font-size: 12px; color: var(--muted); display: flex; gap: 4px; }
@media (max-width: 560px) {
  .drive-hud { flex-direction: column; align-items: stretch; gap: 10px; top: calc(100vh - 190px); }
  .speed-val { font-size: 30px; }
}

/* رویدادهای مسیر */
.milestone {
  position: absolute;
  inset-inline-start: 6%;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 340px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(7, 11, 18, 0.55);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.milestone.show { opacity: 1; transform: translateX(0); }
.milestone .m-ico { font-size: 26px; }
.milestone b { display: block; font-size: 14.5px; color: var(--gold-2); }
.milestone small { font-size: 12px; color: var(--muted); }
.milestone:nth-of-type(even) { inset-inline-start: auto; inset-inline-end: 6%; }

/* پایان مسیر */
.arrival {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.arrival.show { opacity: 1; pointer-events: auto; }
.arrival-card {
  text-align: center;
  padding: 44px 40px;
  border-radius: 26px;
  background: rgba(7, 11, 18, 0.72);
  border: 1px solid rgba(245, 197, 66, 0.35);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  max-width: 520px;
  margin: 20px;
}
.arrival-flag { font-size: 54px; margin-bottom: 8px; }
.arrival-card h2 { font-family: var(--font-display); font-size: 38px; color: var(--gold); margin-bottom: 10px; }
.arrival-card p { color: var(--muted); margin-bottom: 24px; }
.arrival-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== بخش‌های محتوایی ===== */
.stats, .gallery, .features, .about, .contact {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  padding: 90px 0;
}
.section-head { text-align: center; margin-bottom: 52px; }
.kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding: 5px 14px;
  border: 1px solid rgba(245,197,66,0.35);
  border-radius: 999px;
  background: rgba(245,197,66,0.08);
}
.section-head h2 { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 12px; }
.section-head p { color: var(--muted); max-width: 560px; margin-inline: auto; }

/* آمار */
.stats { padding: 64px 0; background: linear-gradient(180deg, var(--bg) 0%, #0d1524 100%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { padding: 26px 10px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); }
.stat-num { display: block; font-family: var(--font-display); font-size: 46px; color: var(--gold); line-height: 1.2; }
.stat-label { color: var(--muted); font-size: 14px; }
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* گالری */
.cars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 26px; }
.car-card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}
.car-card:hover { transform: translateY(-8px); border-color: rgba(245,197,66,0.4); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.car-visual { padding: 26px 18px 10px; }
.car-visual svg { width: 100%; height: auto; }
.car-visual .wheel { fill: #10151c; }
.car-visual .hub { fill: #d8dee6; }
.car-visual .glass { fill: rgba(180, 215, 240, 0.85); }
.car-visual .spoiler { fill: #0a0e14; }
.car-visual .light { fill: #fff3c4; }
.car-visual .taillight { fill: #ff5a4e; }
.ferrari .body { fill: #d92638; }
.porsche .body { fill: #f2b90f; }
.bmw .body { fill: #2b7de0; }
.lambo .body { fill: #3fae4f; }
.car-info { padding: 8px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.car-info h3 { font-size: 19px; }
.car-info p { color: var(--muted); font-size: 13.5px; }
.specs { list-style: none; margin-top: auto; padding-top: 12px; display: grid; grid-template-columns: 1fr; gap: 8px; }
.specs li { display: flex; justify-content: space-between; align-items: center; font-size: 13px; border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 8px; }
.specs span { color: var(--muted); }
.specs b { color: var(--gold-2); font-weight: 700; }

/* امکانات */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(245,197,66,0.35); }
.f-ico { font-size: 40px; margin-bottom: 14px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

/* درباره */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.about-text h2 { font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 38px); margin: 10px 0 18px; }
.about-text p { color: var(--muted); margin-bottom: 20px; }
.about-list { list-style: none; display: grid; gap: 10px; }
.about-list li { font-size: 14.5px; color: #d6dee9; }
.about-card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 30px;
}
.about-card h3 { font-family: var(--font-display); font-size: 24px; color: var(--gold); margin-bottom: 18px; }
.schedule { display: grid; gap: 4px; }
.sch-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); font-size: 14px; }
.sch-row span { color: var(--muted); }
.sch-row b { color: var(--text); }
.about-note { margin-top: 18px; font-size: 13px; color: var(--gold-2); background: rgba(245,197,66,0.08); border: 1px dashed rgba(245,197,66,0.35); border-radius: 12px; padding: 12px 16px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* تماس */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 38px); margin: 10px 0 14px; }
.contact-info p { color: var(--muted); margin-bottom: 24px; }
.contact-rows { display: grid; gap: 14px; }
.c-row { display: flex; align-items: center; gap: 12px; font-size: 14.5px; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--card-border); }
.c-row span { font-size: 20px; }
.contact-form {
  display: grid;
  gap: 18px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 7px; }
.form-row label { font-size: 13.5px; font-weight: 700; color: #c9d3e0; }
.form-row input, .form-row select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.form-row input:focus, .form-row select:focus { border-color: var(--gold); background: rgba(255,255,255,0.08); }
.form-row input::placeholder { color: rgba(255,255,255,0.3); }
.form-row select option { background: var(--bg-2); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* فوتر */
.footer { position: relative; z-index: 2; background: #05080e; border-top: 1px solid rgba(255,255,255,0.07); padding: 46px 0 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.footer-top p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px; font-size: 12.5px; color: #5d6b7d; }
.footer-bottom a { color: var(--gold); }
.model-credit { direction: rtl; }

/* انیمیشن‌های ورود */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* توست */
.toast {
  position: fixed;
  bottom: 26px;
  right: 50%;
  transform: translate(50%, 20px);
  z-index: 300;
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.92);
  border: 1px solid rgba(245,197,66,0.5);
  color: var(--gold-2);
  font-size: 14.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}
.toast.show { opacity: 1; transform: translate(50%, 0); }

/* صفحه‌گردان */
#loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #0d1524, #070b12 70%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-box { text-align: center; }
.loader-spinner {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 4px solid rgba(245,197,66,0.15);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-box p { font-weight: 700; font-size: 16px; color: var(--gold-2); }
.loader-box small { color: var(--muted); font-size: 12.5px; }

/* بارگذاری مدل */
#modelLoad {
  position: fixed;
  bottom: 30px;
  right: 50%;
  transform: translateX(50%);
  z-index: 300;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(7,11,18,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--gold-2);
  font-size: 13.5px;
  backdrop-filter: blur(8px);
  display: none;
}
#modelLoad.show { display: block; }
