/* ریست */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Vazirmatn", sans-serif;
}

body {
  background: linear-gradient(180deg, #f5f5ff, #ffffff);
  direction: rtl;
  color: #222;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}


.logo {
  font-size: 22px;
  font-weight: bold;
  color: #6a0dad;
}

.logo span {
  color: #000;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  justify-content: center;
  flex: 1;
}


.nav-links li a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #6a0dad;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn.purple {
  background: #6a0dad;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn.purple:hover {
  background: #5800a6;
}

.cart-icon {
  font-size: 20px;
}

/* همبرگری */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #6a0dad;
}

/* Hero */
.hero {
  padding: 60px 40px;
  background: #f7f2ff;
  border-radius: 20px;
  margin: 20px auto;
  max-width: 1200px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-text h1 {
  font-size: 36px;
  background: linear-gradient(to right, #ff7a18, #af1fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

.hero-text h2 {
  font-size: 24px;
  color: #555;
  margin-bottom: 10px;
}

.hero-text .tagline {
  background-color: #eae6ff;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: #6a0dad;
}

.hero-image {
  max-width: 460px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 60px 40px;
  max-width: 1200px;
  margin: auto;
}

.feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(106, 13, 173, 0.2);
}

.feature-card .icon {
  font-size: 36px;
  color: #6a0dad;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: #666;
}

/* Footer */
.footer {
  margin-top: 50px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #ccc;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 15px 15px;
  animation: fadeIn 1s ease-in-out;
}

.custom-footer {
  background: linear-gradient(90deg, #1b0033, #3d0066);
  color: #fff;
  padding: 25px 15px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  margin-top: 50px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1s ease-in;
  border-radius: 0; /* گوشه‌ها کاملاً صاف */
  width: 100vw;      /* اطمینان از پوشش کل عرض صفحه */
}

.custom-footer a {
  color: #ffbbff;
  font-weight: bold;
  text-decoration: none;
}

.custom-footer a:hover {
  color: #fff;
  text-shadow: 0 0 8px #ff00ff;
}

.logo-badge {
  display: flex;
  align-items: center;
  margin-left: 20px;
  
}

.logo-badge img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}


.logo-badge img:hover {
  transform: scale(1.08);
}


.package-card a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
  transition: color 0.3s ease;
}

.package-card a:hover h3 {
  color: #8e2de2;
}


.package-slider-section {
  padding: 80px 40px;
  max-width: 100%;
  margin: auto;
  background: linear-gradient(145deg, #f7f2ff, #e2d6f9);
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(106, 13, 173, 0.15);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.slider-heading {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: #6a0dad;
}

.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-container {
  overflow: visible;
  width: 100%;
  max-width: 960px;
  direction: ltr;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  overflow: visible; /* اضافه کن */
  position: relative; /* برای ایمنی */
}

.package-card {
  flex: 0 0 300px;
  margin: 0 10px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.3s;

}

.package-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(106, 13, 173, 0.4);
}

.package-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
}

.package-card h3 {
  margin-top: 1rem;
  font-size: 1rem;
  color: #333;

}


.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #6a0dad;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.slider-btn:hover {
  background: #8e2de2;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}



@media (max-width: 768px) {
  .slider-btn {
    display: none;
  }

  .package-card {
    flex: 0 0 80%;
  }
}


/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    
  }

.features {
  padding-top: 20px;
  padding-bottom: 40px;
  margin-top: -10px;
}

  .logo {
    order: 2;
  }

  .menu-toggle {
    order: 1;
    display: block;
  }

  .nav-actions {
    display: none;
  }

  .nav-links {
    order: 3;
    width: 100%;
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    margin-top: 20px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .logo-badge {
    display: none;
  }
}

@media (max-width: 992px) {
  .package-card {
    flex: 0 0 45%;
    margin: 0 8px;
  }
}

@media (max-width: 600px) {
  .package-card {
    flex: 0 0 80%;
    margin: 0 5px;
  }
  
}

@media (max-width: 600px) {
  .slider-container {
    overflow: hidden;       /* کارت‌ها بیرون نزنن */
    width: 100%;            /* تمام عرض والد */
    max-width: 100vw;       /* محدود به عرض ویوپورت */
    padding: 0 10px;        /* کمی فاصله از چپ و راست */
    box-sizing: border-box; /* محاسبه درست padding */
  }
}

@media (max-width: 992px) {
  .package-card {
    flex: 0 0 45%;
    margin: 0 8px;
  }
}

@media (max-width: 600px) {
  .package-card {
    flex: 0 0 80%;
    margin: 0 5px;
  }
}

@media (max-width: 600px) {
  .slider-btn {
    display: flex;               /* نمایش دکمه‌ها */
    width: 36px;                 /* کوچکتر */
    height: 36px;
    font-size: 20px;             /* سایز آیکون کوچکتر */
    top: 45%;                   /* کمی پایین‌تر از وسط */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
  }
  
  .slider-btn.prev {
    left: 5px;                  /* کمی فاصله از چپ */
  }
  
  .slider-btn.next {
    right: 5px;                 /* کمی فاصله از راست */
  }

  .package-card {
    flex: 0 0 80%;              /* اندازه کارت */
    margin: 0 5px;
  }

  .slider-container {
    overflow: hidden;           /* جلوگیری از بیرون زدگی */
    width: 100%;
    max-width: 100vw;
    padding: 0 10px;
    box-sizing: border-box;
  }
}
