:root {
  --bg: #05070d;
  --bg-soft: #0d1320;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --text: #f4f7fb;
  --muted: #aab5c5;
  --accent: #4ee1a0;
  --accent-2: #4da3ff;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(78, 225, 160, 0.18), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(77, 163, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #05070d 0%, #0b1020 50%, #05070d 100%);
  color: var(--text);
  font-family: "Noto Sans TC", sans-serif;
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  width: min(1120px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 8px;
}

.site-nav a {
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--panel-strong);
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: 0.25s ease;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
  padding-top: 160px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.08em;
}

h1 span {
  color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-clip: text;
  -webkit-background-clip: text;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.hero-text,
.contact-panel p,
.glass-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-text {
  max-width: 680px;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn.primary {
  background: var(--accent);
  color: #03110b;
}

.btn.secondary {
  border: 1px solid var(--line);
  background: var(--panel);
}

.btn:hover {
  transform: translateY(-4px);
}

.hero-card {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% 30%, rgba(78, 225, 160, 0.22), transparent 35%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 40%;
  animation: spin 18s linear infinite;
}

.profile-orbit {
  position: relative;
  z-index: 1;
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(78, 225, 160, 0.28), rgba(77, 163, 255, 0.22));
}

.profile-photo {
  width: 170px;
  height: 170px;
  display: block;
  border-radius: 38px;
  background: #080c14;
  border: 1px solid var(--line);
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.discord-info {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  max-width: calc(100% - 210px);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
}

.discord-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.discord-activity {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.78);
  color: var(--muted);
  backdrop-filter: blur(14px);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.status-card[data-discord-status="online"] .status-dot {
  background: #4ee1a0;
  box-shadow: 0 0 18px #4ee1a0;
}

.status-card[data-discord-status="idle"] .status-dot {
  background: #f0b84f;
  box-shadow: 0 0 18px #f0b84f;
}

.status-card[data-discord-status="dnd"] .status-dot {
  background: #ff5c77;
  box-shadow: 0 0 18px #ff5c77;
}

.status-card[data-discord-status="offline"] .status-dot {
  background: #697386;
  box-shadow: 0 0 18px rgba(105, 115, 134, 0.7);
}

.section-title {
  margin-bottom: 36px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.glass-card,
.contact-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glass-card {
  min-height: 260px;
  padding: 28px;
  border-radius: 28px;
  transition: 0.25s ease;
}

.glass-card:hover {
  background: var(--panel-strong);
  transform: translateY(-8px);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.skills span {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 34px;
  padding: 44px;
  border-radius: 34px;
}

.contact-panel p {
  max-width: 620px;
  margin-top: 18px;
}

.contact-list {
  display: grid;
  gap: 14px;
  align-content: center;
}

.contact-list a {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  transition: 0.25s ease;
}

.contact-list a:hover {
  border-color: rgba(78, 225, 160, 0.55);
  color: var(--text);
  transform: translateX(6px);
}

.site-footer {
  padding: 26px 16px 40px;
  color: var(--muted);
  text-align: center;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 225, 160, 0.18), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: 0.7s ease;
}

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

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

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(5, 7, 13, 0.92);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
    padding-top: 140px;
  }

  .hero-card {
    min-height: 380px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 86px 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .contact-panel {
    padding: 26px;
  }

  .discord-info {
    left: 18px;
    right: 18px;
    bottom: 78px;
    max-width: none;
    text-align: center;
  }

  .status-card {
    left: 18px;
    right: 18px;
    justify-content: center;
    font-size: 0.88rem;
  }
}