@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #292929;
  --page-deep: #202020;
  --surface: rgba(53, 53, 53, 0.76);
  --surface-line: rgba(255, 255, 255, 0.09);
  --text: #f7f7f7;
  --muted: #bcbcbc;
  --red: #d71920;
  --red-deep: #b50d14;
  --red-light: #ff424a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--page-deep);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 14%, rgba(215, 25, 32, 0.1), transparent 30rem),
    linear-gradient(145deg, var(--page) 0%, #252525 54%, var(--page-deep) 100%);
  font-family: "Vazirmatn", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.36;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.page-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1.25rem, 5vw, 3rem);
}

.profile-card {
  position: relative;
  width: min(100%, 35rem);
  padding: clamp(2rem, 7vw, 3.6rem) clamp(1.25rem, 6vw, 2.6rem) 1.4rem;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--surface-line);
  border-radius: clamp(1.75rem, 5vw, 2.75rem);
  background: linear-gradient(155deg, rgba(65, 65, 65, 0.82), var(--surface));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.profile-card::after {
  position: absolute;
  inset: auto -15% -35% 45%;
  width: 22rem;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: rgba(215, 25, 32, 0.06);
  filter: blur(55px);
  pointer-events: none;
}

.brand-mark-wrap {
  position: relative;
  width: clamp(9.5rem, 38vw, 12.5rem);
  margin: 0 auto 1.8rem;
}

.brand-glow {
  position: absolute;
  inset: 14%;
  border-radius: 2rem;
  background: var(--red);
  filter: blur(32px);
  opacity: 0.42;
  transform: translateY(0.75rem);
}

.brand-mark {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.profile-header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.latin-title {
  font-family: "Manrope", sans-serif;
  font-size: 0.82em;
  letter-spacing: -0.025em;
}

.title-divider {
  color: var(--red-light);
  font-weight: 400;
}

.profile-name {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-family: "Vazirmatn", sans-serif;
  font-size: clamp(1rem, 4vw, 1.15rem);
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: normal;
}

.profile-links {
  display: grid;
  gap: 0.85rem;
  margin-top: clamp(2.2rem, 7vw, 3rem);
}

.profile-link {
  display: grid;
  grid-template-columns: 2.6rem 1fr 2.6rem;
  align-items: center;
  min-height: 4.8rem;
  padding: 0.7rem 1rem;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--red-light), var(--red) 46%, var(--red-deep));
  box-shadow: 0 12px 28px rgba(160, 0, 7, 0.25), inset 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.profile-link:hover {
  transform: translateY(-3px);
  filter: saturate(1.12) brightness(1.04);
  box-shadow: 0 17px 34px rgba(160, 0, 7, 0.34), inset 0 1px rgba(255, 255, 255, 0.2);
}

.profile-link:active {
  transform: translateY(-1px) scale(0.995);
}

.profile-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.link-icon,
.link-arrow {
  display: grid;
  place-items: center;
}

.link-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.link-arrow {
  font-family: sans-serif;
  font-size: 1.2rem;
  transform: rotate(180deg);
  opacity: 0.82;
}

.link-copy {
  display: grid;
  gap: 0.12rem;
}

.link-title {
  font-size: clamp(1.05rem, 4.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.5;
}

.link-subtitle {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.profile-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 2rem;
  color: #919191;
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.status-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0.75rem rgba(215, 25, 32, 0.8);
}

noscript {
  position: fixed;
  inset: auto 1rem 1rem;
  padding: 0.75rem;
  text-align: center;
  border-radius: 0.75rem;
  background: #111;
}

@media (max-width: 420px) {
  .page-shell {
    padding: 0;
  }

  .profile-card {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: max(2rem, env(safe-area-inset-top));
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .brand-mark-wrap {
    width: 9.5rem;
  }

  .profile-header h1 {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
