/* General Body and Page Container Styles */
body {
  background-color: #f7f9fc;
  font-family: "Inter-Regular", Helvetica, sans-serif;
  margin: 0;
  color: #0c141c;
}

.page-container {
  width: 100%; /* استفاده از کل عرض صفحه */
  margin: 0; /* حذف فاصله‌های اضافی */
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  padding: 16px; /* اضافه کردن فاصله داخلی برای زیبایی */
}

.section-title {
  text-align: center;
  font-family: "Inter-Bold", Helvetica, sans-serif;
  font-size: 35px;
  line-height: 28px;
  padding: 20px 16px 12px;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: #f7f9fc;
}

.site-header .brand {
  font-family: "Inter-Bold", Helvetica, sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.site-header .menu-icon {
  width: 48px;
}

/* Hero Section */
.hero-section {
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%), url('./img/hero-background.jpg') no-repeat center center/cover;
  /* Note: Replace 'hero-background.jpg' with your actual background image or remove it to keep the gradient only */
}

.hero-content h1 {
  font-family: "Inter-Black", Helvetica, sans-serif;
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -1px;
  line-height: 45px;
  margin: 0;
}

.hero-content p {
  font-family: "Inter-Regular", Helvetica, sans-serif;
  font-size: 14px;
  line-height: 21px;
  max-width: 500px;
  margin: 1rem auto;
}

.hero-button {
  display: inline-block;
  background-color: #0c7ff2;
  color: #f7f9fc;
  font-family: "Inter-Bold", Helvetica, sans-serif;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 12px;
  text-decoration: none;
  margin-top: 1rem;
}

/* Tools Section */
.tools-section {
  padding: 16px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive Grid */
  gap: 16px;
}

.tool-card {
  display: flex;
  align-items: center;
  justify-content: center; /* مرکز کردن محتوا */
  gap: 20px;
  padding: 20px;
  background-color: transparent; /* حذف بکگراند کارت */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* اضافه کردن شادو کم برای برآمدگی */
  border: none; /* حذف بوردر */
}

.tool-card h3 {
  font-family: "Inter-Bold", Helvetica, sans-serif;
  font-size: 18px;
  line-height: 20px;
  margin: 0;
  font-weight: bold; /* بولد کردن نوشته‌ها */
}

.tool-icon {
  width: 40px; /* کوچک‌تر کردن تصاویر */
  height: auto; /* حفظ نسبت تصویر */
  object-fit: contain; /* تنظیم تصویر داخل محدوده */
  display: block; /* جلوگیری از رفتار غیرمنتظره */
  margin: 0; /* حذف مارجین اضافی */
}

/* Adjust tool-card for mobile */
@media (max-width: 768px) {
  .tool-card {
    flex-direction: column; /* تغییر جهت محتوا به ستون برای موبایل */
    align-items: center; /* مرکز کردن محتوا */
    gap: 8px; /* کاهش فاصله بین محتوا */
  }

  .tool-icon {
    margin: 0 auto; /* مرکز کردن آیکون */
  }
}

/* About Me Section */
.about-me-section {
  display: flex;
  flex-direction: column; /* تنظیم جهت محتوا به ستون */
  align-items: center; /* مرکز کردن محتوا */
  padding: 16px;
}

.profile-picture {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-bottom: 24px; /* یک فاصله زیر عکس ایجاد می‌کند */
}

.profile-text {
  text-align: center; /* تمام متن‌ها را وسط‌چین می‌کند */
}

.profile-text h3 {
  font-family: "Inter-Bold", Helvetica, sans-serif;
  font-size: 22px;
  line-height: 28px;
  margin: 0 0 8px 0;
}

.profile-text .role, .profile-text p {
  font-family: "Inter-Regular", Helvetica, sans-serif;
  color: #49729b;
  font-size: 16px;
  line-height: 24px;
  margin: 4px 0;
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 20px;
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a, .copyright {
  color: #49729b;
  font-size: 16px;
  text-decoration: none;
}

.footer-divider {
  width: 100%;
}

/* Responsive Adjustments */
@media (min-width: 768px) {

  .tools-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
  }

  .page-container {
    padding: 32px; /* افزایش فاصله داخلی برای تبلت */
  }
}

@media (min-width: 1024px) {
  .hero-content h1 {
      font-size: 48px;
      line-height: 56px;
  }

  .tools-grid {
      grid-template-columns: repeat(4, 1fr); /* 4 columns for desktops */
  }

  .page-container {
    padding: 48px; /* افزایش فاصله داخلی برای دسکتاپ */
  }
}