/* Fonts */
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/roboto-v32-latin-300.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/open-sans-v40-latin-regular.woff2') format('woff2');
}

:root {
  --bg-1: #1a1c2c;
  --bg-2: #3a2d5c;
  --bg-3: #144552;
  --bg-4: #0f1420;

  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.16);
  --text-primary: #f5f6fa;
  --text-secondary: rgba(245, 246, 250, 0.7);
  --accent-1: #00cdac;
  --accent-2: #7b61ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--text-primary);
  background: linear-gradient(-45deg, var(--bg-1), var(--bg-2), var(--bg-3), var(--bg-4));
  background-size: 400% 400%;
  animation: gradientShift 18s ease infinite;
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 40px 32px;
  border-radius: 24px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(155deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 10px 30px rgba(0, 205, 172, 0.35);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  margin: 0 0 6px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.title {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  text-align: left;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.links li:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--card-border);
  transform: translateX(2px);
}

.icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--accent-1);
}

.links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14.5px;
  overflow-wrap: anywhere;
}

.links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent-1);
}

.hint {
  color: var(--text-secondary);
  font-size: 12px;
}

@media (max-width: 420px) {
  .card {
    padding: 32px 22px;
  }
}
