/* =========================
   GLOBAL RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   ROOT
========================= */
:root {
  --white: #ffffff;
  --black: #000000;
  --pink: #ff2ecf;
  --pink-bright: #ff5fe0;
  --green: #00ff9c;
  --tv-dark: #1a1418;
  --tv-mid: #2a2026;
  --tv-border: #d8d8d8;
  --tv-shadow: rgba(0, 0, 0, 0.55);
}

/* =========================
   PAGE / BACKGROUND
========================= */
html,
body {
  min-height: 100%;
}

body {
  font-family: "Times New Roman", serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 16px;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  color: var(--black);

  background:
    linear-gradient(
      90deg,
      #180818 0%,
      #ff4fd8 12%,
      #b84fff 30%,
      #7b50ff 48%,
      #2f66ff 68%,
      #2fd6ff 86%,
      #150816 100%
    );
}

/* neon wall base */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(
      90deg,
      rgba(255, 70, 190, 0.95) 0%,
      rgba(205, 75, 255, 0.9) 20%,
      rgba(130, 70, 255, 0.88) 42%,
      rgba(63, 111, 255, 0.86) 68%,
      rgba(40, 210, 255, 0.82) 88%,
      rgba(255, 70, 190, 0.9) 100%
    );
  filter: saturate(1.18) contrast(1.05);
}

/* paint drips / blobs */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.95;
  mix-blend-mode: screen;
  background:
    radial-gradient(140px 290px at 6% 18%, rgba(255, 80, 190, 0.85) 0 55%, transparent 56%),
    radial-gradient(210px 420px at 18% 70%, rgba(214, 76, 255, 0.78) 0 52%, transparent 53%),
    radial-gradient(130px 270px at 31% 20%, rgba(140, 70, 255, 0.82) 0 54%, transparent 55%),
    radial-gradient(220px 440px at 47% 75%, rgba(255, 82, 180, 0.76) 0 50%, transparent 51%),
    radial-gradient(145px 300px at 59% 24%, rgba(75, 95, 255, 0.82) 0 53%, transparent 54%),
    radial-gradient(220px 420px at 73% 68%, rgba(45, 205, 255, 0.76) 0 50%, transparent 51%),
    radial-gradient(150px 315px at 84% 22%, rgba(120, 78, 255, 0.82) 0 52%, transparent 53%),
    radial-gradient(220px 410px at 95% 72%, rgba(255, 84, 204, 0.72) 0 49%, transparent 50%);
}

/* =========================
   MAIN CONTAINER
========================= */
.container {
  width: 100%;
  max-width: 430px;
  text-align: center;
  padding: 20px;
}

/* =========================
   GLOBAL TEXT STYLE
========================= */
h1,
.tagline,
.links a,
.footer {
  color: #000000;
  font-weight: 700;
  -webkit-text-stroke: 0.35px rgba(255, 255, 255, 0.96);
  text-stroke: 0.35px rgba(255, 255, 255, 0.96);
  text-shadow:
    0 0 0 #000,
    0.25px 0 #000,
    -0.25px 0 #000,
    0 0.25px #000,
    0 -0.25px #000;
}

/* =========================
   HERO / TV BOX
========================= */
.hero {
  position: relative;
  margin-bottom: 30px;
  padding: 22px 18px 20px;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(
      180deg,
      rgba(58, 48, 54, 0.95) 0%,
      rgba(34, 26, 32, 0.96) 48%,
      rgba(18, 14, 18, 0.98) 100%
    );
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.52),
    inset 0 2px 2px rgba(255, 255, 255, 0.18),
    inset 0 -6px 12px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(255, 90, 210, 0.14),
    0 0 24px rgba(80, 210, 255, 0.12);
  overflow: hidden;
}

/* old TV outer curvature / edge glow */
.hero::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.03) 32%,
      rgba(0, 0, 0, 0.12) 72%,
      rgba(0, 0, 0, 0.3) 100%
    );
  pointer-events: none;
}

/* TV scanlines / flicker / distortion */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  opacity: 0.48;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.09) 0px,
      rgba(255, 255, 255, 0.09) 1px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.06) 14%,
      transparent 24%,
      transparent 38%,
      rgba(255, 255, 255, 0.05) 48%,
      transparent 58%,
      transparent 72%,
      rgba(255, 255, 255, 0.04) 82%,
      transparent 100%
    );
  mix-blend-mode: screen;
}

/* =========================
   PROFILE IMAGE
========================= */
.profile {
  position: relative;
  z-index: 1;
  width: 142px;
  height: 142px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  margin-bottom: 16px;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.5),
    0 0 0 6px rgba(255, 255, 255, 0.08),
    0 0 14px rgba(255, 80, 200, 0.16),
    0 0 18px rgba(75, 210, 255, 0.12);
}

/* =========================
   NAME
========================= */
h1 {
  position: relative;
  z-index: 1;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 1.6px;
  margin-bottom: 10px;
}

/* =========================
   TAGLINE
========================= */
.tagline {
  position: relative;
  z-index: 1;
  font-size: 18px;
  line-height: 1.55;
  opacity: 1;
}

/* =========================
   LINKS
========================= */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.links a {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.2;
  padding: 15px 16px 18px;
  border-radius: 12px;
  background: var(--pink);
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(255, 0, 200, 0.7),
    0 0 18px rgba(255, 0, 200, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    filter 0.18s ease;
}

/* neon green line 1/4 from bottom */
.links a::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 3px;
  bottom: 24%;
  border-radius: 999px;
  background: var(--green);
  box-shadow:
    0 0 6px var(--green),
    0 0 12px var(--green),
    0 0 18px rgba(0, 255, 156, 0.7);
  z-index: 2;
}

/* glitch / signal overlay on buttons */
.links a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14) 0px,
      rgba(255, 255, 255, 0.14) 1px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px
    ),
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.28) 14%,
      transparent 26%,
      transparent 44%,
      rgba(0, 255, 156, 0.22) 52%,
      transparent 64%,
      rgba(255, 255, 255, 0.18) 78%,
      transparent 100%
    );
  mix-blend-mode: screen;
}

/* Hover = ongoing soft TV glitch */
.links a:hover {
  transform: translateY(-2px) scale(1.01);
  background: var(--pink-bright);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.45),
    0 0 14px rgba(255, 0, 200, 0.85),
    0 0 26px rgba(255, 0, 200, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: buttonGlitch 0.9s steps(2, end) infinite;
}

.links a:hover::before {
  opacity: 1;
  animation: scanFlicker 0.55s linear infinite;
}

/* Click = stronger distortion, then normal on release */
.links a:active {
  transform: scaleX(0.985) scaleY(0.965) skewX(-2deg);
  filter: contrast(1.15) saturate(1.05);
  background: #ff72e5;
  animation: buttonPressGlitch 0.14s steps(2, end) 1;
}

.links a:active::before {
  opacity: 1;
  animation: pressSignal 0.14s steps(3, end) 1;
}

/* =========================
   FOOTER
========================= */
.footer {
  margin-top: 28px;
  font-size: 13px;
  opacity: 0.9;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes buttonGlitch {
  0% {
    transform: translateY(-2px) translateX(0) scale(1.01);
  }
  20% {
    transform: translateY(-2px) translateX(1px) scale(1.01);
  }
  40% {
    transform: translateY(-2px) translateX(-1px) scale(1.01);
  }
  60% {
    transform: translateY(-2px) skewX(0.8deg) scale(1.008);
  }
  80% {
    transform: translateY(-2px) skewX(-0.8deg) scale(1.012);
  }
  100% {
    transform: translateY(-2px) translateX(0) scale(1.01);
  }
}

@keyframes scanFlicker {
  0% {
    opacity: 0.18;
    transform: translateX(0);
  }
  20% {
    opacity: 0.38;
    transform: translateX(2px);
  }
  40% {
    opacity: 0.2;
    transform: translateX(-2px);
  }
  60% {
    opacity: 0.34;
    transform: translateX(1px);
  }
  80% {
    opacity: 0.24;
    transform: translateX(-1px);
  }
  100% {
    opacity: 0.18;
    transform: translateX(0);
  }
}

@keyframes buttonPressGlitch {
  0% {
    transform: scaleX(1) scaleY(1) skewX(0deg);
  }
  25% {
    transform: scaleX(1.015) scaleY(0.95) skewX(2deg);
  }
  50% {
    transform: scaleX(0.975) scaleY(0.97) skewX(-3deg);
  }
  75% {
    transform: scaleX(1.01) scaleY(0.955) skewX(1deg);
  }
  100% {
    transform: scaleX(0.985) scaleY(0.965) skewX(-2deg);
  }
}

@keyframes pressSignal {
  0% {
    opacity: 0.25;
    transform: translateX(0) scaleY(1);
  }
  25% {
    opacity: 0.8;
    transform: translateX(4px) scaleY(0.96);
  }
  50% {
    opacity: 0.55;
    transform: translateX(-4px) scaleY(1.04);
  }
  75% {
    opacity: 0.75;
    transform: translateX(2px) scaleY(0.98);
  }
  100% {
    opacity: 0.4;
    transform: translateX(0) scaleY(1);
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 480px) {
  body {
    padding: 18px 12px;
  }

  .container {
    max-width: 100%;
    padding: 14px;
  }

  .hero {
    padding: 20px 14px 18px;
    border-radius: 24px;
  }

  .hero::before {
    inset: 7px;
    border-radius: 18px;
  }

  .profile {
    width: 128px;
    height: 128px;
  }

  h1 {
    font-size: 28px;
    letter-spacing: 1.2px;
  }

  .tagline {
    font-size: 16px;
  }

  .links a {
    font-size: 17px;
    padding: 14px 14px 17px;
  }
}