:root {
  --bg-1: #050816;
  --bg-2: #0a1022;
  --bg-3: #0d1430;

  --panel: rgba(12, 18, 38, 0.78);
  --panel-strong: rgba(15, 22, 45, 0.96);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f8fbff;
  --text-soft: #a5b2d3;
  --text-muted: #7f8bb0;

  --primary: #7c5cff;
  --secondary: #24d2ff;
  --tertiary: #ff4fd8;
  --success: #35d49a;

  --shadow-main: 0 30px 90px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.24);
  --shadow-glow: 0 18px 40px rgba(124, 92, 255, 0.18);

  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --transition-fast: 180ms ease;
  --transition: 260ms cubic-bezier(0.22, 1, 0.36, 1);

  --max-width: 820px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 92, 255, 0.24), transparent 24%),
    radial-gradient(circle at 90% 20%, rgba(36, 210, 255, 0.18), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255, 79, 216, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(rgba(255,255,255,0.7) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.bg-orb--purple {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  left: -6rem;
  background: #7c5cff;
}

.bg-orb--blue {
  width: 25rem;
  height: 25rem;
  right: -7rem;
  top: 18%;
  background: #24d2ff;
}

.bg-orb--pink {
  width: 24rem;
  height: 24rem;
  bottom: -8rem;
  left: 18%;
  background: #ff4fd8;
  opacity: 0.1;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.profile-panel {
  position: relative;
  width: min(100%, var(--max-width));
  padding: 2rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(18, 26, 52, 0.88), rgba(10, 15, 31, 0.96));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(36, 210, 255, 0.08), transparent 28%);
  pointer-events: none;
}

.profile-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.profile-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.28), transparent 70%);
  filter: blur(18px);
  z-index: 0;
}

.avatar-ring {
  position: relative;
  z-index: 1;
  width: 128px;
  height: 128px;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary));
  box-shadow:
    0 18px 42px rgba(124, 92, 255, 0.26),
    0 10px 28px rgba(36, 210, 255, 0.12);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid rgba(8, 11, 25, 0.95);
  background: #111827;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 34px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: rgba(53, 212, 154, 0.1);
  border: 1px solid rgba(53, 212, 154, 0.2);
  color: #98f0ca;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px rgba(53, 212, 154, 0.08);
}

#profileName {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.profile-role {
  margin: 0.75rem 0 0;
  font-size: 1.04rem;
  font-weight: 700;
  color: #dfe8ff;
}

.profile-text {
  margin: 0.95rem 0 0;
  max-width: 40rem;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.social-list {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 50px;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 8px 20px rgba(0, 0, 0, 0.12);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.social-link::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 14px rgba(36, 210, 255, 0.45);
  flex-shrink: 0;
}

.social-link:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045));
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.18),
    0 12px 22px rgba(124, 92, 255, 0.14);
}

.project-section {
  position: relative;
  z-index: 2;
  margin-top: 2.3rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #dde6ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.project-item::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), var(--tertiary));
  opacity: 0.95;
}

.project-item:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(124, 92, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  box-shadow:
    0 20px 36px rgba(0, 0, 0, 0.22),
    0 14px 28px rgba(124, 92, 255, 0.12);
}

.project-item__content {
  min-width: 0;
  padding-left: 0.7rem;
}

.project-item__top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.project-item__title {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text);
}

.project-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.25rem 0.58rem;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.18);
  color: #ddd0ff;
  font-size: 0.72rem;
  font-weight: 700;
}

.project-item__text {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 0.94rem;
}

.project-item__arrow {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  color: #ffffff;
  font-size: 1.08rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.project-item:hover .project-item__arrow {
  transform: translateX(4px) rotate(-8deg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  box-shadow:
    0 14px 24px rgba(124, 92, 255, 0.2),
    0 10px 18px rgba(36, 210, 255, 0.12);
}

@media (max-width: 640px) {
  .profile-panel {
    padding: 1.25rem;
    border-radius: 26px;
  }

  .avatar-ring {
    width: 106px;
    height: 106px;
  }

  .social-link {
    width: calc(50% - 0.425rem);
    justify-content: center;
  }

  .project-item {
    padding: 1rem;
  }

  .project-item__arrow {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .project-item__title {
    font-size: 0.98rem;
  }

  .project-item__text {
    font-size: 0.89rem;
  }
}

@media (max-width: 420px) {
  .social-link {
    width: 100%;
  }

  #profileName {
    font-size: 2.1rem;
  }

  .profile-text {
    font-size: 0.95rem;
  }
}