/* =======================================================
   TEMA FUTURISTIK UNGU
======================================================= */

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #2b1055, #7597de);
  color: #eee;
  scroll-behavior: smooth;
  transition: background 0.4s ease, color 0.4s ease;
}

/* =======================================================
   HEADER
======================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 50px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #8a56ff;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #b086f7;
}

header h1 {
  font-size: 22px;
  color: #fff;
  letter-spacing: 1px;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #b086f7;
  border-bottom: 2px solid #b086f7;
}

/* =======================================================
   HERO / BERANDA
======================================================= */

.hero {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), transparent);
}

.hero h2 {
  font-size: 38px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: #ddd;
}

/* =======================================================
   HEADLINE
======================================================= */

.headline {
  max-width: 1000px;
  margin: 60px auto;
  padding: 30px;
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.headline img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
  object-fit: cover;
  max-height: 320px;
}


.headline h3 {
  margin-top: 15px;
  font-size: 26px;
  color: #fff;
}

.headline p {
  line-height: 1.6;
  color: #ddd;
}

/* =======================================================
   KATEGORI
======================================================= */

.kategori {
  max-width: 1100px;
  margin: 80px auto;
}

.kategori h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  padding: 15px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
}

/* ⭐ Hover card modern / efek premium */
.card:hover {
  transform: translateY(-12px) scale(1.03);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 6px 25px rgba(180, 120, 255, 0.55);
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card h4 {
  margin-bottom: 8px;
  color: #fff;
}

.card p {
  font-size: 14px;
  line-height: 1.4;
  color: #ccc;
}

/* =======================================================
   KONTAK
======================================================= */

.kontak {
  padding: 60px 20px;
  text-align: center;
  background: rgba(0,0,0,0.3);
  border-top: 2px solid #8a56ff;
}

.kontak h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.kontak p {
  color: #ccc;
}

/* =======================================================
   FOOTER
======================================================= */

footer {
  padding: 20px;
  text-align: center;
  font-size: 14px;
  background: rgba(0,0,0,0.5);
  border-top: 1px solid #8a56ff;
}

/* =======================================================
   TOMBOL KE ATAS
======================================================= */

#toTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  font-size: 20px;
  color: #fff;
  background: #8a56ff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  transition: 0.3s;
}

#toTop:hover {
  background: #b086f7;
}

/* =======================================================
   POPUP
======================================================= */

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
}

.popup-content {
  max-width: 600px;
  padding: 25px;
  text-align: left;
  background: #2b1055;
  color: #fff;
  border-radius: 12px;
  animation: popIn 0.25s ease;
}

/* Animasi popup */
@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.popup-content img {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 10px;
}

.close {
  float: right;
  background: #b086f7;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}

/* =======================================================
   MODE MALAM MANUAL (DITAMBAHKAN)
======================================================= */

.theme-toggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #b086f7;
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 2000;
  font-weight: bold;
  transition: 0.3s;
}

.theme-toggle:hover {
  background: #d3b4ff;
}

/* Tema malam */
body.night {
  background: linear-gradient(135deg, #0a0220, #3a0ca3);
}

body.night header {
  background: rgba(0,0,0,0.6);
}

body.night .card {
  background: rgba(255,255,255,0.08);
}

body.night footer {
  background: rgba(0,0,0,0.6);
}
/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  width: 100%;
  height: 380px;
  background: url('images/download.jpg') center/cover no-repeat;
  border-radius: 0 0 30px 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

/* Lapisan gelap */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 0, 60, 0.6);
  backdrop-filter: blur(2px);
}

/* Isi teks */
.hero-content {
  position: relative;
  text-align: center;
  color: white;
  max-width: 750px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 25px;
}

/* Tombol */
.hero-btn {
  padding: 12px 26px;
  background: #9b59ff;
  color: white;
  font-size: 16px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s ease;
  font-weight: 600;
}

.hero-btn:hover {
  background: #b37aff;
  transform: translateY(-3px);
}
/* ==== HERO MODERN BARU ==== */
.hero-modern {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 0 0 30px 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background hero */
.hero-modern .hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/download.jpg') center/cover no-repeat;
  filter: brightness(0.65);
}

/* Overlay gradient (lebih mewah dari sebelumnya) */
.hero-modern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(116, 0, 184, 0.5), rgba(51, 0, 103, 0.75));
}

/* Konten hero */
.hero-inner {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero-inner .hero-logo {
  width: 110px;
  height: auto;
  margin-bottom: 10px;
}

.hero-inner h1 {
  font-size: 34px;
  font-weight: 700;
  margin: 5px 0;
  color: #ffffff;
}

.hero-inner p {
  color: #e3d2ff;
  font-size: 15px;
}
/* =======================================================
   HEADLINE MODERN – FUTURISTIC
======================================================= */

.headline-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: 70px auto;
  padding: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 18px;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
  backdrop-filter: blur(6px);
}

.headline-text {
  flex: 1.2;
}

.headline-text h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #fff;
}

.headline-text p {
  color: #ddd;
  line-height: 1.5;
  margin-bottom: 20px;
}

.headline-btn {
  padding: 12px 22px;
  background: #9b59ff;
  color: white;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.25s;
}

.headline-btn:hover {
  background: #b37aff;
  transform: translateY(-3px);
}

/* Gambar headline */
.headline-img {
  flex: 1;
}

.headline-img img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(150, 80, 255, 0.4);
}
/* =========================================
   NEW FUTURISTIC THEME TOGGLE — FIXED
========================================= */

.theme-toggle {
  width: 65px;
  height: 32px;
  background: #8a56ff;
  border-radius: 30px;
  position: fixed;
  bottom: 30px;
  left: 30px;
  cursor: pointer;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  padding: 4px;
  z-index: 3000;
  box-shadow: 0 4px 15px rgba(138, 86, 255, 0.4);
}

.theme-toggle .toggle-circle {
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 50%;
  position: absolute;
  left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.35s ease;
  font-size: 14px;
  color: #333;
}

/* MODE MALAM */
body.night .theme-toggle {
  background: #47247f;
}

body.night .theme-toggle .toggle-circle {
  transform: translateX(33px);
  background: #d3b4ff;
  color: #000;
}

/* SAAT MODE MALAM AKTIF — TEMA FUTURISTIK UNGU */
body.night {
  background: linear-gradient(135deg, #0a0220, #3a0ca3);
  color: #eee;
}

body.night header {
  background: rgba(0,0,0,0.55);
}

body.night .card,
body.night .headline-modern,
body.night .popup {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}

body.night footer {
  background: rgba(0,0,0,0.5);
}
