@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');

:root {
  --card-bg: #31354e;
  --bar-bg: #7b63d4;
  --dot-bg: #e056b1;
  --timeline-bg: #C0C0C0;
  --snow: #494646; /* کمی روشن‌تر برای خوانایی بهتر */
  --light-grey: #a0a4bc;
  --hr-line: #393d56;
}

body {
  margin: 0;
  padding: 20px 10px; /* ایجاد فاصله در موبایل */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('/static/cover/—Pngtree—bubble growing light background blue_1597301.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* ثابت نگه داشتن پس‌زمینه هنگام اسکرول */
  font-family: 'Lato', sans-serif;
  direction: rtl; /* تنظیم جهت متن برای زبان فارسی */
}

/* کارت اصلی - ریسپانسیو شده */
.card {
  position: relative; /* تغییر از absolute به relative برای ریسپانسیو شدن */
  width: 100%;
  max-width: 600px; /* حداکثر عرض در دسکتاپ */
  min-height: 500px; /* حداقل ارتفاع */
  height: auto; /* اجازه به کارت برای بزرگ شدن بر اساس محتوا */
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  padding-bottom: 20px;
  overflow: hidden;
}

.icons-header {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding: 15px 0;
}

.img-wrapper {
  display: flex;
  margin: 20px auto;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--card-bg);
  box-shadow: 10px 10px 20px #252736, -10px -10px 20px #31354a;
}

#profile {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform .4s ease;
}

#profile:hover {
  transform: scale(1.05);
  filter: saturate(1.5);
}

.about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 25px; /* فاصله متن از لبه‌ها */
  text-align: center;
}

strong {
  font-size: 1.2rem;
  color: #000000;
}

p {
  color: var(--snow);
  font-size: 0.95rem;
  line-height: 1.8; /* فاصله بین خطوط برای خوانایی بهتر */
  max-width: 100%;
  margin-bottom: 20px;
}

/* دکمه بازگشت */
.button-32 {
  width: 80px;
  height: 40px;
  cursor: pointer;
  background-color: #111;
  color: #fff;
  border-radius: 10px;
  border: none;
  font-weight: bold;
}

/* دکمه پایین */
.more {
  border: none;
  cursor: pointer;
  height: 45px;
  width: 220px;
  color: white;
  border-radius: 25px;
  background: linear-gradient(90deg, #020024 0%, #090979 0%, #00d4ff 100%);
  font-weight: 600;
  font-size: 1rem;
  transition: 0.3s;
}

.more:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

/* --- تنظیمات مخصوص موبایل و صفحات کوچک --- */
@media (max-width: 500px) {
  .card {
    border-radius: 15px;
  }

  .img-wrapper {
    width: 150px;
    height: 150px;
  }

  #profile {
    width: 135px;
    height: 135px;
  }

  p {
    font-size: 0.85rem;
    padding: 0;
  }

  .icons-header img {
    width: 50px !important; /* کوچک کردن آیکون‌ها در موبایل */
    height: auto !important;
  }
}

/* --- تنظیمات برای مانیتورهای بزرگ (ارتفاع زیاد) --- */
@media (min-height: 900px) {
  .card {
    max-width: 700px; /* در مانیتور بزرگ کارت کمی عریض‌تر شود */
  }

  p {
    font-size: 1.1rem; /* متن در مانیتور بزرگ کمی درشت‌تر شود */
  }
}
