@font-face{
    font-family:persian_1;
    src:url('../font/persian_1.ttf');
}
body{
    direction:rtl;
    font-family:persian_1;
    margin: 0;
    padding-top: 70px;
}
nav {
  background: #eaf3ff;
  color:blue;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  /* position: relative; */
  z-index: 1000;
  position: fixed;   /* 👈 همیشه بالای صفحه */
  top: 0;            /* از بالای صفحه بچسبه */
  right: 0;
  left: 0;
  z-index: 1000;     /* روی همه چیز بمونه */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* سایه ظریف برای قشنگی */
}
nav{
  padding-left:10px;
  padding-right:10px;
}
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,150);
}
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 {
    padding: 70px 20px;
    background: #f9fbff;
    text-align: center;
  }
  
  .portfolio h2 {
    font-size: 2rem;
    color: #000000;
    margin-bottom: 40px;
  }
  
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
  }
  
  .portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .portfolio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
  }
  
  .portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  }
  
  .portfolio-card:hover img {
    transform: scale(1.1);
  }
  
  .portfolio-info {
    padding: 15px;
    text-align: center;
  }
  
  .portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #00bcd4;
  }
  
  .portfolio-info p {
    font-size: 0.9rem;
    color: #444;
  }
  .services {
    padding: 70px 20px;
    background: #fff;
    text-align: center;
  }
  
  .services h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 40px;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
  }
  
  .service-card {
    background: #f4f8ff;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }
  
  .service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #00bcd4;
  }
  
  .service-card h3 {
    font-size: 1.3rem;
    color: #0044cc;
    margin-bottom: 10px;
  }
  
  .service-card p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
  }
  .testimonials {
    max-width: 700px;
    margin: 80px auto;
    text-align: center;
    font-family: persian_1, sans-serif;
    position: relative;
  }
  
  .testimonials h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #222;
  }
  
  .testimonial-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
  
  .testimonial {
    display: none;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    transition: opacity 0.6s ease-in-out;
  }
  
  .testimonial.active {
    display: block;
    animation: fadeIn 0.8s ease-in-out;
  }
  
  .testimonial p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
  }
  
  .testimonial h4 {
    margin-top: 15px;
    font-size: 1rem;
    font-weight: bold;
    color: #00bcd4;
  }
  
  button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #00bcd4;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  button.prev:hover, button.next:hover {
    background: #008ba3;
  }
  
  button.prev {
    left: -60px;
  }
  
  button.next {
    right: -60px;
  }
  
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
/* 🎯 ریسپانسیو برای تبلت و موبایل */
@media (max-width: 992px) {
    .portfolio-grid,
    .services-grid {
      grid-template-columns: 1fr 1fr;
    }
  
    .portfolio-card img {
      height: 160px;
    }
  }
  
  @media (max-width: 600px) {
    body {
      padding-top: 60px;
    }
  
    nav .logo {
      font-size: 1rem;
    }
  
    .portfolio h2,
    .services h2,
    .testimonials h2 {
      font-size: 1.4rem;
    }
  
    .portfolio-grid,
    .services-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  
    .portfolio-card img {
      height: 140px;
    }
  
    .service-card {
      padding: 20px 15px;
    }
  
    .testimonial {
      padding: 20px 15px;
    }
  
    /* 📌 دکمه‌های قبلی/بعدی داخل کادر بیان */
    button.prev, button.next {
      width: 40px;
      height: 40px;
      font-size: 18px;
      padding: 0;
    }
  
    button.prev {
      left: 10px;
    }
  
    button.next {
      right: 10px;
    }
  }
  .cta-box {
    background: linear-gradient(135deg, #00bcd4, #3f51b5);
    color: #fff;
    text-align: center;
    padding: 60px 30px;
    border-radius: 20px;
    margin: 50px auto;
    max-width: 800px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-in-out;
  }
  
  .cta-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .cta-box p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.8;
  }
  
  .cta-btn {
    display: inline-block;
    background: #ff4081;
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: 0.3s ease;
    box-shadow: 0 5px 15px rgba(255,64,129,0.4);
  }
  
  .cta-btn:hover {
    background: #f50057;
    transform: scale(1.05);
    box-shadow: 0 7px 20px rgba(255,64,129,0.6);
  }
  
  /* انیمیشن ورود */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .see-all {
    text-align: center;
    margin-top: 40px;
  }
  
  .btn-all {
    display: inline-block;
    background: linear-gradient(135deg, #00bcd4, #0044cc);
    color: #fff;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0, 188, 212, 0.3);
    transition: all 0.3s ease-in-out;
  }
  
  .btn-all:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #0044cc, #00bcd4);
    box-shadow: 0 8px 20px rgba(0, 68, 204, 0.4);
  }
      