body {
  margin: 0;
  font-family: "Vazir", sans-serif;
  background-color: #f5f5f5;
  color: #333333;
  overflow-x: hidden;
}

nav {
  background: #053052;
  padding: 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 12px;
}

nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #856fed;
}

/* بخش اصلی */
/* .intro {
  width: 100%;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #053052, #3b6078);
  color: #ffffff;
  overflow: hidden;
  /* direction: rtl; */

/* محتوای اصلی */
.content {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  gap: 30px;
}

/* بخش متن */
.text-section {
  flex: 1;
  animation: slideInRight 1.4s ease-in-out;
}

.text-section h2 {
  font-size: 2.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #f7f7f7;
}

.text-section p {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #d1d8e0;
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.5rem; /* بزرگ‌تر کردن فونت */
  background: linear-gradient(135deg, #856fed, #5b3cc4); /* استفاده از گرادینت جذاب */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Vazir";
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* اضافه کردن سایه */
  animation: pulse 1.4s infinite; /* انیمیشن برای جلب توجه */
}

.cta-button:hover {
  transform: scale(1.1); /* بزرگ‌تر شدن هنگام هاور */
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* انیمیشن جلب توجه */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }
}

.media-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: fadeIn 2s ease-in-out;
  align-items: center;
}

.intro-logo {
  width: 120px;
  margin-top: 42px;
  margin-bottom: 14px;
  animation: fadeIn 1.5s ease-in-out;
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.5));
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.play-button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #ffffff;
}

.play-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

.hidden {
  display: none;
  /* کلاس مخفی‌کردن دکمه */
}

.images {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.intro-image {
  width: 30%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* انیمیشن‌ها */
@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .intro-video {
    height: 200px;
  }

  .intro-image {
    width: 30%;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: #053052;
  border-radius: 10px;
  overflow: hidden;
  color: #ffffff;
  transition: transform 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card img {
  width: 100%;
  object-fit: cover;
}
/* @media (max-width: 768px) {
  .product-card img {
    height: 460px;
    object-fit: unset;
  }
} */
/* تنظیمات اصلی intro */
/* .intro {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #053052, #3b6078);
    transition: all 0.5s ease;
    overflow: hidden;
}

/* محتوا */
/* .intro-content {
    text-align: center;
    animation: fadeIn 1s ease-in-out;
} */
*/

/* لوگو و متن */
.intro-logo {
  width: 150px;
  margin-bottom: 20px;
  transition: all 0.5s ease;
}

.intro h1,
.intro p {
  margin: 10px 0;
  direction: rtl;
  transition: all 0.5s ease;
}
.intro h1 {
  font-size: 22px;
}
.intro p {
  font-size: 18px;
}

/* دکمه */
.cta-button {
  padding: 12px 25px;
  font-size: 1.2rem;
  background: #856fed;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Vazir";
  margin-top: 20px;
  transition: background 0.3s ease;
}

/* .cta-button:hover {
    background: #6b56d3;
} */

/* تغییر به ساختار جدید */
/* .intro.transformed {
    align-items: flex-start;
    padding: 20px;
} */

/* .intro.transformed .intro-content {
    display: none;
}

.intro.transformed .content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
} */

.media-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* @media (max-width: 768px) {
  .text-section {
    display: none;
    text-align: right;
  }
} */
.text-section {
  flex: 1;
  text-align: right;
}

.text-section img {
  width: 120px;
  margin-bottom: 20px;
}

.text-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.text-section p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  margin-right: 28px;
}

.text-section .cta-button {
  background: #856fed;
  padding: 10px 20px;
  border-radius: 8px;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: auto;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: #fff;
}
/* تنظیمات اولیه */
.intro {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #053052, #3b6078);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.intro-content,
.content {
  position: absolute;
  width: 100%;
  /* top: 240px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  transition: all 0.5s ease;
}
@media (max-width: 768px) {
  .intro-content,
  .content {
    width: 88%;
    top: 88fpx;
  }
}

/* حالت مخفی */
.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

/* حالت فعال */
.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    gap: 20px;
  }
}

.media-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-section {
  flex: 1;
  text-align: right;
  color: #ffffff;
}

.menu-link.active {
  color: #856fed;
}

.product-content {
  /* padding: 20px; */
  text-align: center;
}

.product-content h3 {
  font-size: 1.2em;
  margin: 0;
}

.product-content p {
  font-size: 1em;
  margin-top: 6px;
  margin-bottom: 12px;
  color: #a18dff;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;

  height: 100vh;

  background: rgba(0, 0, 0, 0.8);

  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.5s;
}

.modal-content {
  background: #ffffff;
  padding: 20px;
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: scaleUp 0.4s ease-in-out;
}

.modal-content img {
  width: 100%;
  max-height: 70vh;
  padding-top: 16px;
  object-fit: contain;
  padding-top: 16px;
  border-radius: 10px;
  transition: opacity 0.2s ease;
}

.modal-close {
  background: none;
  color: #333333;
  border: none;
  font-size: 1.8rem;
  font-weight: bold;
  position: absolute;
  top: 0px;
  right: 8px;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #f44336;
}

.modal-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.modal-nav div {
  background: #053052;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0px 16px;
  cursor: pointer;
  font-size: 1.2em;
  transition: background 0.3s;
  padding: 2px;
}

.modal-nav div:hover {
  background: #856fed;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.9);
  }

  to {
    transform: scale(1);
  }
}
.how-it-works {
  background: #f5f5f5;
  padding: 50px 20px;
  text-align: center;
}

.how-it-works h2 {
  font-size: 2.5em;
  color: #053052;
  margin-bottom: 30px;
}

.steps {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.step {
  max-width: 300px;
  text-align: center;
}

.step img {
  width: 280px;
  margin-bottom: 15px;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .step img {
    height: 488px;
  }
}

.step h3 {
  font-size: 1.5em;
  color: #053052;
  margin-bottom: 10px;
}

.step p {
  font-size: 1.2em;
  color: #363636;
}

.contact {
  background: #f5f5f5;
  padding: 50px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #053052;
}

.contact p {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 30px;
  direction: rtl;
}

.contact-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #053052;
  font-size: 1.2em;
  padding: 10px 20px;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-item img {
  width: 30px;
  height: 30px;
  border-radius: 5px;
}

.contact-item:hover {
  background: #f0f0f5;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .contact-row {
    gap: 20px;
  }

  .contact-item {
    width: 180px;
    justify-content: center;
  }
}

footer {
  background: #053052;
  text-align: center;
  padding: 8px;
  color: #ffffff;
}
