/* Сброс базовых отступов */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* 1. ГРАДИЕНТНЫЙ ФОН И СЕНТРИРОВАНИЕ FLEXBOX */
body {
font-family: 'Segoe UI', sans-serif;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Линейный градиент */
padding: 20px;
}
/* Контейнер визитки */
.card {
width: 100%;
max-width: 400px;
text-align: center;
color: #fff;
}
/* КРУГЛЫЙ АВАТАР */
.avatar {
width: 120px;
height: 120px;
border-radius: 50%; /* Делает изображение круглым */
object-fit: cover;
border: 3px solid rgba(255, 255, 255, 0.5);
margin-bottom: 15px;
}
header h1 {
font-size: 1.5rem;
margin-bottom: 8px;
}
.bio {
font-size: 0.9rem;
opacity: 0.9;
margin-bottom: 25px;
}
/* БЛОК КНОПОК */
.links {
display: flex;
flex-direction: column;
gap: 15px;
}
/* 2. ЭФФЕКТ GLASSMORPHISM ДЛЯ КНОПОК */
.btn {
display: block;
padding: 14px 20px;
color: #fff;
text-decoration: none;
font-weight: 600;
border-radius: 12px;
/* Стеклянный эффект */
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px); /* Размытие фона под кнопкой */
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
/* Плавность для hover-анимации */
transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
/* 3. HOVER-АНИМАЦИЯ */
.btn:hover {
transform: translateY(-3px) scale(1.02); /* Увеличивает и немного приподнимает */
background: rgba(255, 255, 255, 0.3); /* Изменяет яркость фона */
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
/* ФУТЕР И ИКОНКИ */
footer {
margin-top: 30px;
}
.socials {
display: flex;
justify-content: center;
gap: 20px;
}
.socials a {
color: #fff;
font-size: 1.4rem;
transition: transform 0.2s ease, opacity 0.2s ease;
opacity: 0.8;
}
.socials a:hover {
opacity: 1;
transform: scale(1.2);
}