body {
  margin: 0;
  font-family: roboto;
  text-align: center;
  background-color: rgba(245, 245, 245, 1);
}

header {
  background: #333;
  color: white;
  padding: 1rem;
}

.hero {
  padding: 2rem;
}

.hero img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.hero h2 {
  margin-top: 1rem;
  font-size: 2rem;
}

.hero p {
  margin: 1rem 0;
  color: #555;
}

.buttons button {
  margin: 0.5rem;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 5px;
  background-color: #0078d7;
  color: white;
  cursor: pointer;
}

.buttons button:hover {
  background-color: #005a9e;
}

.img-fit {
  width: 100%;          /* پر کردن عرض div */
  height: 100%;         /* پر کردن ارتفاع div */
  object-fit: contain;  /* تمام تصویر دیده شود بدون برش */
  object-position: center; /* وسط چین شدن تصویر */
  display: block;
}




.container {
  width: 100%;      /* حالت پیش‌فرض */
  margin: 0 auto;   /* وسط‌چین کردن */
  margin-top: ۳rem;
}

/* وقتی صفحه >= 1000px شد */
@media (min-width: 1000px) {
  .container {
    width: 75%;
  }
}
/* برای موبایل‌های کوچک */


/* وقتی صفحه >= 1440px شد */
@media (min-width: 1440px) {
  .container {
    width: 60%;
    max-width: 1440px;  /* بیشتر از این سایز بزرگ نمی‌شود */
  }
}






/* Projects Section */
.projects {
  width: 80%;
  text-align: center;
  margin: 4rem auto;
}
@media (max-width: 600px) {
  .projects {
    width: 92%;
  }
}


.hero-section {
  width: 100%;
  display: flex;
  justify-content: flex-start;

}

.hero-content {
  width: 100%;
  text-align: left;
}

@media (min-width: 1000px) {
  .hero-content {
    width: 50%; /* فقط در دسکتاپ */
  }
}
@media (max-width: 600px) {
  .hero-content {
    width: 100%; /* فقط در دسکتاپ */
  }
}
.hero-content h1 {
  font-size: 40px;
  color: #282828;
  line-height: 48px; /* فاصله خطوط ۸px بیشتر از سایز فونت */
  font-weight: 500;
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 24px;

  }
  .hero-content p {
    font-size: 14px;
    color: #717171;
    font-weight: 400;
    margin-top: -0.6rem;
    text-align: justify;
  }
}

.hero-content p {
  font-size: 16px;
  color: #717171;
  line-height: 23px;
  margin-bottom: 1rem;
  text-align: justify;
}

.hero-actions {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 16px;
  justify-content: flex-start; /* چپ‌چین کردن */

}


 

 @media (max-width: 700px) {
  .profile-name {
    display: none;
  }
   .profile img {
    display: none ;
   }
      .profile{
    display: none ;
   }
}

#project-list {
  display: flex;
  flex-direction: column;
  grid-template-columns: 1fr; /* همیشه یک ستون */
  gap: 1.2rem;
  margin-top: 2rem;
}

#project-list > * {
  width: 100%; /* کارت‌ها کل عرض ستون را پر کنند */
}






/* Individual project card */
.project-card {
  background-color: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 16px;
  padding: 1rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer; /* موس دست میشه */
}

 @media (max-width: 700px) {
  .project-card{
    background-color: transparent;
    border: transparent;
    padding: 0px;

  }
}

.project-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192, 192, 192, 0.1);
}


.project-card h3 {
  margin: 1rem 0;
  font-size: 16px;
  color: #464646;
  font-family: roboto;
  font-weight: 400;
}

.project-card p {
  color: #9D9D9D;
  font-size: 14px;
  font-weight:500;
  margin-top: -12px;
  margin-bottom: -0.1px;
}






/* FAQ Section */
.faq {
  width: 80%;
  margin: 4rem auto;
  text-align: left;
}

.faq-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111;
}

.faq-header p {
  margin-bottom: 1rem;
  color: #555;
}

.faq-header .btn-light {
  background-color: #fff;
  border: 1px solid #333;
  color: #333;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
}

.faq-header .btn-light:hover {
  background-color: #f0f0f0;
}

/* FAQ Items */
.faq-list {
  margin-top: 1.2rem;
  gap: 0.4rem;
  justify-content: space-between;
  align-items: center;

 
}

.faq-item {
  padding: 1.2rem;
  background-color: #ffffff;
  margin-bottom: 1rem;
  border-radius: 16px;

}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: #111;
}

.faq-icon {
  font-size: 1.2rem;
  font-weight: bold;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #555;
  margin-top: 0.5rem;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* enough space for answer text */
}

.faq-item.active .faq-icon {
  transform: rotate(90deg); /* turns + into × */
}
