/* Background Galaxy */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  color: white;
  overflow-x: hidden;
  background: black;
}

canvas#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.container {
  text-align: center;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #0f0;
  object-fit: cover;
}

h1 {
  margin: 20px 0;
  font-size: 24px;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  background: rgba(0,255,0,0.2);
  border: 2px solid #0f0;
  color: #0f0;
  padding: 15px;
  text-decoration: none;
  border-radius: 12px;
  transition: 0.3s;
}
.btn:hover {
  background: #0f0;
  color: black;
  transform: scale(1.05);
}

/* Music Player */
.music-player {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background: rgba(0,0,0,0.7);
  border: 2px solid #0f0;
  border-radius: 15px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2;
}

.music-player .cover {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

.track-info {
  flex: 1;
}

.title {
  font-size: 16px;
  font-weight: bold;
}

.artist {
  font-size: 14px;
  opacity: 0.8;
}

#progress {
  width: 100%;
}

.time {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

#playPause {
  background: none;
  border: none;
  font-size: 24px;
  color: #0f0;
  cursor: pointer;
}

/* GALERI MEMORY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
  animation: fadeIn 1.2s ease-in-out;
}

.gallery img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  animation: zoomIn 0.8s forwards;
  animation-delay: var(--delay, 0s);
}

/* Efek floating */
.mem-anim {
  animation: zoomIn 1s forwards, floating 6s infinite ease-in-out;
}

/* Hover efek */
.gallery img:hover {
  transform: scale(1.1) rotate(1deg);
  box-shadow: 0 0 25px cyan, 0 0 50px magenta;
}

/* Keyframes */
@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floating {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

/* Tombol Back Modern */
.back-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.6), 0 0 30px rgba(79, 172, 254, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.back-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

.back-btn:hover::before {
  left: 100%;
}

.back-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(0, 242, 254, 1), 0 0 50px rgba(79, 172, 254, 0.8);
}

/* Animasi fade + slide */
.page-container {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

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

/* Animasi untuk gallery memory */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-img:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 0 30px rgba(0,242,254,0.8), 0 0 60px rgba(79,172,254,0.6);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  margin-top: 30px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  background: rgba(0, 255, 200, 0.15);
  border: 1px solid rgba(0, 255, 200, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0, 255, 200, 0.4), inset 0 0 10px rgba(0,255,200,0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.back-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(0,255,200,0.5), transparent);
  transition: 0.5s;
}

.back-btn:hover::before {
  left: 100%;
}

.back-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 200, 0.8), 0 0 50px rgba(0, 255, 200, 0.6);
}

.back-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #ff6ec4, #7873f5);
  box-shadow: 0 0 10px rgba(255, 110, 196, 0.6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.back-btn:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 0 20px rgba(255, 110, 196, 1);
}

.back-btn:active {
  transform: scale(0.95);
}

.back-btn {
  background: linear-gradient(270deg, #ff6ec4, #7873f5, #4ade80);
  background-size: 600% 600%;
  animation: gradientMove 6s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: black;
  overflow: hidden;
  color: white;
  text-align: center;
}

#stars {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

.container {
  margin-top: 80px;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid white;
}

h1 {
  margin: 20px 0;
  font-size: 24px;
  color: #fff;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid white;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: 0.3s;
}

.btn:hover {
  background: white;
  color: black;
}

/* Music Player */
.music-player {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid white;
  border-radius: 20px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 90%;
  max-width: 500px;
}

.music-player .cover {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  animation: rotate 5s linear infinite paused;
}

.music-player.playing .cover {
  animation-play-state: running;
}

.track-info {
  flex: 1;
  text-align: left;
  font-size: 14px;
}

.track-info .title {
  font-weight: bold;
}

.track-info input[type="range"] {
  width: 100%;
}

#playPause {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Transisi halaman */
.fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
  opacity: 0;
  transform: scale(1.05);
  animation: fadeInPage 0.6s forwards;
}

@keyframes fadeInPage {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* supaya konten utama fleksibel */
main {
  flex: 1;
  padding: 20px;
  margin-bottom: 100px; /* biar ga ketutup music player */
}

/* music player fixed */
.music-player {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  z-index: 1000;
}