/* تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f0f4f8; /* پس‌زمینه ملایم */
    color: #333;
    direction: rtl;
    line-height: 1.6;
  }
  
  /* کانتینر کلی */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* ناوبار */
  .navbar {
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
  }
  
  .navbar-brand {
    display: flex;
    align-items: center;
  }
  
  .nav-logo {
    width: 50px;
    height: auto;
    margin-left: 10px;
  }
  
  .logo-text {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
  }
  
  .logo-text span {
    margin-right: 5px;
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
  }
  
  .nav-item {
    position: relative;
  }
  
  .nav-link {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease, color 0.3s ease;
  }
  
  .nav-link:hover {
    background: #f0f0f0;
    color: #007acc;
  }
  
  /* منوی همبرگری */
  .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  
  .bar {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
  }
  
  /* واکنش‌گرایی ناوبار */
  @media screen and (max-width: 768px) {
    .nav-menu {
      position: absolute;
      top: 70px;
      right: 0;
      background: #fff;
      width: 100%;
      max-height: 0;
      overflow: hidden;
      flex-direction: column;
      text-align: center;
      transition: max-height 0.3s ease;
      z-index: 999;
    }
  
    .nav-menu.show {
      max-height: 300px;
    }
  
    .nav-item {
      border-bottom: 1px solid #ddd;
    }
  
    .menu-toggle {
      display: flex;
      margin-right: 10px;
    }
  }
  
  /* هدر با موج */
  .header-wave {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background: linear-gradient(60deg, rgba(84,58,183,1) 0%, rgba(0,172,193,1) 100%);
  }
  
  .inner-header {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .header-content {
    text-align: center;
    padding: 20px;
  }
  
  /* لوگو هدر به‌صورت دایره‌ای */
  .header-content .logo-container {
    margin: 20px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    margin-bottom: 20px;
  }
  .header-content .logo-container img {
    width: 100%;
    height: auto;
  }
  
  .header-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
  }
  
  .header-content .tagline {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  /* موج بالا/پایین */
  .wave-container {
    position: relative;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
  }
  
  .waves {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: -7px; /* رفع فاصله در برخی مرورگرها */
  }
  
  .parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
  }
  .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
  }
  .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
  }
  .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
  }
  .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
  }
  @keyframes move-forever {
    0% {
      transform: translate3d(-90px,0,0);
    }
    100% {
      transform: translate3d(85px,0,0);
    }
  }
  .waves-top {
    transform: rotate(180deg) translateY(-1px);
    /* موج بالا را برعکس می‌کنیم */
  }
  
  /* سکشن‌ها */
  .section {
    padding: 40px 0;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
  }
  
  .section:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  /* انیمیشن fade-in ساده */
  .fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* گرید نمونه‌کارها */
  .portfolio-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .portfolio-item {
    flex: 1 1 300px;
    max-width: 300px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
  
  .portfolio-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  .portfolio-content {
    padding: 15px;
  }
  
  .portfolio-item:hover {
    transform: scale(1.05);
    background-color: #e8f5ff;
  }
  
  /* گرید ویدیوها */
  .video-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .video-item {
    flex: 1 1 300px;
    max-width: 300px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
  
  .video-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  .video-title {
    font-size: 16px;
    color: #32aadf;
    text-align: center;
    margin-top: 10px;
  }
  
  .video-item:hover {
    transform: scale(1.05);
    background-color: #e8f5ff;
  }
  
.btn-gradient {
    background-image: linear-gradient(to right, #543ab7 0%, #00acc1 100%);
    border-radius: 40px;
    box-sizing: border-box;
    color: #78c33e; /* رنگ نوشته سفید */
    display: inline-block;
    font: 1.125rem 'Oswald', sans-serif; /* اندازه حدود 18px */
    height: 60px;
    letter-spacing: 1px;
    margin: 0 auto;
    padding: 4px;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    width: 220px;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: bold;
  }
  
  /* افکت هاور (مثال) */
  .btn-gradient:hover {
    transform: scale(1.03);
    background-image: linear-gradient(to right, #543ab7 0%, #00d7eb 100%);
  }
  
  
  .btn-gradient span {
    align-items: center;
    background: #e7e8e9;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    height: 100%;
    width: 100%;
    transition: background 0.5s ease;
  }
  
  .btn-gradient:hover span {
    background: transparent;
  }
  
  /* دسته‌بندی ربات‌ها */
  .bots-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
  }
  
  .category-box {
    flex: 1 1 250px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease;
  }
  
  .category-box:hover {
    transform: scale(1.03);
    background-color: #f0f8ff;
  }
  
  .category-box h3 {
    margin-bottom: 10px;
  }
  
  .category-box ul {
    list-style: none;
    padding: 0;
  }
  
  .category-box li {
    margin-bottom: 5px;
  }
  
  /* فوتر */
  footer {
    background: linear-gradient(60deg, rgba(84,58,183,1) 0%, rgba(0,172,193,1) 100%);
    color: #fff;
    margin-top: 0;
  }
  
  .footer-top {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 0;
    gap: 30px;
    justify-content: space-between;
  }
  
  .footer-col {
    flex: 1 1 200px;
    min-width: 200px;
  }
  
  .footer-logo-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #fff;
    overflow: hidden;
    margin-bottom: 10px;
  }
  
  .footer-logo {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .footer-brand {
    margin: 10px 0;
  }
  
  .footer-desc {
    line-height: 1.8;
    font-size: 14px;
  }
  
  .footer-links,
  .footer-contact {
    list-style: none;
    padding: 0;
  }
  
  .footer-links li,
  .footer-contact li {
    margin-bottom: 8px;
  }
  
  .footer-links a {
    color: #fff;
    text-decoration: none;
  }
  .footer-links a:hover {
    text-decoration: underline;
  }
  
  .social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
  }
  
  .social-icon:hover {
    transform: scale(1.2);
  }
  
  .footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 15px 0;
    margin-top: 10px;
  }
  
  /* هدر ساده در bots.html */
  .bots-header {
    text-align: center;
    background: linear-gradient(60deg, rgba(84,58,183,1) 0%, rgba(0,172,193,1) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
  }
  
  /* ریسپانسیو فوتر */
  @media screen and (max-width: 768px) {
    .footer-top {
      flex-direction: column;
      align-items: flex-start;
    }
  }
  
/* ارتفاع موج را کاهش می‌دهیم تا با محتوای بخش زیرین تداخل نداشته باشد */
.wave-container {
    position: relative;
    width: 100%;
    height: 10vh; /* قبلاً 15vh بود؛ می‌توانید کمتر هم بگذارید (مثلاً 8vh) */
    min-height: 50px;
    max-height: 100px;
    overflow: hidden;
  }
  
  /* حذف margin-bottom: -7px; تا از روی محتوای پایین عبور نکند */
  .waves {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  /* گرید ربات‌ها در bots.html */
  .bots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* وسط‌چین کردن آیتم‌ها */
  }
  
  .bot-item {
    width: 200px; /* عرض کارت در دسکتاپ */
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .bot-item:hover {
    transform: scale(1.03);
  }
  
  .bot-item img {
    width: 100%;
    height: 200px; /* برای مربعی شدن */
    object-fit: cover; /* تصویر برش می‌خورد تا مربعی بماند */
  }
  
  .bot-item h3 {
    font-size: 16px;
    margin: 10px 0 5px;
  }
  
  .bot-item p {
    font-size: 14px;
    margin-bottom: 10px;
    padding: 0 5px;
  }
  
  /* واکنش‌گرایی در موبایل */
  @media (max-width: 768px) {
    .bot-item {
      width: 150px; /* در موبایل کمی باریک‌تر */
    }
    .bot-item img {
      height: 150px;
    }
  }
  

/* --- اضافه برای صفحه تبلیغاتی (Overlay) --- */
#promo-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none; /* پیشفرض مخفی */
    justify-content: center;
    align-items: center;
  }
  
  #promo-overlay.active {
    display: flex;
  }
  
  .promo-content {
    background-color: #fff;
    color: #333;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    text-align: center;
  }
  
  .promo-content h2 {
    margin-bottom: 10px;
  }
  
  .promo-content p {
    margin-bottom: 15px;
    line-height: 1.6;
  }
  
  .promo-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
  }
  .promo-close:hover {
    color: #ff0000;
  }
  