/* ===============================
   فونت و تنظیمات پایه
=============================== */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn.woff2") format("woff2"),
       url("../fonts/Vazirmatn.woff") format("woff");
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", sans-serif;
  direction: rtl;
  background-color: #f6f8fb;
  color: #1f2937;
  line-height: 1.8;
}

/* لینک‌ها */
a {
  text-decoration: none;
  color: inherit;
}

/* ===============================
   هدر و منو
=============================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffffd9;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 18px 0;
}

/* لوگو */
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  cursor: pointer;
}

/* منو */
nav#navMenu {
  display: flex;
  align-items: center;
  gap: 35px;
}

nav#navMenu a {
  font-weight: 600;
  font-size: 1rem;
  color: #374151;
  position: relative;
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

/* افکت زیر خط در هاور */
nav#navMenu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  transition: width 0.3s ease;
}

nav#navMenu a:hover {
  color: #0f172a;
}
nav#navMenu a:hover::after {
  width: 100%;
}

/* دکمه ورود / ثبت‌نام */
.btn-login {
  background: linear-gradient(135deg, #ff6b6b, #ff8e44);
  color: white;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 107, 0.4);
}

/* دکمه منوی موبایل */
.menu-btn {
  display: none;
  border: none;
  background: none;
  font-size: 2rem;
  color: #111827;
  cursor: pointer;
  transition: color 0.3s ease;
}
.menu-btn:hover {
  color: #2563eb;
}

/* ===============================
   بخش هیرو (صفحه اصلی)
=============================== */
.hero {
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  padding: 90px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
  gap: 40px;
  width: min(1200px, 90%);
  margin: auto;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #111827;
  line-height: 1.3;
  font-weight: 900;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 40px;
  max-width: 600px;
}

/* دکمه‌های هیرو */
.hero-buttons {
  display: flex;
  gap: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  border: 2px solid #cbd5e1;
  color: #111827;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
}

/* کارت هیرو سمت راست */
.hero-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  text-align: right;
}
.hero-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  color: #111827;
}
.hero-card p {
  color: #4b5563;
  line-height: 1.7;
}

/* ===============================
   بخش آمار (Stats)
=============================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 80px auto;
  width: min(1200px, 90%);
}
.stat {
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  font-weight: 800;
  color: #111827;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  color: #2563eb;
}

/* ===============================
   بخش دعوت به اقدام CTA
=============================== */
.cta {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 25px;
}
.cta .btn-primary {
  background: white;
  color: #2563eb;
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}
.cta .btn-primary:hover {
  background: #f9fafb;
  transform: translateY(-2px);
}

/* ===============================
   فوتر
=============================== */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  text-align: center;
  padding: 25px 0;
  font-size: 0.95rem;
}

/* ===============================
   قوانین ریسپانسیو
=============================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav#navMenu {
    display: none;
    position: absolute;
    top: 70px;
    right: 5%;
    left: 5%;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
  }
  nav#navMenu a {
    padding: 12px 0;
    text-align: center;
  }
  nav#navMenu.active {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .stats {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .hero {
    padding: 70px 0;
  }
  .hero p {
    font-size: 1rem;
  }
  .btn-primary, .btn-outline {
    width: 80%;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .stat {
    font-size: 1rem;
  }
  .cta {
    padding: 60px 0;
  }
}




/* پایه: در دسکتاپ منو را نمایش بده */
#navMenu{
  display: flex;
  gap: 18px;
  align-items: center;
}

/* دکمه همبرگری در دسکتاپ مخفی */
.menu-btn{
  display: none;
}

/* موبایل */
@media (max-width: 768px){
  .menu-btn{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 22px;
  }

  /* منو را مخفی کن */
  #navMenu{
    display: none;
    flex-direction: column;
    gap: 10px;

    position: absolute;
    top: 70px;       /* ارتفاع هدر را اگر لازم بود تنظیم کن */
    right: 16px;     /* راست/چپ بسته به طراحی سایت */
    left: 16px;      /* منو پهن شود */
    padding: 14px;
    background: rgba(255,255,255,0.95);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    z-index: 999;
  }

  /* وقتی اکتیو شد، نمایش بده */
  #navMenu.active{
    display: flex;
  }
}

