/* =========================
   GLOBAL RESET
========================= */
*,
*:after,
*:before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --x: 0;
  --y: 0;
  --xp: 0;
  --yp: 0;
  --hue: calc(0 + (var(--xp) * 500));
  --size: 100px;
  --glow: radial-gradient(
      50% 50% at center,
      hsl(var(--hue) 80% 85%),
      hsl(var(--hue) 80% 70%),
      transparent
    )
    calc((var(--x) * 1px) - (var(--size) * 0.5))
    calc((var(--y) * 1px) - (var(--size) * 0.5))
    / var(--size) var(--size) no-repeat fixed;
}

/* =========================
   BODY + BACKGROUND
========================= */
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  font-family: "Press Start 2P", cursive;
  color: white;
  background: url('../bg/Art LoopGIF.gif') center top no-repeat;
  background-size: cover;
  overflow-x: hidden;
  padding-top: 20px;
  position: relative;
}

/* =========================
   PROFILE AVATAR
========================= */
body > div:first-of-type {
  position: relative;
  margin-bottom: 10px;
}

body > div:first-of-type img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00ffff;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #ff00ff, 0 0 30px #00ff00;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

body > div:first-of-type img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px #00ffff, 0 0 25px #ff00ff, 0 0 35px #00ff00;
}

body > div:first-of-type::after {
  content: 'Hi!';
  position: absolute;
  top: 50%;
  left: 105%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

body > div:first-of-type:hover::after {
  opacity: 1;
}

/* =========================
   HYPERSaRtHaK TITLE
========================= */
body > button:first-of-type {
  border: none;
  background: none;
  cursor: pointer;
  margin-top: 5px;
  z-index: 10;
  position: relative;
}

body > button:first-of-type span {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(0.8rem, 7vw, 1.9rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--glow), black;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 6px rgba(255,255,255,0.35), 0 0 18px hsla(40, 90%, 70%, 0.45);
  transition: text-shadow 0.2s ease;
}

/* SEO-friendly title text */
body > button:first-of-type span::before {
  content: attr(data-text);
  position: absolute;
  left: -9999px;
  color: #fff;
}

/* =========================
   ABOUT ME SIGNBOARD
========================= */
body > button:nth-of-type(2) {
  border: none;
  cursor: pointer;
  width: 50vw;
  max-width: 180px;
  aspect-ratio: 3/1;
  padding: 0.4em;
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.55rem, 1.8vw, 0.9rem);
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../bg/Blank-sign-oak_JE2_BE2.webp') center/cover no-repeat;
  border-radius: 4px;
  box-shadow: 0 4px 0 #4b2e1e, 0 6px 10px rgba(0,0,0,0.4), inset 0 0 8px rgba(255,255,255,0.2);
  transform-origin: top center;
  animation: swing 4s ease-in-out infinite;
}

body > button:nth-of-type(2) span {
  font-size: inherit;
  background: var(--glow), black;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 4px rgba(255,255,255,0.35), 0 0 10px rgba(255,215,0,0.45);
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

body > button:nth-of-type(2):hover span {
  color: #fff;
  text-shadow: 0 0 8px #00ffff, 0 0 16px #ff00ff, 0 0 24px #00ff00;
}

/* SEO-friendly About Me signboard text */
body > button:nth-of-type(2) span::before {
  content: attr(data-text);
  position: absolute;
  left: -9999px;
  color: #fff;
}

/* Swing animation */
@keyframes swing {
  0% { transform: rotateZ(2deg); }
  50% { transform: rotateZ(-2deg); }
  100% { transform: rotateZ(2deg); }
}

/* =========================
   ABOUT ME PARAGRAPH
========================= */
.about-me-text {
  max-width: 700px;
  margin: 20px auto;
  text-align: justify;
  line-height: 1.7;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-family: 'Press Start 2P', cursive;
  word-wrap: break-word;
  padding: 0 15px;
  background: var(--glow), black;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 6px rgba(255,255,255,0.35), 0 0 18px hsla(40, 90%, 70%, 0.45);
  transition: text-shadow 0.2s ease;
}

/* SEO-friendly paragraph text */
.about-me-text::before {
  content: attr(data-text);
  position: absolute;
  left: -9999px;
  color: #fff;
}

/* =========================
   SOCIAL LINKS
========================= */
.social-links {
  margin-top: 15px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.social-links a {
  font-size: 2rem;
  color: white;
  transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

/* Hover effects for icons */
.social-links a:hover {
  transform: scale(1.2);
  text-shadow: 0 0 10px rgba(255,255,255,0.6);
}

/* Individual hover colors */
.social-links a .fa-instagram:hover { color: #E1306C; }
.social-links a .fa-discord:hover { color: #5865F2; }
.social-links a .fa-youtube:hover { color: #FF0000; }

/* SEO-friendly social text */
.social-links a::before {
  content: attr(data-text);
  position: absolute;
  left: -9999px;
  color: #fff;
}

/* =========================
   MEDIA QUERIES
========================= */
@media (min-width: 768px) {
  body > div:first-of-type img { width: 80px; height: 80px; }
  body > button:first-of-type span { font-size: 1.3rem; }
  body > button:nth-of-type(2) { width: 35vw; max-width: 280px; font-size: clamp(0.7rem,1.5vw,1rem); }
  .about-me-text { max-width: 60%; font-size: 1rem; line-height: 1.8; text-align: justify; }
}
/* Loader Container */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d0d0d; /* dark background for gamer vibe */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Pulsing Loader */
.loader {
  display: flex;
  gap: 15px;
}

.loader span {
  display: block;
  width: 15px;
  height: 15px;
  background: #0ff; /* cyan neon glow */
  border-radius: 50%;
  box-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 30px #0ff;
  animation: pulse 1.2s infinite ease-in-out;
}

/* stagger animation delay */
.loader span:nth-child(1) { animation-delay: 0s; }
.loader span:nth-child(2) { animation-delay: 0.2s; }
.loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 80%, 100% {
    transform: scale(0.4);
    opacity: 0.6;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Loading Text */
.loader-container p {
  color: #0ff;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  letter-spacing: 2px;
  text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 15px #0ff;
  margin-top: 15px;
}

