* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff6b35;
  --secondary: #f7931e;
  --dark: #1a2332;
  --gray: #4a5568;
  --light-gray: #e2e8f0;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Vazirmatn", sans-serif;
  direction: rtl;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 20px var(--shadow);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 100px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.cta-button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* --- دکمه منوی موبایل --- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  transition: all 0.3s ease;
}

/* --- ریسپانسیو --- */
@media (max-width: 992px) {
  .cta-button {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* منوی مخفی پیش‌فرض در موبایل */
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px 0;
    transition: all 0.3s ease;
  }

  /* منوی فعال هنگام باز شدن */
  .nav.active {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    width: 100%;
  }

  /* انیمیشن منو */
  .nav.active a {
    animation: fadeIn 0.3s ease forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* افکت تبدیل آیکن همبرگر به ضربدر */
  .mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}
/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
  z-index: -1;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}



.hero-subtitle {
  font-size: 20px;
  color: var(--light-gray);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 15px 35px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--dark);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.car-illustration {
  width: 100%;
  max-width: 500px;
}

.car-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.car-body {
  animation: float 3s ease-in-out infinite;
}

.wheel {
  animation: rotate 2s linear infinite;
  transform-origin: center;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Stats Section */
.stats {
  padding: 80px 0;
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 5px 20px var(--shadow);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 18px;
  color: var(--gray);
  font-weight: 500;
}

/* Services Section */
.services {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--white) 0%, #f7fafc 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 5px 20px var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.service-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.service-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
}

.service-description {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.8;
}

.service-features {
  list-style: none;
}

.service-features li {
  padding: 8px 0;
  color: var(--gray);
  position: relative;
  padding-right: 25px;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: var(--dark);
}

.features .section-title,
.features .section-subtitle {
  color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.feature-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 15px;
}

.feature-description {
  color: var(--light-gray);
  line-height: 1.8;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: linear-gradient(180deg, #f7fafc 0%, var(--white) 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
}

.contact-description {
  color: var(--gray);
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 32px;
  background: var(--primary);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.contact-details p {
  color: var(--gray);
}

.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px var(--shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-input {
  padding: 15px;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-family: "Vazirmatn", sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-full {
  width: 100%;
}

.box {
  width: 50%; /* نیمه چپ */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.box img {
  width: 200px;
  height: auto;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* وقتی کاربر کلیک می‌کند (با checkbox کنترل می‌کنیم) */
input[type="checkbox"] {
  display: none;
}
.zoomable {
  position: relative;
}
.zoomable input:checked + img {
  transform: scale(2); /* بزرگ‌تر شدن */
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo img{
  width: 100px;
}

.footer-logo-text {
  font-size: 24px;
  font-weight: 700;
}

.footer-description {
  color: var(--light-gray);
  line-height: 1.8;
}

.footer-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-gray);
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

.delay-5 {
  animation-delay: 1s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------
   (کد اصلی شما — دقیقاً همان‌چه فرستادی)
   ----------------------------------------- */

/* (از ابتدا تا انتهای همان CSS که شما فرستادید دقیقاً قرار دارد) */

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------
   اضافه‌شده: Media Queries تکمیلی و بهبودها
   (هیچ قسمتی از کد قبلی حذف یا تغییر پیدا نکرد)
   ----------------------------------------- */

/* تبلت‌ها (تا 992px) */
@media (max-width: 992px) {
  /* ساختار هیرو به ستون تبدیل می‌شود، تصویر زیر متن می‌آید */
  .hero .container {
    flex-direction: column;
    gap: 32px;
    padding: 40px 10px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-image {
    width: 100%;
    order: 2;
  }

  .hero-title {
    font-size: 42px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-buttons {
    justify-content: center;
    gap: 16px;
  }

  /* خدمات دو ستونه در تبلت */
  .services-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* کارت آمار فشرده‌تر */
  .stat-card {
    padding: 30px 15px;
  }

  /* باکس تصاویر واکنش‌گرا */
  .box {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .box img {
    width: calc(50% - 12px);
  }

  /* تماس و فرم */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* موبایل (تا 768px) — گسترش و جزئیات بیشتر */
@media (max-width: 768px) {
  /* اطمینان از نمایش دکمه منو روی موبایل */
  .mobile-menu-btn {
    display: flex;
  }

  /* وقتی JS منو را به صورت inline نمایش می‌دهد، این استایل‌ها کمک می‌کند تا چیدمان موبایل منطقی باشد */
  .nav {
    gap: 18px;
    align-items: center;
  }

  /* منوی موبایل (وقتی توسط JS نمایش داده می‌شود) */
  /* JS شما از inline style استفاده می‌کند (display: flex؛ position:absolute؛ ...)،
     پس ما اینجا یک حالت پیش‌بینی‌شده هم اضافه می‌کنیم که اگر خواستید کلاس هم اضافه کنید کار کند */
  .nav.mobile {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 9999;
  }

  /* حذف نمایش دکمه CTA در هدر برای موبایل تا فضا کمتر شلوغ شود */
  .cta-button {
    display: none;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .car-illustration {
    max-width: 360px;
  }

  .stats-grid,
  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer .social-links {
    justify-content: center;
  }

  .box {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .box img {
    width: 80%;
    margin: 0 auto;
  }

  .contact-items {
    gap: 20px;
  }
}

/* موبایل‌های کوچک (تا 480px) */
@media (max-width: 480px) {
  .logo-text {
    font-size: 20px;
  }

  .hero-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 28px;
  }

  .contact-title {
    font-size: 26px;
  }

  .btn {
    width: 100%;
    padding: 12px 18px;
  }

  .box img {
    width: 100%;
  }

  .header-content {
    padding: 12px 12px;
  }

  .hero .container {
    padding: 20px 10px;
  }

  .service-card,
  .feature-card,
  .stat-card {
    padding: 24px;
  }

  .contact-form-wrapper {
    padding: 20px;
  }
}

/* مانیتورهای خیلی بزرگ (از 1400px به بالا) */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .hero-title {
    font-size: 64px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .service-card,
  .feature-card,
  .stat-card {
    padding: 60px;
  }
}

/* دسترسی بهتر برای زوم تصاویر (box) در موبایل: وقتی کاربر checkbox را چک می‌کند،
   در موبایل می‌خواهیم تصویر داخل صفحه نپوشاند ناوبری — لذا محدودیت z-index و max-scale */
@media (max-width: 768px) {
  .zoomable input:checked + img {
    transform: scale(1.6);
    max-width: 90%;
  }
}

/* کمک‌های ظاهری برای دستورات JS (Smooth menu transitions)
   اگر مایل بودی می‌تونیم JS را به‌روز کنیم تا به‌جای inline style، کلاس اضافه/حذف کند و
   از transition CSS استفاده کنیم. در حال حاضر، JS شما از inline style استفاده می‌کند که به درستی کار خواهد کرد. */

/* پایان بخش افزوده شده — تمام کدهای قبلی دست‌نخورده باقی ماند */
