:root {
  color-scheme: dark;
  --bg: #06070a;
  --bg-accent: #10141b;
  --card: rgba(15, 18, 24, 0.78);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #f4f7fb;
  --muted: #97a3b6;
  --link: #151a22;
  --link-border: rgba(255, 255, 255, 0.08);
  --link-hover: #1b2230;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(61, 74, 97, 0.28), transparent 36%),
    linear-gradient(180deg, var(--bg-accent) 0%, var(--bg) 60%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  pointer-events: none;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 460px);
  padding: 32px 24px 24px;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 22px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.eyebrow {
  margin: 20px 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 0;
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1;
}

.bio {
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-button {
  width: 100%;
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(121, 180, 255, 0.4);
  border-radius: 18px;
  background: linear-gradient(135deg, #2f7df6 0%, #1b57d2 100%);
  color: #ffffff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(16, 54, 129, 0.4);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #4390ff 0%, #245fdb 100%);
  border-color: rgba(150, 201, 255, 0.6);
  box-shadow: 0 22px 50px rgba(17, 62, 148, 0.5);
}

.contact-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.links {
  display: grid;
  gap: 12px;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border: 1px solid var(--link-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--link);
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.link-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.link-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(96%) sepia(7%) saturate(460%) hue-rotate(179deg) brightness(103%) contrast(97%);
}

.link-item:hover,
.link-item:focus-visible {
  transform: translateY(-2px);
  background: var(--link-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.link-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.link-arrow {
  color: var(--muted);
  font-size: 1.1rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 10;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(100%, 420px);
  padding: 28px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #0d1016;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-eyebrow {
  margin-top: 0;
}

.modal-panel h2 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.modal-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.modal-copy a {
  color: var(--text);
  font-weight: 700;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .page {
    padding: 16px;
  }

  .card {
    padding: 24px 18px 18px;
    border-radius: 24px;
  }

  .profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .link-item {
    padding: 15px 16px;
  }

  .modal-panel {
    padding: 24px 18px 18px;
    border-radius: 20px;
  }
}
