@font-face {
  font-family: 'hesab';
  src: url(../fonts/W_hesab.ttf);
}

@font-face {
  font-family: 'Pinar';
  src: url('../fonts/Pinar-ExtraBold.woff2') format('woff2'),
    url('../fonts/Pinar-ExtraBold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pinar';
  src: url('../fonst/Pinar-Bold.woff2') format('woff2'),
    url('../fonts/Pinar-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pinar';
  src: url('../fonts/Pinar-Light.woff2') format('woff2'),
    url('../fonts/Pinar-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pinar';
  src: url('../fonts/Pinar-Medium.woff2') format('woff2'),
    url('../fonts/Pinar-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pinar';
  src: url('../fonts/Pinar-Regular.woff2') format('woff2'),
    url('../fonts/Pinar-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pinar';
  src: url('../fonts/Pinar-SemiBold.woff2') format('woff2'),
    url('../fonts/Pinar-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}



body {
  background: #0f172a;
  color: white;
  margin: 0;
}

/* ===== HEADER ===== */

.header {
  font-family: 'Pinar';
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 70px;
  border-radius: 20px;
  padding: 0 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);

  z-index: 1000;
}

.logo {
  font-weight: bold;
  font-size: 18px;
}

/* ===== NAV ===== */

.nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  font-size: 15px;
  padding: 5px 0;
  transition: 0.3s;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* خط زیر از راست */
.nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0%;
  height: 2px;
  background: #00e0ff;
  transition: width 0.9s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  color: #00e0ff;
}

.nav a.active {
  color: #00e0ff;
}

.nav a.active::after {
  width: 100%;
}

/* ===== HERO ===== */

.hero {
  height: 100vh;
  /* 
     ترکیب بک‌گراندها:
     1. گرادیان فید از پایین به بالا (شفاف به سیاه) - این همون چیزیه که می‌خوایم!
     2. گرادیان تیرگی کلی (کمی سیاه)
     3. عکس اصلی
  */
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), #0f172a),
    /* تیرگی کلی */
    linear-gradient(to bottom,
      /* جهت گرادیان فید را به سمت بالا (از پایین شروع میشه) */
      rgba(0, 0, 0, 0.0) 80%,
      /* شفاف در بالا */
      rgba(0, 0, 0, 0.8) 100%
      /* تیره در پایین، هماهنگ با پس‌زمینه */
    ),
    url("../img/00.jpg");
  /* عکس اصلی */

  background-size: cover, cover, cover;
  /* هر سه لایه کاور باشن */
  background-position: center, center, center;
  /* هر سه در مرکز */
  background-repeat: no-repeat, no-repeat, no-repeat;
  /* تکرار نشوند */

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;

  /* padding-bottom برای ایجاد فضا از انتهای تصویر تا محتوای بعد از هدر */
  padding-bottom: 150px;
  /* برابر با ارتفاع گرادیان فید */
}

.hero-content h1 {
  font-weight: normal;
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 20px;
  font-family: 'hesab';
}



.btn {
  position: absolute;
  bottom: 160px;
  font-family: 'hesab';
  background: #ffffff;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 25px;
  text-decoration: none;
  color: black;
  transition: all 0.9s ease;
}

.btn:hover {
  background: black;
  color: white;
  border: 1px solid white;
  transform: scale(1.2);
}

/* ===== FOOTER ===== */

.footer {
  font-family: 'Pinar';
  font-size: 15px;
  font-weight: small;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.048);
  backdrop-filter: blur(20px);
  z-index: 10;
}

.loader-wrapper {
  position: fixed;
  inset: 0;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-wrapper.hide {
  opacity: 0;
  visibility: hidden;
}

.loader {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* لوگو وسط */
.loader img {
  border-radius: 5px;
  width: 60px;
  z-index: 2;
}

/* حلقه دور عکس */
.spinner {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #38bdf8;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

a {
  text-decoration: none;
  color: white;
}

.mobile-menu {
  display: none;
}

.logo-mobile {
  display: none;
}

.footer-mobile {
  display: none;
}




/* === PREVIEW SECTION === */
.simple-preview {
  font-family: 'Pinar';
  max-width: 900px;
  margin: 60px auto 100px;
  /* انتهای بالا و پایین اضافه‌تر برای فاصله از فوتر ثابت */
  padding: 0 20px;
  position: relative;
  z-index: 1;
  /* مطمئن برای اینکه زیر فوتر نره */
}

/* آخرین بخش کمی بیاد بالاتر */
.simple-preview .preview-block:last-child {
  margin-bottom: 120px;
  /* محتوای آخر بالاتر بیاد تا زیر فوتر نره */
  padding-bottom: 70px;
}

/* هر بلاک جدا */
.preview-block {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* تیترها */
.preview-block h1,
.preview-block h2,
.preview-block h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* پاراگراف‌ها */
.preview-block p {
  color: #ccc;
  font-size: 0.98rem;
  line-height: 1.9;
  text-align: justify;
  margin-bottom: 22px;
}

/* تصویر */
.image-block {
  margin: 20px 0;
  text-align: center;
}

.image-block img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* === دکمه‌های "مشاهده بیشتر" === */
.btn-wrapper {
  display: flex;
  justify-content: center;
  /* افقی وسط */
  align-items: center;
  /* عمودی وسط (اگر ارتفاع داشت) */
  margin-top: 10px;
}

/* خود دکمه */
.simple-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  background: linear-gradient(135deg, #6a11cb, #8e2de2);
  color: #fff;
  padding: 10px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.98rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(110, 50, 200, 0.3);

  /* اینا رو حتماً پاک کن اگر توی کدت بود: */
  /* position: relative; */
  /* left: 50%; */
  /* transform: translateX(-50%); */
}

/* حالت hover دکمه */
.simple-btn:hover {
  background: linear-gradient(135deg, #8e2de2, #6a11cb);
  box-shadow: 0 0 20px rgba(142, 45, 226, 0.6);
  transform: scale(1.05);
  /* فقط اسکیل، بدون جابه‌جایی */
}

/* افکت فلش هنگام hover */
.simple-btn::after {
  content: " →";
  transition: all 0.2s ease;
}

.simple-btn:hover::after {
  margin-right: 5px;
}






@media (max-width: 1000px) {

  /* تیتر بره سمت راست کامل */


  .header {
    padding: 0 20px;

  }

  .logo {
    display: none;
  }

  .logo-mobile {
    display: flex;
    font-weight: bold;
    font-size: 20px;
    order: 1;
  }

  .footer {
    display: none;
  }

  .footer-mobile {
    font-family: 'Pinar';
    font-size: 15px;
    font-weight: small;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.048);
    backdrop-filter: blur(20px);
    z-index: 10;
  }

  .menu-toggle {
    display: block;
    order: 2;
  }

  .nav {
    display: none;
  }

  .mobile-menu {
    font-family: 'Pinar';
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    overflow-y: auto;
    /* این مهمه */

    background: #0b1a35;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transform: translateX(100%);
    transition: 0.4s ease;
    z-index: 99999;
  }

  .mobile-menu.active {
    transform: translateX(0);
    color: #00e0ff;
  }

  /* آیتم‌ها */
  .menu-items {
    width: 80%;
    max-width: 400px;
  }

  .menu-items a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    /* 👈 فاصله آیکن و متن */

    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;

    text-decoration: none;
    color: white;
    font-size: 18px;

    transition: 0.3s;
  }



  /* دکمه بستن */
  .close-menu {
    gap: 8px;
    font-family: 'Pinar';
    margin-top: 40px;
    padding: 12px 30px;
    background: #38bdf8;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
  }

  .simple-preview {
    margin: 40px auto 100px;
    padding: 0 16px;
  }

  .preview-block {
    margin-bottom: 20px;
  }

  .preview-block h1,
  .preview-block h2,
  .preview-block h3 {
    font-size: 1.25rem;
  }

  .preview-block p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .simple-btn {
    font-size: 0.9rem;
    padding: 8px 24px;
    border-radius: 25px;
  }


}