/* ======= EXISTING CSS YOUR CODE ======= */
/* من هم CSS شما را حفظ کردم و بخش جدید اضافه کردم */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  color: #f1f5f9;
  background: radial-gradient(circle at top, #0b2143, #020617 50%, #000);
}

/* CURSOR GLOW */
.cursor-glow {
  position: fixed;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  background: rgba(3, 15, 35, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
}

header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

header img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

/* NAV */
nav {
  display: flex;
  gap: 22px;
}

nav a {
  color: #dce3ea;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

nav a:hover {
  color: #fff;
}
nav a.active {
  color: #fff;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: 0.3s;
}
nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ====== HERO & BODY & FOOTER KEEP SAME ====== */
.about-hero {
  text-align: center;
  padding: 80px 20px 30px;
}

.about-hero h1 {
  font-size: 46px;
  font-weight: 800;
}

.about-hero p {
  margin-top: 6px;
  font-size: 18px;
  color: #cbd5f5;
}

.icon {
  font-size: 50px;
  color: #60a5fa;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.8));
}

.hero-line {
  width: 260px;
  height: 2px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, #94a3b8, transparent);
  box-shadow: 0 0 10px #94a3b8;
}

.about-body {
  display: flex;
  justify-content: center;
  padding: 40px 20px 80px;
}

.about-card {
  max-width: 850px;
  background: rgba(15, 23, 42, 0.7);
  padding: 40px 45px;
  border-radius: 28px;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
  line-height: 1.75;
  font-size: 16px;
  color: #e2e8f0;
}

.about-card b {
  color: #93c5fd;
}

.divider {
  margin: 28px 0;
  height: 1px;
  background: rgba(148, 163, 184, 0.3);
}

.about-card ul {
  margin-top: 10px;
  padding-left: 22px;
}

.final-line {
  margin-top: 30px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: #cbd5ff;
}

footer {
  text-align: center;
  padding: 25px 0;
  background: #020617;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

/* ====== MOBILE MENU ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 4px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hide desktop nav in mobile */
@media screen and (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: fixed; /* تغییر به fixed برای تمام صفحه */
    top: 0;
    right: 0;
    width: 100%; /* عرض کل صفحه */
    height: 100vh; /* ارتفاع کل صفحه */
    background: rgba(3, 15, 35, 0.95);
    padding: 60px 20px 20px; /* فاصله بالا برای هدر */
    z-index: 999; /* روی تمام عناصر */
    overflow-y: auto; /* اگر منو طولانی شد قابل اسکرول */
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 15px 20px;
    font-size: 20px;
  }

  .menu-toggle {
    display: flex;
  }
}

/* Optional: animate toggle to X when open */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 4px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

@media screen and (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; /* زیر هدر */
    right: 0;
    width: 100%; /* عرض کل صفحه */
    background: rgba(3, 15, 35, 0.95);
    padding: 0; /* فقط padding لینک‌ها کافیست */
    z-index: 999;
    border-radius: 0; /* گوشه‌ها صاف */
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 15px 20px; /* فاصله بین لینک‌ها */
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* جداکننده */
  }

  nav a:last-child {
    border-bottom: none; /* لینک آخر بدون خط */
  }

  .menu-toggle {
    display: flex;
  }
}

/* انیمیشن سه خطی به X */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
