@font-face{
    font-family:persian_1;
    src:url('../font/persian_1.ttf');
}
body{
    direction:rtl;
    font-family:persian_1;
}
nav {
  background: #eaf3ff;
  color:blue;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: relative;
  z-index: 1000;
}
nav div img {
    height: 40px;   /* ارتفاع ثابت */
    width: auto;    /* عرض رو متناسب تنظیم می‌کنه */
    display: block;
  }
  
nav .logo {
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  color:rgb(00,00,255);
}
nav .logo a{
  text-decoration: none;
  color:rgb(00,00,255);
}
nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin-left: 20px;
}
nav ul li a {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s;
  position: relative;   /* 👈 اینو اضافه کن */
  padding-bottom: 5px;  /* جا برای خط */
}
nav ul li a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #00bcd4;
  transition: 0.3s;
}
nav ul li a:hover::after {
  width: 100%;
}
nav ul li a:hover {
  color: #00bcd4;
}
#a{
    color:#00bcd4;
    position: relative;
    text-decoration: none;
    padding-bottom: 5px; /* جا برای خط */
}
#a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;     /* همیشه کامل */
  height: 2px;
  background: #00bcd4; /* خط آبی */
}
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  height: 3px;
  width: 25px;
  background:rgb(00,00,100);
  margin: 4px 0;
  border-radius: 5px;
  transition: 0.4s;
}
/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: #f3f3f3;
  padding: 60px 20px;
  transition: 0.4s;
}
.mobile-menu.active {
  right: 0;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
}
.mobile-menu ul li {
  margin: 20px 0;
}
.mobile-menu ul li a {
  color: #000000;
  text-decoration: none;
  font-size: 1.1rem;
  transition: 0.3s;
}
.mobile-menu ul li a:hover {
  color: #00bcd4;
}
/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
/* بخش کلی */
.portfolio-section {
    padding: 50px 20px;
    text-align: center;
    background: #f9f9f9;
    color: #222;
  }
  
  .portfolio-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #00bcd4;
  }
  
  /* دکمه‌های فیلتر */
  .filter-buttons {
    margin-bottom: 30px;
  }
  
  .filter-btn {
    background: #fff;
    border: 2px solid #00bcd4;
    color: #00bcd4;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s;
  }
  
  .filter-btn:hover {
    background: #00bcd4;
    color: #fff;
  }
  
  .filter-btn.active {
    background: #00bcd4;
    color: #fff;
  }
  
  /* گرید نمونه‌کارها */
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  /* کارت نمونه‌کار */
  .portfolio-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .portfolio-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .portfolio-card h3 {
    padding: 15px;
    font-size: 1rem;
    color: #333;
  }
  
  .portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }  