@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  --bg-1: #0f172a;
  --bg-2: #1e1b4b;
  --card: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, .30), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(168, 85, 247, .28), transparent 30%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background: #6366f1;
  top: -100px;
  left: -100px;
}

body::after {
  background: #a855f7;
  bottom: -120px;
  right: -100px;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  padding: 40px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card {
  width: min(100%, 500px);
  padding: 34px 24px 22px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, .38),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.profile-image {
  width: 116px;
  height: 116px;
  padding: 4px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 12px 35px rgba(139, 92, 246, .35);
}

.profile-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: #111827;
}

h1 {
  text-align: center;
  font-size: clamp(23px, 5vw, 30px);
  font-weight: 800;
  margin-bottom: 8px;
}

.bio {
  max-width: 390px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  text-align: center;
}

/* دکمه تماس */
.contact-button,
.social-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 70px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  background: rgba(255, 255, 255, .075);
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
  overflow: hidden;
}

.contact-button::before,
.social-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.07), transparent);
  transform: translateX(-100%);
  transition: transform .5s ease;
}

.contact-button:hover,
.social-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .24);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
}

.contact-button:hover::before,
.social-item:hover::before {
  transform: translateX(100%);
}

.contact-button:active,
.social-item:active {
  transform: scale(.98);
}

.icon,
.social-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: rgba(255,255,255,.11);
}

.contact-button .icon {
  background: rgba(34, 197, 94, .18);
  color: #4ade80;
}

.text,
.social-text {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.text strong,
.social-text strong {
  font-size: 15px;
  font-weight: 700;
}

.text small,
.social-text small {
  direction: ltr;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.arrow {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.45);
  font-size: 13px;
}

/* رنگ آیکون شبکه‌ها */
.instagram .social-icon {
  color: #f472b6;
  background: rgba(236, 72, 153, .15);
}

.whatsapp .social-icon {
  color: #4ade80;
  background: rgba(34, 197, 94, .15);
}

.telegram .social-icon {
  color: #38bdf8;
  background: rgba(14, 165, 233, .15);
}

.rubika .social-icon {
  color: #fb923c;
  background: rgba(249, 115, 22, .15);
}

.eitaa .social-icon {
  color: #f87171;
  background: rgba(239, 68, 68, .15);
}

footer {
  margin-top: 22px;
  text-align: center;
  color: rgba(255,255,255,.38);
  font-size: 11px;
}

/* موبایل */
@media (max-width: 480px) {
  .page {
    padding: 20px 12px;
    align-items: flex-start;
  }

  .profile-card {
    margin-top: 8px;
    padding: 28px 16px 18px;
    border-radius: 25px;
  }

  .profile-image {
    width: 100px;
    height: 100px;
  }

  .contact-button,
  .social-item {
    min-height: 66px;
    border-radius: 16px;
  }

  .icon,
  .social-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
}

/* دسترسی بهتر برای کیبورد */
a:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
}
