:root {
  --bg: #eef8ff;
  --ink: #152033;
  --muted: #64748b;
  --blue: #3f7cff;
  --blue-dark: #2451cb;
  --line: rgba(60, 106, 180, 0.15);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 26px 80px rgba(41, 90, 160, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 13% 12%, rgba(87, 151, 255, 0.22), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(0, 210, 255, 0.12), transparent 24%),
    linear-gradient(135deg, #fafdff 0%, #eef8ff 45%, #f8fbff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -4;
  background:
    linear-gradient(115deg, rgba(255,255,255,.4), rgba(71, 145, 255, .12), rgba(255,255,255,.35)),
    radial-gradient(circle at 50% 50%, rgba(0, 174, 255, .08), transparent 36%);
  animation: gradientMove 13s ease-in-out infinite alternate;
  transform: translate3d(0,0,0);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 18px;
  isolation: isolate;
}

.ambient {
  position: fixed;
  z-index: -3;
  border-radius: 999px;
  filter: blur(32px);
  opacity: .36;
  pointer-events: none;
}

.ambient-one {
  width: 250px;
  height: 250px;
  left: -96px;
  top: 18%;
  background: #8bc7ff;
  animation: drift 14s ease-in-out infinite alternate;
}

.ambient-two {
  width: 220px;
  height: 220px;
  right: -90px;
  top: 26%;
  background: #b3f1ff;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.ambient-three {
  width: 260px;
  height: 260px;
  right: 14%;
  bottom: -100px;
  background: #c8dbff;
  animation: drift 19s ease-in-out infinite alternate;
}

.floating-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.float-logo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: rotate(var(--r));
  opacity: .16;
  user-select: none;
  animation: floatSoft 8.5s ease-in-out infinite;
  animation-delay: var(--d);
}

.tech {
  min-width: 58px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(44, 102, 185, .18);
  border-radius: 15px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 30px rgba(42, 89, 161, .08);
  backdrop-filter: blur(8px);
}

.js { color: #9a7a00; background: rgba(255, 221, 64, .28); }
.py { color: #285f9e; background: rgba(80, 160, 255, .18); }
.go { color: #0593a8; background: rgba(0, 207, 230, .16); }
.php { color: #4f5b93; background: rgba(119, 123, 179, .16); }
.html { color: #d84a1b; background: rgba(241, 101, 41, .12); }
.css { color: #1f69d8; background: rgba(41, 101, 241, .12); }
.node { color: #3b8b35; background: rgba(104, 160, 99, .14); }
.react { color: #178fb0; background: rgba(97, 218, 251, .16); }
.docker { color: #0b83c5; background: rgba(36, 150, 237, .12); }
.git { color: #dc5034; background: rgba(240, 80, 51, .12); }

.social-float {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, .68);
  border: 1px solid rgba(44, 102, 185, .14);
  box-shadow: 0 16px 36px rgba(42, 89, 161, .1);
  backdrop-filter: blur(8px);
}

.social-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.whatsapp-float { color: #25d366; }
.github-float { color: #171923; }
.instagram-float { color: #d946ef; }

.profile-card {
  position: relative;
  width: min(100%, 430px);
  padding: 42px 26px 28px;
  text-align: center;
  border: 1px solid rgba(117, 156, 220, .24);
  border-radius: 34px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
  animation: cardIn .75s cubic-bezier(.2,.7,.2,1) both;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 0%, rgba(78, 141, 255, .18), transparent 46%),
    linear-gradient(145deg, rgba(255,255,255,.8), rgba(255,255,255,.25));
}

.profile-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -80px;
  top: -80px;
  border-radius: 999px;
  background: rgba(91, 153, 255, .15);
  filter: blur(8px);
}

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

.avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, #6e8cff, #35d3ff, #6e8cff, #f4fbff, #6e8cff);
  animation: ringSpin 7s linear infinite;
  box-shadow: 0 18px 40px rgba(56, 116, 230, .28);
}

.avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, .96);
}

.status-dot {
  position: absolute;
  z-index: 2;
  right: 6px;
  bottom: 9px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #4f8cff;
  border: 4px solid #fff;
  box-shadow: 0 10px 22px rgba(79, 140, 255, .28);
}

.status-dot::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 5px;
  left: 5px;
  top: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(42px, 11vw, 58px);
  line-height: .95;
  letter-spacing: -0.06em;
  color: var(--blue-dark);
}

.bio {
  width: min(100%, 310px);
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 650;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 38px 0 20px;
  color: var(--blue);
}

.section-title span {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 124, 255, .34));
}

.section-title span:last-child {
  background: linear-gradient(90deg, rgba(63, 124, 255, .34), transparent);
}

.section-title strong {
  font-size: 13px;
  letter-spacing: .28em;
  font-weight: 900;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.social-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 24px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(117, 156, 220, .22);
  box-shadow: 0 16px 32px rgba(43, 91, 160, .1);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: linkIn .65s cubic-bezier(.2,.7,.2,1) both;
}

.social-card:nth-child(1) { animation-delay: .1s; }
.social-card:nth-child(2) { animation-delay: .2s; }
.social-card:nth-child(3) { animation-delay: .3s; }

.social-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 42px rgba(43, 91, 160, .16);
  border-color: rgba(63, 124, 255, .32);
}

.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(53, 83, 128, .12);
}

.icon-box svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.social-card b {
  font-size: 13px;
  color: #667085;
}

.social-card.whatsapp .icon-box { color: #25d366; }
.social-card.github .icon-box { color: #171923; }
.social-card.instagram .icon-box {
  color: #fff;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 15%, #fd5949 42%, #d6249f 64%, #285aeb 100%);
}

@keyframes gradientMove {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.05); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(28px, -18px, 0) scale(1.08); }
}

@keyframes floatSoft {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r)); }
  50% { transform: translate3d(10px, -18px, 0) rotate(calc(var(--r) + 5deg)); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 420px) {
  .page-shell {
    padding: 30px 14px;
  }

  .profile-card {
    padding: 36px 18px 22px;
    border-radius: 30px;
  }

  .avatar-wrap {
    width: 122px;
    height: 122px;
  }

  .social-links {
    gap: 10px;
  }

  .social-card {
    min-height: 104px;
    border-radius: 22px;
  }

  .icon-box {
    width: 46px;
    height: 46px;
  }

  .float-logo {
    opacity: .12;
  }
}
