@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
}

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

:root {
  --main-color: #0167fa;
  --text-color: #fff;
  --other-color: #212121;
  --second-color: #9e9e9e;
  --bg-color: #fff;
  --bg-second-color: #fcf4f6;

  --big-font: 3.5rem;
  --h2-font: 2.5rem;
  --p-font: 1rem;
  --font-color: #0e314c;
  --p-color: #6689a7;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 20px 10%;
  transition: all 0.5s ease;
}

.logo {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  color: var(--font-color);
  font-size: 1.9rem;
  font-weight: 700;
}

.logo img {
  height: 40px;
}

.navlist {
  display: flex;
}

.navlist li {
  display: flex;
  align-items: center;
}

.navlist a {
  color: var(--font-color);
  font-size: var(--p-font);
  font-weight: 600;
  margin: 0 30px;
  transition: all 0.5 ease;
}

.navlist a:hover {
  color: var(--main-color);
}

.navlist a.active {
  color: var(--main-color);
}

#menu-icon {
  font-size: 32px;
  color: var(--font-color);
  z-index: 10001;
  cursor: pointer;
  display: none;
}

.nav-icon i:hover {
  transform: scale(1.1);
  color: var(--text-color);
}

section {
  padding: 70px 10% 60px;
}

.home {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2rem;
}

.home-img img {
  width: 100%;
  height: auto;
}

.home-text h1 {
  font-size: var(--big-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--font-color);
  margin-bottom: 2rem;
}

.home-text p {
  font-size: var(--p-font);
  color: var(--p-color);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  background: var(--main-color);
  color: var(--text-color);
  font-size: var(--p-font);
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 0.5rem;
  transition: all 0.5s ease;
}

.btn-border {
  display: inline-block;
  padding: 15px 30px;
  border: 2px solid var(--main-color);
  color: var(--main-color) !important;
  font-size: var(--p-font);
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 0.5rem;
  transition: all 0.5s ease;
  cursor: pointer;
}

.btn-border i,
.btn i {
  font-size: 1.7rem;
  line-height: 1.1rem;
  vertical-align: middle;
}

.btn-border:hover {
  background: var(--main-color);
  color: var(--text-color) !important;
}

.s-btn {
  display: inline-block;
  padding: 10px 20px;
  width: 100%;
  background: var(--main-color);
  color: var(--text-color);
  font-size: var(--p-font);
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 0.5rem;
  transition: all 0.5s ease;
}

.middle-text {
  text-align: center;
  margin-bottom: 2rem;
}

.middle-text h2 {
  font-size: var(--h2-font);
  color: var(--font-color);
  margin-bottom: 10px;
}

.middle-text p {
  font-size: 1.1rem;
  color: var(--p-color);
}

.fitur {
  background: var(--bg-second-color);
}

.fitur-content {
  padding: 30px 0 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.fitur-item {
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.fitur-item .icon {
  height: 50px;
  width: 50px;
  min-width: 50px;
  text-align: center;
  background: #cadaf2;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.fitur-item .icon i {
  font-size: 2rem;
  color: #0167fa;
}

.fitur-item h3 {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--font-color);
  margin: 0 0 8px 0;
}

.fitur-item p {
  font-size: var(--p-font);
  color: var(--p-color);
}

.theme-content {
  padding: 30px 0 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  text-align: center;
}

.theme-item {
  padding: 1rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  transition: 0.1s ease all;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.theme-item img {
  width: 100%;
  border-radius: 0.5rem;
  height: auto;
  margin-bottom: 0.5rem;
  background-image: url("bg-card-sugarwish.webp");
  background-size: cover;
  background-position: center;
}

.theme-item .bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-grow: 1;
  gap: 8px;
  margin-top: auto;
}

.theme-item .name {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.theme-item h4 {
  font-size: 1.2rem;
  color: var(--font-color);
  margin: 0.5rem 0;
  letter-spacing: 1px;
  flex-grow: 1;
  line-height: 1.3rem;
  text-align: start;
}
.theme-item span {
  font-size: 1.1rem;
  letter-spacing: 1px;
  font-weight: 500;
  white-space: nowrap;
}

.cta {
  text-align: center;
  background: var(--bg-second-color);
  padding-bottom: 100px;
}

@media (max-width: 1545px) {
  :root {
    --big-font: 2.8rem;
    --h2-font: 2rem;
  }

  .btn-border {
    padding: 12px 20px;
  }

  header {
    padding: 15px 4%;
    transition: 0.2s;
  }

  header.sticky {
    padding: 10px 4%;
    transition: 0.2s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  }

  section {
    padding: 50px 4% 40px;
    transition: 0.2s;
  }
  .fitur-content,
  .theme-content {
    padding: 30px 4% 50px;
  }
}

@media (max-width: 860px) {
  #menu-icon {
    display: initial;
  }

  .navlist {
    position: absolute;
    opacity: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    transition: all 2s ease;
    display: none;
    padding-bottom: 1rem;
  }

  .navlist a {
    display: block;
    padding: 0.5rem;
    margin: 0.5rem;
  }

  .navlist.open {
    top: 100%;
    opacity: 1;
    z-index: -1;
    display: flex;
  }

  /* TAMPILAN HOME SEJAJAR (KIRI - KANAN) KHUSUS DI HP */
  .home {
    grid-template-columns: 1fr 1fr !important;
    align-items: center !important;
    text-align: left !important;
    gap: 1rem !important;
    min-height: auto !important;
    padding-top: 100px !important;
  }

  .home-text {
    padding-top: 0 !important;
    display: block !important;
    text-align: left !important;
  }

  .home-text h1 {
    font-size: 1.6rem !important;
    margin-bottom: 1rem !important;
  }

  .home-text p {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
  }

  .home-img {
    text-align: right !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .home-img img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 475px) {
  :root {
    --big-font: 2.2rem;
    --h2-font: 1.8rem;
  }
  
  .home {
    grid-template-columns: 1.1fr 0.9fr !important;
    gap: 0.5rem !important;
    min-height: auto !important;
  }

  .home-text h1 {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
  }

  .home-text p {
    font-size: 0.72rem !important;
    margin-bottom: 0.8rem !important;
  }

  .btn {
    padding: 8px 14px !important;
    font-size: 0.75rem !important;
  }

  section {
    padding: 40px 5% 30px !important;
  }

  .middle-text h2 {
    font-size: 1.5rem !important;
  }
  .middle-text p {
    font-size: 0.95rem !important;
  }

  /* FITUR MENJADI 2 KOLOM DI HP */
  .fitur-content {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 20px 0 40px !important;
  }

  .fitur-item {
    padding: 0.8rem !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px;
    border-radius: 0.8rem;
  }

  .fitur-item .icon {
    min-width: 40px;
    height: 40px;
    margin-top: 0;
  }

  .fitur-item .icon i {
    font-size: 1.3rem !important;
  }

  .fitur-item h3 {
    font-size: 0.95rem !important;
    margin: 0 !important;
  }

  .fitur-item p {
    font-size: 0.75rem !important;
    line-height: 1.3;
  }

  /* TEMA MENJADI 2 KOLOM DI HP */
  .theme-content {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 15px 0 30px !important;
  }

  .theme-item {
    padding: 0.6rem !important;
  }

  .theme-item .name {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }

  .theme-item h4 {
    font-size: 0.95rem !important;
    margin: 0.4rem 0 0.2rem !important;
    line-height: 1.1rem !important;
  }

  .theme-item span {
    font-size: 0.9rem !important;
  }

  .s-btn {
    padding: 7px 10px !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
  }
}

footer {
  background: var(--text-color);
  color: var(--font-color);
  padding: 20px 0;
  text-align: center;
}

.text-download {
  position: sticky;
  bottom: 0;
  text-align: center;
  font-size: 0.8rem;
  background: white;
  padding: 15px 0;
  color: var(--p-color);
}

.btn-download {
  display: block;
  width: fit-content;
  text-align: center;
  margin: 1rem auto;
  font-size: 0.9rem;
  padding: 10px 15px;
}

/* Popup order */
.popup-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s ease all;
  z-index: 2;
}
.popup-container:not(.show) {
  display: none;
}

@keyframes popup-show {
  0% {
    opacity: 1;
    transform: scale(0.7);
  }
  45% {
    opacity: 1;
    transform: scale(1.05);
  }
  80% {
    opacity: 1;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.card {
  position: relative;
  padding: 2.5rem 1.5rem;
  background: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  max-width: 360px;
  animation: popup-show 0.4s ease forwards;
}
.card p {
  font-size: 1.1rem;
  color: var(--p-color);
  margin-bottom: 1rem;
}
.card p b {
  color: var(--font-color) !important;
}
.card .btn-order {
  display: inline-block;
  padding: 15px 0;
  background: var(--main-color);
  color: var(--text-color);
  font-size: var(--p-font);
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 0.5rem;
  transition: all 0.5s ease;
  border: none;
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  letter-spacing: 0.5px;
}
.card .btn-order i {
  font-size: 1.5rem;
  line-height: 1.1rem;
  vertical-align: middle;
}
#close-icon {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  font-size: 32px;
  color: #ed6d72;
  z-index: 10001;
  cursor: pointer;
}

/* Pagination Styling */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination button {
  padding: 8px 14px;
  border: 1px solid #ddd;
  background-color: #fff;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  font-family: "Poppins", sans-serif;
  color: var(--font-color);
  transition: all 0.3s ease;
}

.pagination button.active {
  background-color: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
}

.pagination button:hover:not(.active) {
  background-color: #f1f1f1;
}

/* --- SKELETON LOADING STYLES --- */
@keyframes skeleton-pulse {
  0% {
    background-color: #e0e0e0;
  }
  50% {
    background-color: #f5f5f5;
  }
  100% {
    background-color: #e0e0e0;
  }
}

.theme-item.skeleton {
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.theme-item.skeleton img {
  width: 100%;
  height: 200px;
  background: #e0e0e0;
  animation: skeleton-pulse 1.5s infinite ease-in-out;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.theme-item.skeleton .skeleton-line {
  height: 18px;
  background: #e0e0e0;
  animation: skeleton-pulse 1.5s infinite ease-in-out;
  border-radius: 4px;
  margin: 8px 0;
}

.theme-item.skeleton .skeleton-line.short {
  width: 40%;
}

.theme-item.skeleton .skeleton-line.long {
  width: 100%;
  height: 38px;
  border-radius: 0.5rem;
  margin-top: 12px;
}
