/* Reset & Umum */

:root {
  --primary: #f7ad19;
  --bg: #5e5e5e5e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  color: #010101;
  line-height: 1.6;

  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(77, 109, 188, 0.8);
  border-bottom: 1px solid var(--bg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar .navbar-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-style: italic;
}

.navbar .navbar-logo span {
  color: var(--primary);
}

.navbar .navbar-nav a {
  color: #fff;
  display: inline-block;
  font-size: 1.3rem;
  margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
  color: var(--primary);
}

.navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2 linear;
}

.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar .navbar-extra a {
  color: #fff;
  margin: 0.5rem;
}

.navbar .navbar-extra a:hover {
  color: var(--primary);
}

#hamburger-menu {
  display: none;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  background-image: url(".//img/header-bg5.jpg");
  justify-content: center;
  text-align: center;
  min-height: 50vh;
  padding: 2rem;
  position: relative;
  background-position: center;
}

.hero h1 {
  background-color: rgba(77, 109, 188, 0.8);
  border-radius: 30px;
  padding: 0.75rem 1.5rem;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  background-color: rgba(77, 109, 188, 0.8);
  border-radius: 30px;
  padding: 0.5rem 0.75rem;
}

.hero .content h1 span {
  color: var(--primary);
}

.cta {
  background-color: var(--primary);
  color: #010101;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta:hover {
  background-color: #0c9;
}

/* Section Umum */
section {
  padding: 4rem 2rem;
  text-align: center;
}

h2 span {
  font-size: 2rem;
  color: #0fb;
}

p {
  max-width: 800px;
  margin: 0.5rem auto;
}

/* About */
.about .content {
  margin: 2rem 0;
}

.about h2 span,
.contact h2 span,
.product h2 span,
.galeri h2 span {
  color: #010101;
}

.about-img {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.about-img img {
  width: 300px;
  border-radius: 12px;
}

* {
  box-sizing: border-box;
}

/* Slideshow container */
.slideshow-container {
  max-width: 800px;
  position: relative;
  margin: auto;
  flex: content;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

.mySlides img {
  width: 100%;
  border-radius: 5rem 15rem 10rem;
  border: 3px solid #020202;
  box-shadow: 0 0 10rem rgb(66, 64, 99);
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 10%;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #010101;
  font-size: 12px;
  padding: 8px 12px;
  text-align: center;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
/* end slide */

/* Product */
.product .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.product-card {
  flex: 1 1 250px;
  max-width: 300px;
  background: #f1eeb1;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card h3 {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  color: #000;
}

.product-hal {
  padding-top: 2rem;
}

.product .product-hal h4,
.product .product-hal h5 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  color: #f1eeb1;
  background-color: #005b;
  border-top-right-radius: 20rem;
  border-bottom-left-radius: 20rem;
}
.product .product-hal p {
  padding: 1rem;
  background-color: #f3f4f5f6;
}

/* Galeri */
.galeri .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.galeri-img-as {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Contact */
.contact .row,
.contact-from .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact form {
  background: #010203;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact .input-pabrik {
  color: #fff;
  display: flex;
  align-items: center;
  margin: 1rem 0;
  gap: 0.5rem;
  cursor: pointer;
}

.contact .input-pabrik p {
  font-size: 1rem;
  color: #fff;
  padding: 10px;
}

.contact .input-group {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  gap: 0.5rem;
  cursor: pointer;
}

.by {
  background-color: rgb(27, 243, 27);
  color: #020202;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  margin-top: 1rem;
}

.contact-from form {
  background: #1c4c7b;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

button.btn {
  background-color: #0fb;
  color: #020202;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  margin-top: 1rem;
  cursor: pointer;
}

button.btn:hover,
button.by:hover {
  background-color: rgb(27, 243, 27);
}

iframe.map {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 12px;
}

/* Footer */
.footer {
  background-color: #1c4c7b;
  color: white;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}
.footer-top {
  background-color: #f2f3f4f5;
  border-radius: 8px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.social-icons {
  margin-bottom: 20px;
}
.social-icons a {
  margin: 0 10px;
  display: inline-block;
}
.social-icons img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s;
}
.social-icons img:hover {
  transform: scale(1.2);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.footer-nav a {
  color: blue;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.footer-nav a:hover {
  color: #003580;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}
.footer-bottom a {
  color: #a5d7ff;
  text-decoration: underline;
}
/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 62.5%;
  }

  #hamburger-menu {
    display: inline-block;
    flex-wrap: wrap;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #fff;
    width: 25rem;
    height: 100vh;
    transition: 0.3s;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: var(--bg);
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 1.3rem;
  }

  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }

  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.3);
  }

  .about .row {
    flex-wrap: wrap;
  }

  .about .row .about-img img {
    margin: 0.5rem;
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
  }

  .about .row .about-img img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
  }

  .product .row {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem 1rem 1rem;
    text-align: center;
  }

  .product .row .product-card img {
    display: block;
    margin: 0.5rem 1px 0.5px;
    width: 95px;
    height: 95px;
    object-fit: cover;
    object-position: center;
  }

  .product-card {
    flex: 1 1 250px;
    max-width: 120px;
    background: #f1eeb1;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
  }

  .product-card h3 {
    text-align: center;
    margin-top: 1rem;
    font-size: 13px;
    color: #000;
  }

  .galeri .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 1rem;
    margin-top: 2rem;
  }

  .galeri-img-as {
    display: block;
    width: 80px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  h2 span {
    font-size: 1.5rem;
  }
}
