@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: #e0e0e0;
  background: black;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: 3em;
  margin-bottom: 0.3em;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

header h1::before,
header h1::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  color: #f0f;
  clip: rect(0, 0, 0, 0);
}

header h1:hover::before {
  animation: glitchTop 0.3s infinite;
}
header h1:hover::after {
  animation: glitchBottom 0.3s infinite;
}

@keyframes glitchTop {
  0% { clip: rect(0, 9999px, 0, 0); transform: translate(-3px, -3px); }
  50% { clip: rect(0, 9999px, 10px, 0); transform: translate(3px, 3px); }
  100% { clip: rect(0, 9999px, 0, 0); transform: translate(0); }
}

@keyframes glitchBottom {
  0% { clip: rect(10px, 9999px, 20px, 0); transform: translate(3px, 3px); }
  50% { clip: rect(0, 9999px, 10px, 0); transform: translate(-3px, -3px); }
  100% { clip: rect(10px, 9999px, 20px, 0); transform: translate(0); }
}

.subtitle {
  color: #777;
  font-size: 0.9em;
  letter-spacing: 1px;
}

.social-section h2 {
  margin-top: 2em;
  color: #ccc;
  font-weight: 600;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 1.5em;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid #333;
  padding: 10px 20px;
  border-radius: 12px;
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.social-links a:hover {
  transform: translateY(-3px);
  background: rgba(40, 40, 40, 0.9);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.social-links img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.social-links a:hover img {
  filter: grayscale(0%);
}

.quote-section {
  margin-top: 3em;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid #333;
}

#quote-en, #quote-jp {
  transition: opacity 1s ease;
}
.fade-out {
  opacity: 0;
}

#quote-en {
  font-style: italic;
  font-size: 1.2em;
  color: #ccc;
}

#quote-jp {
  margin-top: 10px;
  font-size: 0.9em;
  color: #777;
}

footer {
  margin-top: 3em;
  color: #555;
  font-size: 0.8em;
}

#bg-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: black;
}