* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Pacifico";
  src: url("Pacifico-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cdefs%3E%3Cfilter id='g' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='2.5'/%3E%3C/filter%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='4' fill='white' filter='url(%23g)' opacity='0.5'/%3E%3Ccircle cx='16' cy='16' r='4' fill='white'/%3E%3C/svg%3E") 16 16, none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
  pointer-events: none;
}

canvas#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#cursor-glow {
  position: fixed;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

a, button, .site-card, .contact-item, .avatar, [role="button"], [data-hover] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cdefs%3E%3Cfilter id='g' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='2.5'/%3E%3C/filter%3E%3C/defs%3E%3Ccircle cx='16' cy='16' r='4' fill='white' filter='url(%23g)' opacity='0.5'/%3E%3Ccircle cx='16' cy='16' r='4' fill='white'/%3E%3C/svg%3E") 16 16, none !important;
}

.ripple-container {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: ripple-expand 1.2s ease-out forwards;
}

@keyframes ripple-expand {
  0% { width: 0; height: 0; opacity: 1; }
  100% { width: 200px; height: 200px; opacity: 0; }
}

.container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 60px) clamp(12px, 3vw, 24px) clamp(24px, 4vw, 40px);
}

/* ---------- Hero Row: Avatar + Domain ---------- */
.hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4vw, 36px);
  flex-wrap: wrap;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: clamp(60px, 12vw, 100px);
  height: clamp(60px, 12vw, 100px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.25), 0 0 60px rgba(255, 255, 255, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.4), 0 0 80px rgba(255, 255, 255, 0.2);
}

.avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: ring-pulse 2.5s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.12); opacity: 0; }
}

.domain-wrap {
  display: flex;
  align-items: center;
}

.domain {
  font-family: "Pacifico", cursive;
  font-size: clamp(1.4rem, 6vw, 2.8rem);
  font-weight: normal;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.domain-cursor {
  font-family: "Pacifico", cursive;
  font-size: clamp(1.4rem, 6vw, 2.8rem);
  font-weight: normal;
  color: #fff;
  margin-left: 2px;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------- Signature ---------- */
.signature {
  text-align: center;
  margin-top: 28px;
}

.sig-text {
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 4px;
  opacity: 0.85;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  position: relative;
  display: inline-block;
}

.sig-text::before,
.sig-text::after {
  content: "「";
  position: absolute;
  left: -28px;
  top: 0;
  opacity: 0.5;
  animation: bracket-float 3s ease-in-out infinite;
}

.sig-text::after {
  content: "」";
  left: auto;
  right: -28px;
  animation-delay: 0.4s;
}

@keyframes bracket-float {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* ---------- Section Title ---------- */
.section-title {
  text-align: center;
  font-size: clamp(0.85rem, 1.6vw, 1.2rem);
  font-weight: 400;
  letter-spacing: clamp(3px, 0.6vw, 6px);
  margin-bottom: clamp(18px, 3vw, 28px);
  position: relative;
}

.section-title span {
  display: inline-block;
  position: relative;
  padding: 0 20px;
}

.section-title span::before,
.section-title span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
}

.section-title span::before { left: -60px; }
.section-title span::after { right: -60px; }

/* ---------- Sites Grid ---------- */
.sites {
  margin-top: clamp(28px, 5vw, 48px);
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(10px, 2vw, 20px);
}

.site-card {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 28px) clamp(12px, 2.5vw, 20px);
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.4s ease,
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.site-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.site-card:hover {
  transform: translateY(-14px) scale(1.06);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 80px rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.site-card:hover::before {
  opacity: 1;
}

.site-card .card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              text-shadow 0.4s ease;
}

.site-card:hover .card-icon {
  transform: scale(1.4) rotate(-10deg);
  text-shadow: 0 0 30px rgba(255,255,255,0.8), 0 0 60px rgba(255,255,255,0.4);
}

.site-card .card-name {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.site-card .card-desc {
  font-size: 0.8rem;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.site-card:hover .card-desc {
  opacity: 1;
}

/* ---------- Contact ---------- */
.contact {
  margin-top: clamp(28px, 5vw, 48px);
}

.contact-list {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 24px);
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 10px);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  padding: 12px 26px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.contact-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.contact-item:hover {
  transform: translateY(-6px) scale(1.08);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
}

.contact-item:hover::after {
  opacity: 1;
}

.contact-item .contact-icon {
  font-size: 1.2rem;
  transition: transform 0.4s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.2);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(20px, 3vw, 32px) clamp(12px, 2vw, 20px);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  letter-spacing: clamp(1px, 0.2vw, 2px);
  opacity: 0.7;
}

.footer strong {
  font-weight: 600;
  background: linear-gradient(135deg, #fff, #ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Entrance Animations ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.2s; }
.fade-in-up.delay-2 { animation-delay: 0.4s; }
.fade-in-up.delay-3 { animation-delay: 0.6s; }
.fade-in-up.delay-4 { animation-delay: 0.8s; }

@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .hero-row {
    flex-direction: column;
  }

  .contact-list {
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    width: 100%;
    justify-content: center;
  }
}

@media (hover: none) and (pointer: coarse) {
  #cursor-glow {
    display: none;
  }

  body,
  a, button, .site-card, .contact-item, .avatar, [role="button"], [data-hover] {
    cursor: auto !important;
  }
}
