/* =========================
   JILITRICK MAIN CSS
   Author: Custom UX PH
   Version: Production Ready (Fixed)
   ========================= */

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #eaf4ff;
  color: #0f172a;
  line-height: 1.7;
}

/* ---------- COLOR SYSTEM ---------- */
:root {
  --sky-blue: #eaf4ff;
  --dark-blue: #0b1c2d;
  --dark-blue-2: #061321;
  --gold: #d4af37;
  --gold-soft: #f3e3a0;
  --white: #ffffff;
  --gray: #94a3b8;
  --border: #e5e7eb;
}

/* ---------- GLOBAL ---------- */
a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}

section {
  padding: 56px 0;
}

h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #020617;
}

h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

p {
  margin-bottom: 16px;
}

/* ---------- BUTTON ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-login {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-login:hover {
  background: rgba(212,175,55,.12);
}

.btn-register {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #000;
}

.btn-register:hover {
  opacity: .9;
}

/* ---------- HEADER ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark-blue);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: all .3s ease;
}

.header-scrolled {
  background: #020617;
  box-shadow: 0 6px 30px rgba(0,0,0,.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header-logo img {
  height: 42px;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  font-size: 15px;
  color: #e5e7eb;
  padding: 8px 4px;
}

.nav-menu a:hover {
  color: var(--gold);
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* ---------- HAMBURGER ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: #fff;
  transition: all .3s ease;
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: #020617;
  padding: 20px;
  z-index: 999;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  color: #e5e7eb;
}

.mobile-menu a:hover {
  color: var(--gold);
}

.mobile-menu.open {
  display: block;
}

/* ---------- HERO (ANTI PENYOK FIX) ---------- */
.hero {
  background: linear-gradient(to bottom, #dbeafe, #ffffff);
  text-align: center;
  padding: 64px 0;
}

.hero img {
  width: 100%;
  max-width: 720px;        /* desktop safe */
  height: auto;            /* ANTI PENYOK */
  aspect-ratio: 1 / 1;     /* square mobile + desktop */
  object-fit: contain;     /* JANGAN cover */
  margin: 0 auto 28px;
  border-radius: 16px;
  display: block;
}

/* ---------- CARD ---------- */
.card {
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(2,6,23,.08);
}

/* ---------- GRID ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--dark-blue-2);
  color: #cbd5e1;
  padding: 60px 0 30px;
}

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

footer h3 {
  color: var(--white);
  margin-bottom: 12px;
}

footer p,
footer a {
  font-size: 14px;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: var(--gray);
}

/* ---------- UTILITIES ---------- */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--gold);
}

.shadow-soft {
  box-shadow: 0 12px 30px rgba(2,6,23,.12);
}

/* ---------- MOBILE CTA ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #020617;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform .3s ease;
}

.mobile-cta.show {
  transform: translateY(0);
}

.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
}

.mobile-login {
  background: #1e3a8a;
  color: #fff;
}

.mobile-register {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #000;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
}

@media (max-width: 768px) {

  .nav-menu {
    display: none;
  }

  section {
    padding: 44px 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: flex;
  }

  .hero img {
    max-width: 420px; /* mobile visual balance */
  }
}

/* ---------- DESKTOP ONLY ---------- */
@media (min-width: 769px) {
  .mobile-cta {
    display: none;
  }
}
