:root {
  --background: #000;
  --background-3: #141414;
  --background-4: #1e1e1e;
  --text-color: #fff;
  --text-muted: #aaa;
}

/* --- Base Styles --- */
html {
  color: var(--text-color);
  box-sizing: border-box;
  font-family: SF Pro Text, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  scrollbar-color: var(--background-3) var(--background);
  scrollbar-gutter: stable both-edges;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  background-color: var(--background);
  margin: 0 auto;
  text-align: center;
  max-width: 802px;
  padding: 0 10px;
}

/* --- Optional Scrollbar for Chrome/Safari --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background-color: var(--background-3);
  border-radius: 10px;
  border: 2px solid var(--background);
}

/* --- Main Logo --- */
#text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0 5px;
}

#text-content img {
  width: 100%;
  max-width: 720px;
  height: auto;
  transition: transform 0.3s ease;
  will-change: transform;
}

#text-content img:hover {
  transform: scale(1.02);
}

/* --- Community Section --- */
#community-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

#discord-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 400px;
}

/* --- Social Media Icons with Glow & Pulse --- */
#social-media {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px 0;
}

#social-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 8px;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#social-media a img {
  width: 36px;
  height: 36px;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
  will-change: transform;
}

#social-media a:hover {
  transform: scale(1.15);
  background-color: var(--background-4);
  animation: pulse-glow 1s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
  50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
  100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
}

#social-media a:hover img {
  filter: brightness(1.3) drop-shadow(0 0 6px rgba(255,255,255,0.5));
}

/* --- Footer --- */
footer {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
  padding: 20px 0;
}

footer p {
  margin: 0;
  letter-spacing: 0.5px;
}

/* --- Responsive --- */
@media screen and (max-width: 820px) {
  body { max-width: 90%; padding: 0 15px; }
}

@media screen and (max-width: 540px) {
  body { font-size: smaller; }
  #text-content { margin: 40px 0 30px; }
  footer { font-size: 0.8rem; padding: 15px 0; }
  #community-section { gap: 15px; }
  #social-media { gap: 15px; margin: 20px 0; }
  #social-media a img { width: 28px; height: 28px; }
  #social-media a { padding: 6px; }
}

@media screen and (max-width: 400px) {
  #discord-container { margin-bottom: 10px; }
  #community-section { gap: 12px; margin-bottom: 8px; }
  #social-media { gap: 12px; margin: 15px 0; }
  #social-media a img { width: 24px; height: 24px; }
  #social-media a { padding: 5px; }
  footer { margin-top: 8px; }
}