* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-rgb: 99, 102, 241;
  --secondary: #a855f7;
  --accent: #ec4899;
  --bg-dark: #0f0f1e;
  --bg-card: rgba(26, 26, 46, 0.7);
  --text-muted: #a0a0b0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-dark);
  color: #fff;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ===== BACKGROUND ===== */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
}

.bg-animation::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.08) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
  animation: moveGrid 25s linear infinite;
}

@keyframes moveGrid {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.particle {
  position: fixed;
  width: 3px;
  height: 3px;
  background: rgba(99, 102, 241, 0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: floatUp var(--dur, 15s) var(--delay, 0s) infinite linear;
}

@keyframes floatUp {
  0% {
    transform: translateY(105vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) translateX(40px);
    opacity: 0;
  }
}

/* ===== GLASS HEADER SYSTEM ===== */
header {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 5%;
  pointer-events: none; /* جلوگیری از بلاک کردن کلیک در لبه‌های بیرونی کپسول */
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav {
  pointer-events: auto; /* بازگرداندن رویدادهای ماوس به داخل کپسول هدر */
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1260px;
  margin: 0 auto;
  min-height: 74px;
  padding: 0 32px;
  border-radius: 22px;

  /* پس‌زمینه نیمه‌شفاف با گرادینت تیره عمیق و های‌لایت بنفش در گوشه */
  background: linear-gradient(
    135deg,
    rgba(20, 20, 38, 0.72) 0%,
    rgba(15, 15, 30, 0.78) 50%,
    rgba(99, 102, 241, 0.12) 100%
  );

  /* حاشیه ظریف شیشه‌ای */
  border: 1px solid rgba(255, 255, 255, 0.12);

  /* هسته بلور پس‌زمینه شیشه */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  /* سایه چندلایه: عمق محیطی + های‌لایت لبه بالایی (Specular Rim Light) */
  box-shadow:
    0 10px 30px -5px rgba(0, 0, 0, 0.5),
    0 0 20px -2px rgba(99, 102, 241, 0.15),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 1px 0 rgba(99, 102, 241, 0.1);

  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.35s ease;
}

/* هاور روی کپسول هدر */
nav:hover {
  background: linear-gradient(
    135deg,
    rgba(25, 25, 48, 0.85) 0%,
    rgba(20, 20, 40, 0.88) 50%,
    rgba(168, 85, 247, 0.18) 100%
  );
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow:
    0 16px 40px -5px rgba(0, 0, 0, 0.65),
    0 0 35px 2px rgba(168, 85, 247, 0.25),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* وضعیت اسکرول‌شده (وقتی JS کلاس scrolled را به header می‌دهد) */
header.scrolled {
  top: 10px;
}

header.scrolled nav {
  min-height: 66px;
  background: rgba(15, 15, 30, 0.88);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(99, 102, 241, 0.22);
}

/* لوگو و نام برند */
.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.brand-container:hover {
  transform: scale(1.03);
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.4));
  transition: filter 0.3s ease;
}

.logo img:hover {
  filter: drop-shadow(0 0 14px rgba(var(--primary-rgb), 0.8));
}

/* لینک‌های منو */
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 4px;
  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 0 8px var(--primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 130px 5% 40px;
  text-align: right;
}

@keyframes glassReveal {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(30px) scale(0.97);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
  }
}

.hero-content {
  flex: 0 1 560px;
  max-width: 560px;
  animation: glassReveal 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: var(--secondary);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  margin-bottom: 25px;
  animation: fadeInUp 0.8s ease-out both;
}

.hero h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 22px;
  text-align: center;
  background: linear-gradient(135deg, #fff 30%, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s 0.2s ease-out both;
}

.hero p {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 45px;
  animation: fadeInUp 1s 0.4s ease-out both;
}

/* slider */

.box-slider-wrapper {
  position: relative;
  width: 100%;
  height: 580px;
  max-width: 900px;
  aspect-ratio: 600 / 260;
  margin: 28px auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0d1a;
  direction: ltr; /* جهت هندسی برای محاسبات بدون باگ انیمیشن */
  user-select: none;
  flex: 0 1 auto;
}

.box-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.box-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.box-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.box-slider-wrapper:hover .box-slide img {
  transform: scale(1.03);
}

.box-slide-overlay {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 24px 16px 14px;
  background: linear-gradient(
    to top,
    rgba(10, 10, 20, 0.8) 0%,
    transparent 100%
  );
  direction: rtl;
  font-family: inherit;
}

.box-slide-overlay span {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* دکمه‌های چپ و راست */
.box-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  opacity: 0;
  z-index: 5;
}

.box-slider-wrapper:hover .box-nav-btn {
  opacity: 1;
}

.box-nav-btn:hover {
  background: #6366f1;
  border-color: #6366f1;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 12px;
}
.next-btn {
  right: 12px;
}

/* نشانگرهای نقطه‌ای */
.box-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 6;
}

.box-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.box-dot.active {
  width: 22px;
  border-radius: 12px;
  background: #6366f1;
}

.cta-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s 0.6s ease-out both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== BUTTONS ===== */
.btn {
  padding: 14px 34px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.btn-custom-design {
  animation: neon-pulse 2s infinite ease-in-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.btn-primary:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

@keyframes neon-pulse {
  0%,
  100% {
    box-shadow:
      0 0 5px var(--primary),
      0 0 10px var(--primary);
  }
  50% {
    box-shadow:
      0 0 10px var(--primary),
      0 0 15px var(--secondary);
  }
}

/* ===== SECTION COMMON ===== */
section {
  padding: 40px 5%;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.section-header p,
.section-desc {
  color: var(--text-muted);
  font-size: 19px;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.services-grid a {
  text-decoration: none;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 16px 0px;
  padding: 10px;
  padding-bottom: 40px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(99, 102, 241, 0.12),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.service-imge {
  width: 100%;
  height: auto;
  border-radius: 16px 0px;
  margin-bottom: 10px;
  display: inline-block;
}

.service-card h3 {
  font-size: 21px;
  color: var(--secondary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* =====Div Hover===== */
#fullscreen-preview {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
  pointer-events: none; /* بسیار مهم: برای اینکه موس گیج نشود و تصویر ریپ نزند */
}

/* وقتی موس روی کارت قرار دارد */
#fullscreen-preview.show {
  opacity: 1;
  visibility: visible;
}

/* تصویر بزرگ‌شده در سایز مانیتور/لپ‌تاپ/تلویزیون */
#preview-image {
  max-width: 88vw; /* ۸۸ درصد عرض هر نمایشگری (لپ‌تاپ یا تلویزیون) */
  max-height: 85vh; /* ۸۵ درصد ارتفاع کل صفحه */
  width: auto;
  height: auto;
  object-fit: contain; /* حفظ دقیق ابعاد بدون کشیدگی */
  border-radius: 20px;
  border: 2px solid rgba(168, 85, 247, 0.6); /* کادر بنفش متالیک */
  box-shadow:
    0 0 60px rgba(168, 85, 247, 0.4),
    0 25px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#fullscreen-preview.show #preview-image {
  transform: scale(1); /* انیمیشن پاپ‌آپ نرم */
}

@media (hover: none) or (pointer: coarse) {
  #fullscreen-preview {
    display: none !important;
  }
}

/* ===== PRICING ===== */
#pricing {
  background: rgba(26, 26, 46, 0.3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 2px solid rgba(99, 102, 241, 0.25);
  border-radius: 24px;
  padding: 45px 32px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.featured {
  border-color: var(--secondary);
  background: rgba(99, 102, 241, 0.1);
}

.badge-featured {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 5px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.4);
}

.plan-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 14px;
}

.plan-price {
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.plan-unit {
  font-size: 14px;
  color: var(--text-muted);
}

.plan-duration {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a0c4ff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  margin: 16px auto 26px;
  width: fit-content;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  text-align: right;
  flex-grow: 1;
}

.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  color: #d0d0e0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}

/* ===== ADDITIONAL SERVICES ===== */
.additional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.additional-item {
  background: var(--bg-card);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 20px 24px;
  transition: all 0.4s ease;
  position: relative;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.additional-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.additional-item h4 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 17px;
}

.additional-item .price-tag {
  color: var(--secondary);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.additional-item p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== ARTICLES ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 35px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 32px 24px;
  transition: all 0.4s ease;
  position: relative;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.card-badge {
  display: inline-block;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  width: fit-content;
}

.info-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #fff;
}

.info-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s;
}

.card-link:hover {
  color: #fff;
}

.center-btn {
  text-align: center;
  margin-top: 40px;
}

/* ===== CONTACT ===== */
#contact {
  background: rgba(26, 26, 46, 0.3);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 45px;
  align-items: start;
}

.contact-info h3 {
  font-size: 26px;
  color: var(--secondary);
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: #d0d0e0;
}

.contact-detail span:first-child {
  font-size: 22px;
}

.contact-detail a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-detail a:hover {
  color: var(--primary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 22px;
  padding: 40px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--secondary);
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  background: rgba(15, 15, 30, 0.85);
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.form-group select option {
  background: #1a1a2e;
  color: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* ===== FOOTER ===== */
footer {
  background: rgba(10, 10, 20, 0.95);
  padding: 35px 5%;
  text-align: center;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
}

footer p {
  color: var(--text-muted);
  font-size: 14px;
}

footer span {
  color: var(--secondary);
  font-weight: 600;
}

/* ===== SCROLL ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  min-width: 250px;
  padding: 14px 20px;
  background: #161b2e;
  border: 1px solid var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/*========================================================
        RESPONSIVE DESIGN SYSTEM (TV, LAPTOP, TABLET, MOBILE)
        ======================================================== */

/* ۱. تلویزیون‌ها و مانیتورهای فوق‌عریض (4K / Ultrawide Displays - 1600px+) */
@media (min-width: 1600px) {
  .hero {
    gap: 80px;
    padding: 150px 8% 80px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero p {
    font-size: 22px;
  }

  .box-slider-wrapper {
    max-width: 1350px;
    height: 620px;
  }

  .container {
    max-width: 1600px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ۲. لپ‌تاپ‌ها و دسکتاپ‌های استاندارد (1025px تا 1599px) */
@media (max-width: 1400px) {
  .hero {
    gap: 36px;
    padding: 120px 5% 50px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .box-slider-wrapper {
    height: 500px;
  }
  
  .nav-links {
    gap: 11px;
    display: flex;
  }
}

@media (max-width: 1200px) {
  .btn-custom-design {
    font-size: 15px;
  }
  
  .hero h1 {
    font-size: 29px;
  }

  .hero p {
    font-size: 17px;
  }

  .box-slider-wrapper {
    height: 440px;
  }

  .nav-links {
    gap: 11px;
    display: flex;
  }
}

/* ۳. تبلت‌ها و لپ‌تاپ‌های کوچک (769px تا 1024px) */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 5% 60px;
    gap: 40px;
  }

  .hero-content {
    flex: none;
    max-width: 800px;
  }

  .box-slider-wrapper {
    flex: none;
    width: 100%;
    max-width: 850px;
    height: 480px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ۴. تبلت‌های عمودی (481px تا 768px) */
@media (max-width: 768px) {
  header .btn-primary {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .logo img {
    height: 40px;
  }

  .nav-links {
    display: none; /* در موبایل مخفی می‌شود */
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.5;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .box-slider-wrapper {
    height: 340px;
    border-radius: 16px;
  }

  .box-nav-btn {
    opacity: 0.9;
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .section-header p,
  .section-desc {
    font-size: 15px;
  }

  section {
    padding: 60px 4%;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 26px 18px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ۵. گوشی‌های هوشمند استاندارد و کوچک (زیر 480px) */
@media (max-width: 480px) {
  header {
    top: 6px;
    padding: 0 2%;
  }

  header .btn-primary {
    padding: 12px 16px;
    font-size: 13px;
  }

  nav {
    min-height: 56px;
    padding: 0 14px;
    border-radius: 14px;
  }

  .hero {
    padding: 100px 4% 40px;
    flex-direction: column-reverse;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 16px;
  }

  .box-slider-wrapper {
    height: 240px;
    border-radius: 12px;
  }

  .box-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .btn {
    width: auto;
    font-size: 15px;
    padding: 14px 15px;
  }

  .toast {
    right: 10px;
    left: 10px;
    min-width: auto;
    text-align: center;
  }
}