/* =========================
   RESET & GLOBAL
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  background:#f7f7f7;
  color:#333;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

/* =========================
   NAVBAR
========================= */
nav{
  position:sticky;
  top:0;
  z-index:999;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 24px;
  background:rgba(71,71,71,0.92);
  backdrop-filter:blur(6px);
  box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

/* Logo */
.logo{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo img{
  width:42px;
  height:42px;
  border-radius:50%;
  transition:0.3s ease;
}

.logo img:hover{
  transform:rotate(6deg) scale(1.05);
}

.logo span{
  color:white;
  font-weight:bold;
  font-size:1.1rem;
}

/* Menu */
.menu{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}


.menu a{
  color:white;
  text-decoration:none;
  font-weight:bold;
  position:relative;
  padding:6px 0;
  transition:0.3s ease;
}

.menu a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0%;
  height:2px;
  background:#ff6f61;
  transition:0.35s ease;
}

.menu a:hover{
  color:#ffe1e1;
}

.menu a:hover::after{
  width:100%;
}

/* =========================
   HAMBURGER MENU
========================= */
.nav-toggle{
  display:none;
}

.hamburger{
  display:none;
  width:34px;
  height:28px;
  position:relative;
  cursor:pointer;
}

.hamburger span{
  position:absolute;
  width:100%;
  height:3px;
  background:white;
  border-radius:3px;
  transition:0.3s ease;
}

.hamburger span:nth-child(1){
  top:4px;
}

.hamburger span:nth-child(2){
  top:12px;
}

.hamburger span:nth-child(3){
  top:20px;
}

/* Hamburger Active */
.nav-toggle:checked + .hamburger span:nth-child(1){
  transform:translateY(8px) rotate(45deg);
}

.nav-toggle:checked + .hamburger span:nth-child(2){
  opacity:0;
}

.nav-toggle:checked + .hamburger span:nth-child(3){
  transform:translateY(-8px) rotate(-45deg);
}

/* =========================
   HERO SECTION
========================= */
header{
  position:relative;
  overflow:hidden;
  text-align:center;
  color:white;
}

header img{
  width:100%;
  height:80vh;
  object-fit:cover;
  filter:brightness(60%);
  transform:scale(1.05);
  animation:zoomHero 12s ease-in-out infinite alternate;
}

.hero-text{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:90%;
  max-width:900px;
  animation:fadeUp 1s ease;
}

.hero-text h1{
  font-size:2.8rem;
  margin-bottom:12px;
  text-shadow:2px 2px 10px rgba(0,0,0,0.5);
}

.hero-text p{
  font-size:1.15rem;
  color:#e5e5e5;
  margin-bottom:22px;
}

.hero-text a{
  display:inline-block;
  padding:12px 24px;
  border-radius:10px;
  background:linear-gradient(135deg,#ff3b3f,#ff6f61);
  color:white;
  text-decoration:none;
  font-weight:bold;
  transition:0.35s ease;
  box-shadow:0 4px 12px rgba(255,59,63,0.4);
}

.hero-text a:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 18px rgba(255,59,63,0.5);
}

/* =========================
   TENTANG
========================= */
#tentang{
  background:white;
  max-width:900px;
  margin:50px auto;
  padding:45px 25px;
  border-radius:14px;
  text-align:center;
  box-shadow:0 4px 14px rgba(0,0,0,0.08);
  transition:0.35s ease;
}

#tentang:hover{
  transform:translateY(-5px);
  box-shadow:0 8px 22px rgba(0,0,0,0.12);
}

#tentang h2{
  color:#ff3b3f;
  margin-bottom:15px;
}

#tentang p{
  color:#555;
  font-size:16px;
  line-height:1.8;
}

/* =========================
   PRODUK
========================= */
#produk{
  padding:50px 20px;
}

#produk h2{
  text-align:center;
  color:#ff3b3f;
  margin-bottom:35px;
}

.daftar-produk{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:24px;
  max-width:1150px;
  margin:auto;
}

.produk{
  background:white;
  border-radius:14px;
  overflow:hidden;
  padding:18px;
  text-align:center;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  transition:0.35s ease;
}

.produk:hover{
  transform:translateY(-8px);
  box-shadow:0 10px 24px rgba(0,0,0,0.12);
}

.produk img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:10px;
  transition:0.4s ease;
}

.produk:hover img{
  transform:scale(1.04);
}

.produk h3{
  margin:14px 0 8px;
  font-size:1.1rem;
}

.deskripsi{
  font-size:14px;
  color:#555;
  margin-bottom:15px;
}

.tombol{
  display:inline-block;
  padding:10px 22px;
  border-radius:10px;
  background:linear-gradient(135deg,#ff3b3f,#ff6f61);
  color:white;
  text-decoration:none;
  font-weight:bold;
  transition:0.35s ease;
  box-shadow:0 4px 12px rgba(255,59,63,0.3);
}

.tombol:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 18px rgba(255,59,63,0.45);
}

/* =========================
   KONTAK
========================= */
#kontak{
  background:white;
  margin-top:50px;
  padding:45px 20px;
  text-align:center;
  box-shadow:0 -2px 8px rgba(0,0,0,0.05);
}

#kontak h2{
  color:#ff3b3f;
  margin-bottom:15px;
}

#kontak p{
  color:#555;
  margin:8px 0;
}

#kontak a{
  color:#ff3b3f;
  text-decoration:none;
  font-weight:bold;
}

/* =========================
   FOOTER
========================= */
footer{
  background:#5f5f5f;
  color:white;
  text-align:center;
  padding:14px;
  font-size:14px;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeUp{
  from{
    opacity:0;
    transform:translate(-50%, -40%);
  }

  to{
    opacity:1;
    transform:translate(-50%, -50%);
  }
}

@keyframes zoomHero{
  from{
    transform:scale(1.05);
  }

  to{
    transform:scale(1.12);
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:900px){

  .hero-text h1{
    font-size:2rem;
  }

  .hero-text p{
    font-size:1rem;
  }

}

@media (max-width:800px){

  nav{
    padding:10px 16px;
  }

  .logo img{
    width:36px;
    height:36px;
  }

  .hamburger{
    display:block;
  }

  .menu{
    position:absolute;
    top:100%;
    right:14px;
    width:220px;
    background:rgba(71,71,71,0.98);
    flex-direction:column;
    align-items:flex-start;
    padding:12px;
    border-radius:10px;
    opacity:0;
    pointer-events:none;
    transform:scale(0.95);
    transition:0.3s ease;
    box-shadow:0 8px 22px rgba(0,0,0,0.2);
  }

  .menu a{
    width:100%;
    padding:10px;
  }

  .nav-toggle:checked ~ .menu{
    opacity:1;
    pointer-events:auto;
    transform:scale(1);
  }

  header img{
    height:65vh;
  }

  .hero-text h1{
    font-size:1.7rem;
  }

  .hero-text p{
    font-size:0.95rem;
  }

  /* =========================
   POPUP GAMBAR
========================= */

.popup{
  display:none;
  position:fixed;
  z-index:9999;
  padding-top:60px;
  left:0;
  top:0;
  width:100%;
  height:100%;
  overflow:auto;
  background:rgba(0,0,0,0.9);
  animation:fadePopup 0.3s ease;
}

.popup-content{
  display:block;
  margin:auto;
  max-width:80%;
  max-height:80vh;
  border-radius:12px;
  animation:zoomPopup 0.3s ease;
}

.close{
  position:absolute;
  top:20px;
  right:35px;
  color:white;
  font-size:40px;
  font-weight:bold;
  cursor:pointer;
  transition:0.3s;
}

.close:hover{
  color:#ff3b3f;
}

.produk img{
  cursor:pointer;
}

@keyframes zoomPopup{
  from{
    transform:scale(0.7);
    opacity:0;
  }

  to{
    transform:scale(1);
    opacity:1;
  }
}

@keyframes fadePopup{
  from{
    opacity:0;
  }

  to{
    opacity:1;
  }
}
  
/* =========================
   SEARCH NAVBAR
========================= */

#search{
  padding:8px 14px;
  border:none;
  border-radius:20px;
  outline:none;
  font-size:14px;
  width:180px;
  transition:0.3s ease;
}

#search:focus{
  width:220px;
  box-shadow:0 0 10px rgba(255,255,255,0.3);
}

/* =========================
   WHATSAPP MINI
========================= */

.wa-float{
  position:fixed;
  bottom:15px;
  right:15px;

  width:45px;
  height:45px;

  background:#25d366;
  color:white;

  border-radius:50%;
  text-align:center;
  line-height:45px;

  font-size:22px;
  text-decoration:none;

  z-index:999;

  box-shadow:0 4px 10px rgba(0,0,0,0.25);

  transition:0.3s ease;
}

.wa-float:hover{
  transform:scale(1.08);
  background:#1ebe5d;
}  


}

/* =========================
   LOADING SCREEN
========================= */

#loader{
  position:fixed;
  width:100%;
  height:100vh;

  background:white;

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  z-index:99999;

  transition:opacity 0.5s ease;
}

.spinner{
  width:60px;
  height:60px;

  border:6px solid #ddd;
  border-top:6px solid #ff3b3f;

  border-radius:50%;

  animation:spin 1s linear infinite;
}

#loader h2{
  margin-top:20px;
  color:#ff3b3f;
  font-size:24px;
  letter-spacing:1px;
}

@keyframes spin{

  0%{
    transform:rotate(0deg);
  }

  100%{
    transform:rotate(360deg);
  }

}

.logo-loader{
  width:90px;
  margin-top:20px;
  animation:pulse 1.5s infinite;
}

@keyframes pulse{

  0%{
    transform:scale(1);
  }

  50%{
    transform:scale(1.08);
  }

  100%{
    transform:scale(1);
  }

}

/* =========================
   DARK MODE
========================= */

#darkMode{
  border:none;
  background:white;
  padding:8px 12px;
  border-radius:20px;
  cursor:pointer;
  font-size:16px;
}

/* MODE GELAP */

.dark{
  background:#121212;
  color:white;
}

.dark nav{
  background:#1e1e1e;
}

.dark #tentang,
.dark .produk,
.dark #kontak{
  background:#1f1f1f;
  color:white;
}

.dark .deskripsi,
.dark #tentang p,
.dark #kontak p{
  color:#ddd;
}

.dark footer{
  background:#1a1a1a;
}