:root {
  --bg: #101416;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f6f8f7;
  --muted: #aab4af;
  --primary: #7ab1d3;
  --accent: #c4f06d;
  --warm: #f0b86d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Lexend", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(130deg, rgba(122, 177, 211, 0.18), transparent 32%),
    linear-gradient(315deg, rgba(196, 240, 109, 0.1), transparent 35%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 72px
    ),
    #101416;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

.shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 44px) 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: intro 0.65s ease both;
}

.profile-card,
.contact-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-card {
  padding: 28px 24px 24px;
  border-radius: 8px;
  text-align: center;
}

.profile-media {
  display: flex;
  justify-content: center;
}

.pfp-wrapper {
  position: relative;
  width: 116px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.pfp-wrapper::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, var(--primary), var(--accent), var(--warm), var(--primary));
  animation: rotateGlow 8s linear infinite;
}

.pfp-wrapper img {
  position: relative;
  width: 100%;
  height: 100%;
  border: 4px solid #101416;
  border-radius: 999px;
  object-fit: cover;
}

.eyebrow {
  margin: 18px 0 6px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(1.7rem, 8vw, 2.6rem);
  line-height: 1.05;
}

.location {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.intro {
  max-width: 34ch;
  margin: 18px auto 0;
  color: #dbe2df;
  font-size: 0.98rem;
  line-height: 1.7;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(122, 177, 211, 0.8);
  background: rgba(122, 177, 211, 0.16);
}

.social-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.links {
  display: grid;
  gap: 10px;
}

.link {
  min-height: 74px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(122, 177, 211, 0.8);
  background: var(--panel-strong);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
  outline: none;
}

.link-featured {
  border-color: rgba(196, 240, 109, 0.38);
  background: linear-gradient(135deg, rgba(196, 240, 109, 0.16), rgba(122, 177, 211, 0.1));
}

.link span:first-child {
  min-width: 0;
}

.link strong,
.link small {
  display: block;
}

.link strong {
  font-size: 0.98rem;
}

.link small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-weight: 700;
}

.contact-panel {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 8px;
}

.contact-panel h2 {
  font-size: 1rem;
}

.contact-panel p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.contact-panel a {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-panel a:hover,
.contact-panel a:focus-visible {
  text-decoration: underline;
  outline: none;
}

footer {
  padding: 2px 0 0;
  color: #82908a;
  font-size: 0.78rem;
  text-align: center;
}

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

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

@media (max-width: 430px) {
  .shell {
    padding-inline: 14px;
  }

  .profile-card {
    padding: 24px 18px 22px;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-panel a {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
