* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Vazir', Arial, sans-serif;
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  background: #f4f4f4;
  color: #333;
}

/* هدر */
header {
  background: #4caf50;
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
}
.logo {
  max-width: 150px;
  height: auto;
  animation: spin 9s infinite linear;
  border-radius: 50%;
}
header h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  animation: fadeIn 2s ease-in;
}
header p {
  font-size: 1.2rem;
}

/* کانتینر اصلی */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* بخش‌ها */
section {
  margin: 2rem 0;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}
section:nth-child(1) {
  animation-delay: 0.2s;
}
section:nth-child(2) {
  animation-delay: 0.4s;
}
section:nth-child(3) {
  animation-delay: 0.6s;
}
section:nth-child(4) {
  animation-delay: 0.8s;
}
section h2 {
  font-size: 1.8rem;
  color: #4caf50;
  margin-bottom: 1rem;
}

/* گالری */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.gallery img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery img:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* دکمه دانلود */
.download-btn {
  display: inline-block;
  background: #ff5722;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2rem;
  transition: transform 0.3s, background 0.3s;
}
.download-btn:hover {
  background: #e64a19;
  transform: translateY(-3px);
}

/* فوتر */
footer {
  text-align: center;
  padding: 1rem;
  background: #333;
  color: white;
  margin-top: 2rem;
}
 a{
 text-decoration: none;
 }
/* انیمیشن‌ها */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .logo {
    max-width: 120px;
  }
  header h1 {
    font-size: 2rem;
  }
  header p {
    font-size: 1rem;
  }
  section h2 {
    font-size: 1.5rem;
  }
  .gallery img {
    max-width: 200px;
  }
  .download-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }
  .gallery {
    flex-direction: column;
    align-items: center;
  }
  .gallery img {
    max-width: 100%;
  }
  .logo {
    max-width: 100px;
  }
}
