/* استایل اصلی با رفع کامل مشکلات موبایل */

@font-face {
  font-family: 'IRANSansWeb';
  src: url('../../Fonts/IRANSansWeb.eot');
  src: url('../../Fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
       url('../../Fonts/IRANSansWeb.woff2') format('woff2'),
       url('../../Fonts/IRANSansWeb.woff') format('woff'),
       url('../../Fonts/IRANSansWeb.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANYekanXVF';
  src: url('../../Fonts/IRANYekanXVF.woff2') format('woff2'),
       url('../../Fonts/IRANYekanXVF.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.front-page-body {
  font-family: 'IRANSansWeb', 'IRANYekanXVF', sans-serif;
  background-color: #f2f0ec;
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(180,160,130,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(160,140,110,0.06) 0%, transparent 50%);
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  padding: 1.5rem;
  margin: 0;
}

.site-frame {
  width: 100%;
  max-width: 1300px;
  height: 92vh;
  max-height: 850px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 2.5rem;
  border: 1px solid rgba(210,200,180,0.35);
  box-shadow: 0 25px 60px rgba(0,0,0,0.04), 0 8px 20px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem 3rem;
  gap: 1.5rem;
}

/* هدر */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.lab-info {
  display: flex;
  flex-direction: column;
}

.lab-name-header {
  font-family: 'IRANYekanXVF', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.lab-location {
  font-size: 0.75rem;
  color: #888;
}

/* منو */
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #8a7a65;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  color: #3a2e20;
}

/* محتوای اصلی */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5rem;
  min-height: 0;
}

.text-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
}

.label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #a09080;
  font-weight: 500;
}

.name-title {
  font-family: 'IRANYekanXVF', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #1a1a1a;
}

.name-title .prefix {
  font-weight: 300;
  display: block;
  font-size: 0.55em;
  color: #9b8e7e;
  margin-bottom: 0.2rem;
}

.divider {
  width: 50px;
  height: 2.5px;
  background: #c4af96;
  border-radius: 2px;
  margin: 0.2rem 0;
}

.bio-text {
  font-size: 1rem;
  line-height: 2.3;
  color: #5c5c5c;
  max-width: 530px;
  text-align: justify;
}

.bio-text strong {
  color: #2b241c;
  font-weight: 700;
}

.book-block {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #fafaf8;
  border: 1px solid #e8e0d4;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  width: fit-content;
}

.book-emoji {
  font-size: 1.3rem;
  opacity: 0.8;
}

.book-content {
  font-size: 0.82rem;
  color: #5c5040;
  font-weight: 500;
}

.book-content strong {
  color: #1a1a1a;
}

/* تصویر */
.image-column {
  flex: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper {
  width: 340px;
  height: 340px;
  max-width: 32vw;
  max-height: 32vw;
}

.circle-bg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f7f5f1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(200,180,150,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* فوتر */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #888;
  flex-shrink: 0;
  border-top: 1px solid rgba(200,185,160,0.25);
  padding-top: 1.2rem;
  gap: 1rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-quote {
  font-style: italic;
  color: #6b5e4e;
  font-weight: 500;
}

.footer-phone {
  color: #5e4e3a;
  font-weight: 600;
  direction: ltr;
  background: rgba(200,180,150,0.12);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
}

/* ==================================
   نسخه موبایل - کاملاً بازنویسی شده
   ================================== */
@media (max-width: 768px) {
  body.front-page-body {
    padding: 0;
    background: #ffffff;
    background-image: none;
    margin: 0;
  }

  .site-frame {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
  }

  .container {
    padding: 1rem 1.2rem;
    gap: 0.8rem;
  }

  /* هدر موبایل - لوگو مخفی، فقط منو */
  .header {
    justify-content: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0ebe2;
  }

  .logo-group {
    display: none;
  }

  .nav-menu {
    gap: 1.2rem;
  }

  .nav-menu li a {
    font-size: 0.76rem;
  }

  /* محتوای اصلی - تصویر بالا، متن پایین */
  .main {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  /* تصویر اول میاد */
  .image-column {
    order: -1;
    flex: none;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .image-wrapper {
    width: 170px !important;
    height: 170px !important;
    max-width: 50vw !important;
    max-height: 50vw !important;
    min-width: 170px !important;
    min-height: 170px !important;
  }

  .circle-bg {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
  }

  .profile-photo {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
  }

  /* ستون متن */
  .text-column {
    align-items: center;
    gap: 0.8rem;
    flex: none;
  }

  .label {
    font-size: 0.73rem;
  }

  .name-title {
    font-size: 2rem;
    text-align: center;
  }

  .name-title .prefix {
    font-size: 0.6em;
  }

  .divider {
    margin: 0 auto;
  }

  .bio-text {
    font-size: 0.82rem;
    line-height: 2.1;
    max-width: 100%;
    padding: 0 0.3rem;
    text-align: justify;
  }

  .book-block {
    margin: 0 auto;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .book-emoji {
    font-size: 1.1rem;
  }

  .book-content {
    font-size: 0.76rem;
  }

  /* فوتر */
  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding-top: 0.8rem;
    align-items: center;
  }

  .footer-right {
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
  }

  .footer-quote {
    font-size: 0.73rem;
    padding-right: 0;
  }

  .footer-phone {
    font-size: 0.76rem;
  }
}

/* موبایل‌های بسیار کوچک */
@media (max-width: 380px) {
  .container {
    padding: 0.8rem;
  }

  .image-wrapper {
    width: 140px !important;
    height: 140px !important;
    min-width: 140px !important;
    min-height: 140px !important;
  }

  .name-title {
    font-size: 1.7rem;
  }

  .nav-menu {
    gap: 1rem;
  }
}