/* ====================================================================== */ /* ===== PENGATURAN DASAR & FONT ===== */ /* ====================================================================== */ body { /* Warna latar belakang gelap untuk tema modern */ background-color: #0b0f29; color: #fff; font-family: 'Poppins', sans-serif; margin: 0; overflow-x: hidden; /* Mencegah scrollbar horizontal */ } /* Mengatur ukuran font default untuk elemen root */ html { font-size: 16px; } /* ====================================================================== */ /* ===== HEADER (NAVIGASI ATAS) ===== */ /* ====================================================================== */ .header { position: fixed; /* CSS2: Posisi tetap di atas layar */ top: 0; left: 0; width: 100%; padding: 1rem 2rem; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(6px); /* Efek blur yang modern */ display: flex; justify-content: space-between; align-items: center; z-index: 1000; /* CSS2: Mengatur tumpukan elemen agar selalu di atas */ box-sizing: border-box; } .logo-text { font-size: 1.8rem; font-weight: 900; text-transform: uppercase; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Animasi gradien teks yang menarik */ background: linear-gradient(90deg, #00ff7f, #00b300, #000); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-size: 200% 200%; animation: brandGlow 4s linear infinite; text-decoration: none; } /* Keyframes untuk animasi gradien logo */ @keyframes brandGlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } /* ====================================================================== */ /* ===== MENU BURGER UNTUK MOBILE ===== */ /* ====================================================================== */ .menu-toggle { display: none; /* Sembunyikan tombol di desktop */ background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; } /* ====================================================================== */ /* ===== NAVIGASI & LINK ===== */ /* ====================================================================== */ .navbar { display: flex; gap: 2rem; } .nav-link { color: #fff; text-decoration: none; font-weight: bold; font-size: 1.1rem; transition: color 0.3s, transform 0.3s; padding: 0.5rem 1rem; position: relative; } .nav-link::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background-color: #00ff7f; transition: width 0.3s ease-in-out; } .nav-link:hover::after, .nav-link.active::after { width: 100%; } .nav-link:hover { color: #00ff7f; transform: translateY(-3px); /* Efek hover yang halus */ } /* ====================================================================== */ /* ===== BAGIAN UTAMA (MAIN) ===== */ /* ====================================================================== */ main { text-align: center; padding-top: 150px; min-height: calc(100vh - 200px); /* Menyesuaikan tinggi halaman */ } .brand { font-size: 4rem; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; text-shadow: 2px 2px 5px rgba(0,0,0,0.5); background: linear-gradient(90deg, #00ff7f, #00b300); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .subtitle { font-size: 1.5rem; margin-bottom: 2rem; color: #c7c7c7; } /* ====================================================================== */ /* ===== BUTTON LOGIN & DAFTAR ===== */ /* ====================================================================== */ .button-group { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 3rem; } .btn { text-decoration: none; font-weight: bold; border-radius: 8px; transition: 0.3s; padding: 14px 28px; font-size: 1.1rem; border: 2px solid transparent; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); } .btn-login { background: linear-gradient(45deg, #00ff7f, #00b300); color: #fff; border: 2px solid #00ff7f; } .btn-daftar { background: transparent; color: #fff; border: 2px solid #00ff7f; } .btn-login:hover { transform: translateY(-5px); box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4); } .btn-daftar:hover { background: #00ff7f; transform: translateY(-5px); box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4); } /* ====================================================================== */ /* ===== BAGIAN ARTIKEL/DESKRIPSI ===== */ /* ====================================================================== */ .intro-article { max-width: 800px; margin: 0 auto; padding: 2rem; background: rgba(255, 255, 255, 0.05); border-radius: 12px; text-align: justify; line-height: 1.8; } .intro-article h2 { text-align: center; color: #00ff7f; font-size: 1.8rem; } /* ====================================================================== */ /* ===== FAQ SECTION STYLING ===== */ /* ====================================================================== */ .faq-section { max-width: 800px; margin: 3rem auto; padding: 2rem; background: rgba(255, 255, 255, 0.05); border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); } .faq-section h2 { text-align: center; color: #00ff7f; font-size: 1.8rem; margin-bottom: 2rem; } .faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.2); margin-bottom: 1rem; } .faq-question { width: 100%; text-align: left; background: none; border: none; color: #fff; font-size: 1.2rem; font-weight: 600; padding: 1rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; } .faq-question::after { content: '+'; font-size: 1.5rem; transition: transform 0.3s; } .faq-question.active { color: #00ff7f; } .faq-question.active::after { content: '-'; } .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding: 0 1rem; } .faq-answer p { padding-bottom: 1rem; font-size: 1rem; line-height: 1.6; } /* ====================================================================== */ /* ===== RESPONSIVITAS MOBILE ===== */ /* ====================================================================== */ @media (max-width: 768px) { .menu-toggle { display: block; /* Tampilkan tombol burger */ } .navbar { display: none; /* Sembunyikan navigasi di bawah 768px */ flex-direction: column; position: absolute; top: 100%; /* Turun di bawah header */ left: 0; width: 100%; background: rgba(0, 0, 0, 0.9); padding: 1rem 0; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } /* Saat menu terbuka */ .navbar.show { display: flex; } .nav-link { text-align: center; padding: 1rem 0; } .brand { font-size: 3rem; } .subtitle { font-size: 1.2rem; } }