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

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Sora', sans-serif;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0, #f48fb1);
  background-size: 300% 300%;
  animation: gradient 18s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  /* Улучшаем производительность */
  will-change: background-position;
}

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

/* Fade-in анимация для карточки */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  width: 100%;
  max-width: 480px;
  padding: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
  box-shadow: 0 4px 40px rgba(255, 105, 180, 0.25);
  /* Улучшаем производительность */
  will-change: transform;
}

.profile {
  margin-bottom: 2.5rem;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  /* Улучшаем контрастность */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

p {
  font-size: 1.05rem;
  color: #fbe9f1;
  opacity: 0.9;
  /* Улучшаем контрастность */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Улучшаем доступность */
  outline: none;
  position: relative;
}

.link-item:hover {
  background: rgba(255, 105, 180, 0.25);
  border-color: rgba(255, 105, 180, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
}

/* Улучшенные focus состояния */
.link-item:focus {
  background: rgba(255, 105, 180, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.link-item:hover .icon {
  transform: scale(1.1);
}

.icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.link-item span {
  flex: 1;
  text-align: left;
}

/* Улучшенная адаптивность */
@media (max-width: 480px) {
  .container {
    padding: 0.5rem;
  }
  
  .card {
    padding: 2rem 1.5rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .avatar {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
  }
  
  .link-item {
    padding: 0.9rem 1.2rem;
  }
  
  .icon {
    width: 36px;
    height: 36px;
  }
  
  .icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Улучшения для темной темы */
@media (prefers-color-scheme: dark) {
  .card {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .link-item {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Улучшения для пользователей с ограниченными возможностями */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .container {
    animation: none;
  }
} 