:root {
  --bg-1: #07111f;
  --bg-2: #0b1f35;
  --card: rgba(10, 22, 40, 0.78);
  --line: rgba(120, 180, 255, 0.18);
  --text: #eaf3ff;
  --muted: #9db3cc;
  --accent: #4da3ff;
  --accent-2: #7df9ff;
  --success: #7df9b5;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(77, 163, 255, 0.22), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(125, 249, 255, 0.16), transparent 24%),
    radial-gradient(circle at 80% 85%, rgba(77, 163, 255, 0.14), transparent 26%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow-x: hidden;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.15));
  pointer-events: none;
  z-index: 0;
}

.trail-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.trail-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,249,255,0.95), rgba(77,163,255,0.55), transparent 72%);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(125,249,255,0.65);
  animation: trailFade 0.9s ease-out forwards;
}

@keyframes trailFade {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) translateY(-8px);
  }
}

.container {
  width: 100%;
  max-width: 1120px;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 38px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 249, 255, 0.14), transparent 65%);
}

.left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 16px;
  border: 1px solid rgba(125, 249, 255, 0.22);
  border-radius: 999px;
  background: rgba(125, 249, 255, 0.06);
  color: var(--accent-2);
  font-size: 14px;
  letter-spacing: 0.3px;
}

.badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: badgePulse 1.6s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(125,249,181,0.65);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.78);
    box-shadow: 0 0 18px rgba(125,249,181,0.95);
  }
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -1.5px;
  max-width: 700px;
}

h1 span {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 32%,
    #84d4ff 46%,
    #7df9ff 56%,
    #4da3ff 66%,
    #ffffff 80%,
    #ffffff 100%
  );
  background-size: 230% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nameSweep 5.2s ease-in-out infinite alternate;
}

@keyframes nameSweep {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.subtitle {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 660px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.stat-box {
  flex: 0 0 150px;
  min-width: 150px;
  max-width: 150px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 15%, rgba(125,249,255,0.10), transparent 85%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.stat-box:hover::before {
  transform: translateX(120%);
}

.stat-box:hover {
  border-color: rgba(125,249,255,0.30);
  background: rgba(125,249,255,0.07);
  box-shadow: 0 14px 28px rgba(18, 110, 179, 0.12);
}

.stat-box strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 5px;
}

.stat-box span {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.right {
  display: flex;
  align-items: stretch;
}

.profile-card {
  width: 100%;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(125,249,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  box-shadow: inset 0 0 24px rgba(125,249,255,0.03), 0 18px 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(125,249,255,0.08), transparent 85%);
  transform: translateX(-120%);
  animation: premiumSweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes premiumSweep {
  0%, 18% {
    transform: translateX(-120%);
    opacity: 0;
  }
  30%, 72% {
    opacity: 1;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

.avatar-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(77,163,255,0.3), rgba(125,249,255,0.2));
  border: 1px solid rgba(125,249,255,0.34);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 12px 32px rgba(77,163,255,0.2),
    0 0 34px rgba(125,249,255,0.14);
  font-size: 1.45rem;
  font-weight: 700;
  color: white;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: -35%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.22), transparent 60%);
  animation: avatarShine 4.8s linear infinite;
}

@keyframes avatarShine {
  from { transform: translateX(-100%) rotate(14deg); }
  to { transform: translateX(140%) rotate(14deg); }
}

.profile-meta h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.profile-meta p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 15%, rgba(125,249,255,0.08), transparent 85%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.contact-item:hover::before {
  transform: translateX(120%);
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(125,249,255,0.32);
  background: rgba(125,249,255,0.07);
  box-shadow: 0 14px 28px rgba(18, 110, 179, 0.12);
}

.contact-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.contact-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(77,163,255,0.18), rgba(125,249,255,0.12));
  border: 1px solid rgba(125,249,255,0.14);
  color: var(--accent-2);
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contact-label {
  color: var(--accent-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.contact-value {
  color: var(--text);
  font-size: 0.96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-arrow {
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 8px;
}

.sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.section-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(7, 18, 32, 0.66);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.section-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.section-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(77,163,255,0.1);
  color: #cde7ff;
  border: 1px solid rgba(77,163,255,0.18);
  font-size: 0.88rem;
}

.tag-ico {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 0.72rem;
}

.more-tag {
  background: rgba(125,249,255,0.09);
  border-color: rgba(125,249,255,0.22);
  color: var(--accent-2);
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 22px 10px 4px;
  font-size: 0.92rem;
}

.word-hover {
  display: inline-block;
  transition: color 0.18s ease, text-shadow 0.18s ease, transform 0.18s ease;
}

.word-hover:hover {
  color: #ffffff;
  text-shadow:
    0 0 8px rgba(125,249,255,0.25),
    0 0 16px rgba(125,249,255,0.22),
    0 0 24px rgba(77,163,255,0.18);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding: 16px;
  }

  .hero {
    padding: 22px;
  }

  h1 {
    font-size: 2rem;
  }

  .stat-box {
    flex: 1 1 calc(50% - 10px);
    min-width: unset;
    max-width: unset;
  }

  .profile-card,
  .section-card {
    padding: 18px;
  }

  .contact-value {
    max-width: 180px;
  }
}