/* ============================================
   ОБЩИЕ ПЕРЕМЕННЫЕ
   ============================================ */
:root {
  --bg-1: #0a0a0f;
  --accent-1: #6366f1;
  --accent-2: #ec4899;
  --text: #f5f5f7;
  --text-dim: #b4b4bd;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-1);
  color: var(--text);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---------- ФОН ---------- */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}
body::before {
  width: 600px; height: 600px;
  background: var(--accent-1);
  top: -200px; left: -200px;
  animation: float1 18s ease-in-out infinite;
}
body::after {
  width: 550px; height: 550px;
  background: var(--accent-2);
  bottom: -200px; right: -200px;
  animation: float2 22s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(80px, 60px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-70px, -50px); }
}

/* ---------- КАРТОЧКА ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  padding: 48px 40px 40px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  animation: cardIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- ФОТО ---------- */
.avatar-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 32px;
  animation: fadeUp 0.9s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-1), var(--accent-2), var(--accent-1));
  animation: spin 6s linear infinite;
  z-index: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg-1);
  display: block;
  background: #1a1a24;
}

/* ---------- ИМЯ / РОЛЬ ---------- */
.name {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
  animation: fadeUp 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  background: linear-gradient(135deg, #ffffff 0%, #c7c7d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.role {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 26px;
  animation: fadeUp 0.9s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.divider {
  width: 56px;
  height: 3px;
  margin: 0 auto 26px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  animation: fadeUp 0.9s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.bio {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dim);
  font-weight: 300;
  margin-bottom: 36px;
  animation: fadeUp 0.9s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---------- ЗАГОЛОВОК СЕКЦИИ ---------- */
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--card-border), transparent);
}

/* ---------- ПРОЕКТЫ ---------- */
.projects {
  text-align: left;
  margin-bottom: 36px;
  animation: fadeUp 0.9s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.project {
  padding: 22px 24px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  transition: all 0.25s ease;
}
.project:last-child { margin-bottom: 0; }
.project:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
}
.project h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}
.project p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  font-weight: 300;
  margin-bottom: 14px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(236, 72, 153, 0.18));
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #d4d4e8;
  letter-spacing: 0.02em;
}

/* ---------- CTA ---------- */
.cta {
  padding: 28px 26px;
  margin-bottom: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.3);
  animation: fadeUp 0.9s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  text-align: center;
}
.cta h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}
.cta p {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.55;
}

/* ---------- КНОПКИ ---------- */
.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeUp 0.9s 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.btn-cta {
  display: inline-flex;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  font-size: 16px;
  font-weight: 600;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6);
}

/* ---------- СОЦСЕТИ ---------- */
.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  animation: fadeUp 0.9s 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.socials a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  transition: all 0.25s ease;
  text-decoration: none;
}
.socials a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}
.socials svg { width: 22px; height: 22px; }

/* ---------- АНИМАЦИИ ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- КОЛОНКИ ---------- */
.profile-col { text-align: center; }
.content-col { text-align: left; }

/* ============================================
   ДЕСКТОП: две колонки
   ============================================ */
@media (min-width: 1000px) {
  body { padding: 56px 32px; }

  .card {
    max-width: 1080px;
    padding: 56px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 56px;
    text-align: left;
    align-items: start;
  }
  .profile-col {
    text-align: center;
    position: sticky;
    top: 40px;
  }
  .avatar-wrap { width: 200px; height: 200px; margin-bottom: 28px; }
  .name { font-size: 36px; }
  .role { font-size: 16px; }
  .bio { font-size: 16px; margin-bottom: 28px; }
  .content-col .projects { margin-bottom: 28px; }
  .content-col .cta { margin-bottom: 0; }
  .socials { margin-top: 24px; }
  .divider { margin-bottom: 22px; }
}

/* ============================================
   ПЛАНШЕТ: шире, одна колонка
   ============================================ */
@media (min-width: 700px) and (max-width: 999px) {
  .card { max-width: 760px; padding: 56px 48px; }
  .avatar-wrap { width: 200px; height: 200px; }
  .name { font-size: 48px; }
  .role { font-size: 19px; }
  .bio { font-size: 19px; }
  .project { padding: 24px 26px; }
  .project h3 { font-size: 20px; }
  .project p { font-size: 16px; }
}

/* ============================================
   ТЕЛЕФОН
   ============================================ */
@media (max-width: 560px) {
  body { padding: 16px 12px; }
  .card { padding: 40px 24px 32px; border-radius: 24px; }
  .avatar-wrap { width: 140px; height: 140px; margin-bottom: 24px; }
  .name { font-size: 32px; }
  .role { font-size: 15px; }
  .bio { font-size: 16px; margin-bottom: 28px; }
  .project { padding: 18px 18px; }
  .project h3 { font-size: 17px; }
  .project p { font-size: 14px; }
  .cta h3 { font-size: 18px; }
  .cta p { font-size: 14px; }
  .btn { padding: 15px 20px; font-size: 15px; }
  .socials a { width: 44px; height: 44px; }
}
