/* =========================
   Loader bulat berputar
========================= */
.loader {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid #3b82f6; /* biru */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* =========================
   Fade-in animation
========================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Konten muncul dengan animasi
========================= */
#content {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   Kartu proyek (Glassmorphism)
========================= */
.card {
  background: rgba(31, 41, 55, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(59,130,246,0.6); /* biru */
  box-shadow: 0 10px 25px rgba(59,130,246,0.35); /* biru glow */
}

/* =========================
   Typography
========================= */
h1, h2, h3 {
  letter-spacing: 0.5px;
  font-weight: 600;
}

p {
  line-height: 1.75;
  color: #d1d5db;
}

/* Spotify Box */
.spotify-box {
  background: rgba(17, 24, 39, 0.6); /* semi transparan */
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 0.5rem;
  border: 1px solid rgba(59,130,246,0.4); /* biru */
  box-shadow: 0 0 20px rgba(59,130,246,0.25);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Hover efek glow */
.spotify-box:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 35px rgba(59,130,246,0.5);
}

/* Neon breathing effect */
@keyframes neonPulse {
  0%   { box-shadow: 0 0 15px rgba(59,130,246,0.3); }
  50%  { box-shadow: 0 0 30px rgba(59,130,246,0.6); }
  100% { box-shadow: 0 0 15px rgba(59,130,246,0.3); }
}

.spotify-box {
  animation: neonPulse 4s infinite;
}

/* =========================
   Footer tetap di bawah
========================= */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

footer {
  margin-top: auto;
  color: #9ca3af;
  font-size: 0.875rem;
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #374151;
}