:root {
  --primary: #d32f2f; /* Merah */
  --secondary: #ffc107; /* Kuning */
  --dark: #121212; /* Hitam Tema */
  --card-bg: #1e1e1e;
  --text-light: #ffffff;
  --text-gray: #b0b0b0;
  --font-main: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background-color: var(--dark);
  color: var(--text-light);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.text-center { text-align: center; }
.margin-top { margin-top: 30px; }

/* Loading Screen */
#loader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255,193,7,0.2);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(18, 18, 18, 0.95);
  padding: 15px 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary);
  transition: 0.3s;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-light);
  text-decoration: none;
}
.logo span { color: var(--secondary); }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--secondary); }
.hamburger { display: none; font-size: 1.8rem; color: var(--text-light); cursor: pointer; }

/* Page Header */
.page-header {
  padding: 120px 20px 40px;
  background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../images/gerai.jpg') center/cover;
  text-align: center;
}
.page-header h1 { font-size: 2.8rem; color: var(--secondary); }
.page-header p { color: var(--text-gray); }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  background: url('../images/gerai.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}
.badge {
  background: var(--primary);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}
.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  color: var(--secondary);
  margin: 10px 0;
  text-transform: uppercase;
}
.slogan { font-size: 1.8rem; color: var(--text-light); margin-bottom: 25px; }
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  margin: 5px;
  transition: 0.3s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #b71c1c; }
.btn-secondary { background: #25d366; color: #fff; }
.btn-secondary:hover { background: #1eb954; }

/* Section Base */
.section { padding: 80px 0; }
.bg-dark { background-color: #181818; }
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
}
.section-title span { color: var(--secondary); }

/* Info Strip */
.info-strip { background: var(--card-bg); padding: 20px 0; border-bottom: 1px solid #333; }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.strip-item { display: flex; align-items: center; gap: 15px; }
.strip-item i { font-size: 2rem; color: var(--secondary); }

/* Menu Cards */
.featured-menu, .menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.menu-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #333;
  transition: 0.3s;
}
.menu-card:hover { transform: translateY(-5px); border-color: var(--secondary); }
.menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.menu-title { font-size: 1.2rem; font-weight: 700; color: var(--secondary); }
.menu-price { background: var(--primary); padding: 4px 10px; border-radius: 5px; font-weight: 700; }
.special { color: var(--secondary); font-size: 0.95rem; margin-top: 5px; }

/* Filter Buttons */
.menu-filter { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn {
  background: var(--card-bg); color: var(--text-light); border: 1px solid #444;
  padding: 8px 20px; border-radius: 20px; cursor: pointer; transition: 0.3s; font-weight: 600;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary); border-color: var(--primary); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card { background: var(--card-bg); padding: 25px; border-radius: 10px; border-left: 4px solid var(--secondary); }
.stars { color: var(--secondary); margin-bottom: 10px; }

/* Gallery & Lightbox */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; border-radius: 10px; cursor: pointer; transition: 0.3s; }
.gallery-item img:hover { transform: scale(1.03); }

.lightbox {
  display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9); justify-content: center; align-items: center;
}
.lightbox-content { max-width: 80%; max-height: 80%; border-radius: 10px; }
.close-lightbox { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: #fff; cursor: pointer; }

/* About & Contact Grid */
.about-grid, .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; }
.about-image img { width: 100%; border-radius: 12px; border: 3px solid var(--primary); }
.check-list { list-style: none; margin-top: 15px; }
.check-list li { margin-bottom: 8px; font-weight: 600; }
.check-list i { color: var(--secondary); margin-right: 8px; }
.contact-info p { margin-bottom: 15px; font-size: 1.1rem; }
.contact-info a { color: var(--secondary); text-decoration: none; }

/* FAQ Accordion */
.faq-accordion { max-width: 800px; margin: auto; }
.faq-item { background: var(--card-bg); margin-bottom: 15px; border-radius: 8px; overflow: hidden; }
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.faq-answer { padding: 0 20px 20px; display: none; color: var(--text-gray); }

/* Floating WhatsApp & Back to Top */
.float-wa {
  position: fixed; bottom: 20px; right: 20px; background: #25d366; color: #fff;
  width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
  font-size: 2rem; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.3); text-decoration: none;
}
#backToTop {
  position: fixed; bottom: 90px; right: 20px; background: var(--primary); color: #fff;
  border: none; width: 45px; height: 45px; border-radius: 50%; display: none; cursor: pointer; z-index: 1000;
}

/* Footer */
.footer { background: #0a0a0a; padding: 50px 0 20px; border-top: 1px solid #222; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-links ul { list-style: none; }
.footer-links a { color: var(--text-gray); text-decoration: none; }
.footer-bottom { text-align: center; border-top: 1px solid #222; padding-top: 20px; color: var(--text-gray); font-size: 0.9rem; }
