@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

body {
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  background-color: #121212;
  color: #c3e408;
  direction: rtl;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #1e1e1e;
  padding: 10px 0;
  z-index: 10;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #f0f0f0;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #ffcc00;
}

#hero {
  height: 90vh;
  background: url('https://via.placeholder.com/1200x600') center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.btn {
  background: #ffcc00;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
}

.btn:hover {
  background: #ffc107;
}

section {
  padding: 80px 0;
  width: 90%;
  margin: auto;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 300px;
  box-shadow: 0 0 10px #333;
  transition: 0.3s;
}

.card:hover {
  transform: scale(1.05);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gallery img {
  width: 300px;
  border-radius: 10px;
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

footer {
  background: #181818;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* استایل‌های رسپانسیو برای موبایل */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    display: none; /* مخفی کردن منو در حالت عادی */
  }

  .nav-links.active {
    display: flex; /* نمایش منو در حالت فعال */
  }

  .gallery img {
    width: 100%;
    max-width: 300px;
  }

  section {
    padding: 60px 0;
  }

  .card {
    flex: 1 1 100%;
  }

  #hero {
    height: 70vh;
    padding-top: 60px;
  }

  /* منوی همبرگری برای موبایل */
  .menu-toggle {
    display: block;
    position: absolute;
    left: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 11;
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #f0f0f0;
    margin: 5px 0;
    transition: 0.3s;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* استایل‌های رسپانسیو برای تبلت */
@media (max-width: 1024px) and (min-width: 769px) {
  .card {
    flex: 1 1 45%;
  }
  
  .gallery img {
    width: 45%;
  }
}