/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --bg-color: #0a0a14;
  --surface-color: rgba(30, 30, 47, 0.5);
  --surface-hover: rgba(34, 34, 60, 0.7);
  --primary-accent: #00d9ff;
  --primary-accent-hover: #08acd0;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --shadow-color: rgba(0, 217, 255, 0.15);
  --border-color: rgba(255, 255, 255, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden; /* Mencegah scroll horizontal */
}

/* --- Animasi --- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(0, 217, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 217, 255, 0);
  }
}

/* --- Elemen yang akan dianimasikan saat scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header --- */
header {
  background: linear-gradient(145deg, #1a1a2e, #10101a);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  position: relative; /* Diperlukan untuk positioning #particles-js */
  overflow: hidden; /* Mencegah partikel keluar dari header */
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2; /* Memastikan konten di atas partikel */
  padding: 80px 20px;
}

header h1 {
  font-size: 3.5rem;
  margin: 0;
  color: var(--primary-accent);
  animation: fadeInUp 0.8s ease-out;
}

header p {
  font-size: 1.2rem;
  margin-top: 15px;
  color: var(--text-secondary);
  animation: fadeInUp 0.8s ease-out 0.2s;
  animation-fill-mode: backwards; /* Agar tidak muncul sebelum animasi */
}

/* --- Tombol --- */
.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 30px;
  background: var(--primary-accent);
  color: #000;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  animation: pulse 2s infinite;
}

.btn:hover {
  background: var(--primary-accent-hover);
  color: var(--text-primary);
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- Section --- */
section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
}

h2 {
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-accent);
  font-size: 2.5rem;
}

/* --- Kartu Fitur (Features) --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: var(--surface-color);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px); /* Efek Glassmorphism */
  -webkit-backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-10px);
  background: var(--surface-hover);
  box-shadow: 0 0 25px var(--shadow-color);
  border-color: var(--primary-accent);
}

.card h3 {
  margin-top: 0;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
}

/* --- Langkah Instalasi --- */
.install-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.install-steps div {
  background: var(--surface-color);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  flex: 1 1 320px;
  backdrop-filter: blur(10px);
}

/* --- Screenshot Carousel (Swiper) --- */
.screenshots-carousel {
  width: 100%;
  max-width: 800px; /* Batasi lebar maksimum carousel */
  margin: auto;
  padding: 10px 0 40px 0; /* Beri ruang untuk pagination */
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 90%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--primary-accent);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--shadow-color);
}

/* --- Kartu Download --- */
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.download-card {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.download-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px var(--shadow-color);
  border-color: var(--primary-accent);
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.download-buttons a,
.download-buttons button {
  text-align: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  border: none;
  font-size: 0.95rem;
}

/* Tombol Download Spesifik */
.btn-1 {
  background: #00d9ff;
  color: #000;
}
.btn-1:hover {
  background: #08acd0;
  color: #fff;
  transform: scale(1.05);
}

.btn-2 {
  background: #ffcc00;
  color: #000;
}
.btn-2:hover {
  background: #d4aa00;
  color: #fff;
  transform: scale(1.05);
}

.btn-3 {
  background: #ff006a;
  color: #fff;
}
.btn-3:hover {
  background: #cc0055;
  transform: scale(1.05);
}

.download-card .btn {
  margin-top: 0;
  animation: none; /* Hapus pulse dari tombol di dalam kartu */
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 40px 20px;
  background: #05050a;
  color: var(--text-secondary);
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
}

footer a {
  color: var(--primary-accent);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  text-decoration: underline;
  color: var(--primary-accent-hover);
}

footer .easter-egg {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #555;
}
