:root {
  --bg-1: #0b0f16;
  --bg-2: #0f172a;
  --card: rgba(18, 24, 36, 0.8);
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #e6eef9;
  --muted: #9fb2cc;
  --accent: #5eead4;
  --accent-2: #38bdf8;
  --danger: #f87171;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Avenir", "Futura", "Century Gothic", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% 0%, #1f2a44 0%, transparent 55%),
    radial-gradient(1200px 800px at 100% 100%, #0b2c2e 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.page {
  width: min(460px, 100%);
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 32px 28px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  text-align: center;
  overflow: hidden;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.12), transparent 70%);
  filter: blur(2px);
  z-index: 0;
}

.card::before {
  top: -140px;
  right: -120px;
}

.card::after {
  bottom: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 70%);
}

.avatar {
  width: 128px;
  height: 128px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(-6px);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  position: relative;
  z-index: 1;
}

.identity {
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.name {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.1s;
}

.tagline {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.links {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.link-btn,
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: var(--text);
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.link-btn:nth-child(1) { animation-delay: 0.25s; }
.link-btn:nth-child(2) { animation-delay: 0.3s; }
.link-btn:nth-child(3) { animation-delay: 0.35s; }
.link-btn:nth-child(4) { animation-delay: 0.4s; }
.link-btn:nth-child(5) { animation-delay: 0.45s; }
.link-btn:nth-child(6) { animation-delay: 0.5s; }
.link-btn:nth-child(7) { animation-delay: 0.55s; }

.link-btn:hover,
.link-btn:focus-visible,
.submit-btn:hover,
.submit-btn:focus-visible {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(94, 234, 212, 0.5);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
  outline: none;
}

.link-btn:active,
.submit-btn:active {
  transform: translateY(1px);
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-btn {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.2), rgba(56, 189, 248, 0.1));
}

.footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}

.modal.is-open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: min(520px, 100%);
  background: #0f1624;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  z-index: 1;
  animation: popIn 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--text);
  outline: none;
}

.modal-note {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: grid;
  gap: 6px;
  text-align: left;
  margin-bottom: 14px;
  font-size: 14px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 17, 27, 0.8);
  color: var(--text);
  font-size: 14px;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid rgba(94, 234, 212, 0.6);
  border-color: transparent;
}

.field-error {
  min-height: 16px;
  color: var(--danger);
  font-size: 12px;
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--danger);
}

.submit-btn {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.3), rgba(56, 189, 248, 0.2));
  border: 1px solid rgba(94, 234, 212, 0.4);
  font-weight: 700;
}

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

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 520px) {
  .card {
    padding: 28px 20px 22px;
  }

  .name {
    font-size: 24px;
  }

  .link-btn,
  .submit-btn {
    font-size: 15px;
  }
}
