body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: white;
  background: black;
}

.background {
  background-image: url('https://i.imgur.com/WR2dR4D_d.png');
  background-size: cover;
  background-position: center;
  position: fixed;
  inset: 0;
  z-index: -1;
}

.container {
  width: 90%;
  max-width: 400px;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.avatar-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px auto;
  perspective: 1000px;
  cursor: pointer;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.avatar-wrapper.flipped .avatar-inner {
  transform: rotateY(180deg);
}

.glass-avatar {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
}

.avatar-front {
  transform: rotateY(0deg);
  z-index: 2;
}

.avatar-back {
  transform: rotateY(180deg);
}

.glass-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  font-size: 24px;
  margin: 10px 0 5px 0;
}

.description {
  font-size: 14px;
  margin-bottom: 20px;
}

.tile-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.tile {
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  white-space: nowrap;
}

.glass-tile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease;
}

.glass-tile:hover {
  background: rgba(255, 255, 255, 0.15);
}

.contact {
  margin-top: 30px;
  font-size: 14px;
}

.icons {
  margin-top: 10px;
  font-size: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.memo {
  margin-top: 20px;
  padding: 22px 20px 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 24px;
  color: #fff;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.05);
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100% 24px;
  text-align: left;
  max-width: 100%;
  word-break: break-word;
}

.memo p {
  margin: 0;
  padding: 0;
}

.memo h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.email-box {
  position: relative;
  margin: 20px auto;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  color: #fff;
  width: fit-content;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.email-text {
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.email-box:hover .email-text {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8),
               0 0 12px rgba(255, 255, 255, 0.6);
}

.email-popup {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.email-popup.show {
  opacity: 1;
}

.glass-button {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  text-shadow: none;
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8),
               0 0 12px rgba(255, 255, 255, 0.6);
}
