@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;
  }
}
body {
  margin: 0;
  font-family: persian_1, sans-serif;
  background: linear-gradient(135deg, #e6e9f0 0%, #eef1f5 100%);
  color: #222;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
}

.about-text {
  flex: 1;
  max-width: 500px;
  padding: 20px;
}

.about-text h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #111;
}

.about-text h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #00bcd4;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.buttons a {
  display: inline-block;
  margin: 5px;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: 0.3s;
}

.btn-primary {
  background: #00bcd4;
  color: #fff;
}
.btn-primary:hover {
  background: #0097a7;
}

.btn-outline {
  border: 2px solid #00bcd4;
  color: #00bcd4;
}
.btn-outline:hover {
  background: #00bcd4;
  color: #fff;
}

.about-image {
  flex: 1;
  max-width: 400px;
  text-align: center;
  padding: 20px;
}

.about-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.about-image img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }
}