/* style.css */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  background:#050505;
  color:white;
  font-family:'Poppins',sans-serif;
  overflow-x:hidden;
}

body::before{
  content:'';
  position:fixed;
  width:500px;
  height:500px;
  background:linear-gradient(45deg,#0ea5ff,#8b5cf6);
  filter:blur(150px);
  opacity:.25;
  top:-200px;
  right:-200px;
  z-index:-1;
}

img{
  width:100%;
  display:block;
}

button{
  font-family:'Poppins',sans-serif;
}

/* POPUP */

.popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.92);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:99999;
  padding:20px;
}

.popup-box{
  width:100%;
  max-width:700px;
  background:#111;
  border-radius:28px;
  padding:25px;
  text-align:center;
  border:1px solid rgba(255,255,255,.08);
}

.popup-box h2{
  margin-bottom:10px;
}

.popup-box p{
  color:#bbb;
  line-height:1.8;
  margin-bottom:20px;
}

/* FIX POPUP IMAGE */

/* GANTI CSS popup-images lama jadi ini */

.popup-images{
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:flex-start;
  margin-bottom:22px;
  flex-wrap:wrap;
}

.popup-images img{
  width:auto;
  max-width:45%;
  height:auto;
  max-height:420px;

  object-fit:contain;

  border-radius:22px;
  background:white;
  padding:2px;
}

/* MOBILE */

@media(max-width:768px){

  .popup-images{
    gap:10px;
  }

  .popup-images img{
    max-width:48%;
    max-height:320px;

    object-fit:contain;
  }

}
.popup button{
  border:none;
  padding:14px 24px;
  border-radius:14px;
  background:linear-gradient(45deg,#0ea5ff,#8b5cf6);
  color:white;
  font-weight:700;
  cursor:pointer;
}

/* NAVBAR */

nav{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(5,5,5,.75);
  backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(255,255,255,.06);
  padding:16px;
}

.logo{
  font-size:32px;
  font-weight:800;
  margin-bottom:16px;
}

.blue{
  color:#0ea5ff;
}

.purple{
  color:#8b5cf6;
}

.menu{
  display:flex;
  gap:10px;
  overflow:auto;
}

.menu button{
  border:none;
  padding:11px 18px;
  border-radius:14px;
  background:#111;
  color:white;
  font-weight:600;
  cursor:pointer;
  white-space:nowrap;
}

.menu button.active{
  background:linear-gradient(45deg,#0ea5ff,#8b5cf6);
}

/* HERO */

.hero{
  padding:25px 16px 10px;
}

.hero-text h1{
  font-size:40px;
  line-height:1.1;
  margin-bottom:14px;
}

.hero-text h1 span{
  background:linear-gradient(45deg,#0ea5ff,#8b5cf6);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.hero-text p{
  color:#bcbcbc;
  line-height:1.8;
  margin-bottom:20px;
}

.hero-alert{
  background:#101010;
  border:1px solid rgba(255,255,255,.07);
  padding:16px;
  border-radius:18px;
  color:#d8d8d8;
  margin-bottom:25px;
}

/* GANTI CSS hero-image lama jadi ini */

.hero-image{
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero-image img{
  width:100%;
  max-width:520px;

  height:auto;

  object-fit:contain;

  border-radius:28px;

  animation:float 4s ease-in-out infinite;

  background:transparent;
}

/* DESKTOP */

@media(min-width:900px){

  .hero-image img{
    max-width:650px;
    height:auto;

    object-fit:contain;
  }

}

/* PRODUCTS */

.catalog{
  padding:20px 12px 80px;
}

.products{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

/* CARD */

.card{
  background:linear-gradient(145deg,#111,#181818);
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
  transition:.3s;
}

.card:hover{
  transform:translateY(-5px);
}

.badge{
  position:absolute;
  top:10px;
  left:10px;
  z-index:5;
  background:linear-gradient(45deg,#0ea5ff,#8b5cf6);
  padding:6px 12px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
}

.slider{
  position:relative;
  width:100%;
  height:210px;
  overflow:hidden;
}

.slides{
  display:flex;
  height:100%;
  transition:.4s ease;
}

.slides img{
  min-width:100%;
  height:210px;
  object-fit:cover;
  cursor:pointer;
}

.slider-buttons{
  position:absolute;
  width:100%;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  justify-content:space-between;
  padding:0 8px;
}

.slider-buttons button{
  width:30px;
  height:30px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,.6);
  color:white;
  cursor:pointer;
}

.card-content{
  padding:14px;
}

.card h3{
  font-size:18px;
  margin-bottom:6px;
}

.category{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(14,165,255,.1);
  color:#6fd2ff;
  font-size:11px;
  margin-bottom:10px;
}

.price{
  font-size:24px;
  font-weight:800;
  margin-bottom:10px;
}

.desc{
  color:#bdbdbd;
  line-height:1.6;
  font-size:13px;
  min-height:95px;
}

.links{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:14px;
}

.links a{
  text-align:center;
  padding:11px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  color:white;
}

.primary{
  background:linear-gradient(45deg,#0ea5ff,#8b5cf6);
}

.secondary{
  background:#171717;
  border:1px solid rgba(255,255,255,.08);
}

/* MODAL */

.image-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.95);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:999999;
  padding:20px;
}

.image-modal img{
  max-width:100%;
  max-height:90vh;
  border-radius:24px;
}

.close-modal{
  position:absolute;
  top:20px;
  right:20px;
  font-size:45px;
  cursor:pointer;
}

/* DESKTOP */

@media(min-width:900px){

  nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 40px;
  }

  .logo{
    margin-bottom:0;
  }

  .hero{
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:50px;
    padding:60px 40px;
  }

  .hero-text h1{
    font-size:70px;
  }

  .hero-image img{
    height:500px;
  }

  .products{
    grid-template-columns:repeat(4,1fr);
    gap:20px;
  }

  .slider{
    height:260px;
  }

  .slides img{
    height:260px;
  }

}

/* FLOATING WHATSAPP */

.floating-wa{
  position:fixed;

  right:18px;
  bottom:20px;

  z-index:9999;

  display:flex;
  align-items:center;
  gap:12px;

  background:linear-gradient(135deg,#25D366,#128C7E);

  color:white;
  text-decoration:none;

  padding:12px 16px;

  border-radius:18px;

  box-shadow:
  0 10px 35px rgba(37,211,102,.35);

  transition:.3s ease;

  animation:floatWa 2.5s ease-in-out infinite;
}

.floating-wa:hover{
  transform:translateY(-4px) scale(1.03);
}

.floating-wa img{
  width:42px;
  height:42px;
}

.wa-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.wa-text span{
  font-size:15px;
  font-weight:700;
}

.wa-text small{
  font-size:11px;
  opacity:.9;
}

@keyframes floatWa{

  0%{
    transform:translateY(0px);
  }

  50%{
    transform:translateY(-5px);
  }

  100%{
    transform:translateY(0px);
  }

}

/* MOBILE */

@media(max-width:768px){

  .floating-wa{
    right:14px;
    bottom:14px;

    padding:11px 14px;
    border-radius:16px;
  }

  .floating-wa img{
    width:38px;
    height:38px;
  }

  .wa-text span{
    font-size:13px;
  }

  .wa-text small{
    font-size:10px;
  }

}
/* FIX BADGE KETUTUP NAVBAR */

/* tambahkan ini */

.card{
  position:relative;
  overflow:hidden;
}

/* ubah badge jadi lebih rapih */

.badge{
  position:absolute;

  top:12px;
  left:12px;

  z-index:20;

  background:linear-gradient(45deg,#0ea5ff,#8b5cf6);

  padding:6px 12px;

  border-radius:999px;

  font-size:11px;
  font-weight:700;

  box-shadow:
  0 4px 15px rgba(0,0,0,.35);
}

/* FIX NAVBAR */

nav{
  position:sticky;
  top:0;

  z-index:999;

  overflow:visible;
}

/* OPTIONAL */
.products{
  position:relative;
  z-index:1;
}