/* Reset و تنظیمات پایه */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary-color: #2ecc71;
  --primary-dark: #27ae60;
  --primary-light: #58d68d;
  --secondary-color: #1a1a2e;
  --text-color: #333;
  --light-color: #f8f9fa;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
  background-color: var(--light-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

/* استایل هدر و ناوبری */
header {
  background-color: white;
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo i {
  color: var(--primary-color);
  font-size: 28px;
  margin-left: 10px;
}

.logo h1 {
  font-size: 24px;
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-right: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* استایل انتخاب زبان */
.language-selector {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.language-selector select {
  padding: 8px 12px;
  border-radius: 5px;
  border: 1px solid #ddd;
  background-color: white;
  color: var(--text-color);
  cursor: pointer;
  outline: none;
  transition: all 0.3s;
}

.language-selector select:hover {
  border-color: var(--primary-color);
}

/* استایل بخش اصلی */
.hero {
  padding: 150px 0 100px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  padding-left: 50px;
}

.hero-text h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.hero-text h2 span {
  color: var(--primary-color);
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555;
}

.phone-mockup {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-container {
    position: relative;
    width: 300px;
    height: 670px;
    border-radius: 15px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: #f0f0f0;
}

.phone-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.market-stores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.market-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.market-link:hover {
    transform: translateY(-5px);
}

.market-link img {
    width: 150px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .market-stores {
        gap: 15px;
    }
    
    .market-link img {
        width: 120px;
    }
}

@media (max-width: 576px) {
    .market-stores {
        flex-direction: column;
        gap: 12px;
    }
    
    .market-link img {
        width: 140px;
    }
}

/* استایل دکمه‌های دانلود */
.download-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  font-size: 16px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-3px);
}

.btn i {
  margin-left: 8px;
  font-size: 18px;
}

/* استایل ویژگی‌ها */
.features {
  padding: 100px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.section-title p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--light-color);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon i {
  font-size: 30px;
  color: white;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.feature-card p {
  color: #666;
}

/* استایل بخش قوانین */
.rules {
  padding: 100px 0;
  background-color: var(--light-color);
}

.rules-content {
  background-color: white;
  border-radius: 15px;
  padding: 50px;
  box-shadow: var(--shadow);
  max-height: 600px;
  overflow-y: auto;
}

.rules-content h3 {
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-size: 28px;
  text-align: center;
}

.rules-list {
  counter-reset: rule-counter;
}

.rule-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-right: 40px;
}

.rule-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.rule-item::before {
  counter-increment: rule-counter;
  content: counter(rule-counter);
  position: absolute;
  right: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.rule-item strong {
  color: var(--secondary-color);
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.rule-item p {
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* استایل فوتر */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 14px;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse;
  }

  .hero-text {
    padding-left: 0;
    text-align: center;
    margin-top: 50px;
  }

  .phone-container {
    width: 250px;
    height: 500px;
  }
  
  .rules-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    background-color: white;
    width: 80%;
    height: calc(100vh - 70px);
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hero-text h2 {
    font-size: 32px;
  }

  .download-buttons {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .language-selector {
    margin-left: 0;
    margin-top: 15px;
  }
  
  .rules-content {
    padding: 20px;
    max-height: 500px;
  }
  
  .rule-item {
    padding-right: 35px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 120px 0 80px;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 250px;
  }

  .section-title h2 {
    font-size: 28px;
  }
  
  .rules {
    padding: 80px 0;
  }
  
  .rules-content h3 {
    font-size: 24px;
  }
}

/* استایل‌های زبان */
body[dir="rtl"] {
  text-align: right;
}

body[dir="ltr"] {
  text-align: left;
}

.lang-ar {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}