:root {
  --bg-1: #050914;
  --bg-2: #0f1729;
  --panel: rgba(14, 23, 40, 0.86);
  --stroke: rgba(156, 173, 199, 0.22);
  --text: #f0f5ff;
  --muted: #a4b3cb;
  --accent: #ef4444;
  --accent-2: #22d3ee;
  --chip-bg: rgba(130, 149, 179, 0.17);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.035) 0 14px,
      transparent 14px 30px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(34, 211, 238, 0.02) 0 12px,
      transparent 12px 28px
    ),
    radial-gradient(circle at 10% 20%, rgba(34, 211, 238, 0.15), transparent 36%),
    radial-gradient(circle at 90% 5%, rgba(239, 68, 68, 0.2), transparent 30%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  padding: 1.2rem;
}

.site-shell {
  width: min(1560px, 100%);
  margin: 0 auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  padding: clamp(0.95rem, 2vw, 1.25rem);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.6s ease forwards;
}

[data-reveal]:nth-of-type(2) {
  animation-delay: 0.08s;
}

[data-reveal]:nth-of-type(3) {
  animation-delay: 0.16s;
}

[data-reveal]:nth-of-type(4) {
  animation-delay: 0.24s;
}

.hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.2rem;
  align-items: center;
}

.avatar {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.75);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent-2);
}

h1 {
  margin: 0.35rem 0;
  font-size: clamp(2.1rem, 5vw, 2.9rem);
}

h2 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

h3 {
  margin: 0.9rem 0 0.6rem;
  font-size: 1.08rem;
}

.intro {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.layout-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 0.95fr 2.4fr 1.25fr;
  gap: 1rem;
  align-items: start;
}

.center-column {
  display: grid;
  gap: 0.42rem;
}

.work-panel {
  margin-top: 0;
}

.chips {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chips li {
  background: var(--chip-bg);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.98rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.link-card {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(9, 16, 31, 0.65);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.23);
  transition: border-color 0.18s ease, background-color 0.18s ease;
  display: block;
}

.link-card span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.link-card:hover {
  border-color: rgba(156, 173, 199, 0.45);
  background-color: rgba(15, 24, 43, 0.72);
}

.work-panel p {
  margin: 0.25rem 0;
  color: var(--muted);
}

.click-note {
  margin: 0 0 0.6rem;
  color: var(--accent-2);
  font-size: 0.92rem;
}

.text-link {
  color: var(--accent-2);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.discord-note {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.discord-panel {
  align-self: start;
}

.discord-card {
  border: 1px dashed rgba(156, 173, 199, 0.35);
  border-radius: 14px;
  background: rgba(10, 18, 35, 0.62);
  padding: 0.9rem;
}

.discord-label {
  color: var(--muted);
  font-size: 0.87rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.discord-name {
  margin: 0.3rem 0 0.65rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.modrinth-panel {
  min-height: 100%;
}

.section-note {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.modrinth-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(9, 16, 31, 0.65);
  padding: 0.8rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-value {
  margin: 0.24rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.project-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(9, 16, 31, 0.65);
  padding: 0.85rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.23);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.project-card img {
  width: 90px;
  height: 90px;
  border-radius: 12px;
}

.project-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.project-card p {
  margin: 0.32rem 0;
  color: var(--muted);
}

.project-card:hover {
  border-color: rgba(156, 173, 199, 0.45);
  background-color: rgba(15, 24, 43, 0.72);
}

button {
  margin-top: 0.25rem;
  border: 1px solid rgba(14, 165, 233, 0.45);
  background: #0284c7;
  color: #fff;
  border-radius: 10px;
  padding: 0.62rem 0.98rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.34);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

button:hover {
  background-color: #0ea5e9;
  border-color: rgba(56, 189, 248, 0.7);
}

.discord-copy-btn {
  background: transparent;
  border: 1px solid rgba(156, 173, 199, 0.5);
  color: var(--text);
  box-shadow: none;
}

.discord-copy-btn:hover {
  background: transparent;
  border-color: rgba(156, 173, 199, 0.8);
}

#copyMessage {
  min-height: 1.2rem;
  margin-top: 0.45rem;
  color: var(--accent-2);
}

.footer {
  margin-top: 1rem;
  border-top: 1px solid var(--stroke);
  padding-top: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .center-column {
    order: 1;
    gap: 1rem;
  }

  .discord-panel {
    order: 2;
  }

  .modrinth-panel {
    order: 3;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

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

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card img {
    width: 64px;
    height: 64px;
  }

  .modrinth-stats {
    grid-template-columns: 1fr;
  }
}
