/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  /* New Color Palette */
  --primary: #f48a2f; /* Orange Utama */
  --secondary: #fbbd42; /* Orange Muda/Golden */
  --highlight: #fff600; /* Kuning Terang */
  --dark: #1f1f1f; /* Hitam Soft */
  --gray: #f4f4f4; /* Background Abu Terang */
  --white: #fffbcf;

  /* Gradients */
  --gradient-main: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary) 100%
  );
  --gradient-hover: linear-gradient(
    135deg,
    var(--secondary) 0%,
    var(--primary) 100%
  );

  /* Shapes & Spacing */
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-pill: 100px;
  --container: 1140px;

  /* Shadows */
  --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.05);
  --shadow-float: 0 20px 50px rgba(244, 138, 47, 0.3);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* =========================================
   2. UTILITIES
   ========================================= */
.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.section {
  padding: 100px 0;
  position: relative;
}
.bg-gray {
  background-color: #fafafa;
}

.text-center {
  text-align: center;
}
.text-primary {
  color: var(--primary);
}
.font-bold {
  font-weight: 700;
}

.h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 15px;
}
.subtitle {
  color: #666;
  max-width: 600px;
  margin: 0 auto 50px auto;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 10px 20px rgba(244, 138, 47, 0.4);
}
.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(244, 138, 47, 0.6);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.btn-white:hover {
  color: var(--dark);
  transform: translateY(-3px);
}

/* =========================================
   3. COMPONENTS
   ========================================= */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 2px 0;
  transition: 0.4s;
}
.navbar.scrolled {
  background: rgba(31, 31, 31, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 2px 0;
  color: white;
}
.navbar.scrolled .btn-primary {
    background: linear-gradient(to right bottom, green, rgb(0, 189, 0));
    box-shadow: 0 10px 20px green;
}
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 100px;
  width: auto;
} /* Adjust logo size */

.nav-links {
  display: flex;
  gap: 30px;
}
.nav-link {
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-img-box {
  position: relative;
  perspective: 1000px;
}

.hero-main-img {
  width: 100%;
  border-radius: 40px;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-float);
  border: 5px solid white;
  animation: float 6s ease-in-out infinite;
}

.halal-badge {
  position: absolute;
  bottom: 30px;
  left: -30px;
  width: 100px;
  background: white;
  padding: 20px;
  border-radius: 20%;
  box-shadow: var(--shadow-sm);
  animation: bounce 3s infinite;
  z-index: 5;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.menu-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 15px;
  box-shadow: var(--shadow-card);
  transition: 0.4s;
  position: relative;
  border: 1px solid transparent;
}
.menu-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}
.menu-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}
.menu-price {
  position: absolute;
  top: 25px;
  right: 25px;
  background: var(--highlight);
  color: var(--dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Gallery (Masonry-ish) */
.gallery-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery-item {
  min-width: 300px;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 30px 20px 20px;
  transform: translateY(100px);
  transition: 0.3s;
}
.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Partnership Packages */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}
.pkg-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
  transition: 0.4s;
  border-top: 5px solid #eee;
}
.pkg-card:hover {
  transform: scale(1.03);
}
.pkg-card.featured {
  border-top: 5px solid var(--primary);
  transform: scale(1.08);
  z-index: 2;
  box-shadow: var(--shadow-float);
}
.pkg-head {
  padding: 40px 20px 20px;
  background: #fffbf5;
}
.pkg-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}
.pkg-body {
  padding: 30px 20px;
}
.pkg-list li {
  margin-bottom: 12px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: white;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: repeating-linear-gradient(
    45deg,
    var(--primary),
    var(--primary) 20px,
    var(--secondary) 20px,
    var(--secondary) 40px
  );
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: var(--secondary);
  font-weight: 700;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
}
.social-icon:hover {
  background: var(--primary);
  transform: rotate(360deg);
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-20px) rotate(-3deg);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .pkg-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .nav-links {
    display: none;
  } /* Hide menu for simplicity in demo */
  .hero {
    padding-top: 120px;
  }
  .halal-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
  }
  .pkg-card.featured {
    transform: scale(1);
  }
  .menu-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* =========================================
   ANIMASI KOIN MELAYANG (BACKGROUND)
   ========================================= */
.coin-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1; /* Di belakang konten */
  pointer-events: none; /* Agar tidak mengganggu klik */
}

.floating-coin {
  position: absolute;
  bottom: -100px; /* Mulai dari bawah layar */
  width: 50px; /* Ukuran default */
  height: auto;
  opacity: 0.8;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120vh) rotate(360deg); /* Naik sampai atas layar */
    opacity: 0;
  }
}
