:root {
  /* پالت رنگی لایت مود */
  --background-color: #f8f9fa;
  --text-color: #212529;
  --section-two-bg: #e9ecef;
  --links-bg: #4361ee;
  --social-icon-bg: #e9ecef;
  --border-color: #ced4da;
  --brand-color: #3a0ca3;
  --scrollbar-thumb: linear-gradient(45deg, #7209b7, #4361ee, #4cc9f0);
  --scrollbar-thumb-hover: linear-gradient(45deg, #b5179e, #4895ef);
  --link-hover: #4895ef;
  --text-muted: #6c757d;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* پالت رنگی دارک مود */
    --background-color: #121212;
    --text-color: #e9ecef;
    --section-two-bg: #1e1e1e;
    --links-bg: #4895ef;
    --social-icon-bg: #2d2d2d;
    --border-color: #333;
    --brand-color: #b5179e;
    --scrollbar-thumb: linear-gradient(45deg, #b5179e, #f72585, #7209b7);
    --scrollbar-thumb-hover: linear-gradient(45deg, #4361ee, #4cc9f0);
    --link-hover: #4cc9f0;
    --text-muted: #adb5bd;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  direction: rtl;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  padding-bottom: 45vh;
}

/* استایل‌های پروفایل */
.avatar_profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  text-align: center;
}

.avatar-container {
  display: flex;
  justify-content: center;
  padding: 5px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    #f72585,
    #b5179e,
    #7209b7,
    #560bad,
    #480ca8
  );
  background-size: 200% 200%;
  animation: gradientBorder 6s ease infinite;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.avatar_image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--background-color);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar_image:hover {
  transform: scale(1.05) rotate(5deg);
}

.brand-info {
  margin-top: 15px;
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(45deg, #3a0ca3, #4361ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  letter-spacing: -0.5px;
}

.brand-slogan {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 80%;
  margin: 0 auto;
}

/* استایل‌های شبکه‌های اجتماعی */
.social_media {
  margin-top: 25px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.icon_sociol_backgroud {
  background-color: var(--social-icon-bg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
  box-shadow: var(--card-shadow);
}

.icon_sociol_backgroud:hover {
  background-color: var(--brand-color);
  transform: translateY(-4px) rotate(5deg);
  box-shadow: 0 8px 15px var(--shadow-color);
}

.icon_sociol {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.icon_sociol_backgroud:hover .icon_sociol {
  transform: scale(1.1);
}

/* استایل‌های بخش فوتر */
.section_two {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-height: 50vh;
  overflow-y: auto;
  background-color: var(--section-two-bg);
  border-radius: 30px 30px 0 0;
  padding: 25px 15px;
  z-index: 1000;
  box-shadow: 0 -10px 30px var(--shadow-color);
  animation: smoothAppear 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  
  /* اسکرول بار سفارشی */
  scrollbar-width: thin;
  scrollbar-color: var(--links-bg) var(--section-two-bg);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.section_two::-webkit-scrollbar {
  width: 8px;
}

.section_two::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  margin: 15px 0;
}

.section_two::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
  border: 2px solid var(--section-two-bg);
  background-size: 200% 200%;
  animation: gradientScrollThumb 6s ease infinite;
}

.section_two::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

.link-group {
  margin-top: 22px;
}

.group-title {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 18px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.Links {
  background-color: var(--links-bg);
  color: white;
  display: flex;
  align-items: center;
  padding: 14px 20px;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  margin-bottom: 2px;
  box-shadow: var(--card-shadow);
}

.Links:hover {
  background-color: var(--link-hover);
  transform: translateX(-5px) scale(1.02);
  box-shadow: 0 6px 12px var(--shadow-color);
}

.link-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon_Links {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.Links:hover .icon_Links {
  transform: scale(1.1) rotate(-5deg);
}

.icone_right {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.Links:hover .icone_right {
  transform: translateX(-3px);
}

.border_bottom {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.top-rounded {
  border-radius: 12px 12px 0 0 !important;
}

.bottom-rounded {
  border-radius: 0 0 12px 12px !important;
}

.rounded {
  border-radius: 12px !important;
}
.mesh-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5; /* افزایش شفافیت */
  pointer-events: none;
}

.section_two {
  background-color: rgba(233, 236, 239, 0.8) !important; /* کاهش شفافیت پس‌زمینه */
  backdrop-filter: blur(5px) !important; /* کاهش بلور برای وضوح بیشتر */
}

@media (prefers-color-scheme: dark) {
  .mesh-background {
    opacity: 0.7 !important; /* شفافیت بیشتر در دارک مود */
  }
  
  .section_two {
    background-color: rgba(30, 30, 30, 0.8) !important;
  }
}


















/* انیمیشن‌ها */
@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradientScrollThumb {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes smoothAppear {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* رسپانسیو برای دسکتاپ */
@media (min-width: 768px) {
  .section_two {
    position: static;
    max-height: none;
    border-radius: 20px;
    margin: 40px auto;
    width: 90%;
    max-width: 500px;
    animation: none;
    box-shadow: var(--card-shadow);
  }
  
  .container {
    padding-bottom: 0;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 40px;
  }
  
  .avatar_image {
    width: 150px;
    height: 150px;
  }
  
  .brand-name {
    font-size: 1.8rem;
  }
  
  .brand-slogan {
    font-size: 1.05rem;
  }
  
  .Links {
    padding: 16px 24px;
  }
}

/* بهبودهای تعاملی برای تاچ دیوایس‌ها */
@media (hover: none) {
  .Links:active {
    background-color: var(--link-hover);
    transform: translateX(-5px) scale(1.02);
  }
  
  .icon_sociol_backgroud:active {
    background-color: var(--brand-color);
    transform: translateY(-4px) rotate(5deg);
  }
}