:root {
  --bg: #0b0f1c;
  --bg-secondary: rgba(26, 32, 56, 0.93);
  --accent: #8b5cf6;
  --accent-soft: rgba(91, 33, 182, 0.17);
  --accent-strong: #7c3aed;
  --accent-red: #ef4444;
  --accent-red-soft: rgba(239, 68, 68, 0.18);
  --text-main: #f5f7fb;
  --text-muted: #858da3;
  --border-subtle: rgba(100, 116, 139, 0.13);
  --shadow-soft: 0 18px 64px rgba(16, 20, 38, 0.98);
  --radius-card: 23px;
  --radius-pill: 999px;
  --transition-fast: 160ms cubic-bezier(0.45, 0, 0.23, 1);
  --badge-glow: 0 0 4px #fafafa, 0 0 7px #a5b4fa;
  --offwhite: #e6ebfc;
  --scrollbarBG: #181934;
  --scrollbarThumb: #c9c7ff;
  --scrollbarThumbBorder: #7c3aed;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-smooth: always;
  transition: background 0.4s, color 0.4s;
  line-height: 1.6;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbarThumb) var(--scrollbarBG);
  animation: bg-fade-in 1.2s cubic-bezier(0.6,0,0.2,1);
}

@keyframes bg-fade-in {
  from { background: #090b18; color: transparent; }
  to { background: var(--bg); color: var(--text-main);}
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
  width: 9px;
  background: var(--scrollbarBG);
}
body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
  background: var(--scrollbarThumb);
  border-radius: 12px;
  border: 2px solid var(--scrollbarBG);
  box-shadow: 0 0 7px var(--accent-soft);
  transition: background 0.33s;
}
body::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  border-color: var(--accent-strong);
}

.cozy-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% -12%, rgba(28, 155, 255, 0.18), transparent 65%),
    radial-gradient(circle at 92% 112%, rgba(45, 212, 191, 0.13), transparent 70%),
    radial-gradient(circle at 105% 0%, rgba(124, 58, 237, 0.17), transparent 70%),
    linear-gradient(122deg, #0b0f1c 65%, #181934 100%);
  opacity: .98;
  pointer-events: none;
  animation: cozy-bg-move 40s ease-in-out infinite alternate, bg-pulse 8s ease-in-out infinite alternate;
}
@keyframes cozy-bg-move {
  0%   { filter: hue-rotate(0deg);}
  100% { filter: hue-rotate(42deg);}
}
@keyframes bg-pulse {
  0% { opacity: 0.96; }
  40% { opacity: 1; }
  65% { opacity: 0.93; }
  100% { opacity: 0.98;}
}

.cozy-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 13px;
  animation: page-fade-in 700ms cubic-bezier(0.4,0,0.2,1), cozy-center-float 13s ease-in-out infinite alternate;
}
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(26px);}
  to { opacity: 1; transform: translateY(0);}
}
@keyframes cozy-center-float {
  0% { transform: scale(0.98) translateY(0);}
  50% { transform: scale(1.01) translateY(-8px);}
  100% { transform: scale(0.98) translateY(0);}
}

.cozy-card {
  width: 100%;
  max-width: 880px;
  position: relative;
  background:
    radial-gradient(circle at 0 0, rgba(148,163,253,0.09), transparent 56%),
    radial-gradient(circle at 100% 100%, rgba(239,68,68,0.14), transparent 62%),
    linear-gradient(135deg, rgba(33,39,64,0.96), rgba(22,28,43,0.99));
  border-radius: var(--radius-card);
  border: 1.2px solid var(--border-subtle);
  box-shadow: var(--shadow-soft), 0 1px 3px rgba(0,0,0,0.07);
  padding: 28px 27px 20px;
  backdrop-filter: blur(28px) saturate(1.1);
  overflow: hidden;
  transform-origin: center center;
  animation: cozy-float 16s ease-in-out infinite, card-glow-cycle 13s infinite alternate;
  transition: box-shadow 0.5s, border-color 0.3s;
}
@keyframes cozy-float {
  0% { transform: translateY(0);}
  25% { transform: translateY(-5px) rotate(-1deg);}
  50% { transform: translateY(-14px) rotate(1deg);}
  75% { transform: translateY(-5px) rotate(-1deg);}
  100% { transform: translateY(0);}
}
@keyframes card-glow-cycle {
  0% { box-shadow: var(--shadow-soft), 0 1px 3px rgba(0,0,0,0.07);}
  50% { box-shadow: 0 22px 80px #7c3aed77, 0 1px 3px rgba(0,0,0,0.07);}
  100% { box-shadow: var(--shadow-soft), 0 1px 16px #8b5cf666;}
}
.cozy-card::before {
  content: "";
  position: absolute;
  inset: -2.5px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(148,163,253,0.18), rgba(239,68,68,0.22));
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
  animation: border-move 18s linear infinite alternate;
}
@keyframes border-move {
  0% { filter: blur(0.5px) brightness(1);}
  50% { filter: blur(3px) brightness(1.06);}
  100% { filter: blur(0.5px) brightness(1);}
}

.cozy-avatar-block {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: avatar-bounce-in 1s cubic-bezier(.85,-0.09,.35,1.35);
}
@keyframes avatar-bounce-in {
  0% { opacity:0; transform: scale(0.7);}
  60% { opacity:1; transform: scale(1.13);}
  80% { transform: scale(0.93);}
  100% { opacity:1; transform: scale(1);}
}

.cozy-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(32,38,64,0.98);
  box-shadow: 0 8px 32px rgba(22,28,43,0.66);
  animation: avatar-spin 18s linear infinite, avatar-float 7s ease-in-out infinite alternate;
  transition: filter 0.19s;
}
@keyframes avatar-spin {
  from { transform: rotate(0deg);}
  to { transform: rotate(360deg);}
}
@keyframes avatar-float {
  0% { filter: brightness(1);}
  45% { filter: brightness(1.07) drop-shadow(0 0 8px #a5b4fa44);}
  80% { filter: brightness(0.97);}
  100% { filter: brightness(1);}
}

.cozy-profile-info {
  margin-bottom: 12px;
  animation: info-slide-down 0.67s cubic-bezier(0.4,0,0.2,1);
}
@keyframes info-slide-down {
  0% {opacity:0; transform: translateY(-18px);}
  100% {opacity:1; transform: translateY(0);}
}

.cozy-name {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 11px;
  animation: name-pop 0.76s cubic-bezier(.12,1.16,.59,1.19);
}
@keyframes name-pop {
  0% { transform: scale(0.91);}
  55% { transform: scale(1.12);}
  98% { transform: scale(1);}
  100%{ transform: scale(1);}
}

.cozy-badges {
  display: flex;
  gap: 10px;
  margin-left: 7px;
  align-items: center;
}

.cozy-badge {
  font-size: 0.75rem;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cozy-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.cozy-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.cozy-badge:hover::before {
  left: 100%;
}

.cozy-badge-pink {
  background: linear-gradient(135deg, #ff3d77, #7c3aed);
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 15px rgba(255, 61, 119, 0.3);
  animation: badge-float-alt 4s ease-in-out infinite;
}

.cozy-badge-dev {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  animation: badge-float 4s ease-in-out infinite;
}

.cozy-badge-hehim {
  background: rgba(30, 41, 59, 0.7);
  color: #94a3b8;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes badge-float-alt {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(2px); }
}

.cozy-profile-desc {
  margin-top: 2px;
  color: #b7bfe1;
  font-size: 1.11rem;
  font-weight: 400;
  letter-spacing: .02em;
  display: block;
  animation: profile-desc-appear 1.1s cubic-bezier(.22,1.15,.56,1.07);
}
@keyframes profile-desc-appear {
  0% {opacity:0;transform:translateY(12px);}
  100%{opacity:1;transform:translateY(0);}
}

.cozy-section {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1.1px solid var(--border-subtle);
  animation: section-slide-fadein 1.3s cubic-bezier(.31,1.21,.59,.86);
}
@keyframes section-slide-fadein {
  0%{opacity:0;transform:translateY(28px) scale(0.98);}
  75%{opacity:0.88;}
  100%{opacity:1;transform:translateY(0) scale(1);}
}
.cozy-section h2 {
  font-size: 1.07rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(191,219,254,0.94);
  margin-bottom: 11px;
  animation: heading-glow 2.4s infinite alternate;
}

@keyframes heading-glow {
  0%   { text-shadow: 0 0 1.5px #7c3aed55;}
  40%  { text-shadow: 0 0 10px #a5b4fa66;}
  100% { text-shadow: 0 0 3px #8b5cf699;}
}

.cozy-section-bio p {
  margin-bottom: 4px;
  color: #b6cdee;
  line-height: 1.7;
  font-size: 1.09rem;
  animation: paragraph-rise 1.3s cubic-bezier(.31,1.41,.43,1.09);
}
@keyframes paragraph-rise {
  0%{opacity:0;transform:translateY(15px);}
  100%{opacity:1;transform:translateY(0);}
}

.cozy-list {
  list-style: none;
  padding-left: 0;
  margin: 14px 0 0 0;
  color: #cabdf7;
}
.cozy-list li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.6;
  animation: list-fade-in 1.2s cubic-bezier(.13,1.06,.51,.95);
}
@keyframes list-fade-in {
  0%{ opacity:0; transform: translateX(-14px);}
  100%{ opacity:1; transform: translateX(0);}
}

.cozy-chips {
  margin: 6px 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.cozy-chips li {
  background: var(--accent-soft);
  color: #cec8f4;
  border-radius: var(--radius-pill);
  font-size: 0.97rem;
  font-weight: 500;
  padding: 5px 15px;
  animation: chip-pop 1s cubic-bezier(.17,0.7,.55,1.6) both;
}
@keyframes chip-pop {
  0%{opacity:0;transform:scale(0.8);}
  60%{transform:scale(1.09);}
  100%{opacity:1;transform:scale(1);}
}

.cozy-footer {
  margin-top: 21px;
  padding-top: 12px;
  border-top: 1px solid rgba(100,116,139,0.10);
  font-size: 0.91rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: footer-show-up 1.2s cubic-bezier(.15,1.09,.53,1.06);
}
@keyframes footer-show-up {
  0%{opacity:0; transform:translateY(24px);}
  100%{opacity:1; transform:translateY(0);}
}

@media (max-width: 900px) {
  .cozy-card {
    padding: 15px 12px 12px;
    max-width: 95vw;
  }
  .cozy-avatar {
    width: 82px;
    height: 82px;
  }
  .cozy-name {
    font-size: 1.5rem;
    flex-wrap: wrap;
  }
  .cozy-badges {
    margin-left: 0;
    gap: 6px;
  }
  .cozy-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
  }
}

a:focus, button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px #8b5cf666;
  transition: outline 0.18s;
  animation: focus-glow 1.4s infinite alternate;
}
@keyframes focus-glow {
  0% { box-shadow: 0 0 0 4px #8b5cf633;}
  100% { box-shadow: 0 0 0 9px #a5b4fa88;}
}