:root {
  --primary: #b6895b;
  --bg: #eaeaea;
  --bg1: #28c76f;
  --secondary: #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: #000;
  background-image: radial-gradient(circle farthest-corner at 10% 20%, rgb(248, 248, 248) 0.1%, rgba(239, 249, 251, 0.63) 90.1%);
}

/* Preview Box */
.products-preview .container {
  max-width: 100% auto;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
}

.products-preview {
  position: fixed;
  top: 0;
  left: 0;
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}

.products-preview .preview {
  display: none;
  padding: 2rem;
  text-align: left;
  background: #fff;
  position: relative;
  margin: 2rem;
  width: 100%;
  animation: animatePreview 0.5s;
  box-shadow: 0 0 3px 3px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  max-height: 100vh;
}

.products-preview img {
  width: 35rem;
  height: 35rem;
  margin-right: 2rem;
  margin-bottom: 2rem;
}

/* Preview Animation */
@keyframes animatePreview {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.products-preview .preview.active {
  display: inline-block;
}

.products-preview .preview .fa-times {
  position: absolute; /* Perbaikan: fixed -> absolute */
  top: 1rem;
  right: 1rem;
  margin: 5px;
  cursor: pointer;
  color: #444;
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  width: 25px;
  height: 25px;
  justify-content: center;
  align-items: center;
  background-color: var(--bg1);
  box-shadow: 1px 1px 5px rgba(1, 1, 3, 0.3);
}

@media (max-width: 768px) {
  .products-preview .preview {
    flex-direction: column;
  }

  .products-preview .preview img {
    width: 100%;
    height: auto;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 2rem;
  }

  .products-preview .preview p {
    width: 100%;
    height: auto;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 2rem;
    font-size: 1.6px;
  }

  .products-preview .preview iframe {
    margin-top: 0;
    width: 100% auto;
    height: 500px;
  }
}

@media (min-width: 768px) {
  .products-preview .preview iframe {
    width: 50%;
  }
}

/* Box Media Sosial Star */
.services1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.service1 {
  background-color: #333;
  padding: 2px;
  text-align: center;
  border: 1px solid var(--bg);
  border-radius: 5px;
  box-shadow: 1px 1px 5px rgba(1, 250, 105, 0.5);
}

.service1 a {
  display: block;
  font-size: 1em;
  color: var(--bg1);
  text-decoration: none;
  text-align: center;
  padding: 0.5px;
}

.service1 a:hover {
  color: #fff;
}

.service1 p {
  font-weight: 100;
  letter-spacing: 0.5px;
  font-size: 0.8em;
  color: #fff;
}
/* Box Media Sosial End */

@media (max-width: 768px) {
  html {
    .preview-content {
      flex-wrap: wrap;
    }
  }
}
