@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg,#2e1065,#4c1d95,#0f172a);
  font-family: 'Press Start 2P', monospace;
  background-repeat: no-repeat;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.container {
  text-align: center;
  max-width: 480px;
  width: 90%;
  padding: 2rem;
  border: 3px dashed #ffffff22;
  background-color: rgba(0,0,0,0.6);
  box-shadow: 0 0 16px #ffffff10;
  border-radius: 8px;
  animation: containerEntry 1s ease forwards;
}

.avatar img {
  width: 96px;
  height: 96px;
  border: 2px solid #ffffff44;
  border-radius: 8px;
  image-rendering: pixelated;
  margin-bottom: 1rem;
  animation: pixelPop 0.8s ease-out;
}

h1 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

p {
  font-size: 0.6rem;
  color: #cccccc;
  margin-bottom: 1.5rem;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0.5rem 0;
  padding: 0.8rem 1rem;
  border: 2px solid #ffffff33;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.6rem;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}

.links a i {
  font-size: 18px;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.links a:hover {
  background-color: #3a3a3a;
  box-shadow: 0 0 12px #ffffff55;
  transform: scale(1.03);
}

.links a:hover i {
  transform: scale(1.2);
  color: #00ffff;
}

footer {
  font-size: 0.5rem;
  color: #888;
  margin-top: 2rem;
}

.crt {
  animation: crt-glow 3s infinite alternate;
  filter: contrast(1.1) brightness(1.05);
}

/* Animasi */
@keyframes pixelPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes containerEntry {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes crt-glow {
  0% { box-shadow: 0 0 1px #fff, 0 0 4px #2e1065; }
  100% { box-shadow: 0 0 2px #fff, 0 0 6px #4c1d95; }
}

/* Utility animasi */
.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.animate-flicker {
  animation: flicker 2s infinite;
}

/* === Background Video Styling === */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -10;
  filter: brightness(0.4) contrast(1.05);
}
