/* استایل عمومی برای صفحه */
@font-face {
    font-family: 'lalezar';
    src:  url('../fonts/Lalezar-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    } 
body {
    font-family: lalezar;
    margin: 0;
    padding: 0;
    background-color:  #f4f6f8;
    color: #333;
  }
/* بخش معرفی استاد */
.about-section {
    background: linear-gradient(to right, #576574, #1e3799);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    max-width: 300px;
}

.profile-img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.about-text {
    flex: 2;
    max-width: 600px;
    text-align: right;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #fff;
    text-align: right;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ecf0f1;
    text-align: right;
}

/* بخش مدارک تحصیلی */
.education-section {
    padding: 60px 0;
    background-color: #fff;
    color: #333;
}

.education-container {
    width: 80%;
    margin: 0 auto;
}

.education-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #1e3799;
}

.education-list {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    flex-wrap: wrap;
}

.education-item {
    background-color: #f8f9fa;
    padding: 30px;
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateY(-10px);
}

.education-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1e3799;
}

.education-item p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* بخش مهارت‌ها */
.skills-section {
    padding: 60px 0;
    background-color: #ecf0f1;
    color: #333;
}

.skills-container {
    width: 80%;
    margin: 0 auto;
}

.skills-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1e3799;
}

.skills-list {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    flex-wrap: wrap;
}

.skill-item {
    background-color: #fff;
    padding: 30px;
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
}

.skill-item i {
    font-size: 3rem;
    color: #1e3799;
    margin-bottom: 20px;
}

.skill-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1e3799;
}

.skill-item p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* استایل ریسپانسیو */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .education-list, .skills-list {
        flex-direction: column;
        align-items: center;
    }

    .education-item, .skill-item {
        width: 80%;
        margin-bottom: 20px;
    }
    .about-text h2{
      margin-right: 20px;

    }
    .about-text p{
      text-align: center;
      padding: 20px;
    }
}

/* General Header Style */
header {
  background: linear-gradient(to right, #576574, #1e3799);
  padding: 10px 30px;
  width: 100%;
 
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.8rem;
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 600;
}

.navbar-nav {
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-item {
  margin-left: 30px;
}
.nav-link {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease-in-out;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3498db; /* تغییر رنگ خط زیر */
  transition: width 0.3s ease-in-out;
}

.nav-link:hover {
  color: #3498db; /* تغییر رنگ متن هنگام هاور */
}

.nav-link:hover::after {
  width: 100%; /* خط زیر متن هنگام هاور نمایش داده می‌شود */
}







/* Search Box */
/* استایل دهی به بخش سرچ باکس */
.search-box input {
  border: 2px solid #ccc;
  padding: 10px 20px;
  font-size: 16px;
  color: #333;
  border-radius: 25px;
  width: 250px;
  outline: none;
  transition: all 0.3s ease-in-out;
  background-color: #fff;
}

/* افکت هاور برای سرچ باکس */
.search-box input:hover {
  border-color: #3498db;  /* تغییر رنگ مرز هنگام هاور */
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.6); /* سایه اطراف */
}

/* تغییر رنگ متن و مرز هنگام فوکوس */
.search-box input:focus {
  border-color: #3498db; /* تغییر رنگ مرز هنگام فوکوس */
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.6); /* سایه اطراف */
  color: #3498db; /* تغییر رنگ متن هنگام فوکوس */
}

/* استایل جایگزینی برای placeholder */
.search-box input::placeholder {
  color: #bbb;
  font-style: italic;
  transition: color 0.3s ease-in-out;
}

/* هنگام فوکوس، رنگ placeholder تغییر می‌کند */
.search-box input:focus::placeholder {
  color: #3498db; /* رنگ placeholder هنگام فوکوس */
}


/* استایل دهی به آیکون‌های شبکه اجتماعی */
.social-links a {
  font-size: 24px;
  color: #ffffff;
  margin: 0 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* افکت هاور برای آیکون‌های شبکه اجتماعی */
.social-links a:hover {
  color: #3498db; /* تغییر رنگ آیکون هنگام هاور */
  transform: scale(1.2); /* بزرگتر شدن آیکون */
}

/* استایل برای آیکون‌های اجتماعی با رنگ‌های مشخص */
.social-links a i {
  transition: transform 0.3s ease;
}

/* تغییر رنگ و سایه در هنگام هاور */
.social-links a:hover i {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.6); /* سایه اطراف آیکون */
}

/* برای اطمینان از فاصله‌گذاری مناسب */
.social-links {
  display: flex;
  align-items: center;
}

/* Mobile View */
@media (max-width: 768px) {
 
 
  .menu-btn {
    display: block;
    background-color: transparent;
    border: none;
    font-size: 2rem;
    color: #ecf0f1;
  }

  .search-box {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .social-links {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .social-links a {
    font-size: 1.5rem;
  }
}


/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background: linear-gradient(to right, #576574, #1e3799);
  padding: 20px;
  transition: left 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 3000;
}

.sidebar.active {
  left: 0;
}

.close-btn {
  font-size: 2rem;
  color: #ecf0f1;
  background: none;
  border: none;
  margin-bottom: 20px;
}

.sidebar .nav-item {
  margin-bottom: 20px; 
}

.sidebar .nav-link {
  font-size: 1.2rem;
  color: #ecf0f1;
  text-decoration: none;
}




  

