﻿@font-face {
  font-family: 'pinar';
  src: url(../fonts/pinar.ttf) format('truetype');
}

:root {
  /* پالت رنگی جدید - آبی، سبز، نارنجی */
  --primary: #2196F3;
  /* آبی اصلی - اعتماد و تخصص */
  --primary-dark: #1565C0;
  /* آبی تیره‌تر برای هاور */
  --secondary: #4CAF50;
  /* سبز مکمل - طبیعت و خنکی */
  --secondary-dark: #2E7D32;
  /* سبز تیره‌تر */
  --accent: #FF9800;
  /* نارنجی - برای اکشن‌های مهم */
  --accent-dark: #F57C00;
  /* نارنجی تیره‌تر */
  --dark: #2a2a2a;
  /* خاکستری تیره برای متن */
  --darker: #1a1a1a;
  /* تقریباً مشکی */
  --light: #f5f9ff;
  /* آبی بسیار روشن - پس‌زمینه اصلی */
  --light-bg: #e3f2fd;
  /* آبی کمی تیره‌تر برای بخش‌ها */
  --card: #ffffff;
  /* سفید خالص برای کارت‌ها */
  --success: #4CAF50;
  /* سبز موفقیت */
  --warning: #FF9800;
  /* نارنجی فقط برای اخطار */
  --shadow: 0 4px 15px rgba(33, 150, 243, 0.15);
  --shadow-hover: 0 6px 20px rgba(33, 150, 243, 0.2);
  --shadow-modal: 0 10px 40px rgba(0, 0, 0, 0.35);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: all 0.3s ease;
  --border: 1px solid rgba(33, 150, 243, 0.15);

  /* رنگ‌های جدید برای دکمه‌های نوبار - حالت عادی */
  --nav-normal-1: #e3f2fd;
  /* آبی بسیار روشن */
  --nav-normal-2: #e8f5e9;
  /* سبز بسیار روشن */
  --nav-normal-3: #fff3e0;
  /* نارنجی بسیار روشن */
  --nav-normal-4: #f3e5f5;
  /* بنفش بسیار روشن */

  /* رنگ‌های جدید برای دکمه‌های نوبار - حالت هاور */
  --nav-hover-1: #2196F3;
  /* آبی اصلی */
  --nav-hover-2: #4CAF50;
  /* سبز اصلی */
  --nav-hover-3: #FF9800;
  /* نارنجی اصلی */
  --nav-hover-4: #9C27B0;
  /* بنفش اصلی */

  /* رنگ فوتر - آبی تیره */
  --footer-bg: #1565C0;
  /* آبی تیره */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  height: 100%
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "pinar", sans-serif;
  margin: 0;
  /*padding-top: 110px;*/
  background-color: var(--light);
  background-image:
    radial-gradient(var(--light-bg) 1px, transparent 1px),
    radial-gradient(var(--light-bg) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  color: var(--dark);
  line-height: 1.65;
}

@media (max-width:576px) {
  body {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 100px;
    background-image: none;
  }
}

a {
  text-decoration: none;
  color: inherit
}

/* نوار روشن - با رادیال گرادیانت زیبا */
/* نوار روشن - با رادیال گرادیانت ساده و خوانا */
.navbar {
  /*position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;*/
  background: radial-gradient(circle at center, #f5f9ff 0%, #eaf7ea 35%, #f8f4ec 70%, #ffffff 100%);
  padding: 12px 20px;
  box-shadow: var(--shadow);
  border-bottom: var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-item {
  flex: 0 0 145px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 50px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 2px solid var(--primary);
  background: transparent;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--primary);
  z-index: -1;
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--card);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.25);
  border-color: var(--primary);
}

.nav-item:hover::before {
  width: 100%;
}

.nav-item:nth-child(2)::before {
  background: var(--secondary);
}

.nav-item:nth-child(2):hover {
  border-color: var(--secondary);
}

.nav-item:nth-child(3)::before {
  background: var(--accent);
}

.nav-item:nth-child(3):hover {
  border-color: var(--accent);
}

.nav-item:nth-child(4)::before {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.nav-item:nth-child(4):hover {
  border-color: var(--accent);
}

@media (max-width:576px) {
  .nav-item {
    flex: 0 0 48%;
    font-size: 0.88rem;
    padding: 9px 8px;
  }
}

/* عنوان - با شدت کمتر */
.title-box {
  max-width: 1100px;
  margin: 2rem auto 1.5rem;
  padding: 2.5rem 1.8rem;
  border-radius: var(--radius-lg);
  background: var(--primary);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--card);
  position: relative;
  overflow: hidden;
  border: none;
}

.title-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.65) 0%, rgba(25, 118, 210, 0.75) 100%);
  z-index: 0;
}

.title-box h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
  color: var(--card);
  opacity: 0;
  transform: translateY(20px);
  animation: titleFadeIn 0.6s ease-out forwards;
  animation-delay: 0.1s;
}

.title-box p {
  font-size: 1.3rem;
  font-weight: 400;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  margin-top: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  animation: titleFadeIn 0.6s ease-out forwards;
  animation-delay: 0.4s;
}

@keyframes titleFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* سکشن‌ها */
.section {
  max-width: 1100px;
  margin: 1.8rem auto;
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  border: var(--border);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: var(--primary);
}

.section h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.3rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  position: relative;
}

/* توضیحات */
.desc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-top: 10px;
}

.desc-col {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: var(--light-bg);
  border: var(--border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.desc-col::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(227, 242, 253, 0.3) 0%, rgba(255, 255, 255, 0.8) 100%);
  z-index: -1;
  border-radius: var(--radius-md);
}

.desc-col p {
  font-size: 0.98rem;
  line-height: 2;
  margin-bottom: 1rem;
  color: var(--darker);
}

.desc-img {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 1rem 0 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.desc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

@media (max-width:768px) {
  .desc-grid {
    grid-template-columns: 1fr;
  }

  .desc-img {
    height: 220px;
  }
}

/* سوایپر */
.swiper {
  max-width: 950px;
  margin: 0 auto;
  padding: 10px 0 25px;
}

.swiper-slide {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  transform: translateZ(0) !important;
  position: relative !important;
}

.slide-box {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--light-bg);
  border: var(--border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slide-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.slide-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

/* دکمه پخش روی اسلاید - با استفاده از transform */
.play-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.4) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.bi-play-circle-fill::before {
  transform: translateY(5px);
}

.slide-box[data-video]::after {
  content: '▶️';
  position: absolute;
  bottom: 15px;
  left: 15px;
  font-size: 1.8rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 3;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.slide-box:hover .play-overlay {
  opacity: 1;
}

/* پلی‌بتن با transform برای مرکز دقیق */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
  border: 4px solid var(--primary);
  transform: translate(-50%, -50%);
  cursor: pointer;
  overflow: hidden;
}

.play-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.play-button:hover::before {
  opacity: 0.15;
}

/* آیکون با استفاده از transform */
.play-button i {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 2.8rem;
  color: var(--primary);
  transform: translate(-50%, -50%);
}

.video-label {
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 20px;
  right: 50%;
  transform: translateX(50%);
}

.video-label i {
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.slide-box:hover .play-button {
  transform: translate(-50%, -50%) scale(1.12) rotate(5deg);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.4);
}

.slide-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(33, 150, 243, 0.15) 0%, transparent 70%);
  z-index: 1;
}

.swiper-slide p {
  margin-top: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-dark);
  text-align: center;
  max-width: 90%;
}

@media (max-width:576px) {
  .slide-box {
    height: 280px;
  }

  .swiper-slide p {
    font-size: 1.05rem;
    max-width: 95%;
  }

  .play-button {
    width: 70px;
    height: 70px;
  }

  .play-button i {
    font-size: 2.2rem;
  }

  .video-label {
    font-size: 0.85rem;
    padding: 5px 14px;
  }

  .slide-box[data-video]::after {
    font-size: 1.5rem;
    bottom: 12px;
    left: 12px;
  }
}

/* کنترل‌های سوایپر */
.swiper-button-prev,
.swiper-button-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  transition: var(--transition);
  color: var(--primary) !important;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--secondary);
  transform: scale(1.08);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px !important;
  font-weight: 700;
  color: var(--primary) !important;
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
  color: var(--card) !important;
}

/* حذف پجینیشن */
.swiper-pagination {
  display: none !important;
}

/* تماس */
.contact-box {
  max-width: 1100px;
  margin: 2.2rem auto;
  padding: 2rem 1.8rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.8rem;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  z-index: 1;
}

.contact-items {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--primary);
  min-width: 90px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
}

.contact-item:hover {
  transform: translateY(-3px);
  color: var(--secondary-dark);
}

.contact-item i {
  font-size: 2.5rem;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 0.5rem;
  transition: var(--transition);
  border: 1px solid rgba(41, 182, 246, 0.2);
}

.contact-item:hover i {
  background: var(--secondary);
  color: var(--card);
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
  border-color: var(--secondary);
}

.contact-item span {
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 4px;
  color: var(--dark);
}

.contact-buttons {
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  z-index: 1;
  justify-content: center;
}

@media (max-width:768px) {
  .contact-box {
    flex-direction: column;
    text-align: center;
  }

  .contact-items {
    justify-content: center;
    width: 100%;
  }

  .contact-buttons {
    min-width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

.btn {
  padding: 14px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--card);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: block;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: -1;
  transition: var(--transition);
}

.btn:hover::after {
  opacity: 0;
}

.btn-call {
  background: var(--primary);
}

.btn-call::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--primary-dark);
  z-index: -1;
  transition: var(--transition);
}

.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.25);
}

.btn-call:hover::before {
  width: 100%;
}

.btn-app {
  background: var(--secondary);
}

.btn-app::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--secondary-dark);
  z-index: -1;
  transition: var(--transition);
}

.btn-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
}

.btn-app:hover::before {
  width: 100%;
}

/* فوتر - آبی تیره */
.footer {
  max-width: 1100px;
  margin: 1.5rem auto 1.2rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--footer-bg);
  color: var(--card);
  text-align: center;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  position: relative;
  overflow: hidden;
  border: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(21, 101, 192, 0.95) 0%, rgba(33, 150, 243, 0.88) 100%);
  z-index: 0;
}

.footer p {
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.footer strong {
  color: var(--accent);
  font-weight: 800;
}

/* کلاس‌های اضافی */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 1rem;
}

/* مودال ویدیو */
.video-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.video-modal.active .video-modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: -45px;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  z-index: 10;
}

.close-modal:hover {
  background: var(--primary);
  color: var(--card);
  transform: scale(1.1) rotate(90deg);
}

.video-modal video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 85vh;
}

@media (max-width:768px) {
  .video-modal-content {
    max-width: 95%;
    max-height: 80vh;
  }

  .close-modal {
    top: -40px;
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }
}

/* انیمیشن برای بارگذاری */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section,
.title-box,
.contact-box,
.footer {
  animation: fadeIn 0.6s ease-out forwards;
}

.section:nth-child(2) {
  animation-delay: 0.1s;
}

.section:nth-child(3) {
  animation-delay: 0.2s;
}

.section:nth-child(4) {
  animation-delay: 0.3s;
}

.section:nth-child(5) {
  animation-delay: 0.4s;
}

.section:nth-child(6) {
  animation-delay: 0.5s;
}

.contact-box {
  animation-delay: 0.6s;
}

.footer {
  animation-delay: 0.7s;
}

/* هایلایت موبایل */
@media (max-width:768px) {
  .mobile-hint {
    background: rgba(33, 150, 243, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-out;
  }

  .mobile-hint i {
    margin-left: 8px;
    font-size: 1.2rem;
  }
}

/* سکشن دانلود اپلیکیشن */
.download-section {
  max-width: 1100px;
  margin: 1.8rem auto;
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  border: var(--border);
  position: relative;
  overflow: hidden;
}

.download-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: var(--primary);
}

.download-section h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  position: relative;
}

.download-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  padding: 16px 30px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--card);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.download-btn::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: -1;
  transition: var(--transition);
}

.download-btn:hover::after {
  opacity: 0;
}

.download-btn-android {
  background: var(--primary);
}

.download-btn-android::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--primary-dark);
  z-index: -1;
  transition: var(--transition);
}

.download-btn-android:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.25);
}

.download-btn-android:hover::before {
  width: 100%;
}

.download-btn-ios {
  background: var(--secondary);
}

.download-btn-ios::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--secondary-dark);
  z-index: -1;
  transition: var(--transition);
}

.download-btn-ios:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
}

.download-btn-ios:hover::before {
  width: 100%;
}

@media (max-width:576px) {
  .download-buttons {
    flex-direction: column;
  }

  .download-btn {
    width: 100%;
    min-width: auto;
  }
}

/* مودال تماس */
.call-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(33, 150, 243, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.call-modal.active {
  opacity: 1;
  visibility: visible;
}

.call-modal-content {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-modal);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.call-modal.active .call-modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.call-modal h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.8rem;
  position: relative;
}

.call-modal h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.call-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.call-btn {
  padding: 16px 20px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--card);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: block;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.call-btn i {
  font-size: 1.3rem;
}

.call-btn::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: -1;
  transition: var(--transition);
}

.call-btn:hover::after {
  opacity: 0;
}

.call-btn-service {
  background: var(--primary);
}

.call-btn-service::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--primary-dark);
  z-index: -1;
  transition: var(--transition);
}

.call-btn-service:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.25);
}

.call-btn-service:hover::before {
  width: 100%;
}

.call-btn-class {
  background: var(--secondary);
}

.call-btn-class::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--secondary-dark);
  z-index: -1;
  transition: var(--transition);
}

.call-btn-class:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
}

.call-btn-class:hover::before {
  width: 100%;
}

.call-btn-shop {
  background: var(--accent);
}

.call-btn-shop::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: var(--accent-dark);
  z-index: -1;
  transition: var(--transition);
}

.call-btn-shop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.3);
}

.call-btn-shop:hover::before {
  width: 100%;
}

.close-call-modal {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  color: var(--primary);
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  z-index: 10;
}

.close-call-modal:hover {
  background: var(--primary);
  color: var(--card);
  transform: rotate(90deg);
}

@media (max-width:576px) {
  .call-modal-content {
    padding: 1.8rem;
  }

  .call-modal h3 {
    font-size: 1.4rem;
  }

  .call-btn {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .close-call-modal {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }
}

@media screen and (max-width:398px) {
  .call-btn:nth-child(2) {
    font-size: 0.75rem;
  }
}

/* ========================================
   کلاس‌های بک‌گراند برای سکشن‌ها
   (با روش ساده‌تر - بدون SVG)
   ======================================== */

/* کلاس بک‌گراند برای سکشن‌ها - با گرادیانت و دایره‌های محو */
.section-bg {
  position: relative;
  overflow: hidden;
}

.section-bg::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(33, 150, 243, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(255, 152, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(33, 150, 243, 0.04) 0%, transparent 35%),
    radial-gradient(circle at 90% 60%, rgba(76, 175, 80, 0.04) 0%, transparent 40%);
  z-index: 0;
}

.section-bg>* {
  position: relative;
  z-index: 1;
}

.up-arrow{
    position: fixed;
    width: 68px;
    height: 68px;
    top: 26px;
    right: 2px;
    background: transparent;
    border: none;
    scale: 0.75;
    cursor: pointer;
    z-index: 2;
}

@media screen and (min-width:992px) {
    .up-arrow{
        right: 20px;
        scale: 1;
    }
}

.up-arrow i {
    font-size: 2.3rem;
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(41, 182, 246, 0.2);
    color: var(--primary-dark);
    transition: var(--transition);
}

.up-arrow i:hover,
.up-arrow i:focus {
    background: var(--secondary);
    color: var(--card);
    transition: var(--transition);
}