:root {
  --primary: #1F4E3D;
  --primary-dark: #142E25;
  --primary-mid: #2A6649;
  --primary-light: #3D8B67;
  --accent: #C0392B;
  --accent-light: #E74C3C;
  --cream: #F5ECD7;
  --cream-dark: #E8D5B7;
  --gold: #C9A84C;
  --text-dark: #1C2B25;
  --text-muted: #6B7B74;
  --border: #D4E0D9;
  --bg-section: #EDF4F0;
  --white: #ffffff;
  --card-shadow: 0 2px 16px rgba(31, 78, 61, 0.09);
  --card-shadow-hover: 0 10px 36px rgba(31, 78, 61, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-section);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-mid);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ======================================
   NAVBAR
   ====================================== */
#mainNavbar {
  background-color: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.35s, box-shadow 0.35s, padding 0.3s;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

#mainNavbar.scrolled {
  background-color: var(--primary-dark);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.brand-name {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  color: var(--cream);
}

.logo-img {
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.35s ease, border-color 0.3s;
}

.navbar-brand:hover .logo-img {
  transform: rotate(6deg) scale(1.08);
  border-color: var(--gold);
}

.navbar-nav .nav-link {
  color: rgba(245, 236, 215, 0.82) !important;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: background-color 0.22s, color 0.22s;
}

.nav-dropdown {
  background-color: var(--primary);
}

.nav-dropdown .dropdown-item {
  color: white;
}

.nav-dropdown .dropdown-item:hover,
.nav-dropdown .dropdown-item.active {
  background-color: var(--primary-dark);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  right: 50%;
  height: 2px;
  background-color: var(--gold);
  border-radius: 2px;
  transition: left 0.25s ease, right 0.25s ease;
  border: none;
  margin: 0;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  left: 12%;
  right: 12%;
}



/* ======================================
   TYPOGRAPHY UTILITIES
   ====================================== */
.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.65rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 2.5rem;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 2px;
  margin: 0.5rem 0 1rem;
}

.section-divider.center {
  margin: 0.5rem auto 1rem;
}

/* ======================================
   CARDS
   ====================================== */
.wana-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s cubic-bezier(.25, .8, .25, 1),
    box-shadow 0.3s cubic-bezier(.25, .8, .25, 1);
  overflow: hidden;
}

.wana-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--card-shadow-hover);
}

.wana-card img {
  width: 100%;
}

/* ======================================
   BUTTONS
   ====================================== */
.btn-wana-primary {
  background-color: var(--primary);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  transition: background-color 0.22s, transform 0.18s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-wana-primary:hover {
  background-color: var(--primary-mid);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 78, 61, 0.35);
}

.btn-wana-accent {
  background-color: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  transition: background-color 0.22s, transform 0.18s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-wana-accent:hover {
  background-color: var(--accent-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.35);
}

.btn-wana-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  transition: background-color 0.22s, color 0.22s, transform 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-wana-outline:hover {
  background-color: var(--primary);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-wana-gold {
  background: linear-gradient(135deg, var(--gold), #a8893a);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  transition: filter 0.22s, transform 0.18s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-wana-gold:hover {
  filter: brightness(1.12);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

/* ======================================
   BADGE
   ====================================== */
.badge-wana {
  background-color: var(--primary);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3em 0.7em;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ======================================
   PAGE HEADER
   ====================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: var(--cream);
  padding: 4rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.page-header h1 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.page-header p {
  color: rgba(245, 236, 215, 0.78);
  font-size: 0.95rem;
  position: relative;
}

/* ======================================
   FOOTER
   ====================================== */
.footer-section {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: rgba(245, 236, 215, 0.85);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--cream);
  letter-spacing: 0.1em;
}

.footer-heading {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.87rem;
  color: rgba(245, 236, 215, 0.68);
  line-height: 1.75;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: rgba(245, 236, 215, 0.72);
  font-size: 0.875rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--cream);
  padding-left: 6px;
}

.footer-socials a {
  color: rgba(245, 236, 215, 0.65);
  transition: color 0.2s, transform 0.22s;
  display: inline-block;
}

.footer-socials a:hover {
  color: var(--gold);
  transform: translateY(-4px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 1.75rem 0 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(245, 236, 215, 0.42);
}

/* ======================================
   HERO SECTION
   ====================================== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-mid) 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Animated background orbs */
.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 65%);
  top: -150px;
  right: -100px;
  animation: pulse-orb 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 65%);
  bottom: -100px;
  left: -80px;
  animation: pulse-orb 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes pulse-orb {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}


.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--cream);
  line-height: 1.18;
  margin-bottom: 1.1rem;
}

.hero-title .highlight {
  color: var(--gold);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

.hero-tagline {
  color: rgba(245, 236, 215, 0.72);
  font-size: 1rem;
  margin-bottom: 2.2rem;
  max-width: 480px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-num {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(245, 236, 215, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
  animation: pulse-orb 6s ease-in-out infinite;
}

.hero-img-wrap img {
  border-radius: var(--radius);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(201, 168, 76, 0.2);
  max-height: 420px;
  object-fit: contain;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(-0.5deg);
  }

  50% {
    transform: translateY(-14px) rotate(0.5deg);
  }
}

/* ======================================
   SECTIONS
   ====================================== */
.section-green-bg {
  background-color: var(--bg-section);
}

/* ======================================
   BERITA CARDS
   ====================================== */
.berita-card-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.45s ease;
}

.wana-card:hover .berita-card-img {
  transform: scale(1.05);
}

.berita-card-body {
  padding: 1.25rem;
}

.berita-card-title {
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.wana-card:hover .berita-card-title {
  color: var(--primary-mid);
}

.berita-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.berita-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ======================================
   PRODUK CARDS
   ====================================== */
.produk-img-wrap {
  overflow: hidden;
}

.produk-card-img {
  height: 250px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.45s ease;
}

.wana-card:hover .produk-card-img {
  transform: scale(1.06);
}

.produk-card-body {
  padding: 1.25rem;
}

.produk-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.97rem;
  margin-bottom: 0.35rem;
}

.produk-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.produk-price {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
}

.produk-stock {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.produk-card-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ======================================
   DEVELOPER CARDS
   ====================================== */
.dev-profile {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem;
  background: transparent;
  transition: transform 0.3s ease;
}

.dev-profile:hover {
  transform: translateX(6px);
}

.dev-profile-img {
  width: 140px;
  height: 180px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 3px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(31, 78, 61, 0.08);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.dev-profile:hover .dev-profile-img {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
  transform: scale(1.02);
}

.dev-info {
  flex: 1;
}

.dev-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.dev-divider {
  width: 35px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 0.85rem;
}

.dev-desc {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Responsiveness for Dev Profile */
@media (max-width: 576px) {
  .dev-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem 0;
  }

  .dev-divider {
    margin: 0 auto 0.85rem;
  }
}

/* ======================================
   ABOUT GAME
   ====================================== */
.about-img-wrap {
  position: relative;
}

.about-game-img {
  border-radius: var(--radius);
  box-shadow: var(--card-shadow-hover);
  width: 100%;
  object-fit: cover;
  max-height: 380px;
  transition: transform 0.4s ease;
}

.about-img-wrap:hover .about-game-img {
  transform: scale(1.02);
}

.about-game-desc {
  font-size: 0.93rem;
  line-height: 1.85;
  color: var(--text-dark);
}

/* ======================================
   KOMENTAR
   ====================================== */
.komentar-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.komentar-item:hover {
  transform: translateX(5px);
  box-shadow: var(--card-shadow-hover);
}

.komentar-nama {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.93rem;
}

.komentar-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.komentar-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-top: 0.5rem;
  line-height: 1.65;
}

.komentar-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(31, 78, 61, 0.15);
}

.form-label {
  font-weight: 500;
  color: var(--text-dark);
}

.page-item.active {
  background-color: var(--primary);
}

.pagination .page-link {
  color: var(--primary);
  border-color: var(--border);
  transition: all 0.2s;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--cream);
}

.pagination .page-link:hover {
  background-color: var(--primary-mid);
  color: var(--cream);
  border-color: var(--primary-mid);
}

/* ======================================
   EMPTY STATE
   ====================================== */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.35;
  color: var(--primary);
}

/* ======================================
   FEATURE ICON BOX
   ====================================== */
.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover .feature-icon-box {
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 0 8px 24px rgba(31, 78, 61, 0.3);
}

/* ======================================
   SECTION WAVE DIVIDER
   ====================================== */
.wave-divider {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ======================================
   SCROLL TO TOP BUTTON
   ====================================== */
#scrollTopBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--cream);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(31, 78, 61, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background-color 0.2s;
  z-index: 999;
}

#scrollTopBtn.visible {
  opacity: 1;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  background-color: var(--primary-mid);
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 991px) {
  .hero-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 4.5rem 0 3rem;
  }

  .hero-img-wrap {
    margin-top: 2.5rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .page-header h1 {
    font-size: 1.65rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.25rem;
  }
}