/* =============================================
   VANILLA PERFECTED — style.css
   Palette: #F8EBAB #F7D87F #D0311E #BE1A1A
   Fonts: Poppins + Press Start 2P
   ============================================= */

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

:root {
  --cream:    #F8EBAB;
  --gold:     #F7D87F;
  --red:      #D0311E;
  --deep-red: #BE1A1A;
  --dark:     #1c1209;
  --mid-dark: #2e1d0e;
  --text:     #2b1a0a;
  --muted:    #6b4c2a;
  --border:   rgba(43,26,10,0.13);

  --font-pixel: 'Press Start 2P', monospace;
  --font-body:  'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

.pixel-text { font-family: var(--font-pixel); line-height: 1.6; }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.5rem;
  background: var(--dark);
  border-bottom: 3px solid var(--red);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links { display: flex; gap: 2rem; align-items: center; }

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(248,235,171,0.75);
  text-decoration: none;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--gold); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ── HERO ── */
.hero { background: var(--dark); }

.hero-banner {
  width: 100%;
  line-height: 0;
}

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

.hero-cta-bar {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1.4rem 1rem;
  background: var(--dark);
  border-bottom: 2px solid rgba(247,216,127,0.1);
  flex-wrap: wrap;
}

.btn-hero {
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.8rem;
  text-decoration: none;
  background: var(--red);
  color: var(--cream);
  border: 2px solid var(--red);
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-hero:hover { background: var(--deep-red); border-color: var(--deep-red); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-ghost:hover { background: rgba(247,216,127,0.08); }

/* ── FEATURES ── */
.features {
  padding: 4rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 300;
  margin-top: 0.5rem;
}


.mod-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mod-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
  transition: background 0.2s;
}

.mod-card:last-child {
  border-bottom: none;
}


.mod-card:nth-child(even) {
  direction: rtl;
}
.mod-card:nth-child(even) > * {
  direction: ltr;
}

.mod-card-img {
  padding: 0 2rem;
  overflow: hidden;
  border-radius: 16px;
}

.mod-card-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(43,26,10,0.13);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.mod-card:hover .mod-card-img img {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(43,26,10,0.2);
}

.mod-card-body {
  padding: 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mod-card-body h3 {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.8;
}

.mod-card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}


.mod-card--banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-template-columns: unset;
  padding: 2.5rem 2rem;
  gap: 1.25rem;
}

.mod-card--banner .mod-card-img {
  padding: 0;
  width: 100%;
  max-width: 720px;
  border-radius: 16px;
  overflow: hidden;
}

.mod-card--banner .mod-card-img img {
  width: 100%;
  height: auto;
  aspect-ratio: unset;
  object-fit: unset;
  border-radius: 16px;
}

.mod-card--banner .mod-card-body {
  padding: 0;
  text-align: center;
  align-items: center;
}

.mod-card--banner .mod-card-body h3 {
  font-size: 1rem;
}


.mod-card--banner,
.mod-card--banner > * {
  direction: ltr;
}

/* ── ABOUT ── */
.about {
  background: var(--gold);
  padding: 4rem 2.5rem;
  border-top: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
}

.about-inner .section-heading {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--mid-dark);
  font-weight: 300;
}
.about-body strong { font-weight: 700; color: var(--dark); }
.about-body em { font-style: italic; color: var(--deep-red); }

/* ── DOWNLOAD ── */
.download {
  padding: 4rem 2rem;
  background: var(--dark);
  text-align: center;
}

.download .section-heading { color: var(--cream); }
.download .section-sub { color: rgba(248,235,171,0.5); }

.download-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.dl-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2rem;
  text-decoration: none;
  border: 2px solid;
  min-width: 250px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.dl-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.dl-curseforge {
  background: rgba(208,49,30,0.12);
  border-color: var(--red);
  color: var(--cream);
}
.dl-curseforge:hover {
  background: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(208,49,30,0.35);
}

.dl-modrinth {
  background: rgba(247,216,127,0.08);
  border-color: var(--gold);
  color: var(--cream);
}
.dl-modrinth:hover {
  background: rgba(247,216,127,0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(247,216,127,0.15);
}

.dl-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.dl-platform {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
}

.dl-desc {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 0.1rem;
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  border-top: 2px solid rgba(247,216,127,0.08);
  text-align: center;
  padding: 2rem 1.5rem;
}

.footer-logo {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.85;
}

.footer-note {
  font-size: 0.75rem;
  color: rgba(248,235,171,0.38);
  line-height: 1.85;
  font-family: var(--font-body);
  font-weight: 300;
}
.footer-note strong { color: rgba(248,235,171,0.65); font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .mod-card {
    grid-template-columns: 1fr;
    padding: 2.5rem 0;
  }
  .mod-card:nth-child(even) {
    direction: ltr;
  }
  .mod-card-img {
    padding: 0 1rem 1.5rem;
  }
  .mod-card-body {
    padding: 0 1.5rem;
  }
}

@media (max-width: 560px) {
  /* 1. Navigasi & Hamburger */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; 
    right: 0;
    background: rgba(28,18,9,0.98);
    padding: 1.2rem 2rem;
    gap: 1rem;
    border-bottom: 3px solid var(--red);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4); 
    z-index: 99;
  }
  
  
  .nav-hamburger { display: block; }

  
  .hero-cta-bar {
    flex-direction: column;
    padding: 1.2rem 1rem;
    gap: 0.8rem;
  }
  .btn-hero {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  
  .mod-card { padding: 1.5rem 0; }
  .mod-card-img { padding: 0 0.5rem 1rem; }
  .mod-card-body { padding: 0 0.8rem; }
  .mod-card-body h3 { font-size: 0.75rem; } 
  /* 4. Spacing Global */
  .features { padding: 2.5rem 1rem; }
  .about { padding: 3rem 1.5rem; }
  .download { padding: 3rem 1.5rem; }

  
  .download-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .dl-btn {
    width: 100%;
    justify-content: center;
    min-width: unset;
  }
}

.footer-link {
  color: inherit;
  text-decoration: none;
}