/* ریست و استایل‌های پایه */
@font-face {
  font-family: 'Vazir';
  src: url('../font/Vazirmatn-Regular.ttf') format('truetype');
}

*,*::before,*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;

}

body {
  font-family: 'Vazir', sans-serif;
  background: #f4f4f4;
  color: #333;
  direction: rtl;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* هدر با گرادیان سبز */
header {
  position: relative;
  background: linear-gradient(135deg, #4caf50, #81c784);
  padding: 40px 20px;
  text-align: center;
  color: #fff;
}

/* تغییرات جدید بخش هدر */
header .header-name {
  font-size: 2.4rem;
  /* فونت متوسط برای نام */
  margin-bottom: 5px;
}

header .header-title {
  font-size: 1.5rem;
  font-style: italic;
  color: #e0ffe0;
  /* رنگ متمایز برای عنوان */
}

/* استایل‌های پیشین هدر (در صورت نیاز می‌توان حذف یا تغییر داد) */
header p.subtitle {
  font-size: 1.6rem;
  margin-bottom: 3px;
}

header p.education {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

header p.contact-info {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

header p.contact-info a {
  color: #fff;
  margin: 0 8px;
  padding: 5px 8px;
}

a.btn-email {
  background: #fff;
  color: #4caf50;
  padding: 5px 12px;
  border-radius: 5px;
}

/* آیکن‌های شبکه‌های اجتماعی در هدر */
.social-icons {
  margin-top: 10px;
}

.social-icons a {
  color: #fff;
  margin: 0 10px;
  font-size: 28px;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #2e7d32;
}

/* ظرف صفحه */
.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
}

section {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section h2 {
  border-bottom: 2px solid #4caf50;
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: #4caf50;
  font-size: 1.8rem;
}

/* بخش درباره من */
#about p {
  font-size: 1.1rem;
  text-align: justify;
  line-height: 1.8;
}

/* استایل برای عکس پروفایل در بخش درباره من */
#about .profile-pic {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border: 3px solid #4caf50;
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
}

/* استایل دکمه‌های درباره من */
#about .btn {
  display: inline-block;
  background: #4caf50;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 10px 5px 0 5px;
  transition: background 0.3s;
  font-size: 1rem;
}

#about .btn:hover {
  background: #388e3c;
}

/* حوزه‌های تخصصی */
.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#specialties .box {
  flex: 1 1 calc(50% - 20px);
  background: #e8f5e9;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #a5d6a7;
  transition: transform 0.3s, box-shadow 0.3s;
}

#specialties .box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(76, 175, 80, 0.4);
}

#specialties .box h3 {
  margin-bottom: 10px;
  color: #388e3c;
  font-size: 1.5rem;
}

#specialties .box p {
  font-size: 1rem;
  color: #2e7d32;
}

/* بخش ارتباط با من */
#contact p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  text-align: justify;
  line-height: 1.8;
}

/* جعبه اطلاعات تماس */
#contact .contact-info-box {
  border: 2px solid #4caf50;
  padding: 15px;
  border-radius: 8px;
  background: #e8f5e9;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}

#contact .contact-info-box div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  color: #333;
}

#contact .contact-info-box div i {
  font-size: 1.5rem;
  color: #4caf50;
}

/* آیکن‌های شبکه‌های اجتماعی و ایمیل */
#contact .contact-icons {
  text-align: center;
  margin-top: 20px;
}

#contact .contact-icons a {
  background: #f4f4f4;
  border: 2px solid #4caf50;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  transition: all 0.3s ease;
  color: #4caf50;
}

#contact .contact-icons a:hover {
  background: #4caf50;
  color: #fff;
  transform: scale(1.1);
}

/* فوتر */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

footer a {
  color: #4caf50;
  text-decoration: none;
}

/* قوانین ریسپانسیو */
@media (max-width: 768px) {
  header .header-name {
    font-size: 2rem;
  }

  #specialties .box {
    flex: 1 1 100%;
  }

  #contact .contact-info-box {
    flex-direction: column;
    gap: 15px;
  }
}