@font-face {
  font-family: 'ROGFont';
  src: url('fonts/ROGLyonsTypeRegular3.ttf') format('truetype'); /* folder harus sesuai */
}

body {
  font-family: 'ROGFont', sans-serif;
  margin: 0;
  padding: 0;
  background: white;
  color: white;
  overflow-x: hidden;
}

.nav-bar {
  background: linear-gradient(90deg, #60cdf6, #f78db5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 60px;
  position: relative;
  z-index: 100;
}

.nav-left, .nav-center, .nav-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-btn {
  color: white;
  font-family: 'ROGFont', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  transition: transform 0.2s ease;
}

.menu-item:hover {
  transform: scale(1.1);
}

.menu-wrapper {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #60cdf6, #a89ad3);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  z-index: 20;
  min-width: 200px;
  display: none;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dropdown-wrapper:hover .dropdown {
  display: flex;
}

.dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
}

.dropdown a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.nav-brand {
  font-size: 1.6rem;
  font-weight: bold;
  background: linear-gradient(270deg, #60cdf6, #f78db5, #60cdf6);
  background-size: 600% 600%;
  animation: gradientMove 5s ease infinite;
  color: white;
  padding: 0.8rem 1.2rem;
  transition: background-position 0.5s ease, transform 0.3s ease;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.section-dark {
  background: linear-gradient(180deg, #cb90b5, #60cdf6);
  padding: 3rem 1rem 6rem;
  text-align: center;
}

.section-title {
  font-size: 3.5rem;
  font-family: 'ROGFont', sans-serif;
  background: linear-gradient(90deg, #ffffff, #60cdf6);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 5s ease infinite;
}

.card .btn:hover {
  background-color: #00a060;
}


@media (max-width: 1024px) {
  .card {
    width: 48%;
  }
}

@media (max-width: 600px) {
  .card {
    width: 100%;
  }
}


.popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

.popup-container {
  background: linear-gradient(90deg, #60cdf6, #f78db5);
  padding: 2rem 1.5rem 3rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 95vw;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    padding: 2rem 1.5rem 1.5rem; /* sebelumnya padding bawah terlalu besar */

}

/* Gambar di popup */
.popup-container img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 8px;
}

/* Tombol action */
.popup-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem; /* sebelumnya 1.5rem, sekarang lebih rapat */
  margin-top: 1rem;
  justify-content: center;
  padding-bottom: 0.05rem; /* kurangi jarak ke bawah */
}


/* Tombol close di kanan atas */
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: red;
  color: white;
  font-size: 24px;
  border: none;
  border-radius: 50%;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
}


.hidden {
  display: none;
}

.footer {
  text-align: center;
  background: linear-gradient(90deg, #f78db5, #60cdf6);
  padding: 2rem 1rem;
  font-family: 'ROGFont', sans-serif;
  color: white;
}

@keyframes flipColor {
  0%, 100% {
    background: linear-gradient(90deg, #60cdf6, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  50% {
    background: linear-gradient(90deg, #ffffff, #60cdf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.section-title {
  font-size: 3.5rem;
  font-family: 'ROGFont', sans-serif;
  animation: flipColor 4s infinite;
}

.rdp-products {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(to bottom, #cb90b5, #60cdf6);
}

.card {
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  max-width: 500px;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.btn {
  background: #00d67d;
  color: white;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  min-width: 160px;
  height: 20px;
  text-decoration: none;
  border: none;
  transition: 0.2s;
    animation: promoGlow 1.8s infinite ease-in-out;

}

@keyframes promoGlow {
  0%, 100% { box-shadow: 0 0 6px #ffd700; }
  50% { box-shadow: 0 0 16px #ffec8b; }
}

.btn img {
  height: 20px;
}

.btn-a {
    font-family: 'ROGFont', sans-serif;
  background: #ff04cd;
  color: white;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 17px;
  min-width: 160px;
  height: 45px;
  text-decoration: none;
  border: none;
  transition: 0.2s;
  animation: promoBounce 1.3s infinite;
}

@keyframes promoBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.btn-a img {
  height: 20px;
}


.btn:hover {
  background-color: #00a060;
}

.popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

/* Popup deskripsi: scroll vertikal jika panjang */
#desc-popup{
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  line-height: 1.6;
  color: #ffffff;
  overflow-y: auto;
  
}

.popup-modal.hidden {
 display: none !important;
}

.popup-container {
  background: linear-gradient(90deg, #60cdf6, #f78db5);
  padding: 2rem 1.5rem 3rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 95vw;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    padding: 2rem 1.5rem 1.5rem; /* sebelumnya padding bawah terlalu besar */
}

.popup-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
}

.popup-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* sebelumnya 1.5rem, sekarang lebih rapat */
  margin-top: 1rem;
  justify-content: center;
  padding-bottom: 0.02rem; /* kurangi jarak ke bawah */
}

.btn-wrapper {
 display: flex;
 flex-direction: column;
 align-items: center;
}

.promo-badge {
 margin-top: 5px;
 padding: 4px 12px;
 background: linear-gradient(90deg, #ff4e50, #f9d423);
 color: white;
 font-size: 0.65rem;
 font-weight: bold;
 border-radius: 6px;
 animation: promoFlip 1.5s infinite ease-in-out;
}

@keyframes promoFlip {
 0%, 100% { transform: scale(1); }
 50% { transform: scale(1.1); }
}


/* Scrollable Deskripsi Popup */
.desc-scroll {
  max-height: 90vh;
  overflow-y: auto;
}

/* Pastikan kontainer popup memiliki padding cukup */
.popup-container {
  padding: 1.5rem;
}

/* Perbaikan popup responsif untuk HP */
@media (max-width: 768px) {
  .popup-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .btn-wrapper {
    align-items: center;
    justify-content: center;
  }

  .promo-badge {
    margin-top: 6px;
  }

  .popup-container img {
    max-height: 50vh;
  }
}

/* Toggle Button for Mobile */
.nav-toggle {
  display: none;
  font-size: 26px;
  color: white;
  padding: 10px;
  cursor: pointer;
}

/* Popup scrollable */
.popup-container {
  max-height: 90vh;
  overflow-y: auto;
}

/* Pastikan section produk menggunakan Flexbox dan center */

.sosmedfyp-products {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 24px;
 padding: 30px;
}

.card {
 background: white;
 border-radius: 16px;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
 width: 280px; /* Ukuran seragam */
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 align-items: center;
 text-align: center;
 padding: 20px;
 box-sizing: border-box;
}

.card img {
 width: 100%;
 height: auto;
 border-radius: 10px;
 margin-bottom: 20px;
 object-fit: contain;
}

.card .btn {
 margin-top: auto;
 background-color: #00cc66;
 color: white;
 padding: 10px 24px;
 border: none;
 border-radius: 8px;
 font-family: 'ROGFont', sans-serif;
 font-size: 14px;
 cursor: pointer;
 box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
 .card {
 width: 90%;
 }
}
