:root {
  --font-body: "Space Grotesk", "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "Sora", "Space Grotesk", "Avenir Next", sans-serif;

  --color-primary: #62a8ff;
  --color-secondary: #8a7dff;
  --color-highlight: #9f8cff;

  --color-text: #edf7ff;
  --color-text-light: #b9cee2;
  --color-border: rgba(154, 165, 255, 0.32);
  --color-bg: #040a15;
  --color-bg-light: rgba(255, 255, 255, 0.05);

  --rounded-sm: 10px;
  --rounded-md: 14px;
  --rounded-lg: 28px;

  --shadow-sm: 0 8px 24px rgba(2, 8, 24, 0.36);
  --shadow-md: 0 34px 72px rgba(1, 5, 16, 0.68);
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(120% 82% at 10% 10%, rgba(98, 168, 255, 0.18), transparent 58%),
    radial-gradient(90% 76% at 88% 0%, rgba(138, 125, 255, 0.16), transparent 56%),
    linear-gradient(180deg, #040a15 0%, #08102a 58%, #050917 100%);
  color: var(--color-text);
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* Background Effects */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
}

.bg-glow {
  position: fixed;
  inset: -30% -20%;
  background:
    radial-gradient(circle at 18% 24%, rgba(98, 168, 255, 0.24), transparent 44%),
    radial-gradient(circle at 84% 18%, rgba(138, 125, 255, 0.22), transparent 46%),
    radial-gradient(circle at 52% 88%, rgba(120, 132, 255, 0.15), transparent 48%);
  z-index: 1;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.84' numOctaves='3' seed='7' result='noise' /%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  z-index: 2;
  pointer-events: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-24px);
  }
}

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.card {
  position: relative;
  overflow: hidden;
  background: rgba(9, 17, 38, 0.84);
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-lg);
  padding: 44px;
  max-width: 560px;
  width: 100%;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: slideInUp 0.65s ease-out;
  pointer-events: auto;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(80% 60% at 15% 0%, rgba(98, 168, 255, 0.12), transparent 62%),
    radial-gradient(70% 58% at 88% 100%, rgba(138, 125, 255, 0.12), transparent 64%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: rgba(173, 177, 255, 0.58);
  box-shadow:
    0 42px 88px rgba(1, 6, 20, 0.74),
    0 0 40px rgba(128, 137, 255, 0.2);
}

.card * {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.lang-switch {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(154, 165, 255, 0.34);
  background: rgba(8, 21, 43, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-link {
  color: #cfe3f6;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
  transition: opacity var(--transition), color var(--transition);
}

.lang-link:hover {
  color: #ffffff;
  opacity: 1;
}

.lang-link.active {
  color: #ffffff;
  opacity: 1;
}

.lang-sep {
  color: rgba(207, 227, 246, 0.64);
  font-size: 11px;
}

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

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(9, 25, 46, 0.86);
  border: 1px solid rgba(154, 165, 255, 0.34);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbe2f8;
  margin-bottom: 26px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--color-secondary);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(138, 125, 255, 0.2);
  animation: pulse 2.1s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.84);
    opacity: 0.65;
  }
}

/* Profile */
.profile {
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 24px;
}

.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 168, 255, 0.52) 0%, rgba(138, 125, 255, 0) 72%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 0;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(176, 188, 255, 0.4);
  box-shadow: 0 14px 34px rgba(3, 12, 29, 0.7);
  position: relative;
  z-index: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}

.avatar-wrap:hover::after {
  opacity: 1;
}

.avatar-wrap:hover .avatar {
  transform: scale(1.045);
  box-shadow:
    0 18px 42px rgba(2, 9, 24, 0.72),
    0 0 24px rgba(129, 138, 255, 0.34);
}

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(98, 168, 255, 0.52);
  border-top-color: rgba(138, 125, 255, 0.88);
  border-right-color: rgba(159, 140, 255, 0.88);
  animation: spin 8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Typography */
.name {
  font-family: var(--font-display);
  font-size: clamp(28px, 5.2vw, 44px);
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1.1;
}

.headline {
  font-family: var(--font-display);
  font-size: 14px;
  color: #cfe3f6;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bio {
  font-size: 15.5px;
  color: var(--color-text-light);
  margin: 0 auto 28px;
  line-height: 1.75;
  max-width: 54ch;
}

/* Buttons */
.cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--rounded-md);
  font-size: 13px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn-icon {
  font-size: 14px;
}

.btn.primary {
  background: linear-gradient(140deg, rgba(98, 168, 255, 0.95), rgba(138, 125, 255, 0.92));
  color: #f6f9ff;
  border-color: rgba(186, 194, 255, 0.5);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 26px rgba(98, 168, 255, 0.26),
    0 0 18px rgba(138, 125, 255, 0.28);
}

.btn.ghost {
  background: rgba(8, 24, 45, 0.78);
  color: #d7ecff;
  border-color: rgba(154, 165, 255, 0.4);
}

.btn.ghost:hover {
  transform: translateY(-2px);
  background: rgba(14, 27, 58, 0.9);
  border-color: rgba(190, 194, 255, 0.54);
}

/* Social Links */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(154, 165, 255, 0.34);
  border-radius: var(--rounded-md);
  color: #dbedff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.social:hover {
  background: linear-gradient(130deg, rgba(98, 168, 255, 0.2), rgba(138, 125, 255, 0.2));
  color: #f5fbff;
  border-color: rgba(190, 194, 255, 0.56);
  transform: translateY(-2px);
}

.social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Meta */
.meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(186, 206, 228, 0.8);
  border-top: 1px solid rgba(154, 165, 255, 0.3);
  padding-top: 16px;
}

.sep {
  opacity: 0.5;
}

.tiny {
  font-weight: 600;
}

.pub-wrap {
  text-align: left;
  width: min(100%, 640px);
}

.pub-head {
  margin-bottom: 16px;
}

.pub-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pub-subtitle {
  color: var(--color-text-light);
  font-size: 14px;
}

.pub-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 20px;
}

.pub-item {
  border: 1px solid rgba(154, 165, 255, 0.34);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 14px;
}

.pub-item h3 {
  font-size: 15px;
  color: #edf7ff;
  margin-bottom: 4px;
}

.pub-meta {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.pub-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pub-link {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #f5fbff;
  border: 1px solid rgba(154, 165, 255, 0.45);
  border-radius: 10px;
  padding: 6px 10px;
  background: rgba(11, 28, 50, 0.7);
}

.pub-link:hover {
  border-color: rgba(190, 194, 255, 0.62);
  background: rgba(20, 36, 66, 0.85);
}

/* Responsive */
@media (max-width: 600px) {
  .page {
    padding: 14px;
  }

  .card {
    padding: 30px 20px;
    border-radius: 22px;
  }

  .lang-switch {
    top: 12px;
    right: 12px;
    padding: 5px 8px;
  }

  .name {
    font-size: clamp(22px, 7vw, 34px);
    letter-spacing: 0.03em;
    white-space: nowrap;
    margin-bottom: 8px;
  }

  .headline {
    font-size: 12px;
    letter-spacing: 0.07em;
  }

  .avatar-wrap {
    width: 132px;
    height: 132px;
    margin-bottom: 18px;
  }

  .bio {
    font-size: 14.5px;
    margin-bottom: 22px;
  }

  .pub-item {
    padding: 12px;
  }

  .cta-row {
    flex-direction: column;
    margin-bottom: 24px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .social-row {
    gap: 8px;
  }

  .social {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}
