/* General styles, animations, and common elements */
:root {
  --primary-color: #e11d48; /* Red/Pink */
  --secondary-color: #00ffcc; /* Cyan */
  --background-dark: #111;
  --card-background: #1a1a1a;
  --text-light: #f0f0f0;
  --text-dark: #333;
  --text-muted: #aaa;
}

/* styles/global.css */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* KODE UNTUK BACKGROUND GAMBAR LUAR ANGKASA DENGAN BINTANG DAN PLANET */
  /* JALUR GAMBAR TELAH DIPERBAIKI KE ../background.jpg */
  background-image: url('../background.jpg'); /* <-- INI YANG TELAH DIUBAH */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  color: #f8f8f2; /* Warna teks terang agar terlihat jelas */
  font-family: 'Poppins', sans-serif; /* Pastikan font tetap terbaca */
}

/* ... (Sisa kode CSS Anda lainnya) ... */

main {
  flex: 1; /* Allow main content to grow and push footer down */
  padding-top: 60px; /* Space for fixed navbar */
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Navbar styles */
.navbar {
  background-color: #0d0d0d;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-sizing: border-box; /* Include padding in width */
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  margin-right: 10px;
}

.navbar .logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.nav-links a {
  color: #fff;
  margin-left: 25px;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Card styles (for login/register) */
.card {
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  max-width: 400px;
  margin: 100px auto 40px auto; /* Adjust margin for navbar */
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

.card h1 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 2rem;
}

.card input {
  width: calc(100% - 40px); /* Account for padding */
  padding: 15px 20px;
  margin-bottom: 20px;
  border: none;
  border-radius: 8px;
  background-color: #2a2a2a;
  color: var(--text-light);
  font-size: 1rem;
  box-sizing: border-box; /* Include padding in width */
}

.card input::placeholder {
  color: #888;
}

.card button {
  background: var(--primary-color);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 0 10px var(--primary-color);
  transition: 0.3s ease;
  width: 100%;
}

.card button:hover {
  background: #ff3366;
  box-shadow: 0 0 20px var(--primary-color);
}

.card p {
  color: var(--text-muted);
  margin-top: 20px;
  font-size: 0.9rem;
}

/* Footer styles */
.footer {
  background-color: #0d0d0d;
  color: #fff;
  text-align: center;
  padding: 25px 20px;
  margin-top: auto; /* Push footer to the bottom */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Success Animation for Login/Register */
.success-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.success-animation lottie-player {
    width: 200px;
    height: 200px;
}

.success-animation.show {
    opacity: 1;
    pointer-events: all;
}


/* Responsive Navbar */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #0d0d0d;
    position: absolute;
    top: 60px; /* Height of the navbar */
    left: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 15px 20px;
    text-align: center;
    width: auto; /* Reset width for mobile */
  }

  .nav-links a::after {
      left: 50%;
      transform: translateX(-50%);
  }
}
/* Kode untuk #cursor-follower telah dihapus seperti yang diminta */