:root {
  --bg-start: #0a0a0a;
  --bg-end: #1a1a1a;
  --text: #f0f0f0;
  --muted: #a0a0a0;
  --border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(20, 20, 20, 0.6);
  --accent: #00d4ff;
  --accent-secondary: #0070f3;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg,
      var(--bg-start) 0%,
      var(--bg-end) 50%,
      #0f0f0f 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 120, 243, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: 'Freelance web engineer roaming Japan. Ruby, PHP, TypeScript—plus whatever works. Inspired by fine scents, immersive sound, and clean code.';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1200px;
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.05em;
  text-align: center;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  z-index: 1;
  word-wrap: break-word;
}

.wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.card {
  width: 100%;
  padding: 48px 40px 40px;
  text-align: center;
  background: var(--card-bg);
  backdrop-filter: blur(30px) saturate(180%);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: fadeIn 0.7s ease-out;
  position: relative;
}

.card > * {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  padding: 14px;
  border: 3px solid rgba(0, 212, 255, 0.3);
  box-shadow:
    0 12px 32px rgba(0, 212, 255, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 212, 255, 0.15);
  animation: float 4s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
  animation-play-state: paused;
  transform: scale(1.05);
  box-shadow:
    0 16px 40px rgba(0, 212, 255, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 212, 255, 0.25);
}

.info {
  width: 100%;
}

h1 {
  margin: 0 0 10px 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.bio {
  margin: 0 0 36px 0;
  padding: 28px 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(0, 212, 255, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  flex-shrink: 0;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.btn:hover .icon {
  opacity: 1;
  transform: scale(1.1);
}

.btn span {
  flex: 1;
  text-align: left;
}

.btn .arrow {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s ease;
}

.btn:hover .arrow {
  opacity: 0.5;
  transform: translateX(0);
}

.foot {
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  opacity: 0.5;
  font-weight: 500;
}

@media (max-width: 520px) {
  .wrap {
    padding: 48px 20px;
  }

  .card {
    padding: 36px 28px 32px;
  }

  .avatar {
    width: 104px;
    height: 104px;
  }

  h1 {
    font-size: 26px;
  }

  .sub {
    font-size: 14px;
  }

  .bio {
    font-size: 14px;
    padding: 24px 0;
  }
}
