@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
    font-family: 'Montserrat', sans-serif;
    color: black;
}

b1 {

    font-family: 'Montserrat:wght700', sans-serif;
    color: black;
    font-weight: 700;
}

h6 {
    font-size: small;
}

.mt-n1 {
  margin-top: -0.5rem !important;
}

.ml-n1 {
  margin-left: -0.9rem !important;
}

/* Footer */
footer{
    background-color: #ffffff;
    padding-top: 20px;
    padding-bottom: 0px;
  }
  
  .garisfooter{
    border-top:1px rgb(187, 186, 186) solid;
    width: auto;
  }

/* Garis Bawah Navbar */
.navbar {
    box-shadow: 0 2px 2px 0 rgb(0, 0, 0, 0.2)
  }

.complex-button:hover {
    color: #ffffff;
    background-color: #000000;
  }
  
.nav-link:hover {
    color: #000000;
  }

.nav-active{
    color: #000000;
}

.nav-item {
    position: relative;
  }

.nav-item::after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-color: #000000;
    width: 0%;
    content: "";
    height: 3px;
    transition: all 0.25s;
  }
  
.nav-item:hover::after {
    width: 100%;
  }

/* Container */
.containerproduk{
    margin-left: 100px;
}

/* Gambar-gambar */
* {
	box-sizing: border-box;
}

.container2 {
	display: grid;
	width: 90%;
	margin: 40px auto;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 30px;
}

.front1 img {
	width: 100%;
	height: 100%;
}

.container1 {
	position: relative;
}

.front1 h2 {
	position: absolute;
	top: 50%;
	left: 30%;
}

.front1 {
	transition: transform .5s;
}

.container1:hover>.front1 {
	transform: scaleY(1.1) scaleX(1.1);
  opacity: 0.7;
	cursor:pointer;
}

.container1:hover>.back {
	transform: scaleY(1.1) scaleX(1.1);
  opacity: 0.7;
	cursor:pointer;
}

@media(max-width: 800px) {
	.container1 {
		grid-template-columns: repeat(2, 1fr);

	}
}

@media(max-width: 500px) {
	.container1 {
		grid-template-columns: repeat(1, 1fr);

	}
}

/* Search Button */

.form button {
  border: none;
  background: none;
  color: #8b8ba7;
}

.form {
  --timing: 0.3s;
  --width-of-input: 300px;
  --height-of-input: 40px;
  --border-height: 2px;
  --input-bg: rgb(241, 241, 241);
  --border-color: #000000;
  --border-radius: 30px;
  --after-border-radius: 1px;
  position: relative;
  width: var(--width-of-input);
  height: var(--height-of-input);
  display: flex;
  align-items: center;
  padding-inline: 0.8em;
  border-radius: var(--border-radius);
  transition: border-radius 0.5s ease;
  background: var(--input-bg,rgb(206, 206, 206));
}
.formn {
  --timing: 0.3s;
  --width-of-input: 200px;
  --height-of-input: 40px;
  --border-height: 2px;
  --input-bg: rgb(241, 241, 241);
  --border-color: #000000;
  --border-radius: 30px;
  --after-border-radius: 1px;
  position: relative;
  width: var(--width-of-input);
  height: var(--height-of-input);
  display: flex;
  align-items: center;
  padding-inline: 0.8em;
  border-radius: var(--border-radius);
  transition: border-radius 0.5s ease;
  background: var(--input-bg,rgb(206, 206, 206));
  margin-left: 50px;
}

.input {
  font-size: 0.9rem;
  background-color: transparent;
  width: 100%;
  height: 100%;
  padding-inline: 0.5em;
  padding-block: 0.7em;
  border: none;
}

.form:before {
  content: "";
  position: absolute;
  background: var(--border-color);
  transform: scaleX(0);
  transform-origin: center;
  width: 100%;
  height: var(--border-height);
  left: 0;
  bottom: 0;
  border-radius: 1px;
  transition: transform var(--timing) ease;
}

.form:focus-within {
  border-radius: var(--after-border-radius);
}

input:focus {
  outline: none;
}

.form:focus-within:before {
  transform: scale(1);
}

.reset {
  border: none;
  background: none;
  opacity: 0;
  visibility: hidden;
}

input:not(:placeholder-shown) ~ .reset {
  opacity: 1;
  visibility: visible;
}

.form svg {
  width: 17px;
  margin-top: 3px;
}

/* Responsive polish */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.navbar .container-fluid {
  gap: .75rem;
}

.navbar-brand img {
  height: 21px !important;
  width: auto !important;
  max-width: none !important;
}

.navbar-collapse {
  justify-content: flex-end;
}

.navbar-nav {
  flex-wrap: wrap;
  gap: .15rem .5rem;
}

.nav-link {
  white-space: nowrap;
}

.form, .formn {
  width: min(100%, 300px);
}

.container2 {
  width: min(1140px, 100%);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.containerproduk {
  margin-left: 0;
}

.containerproduk .card {
  max-width: 100% !important;
}

.containerproduk .card .row {
  align-items: center;
}

iframe {
  width: 100% !important;
  max-width: 100%;
}

/* Hero/banner images */
img[src*="Home2.png"],
img[src*="Home3.png"],
img[src*="AboutUs1.png"],
img[src*="Contact1.png"],
img[src*="ServiceCenter1.png"] {
  width: 100%;
  height: auto !important;
}

/* Contact & service cards */
.card[style*="width: 22rem"] {
  width: 100% !important;
  max-width: 22rem;
  margin-inline: auto;
}

/* About us modal trigger */
button.position-absolute {
  position: absolute;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: .5rem;
  }

  .formn {
    margin-left: 0;
  }

  .container2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .containerproduk .card .row {
    flex-direction: column;
  }

  .containerproduk .card .col-md-4,
  .containerproduk .card .col-md-8 {
    width: 100%;
  }

  .containerproduk .card img {
    width: 100%;
    object-fit: cover;
  }

  iframe {
    height: 360px !important;
  }

  button.position-absolute {
    position: static !important;
    margin: 1rem auto !important;
    display: block;
  }
}

@media (max-width: 767.98px) {
  .container2 {
    grid-template-columns: 1fr;
    grid-gap: 18px;
    width: 100%;
    margin: 24px auto;
  }

  .form, .formn {
    width: 100%;
    margin-left: 0;
  }

  .form input,
  .formn input {
    min-width: 0;
  }

  .container { 
    padding-left: 14px;
    padding-right: 14px;
  }

  .navbar-brand img {
    height: 18px !important;
    width: auto !important;
    max-width: none !important;
  }

  .carousel-caption {
    display: none !important;
  }

  .carousel-item img {
    object-fit: cover;
    min-height: 220px;
  }

  iframe {
    height: 280px !important;
  }

  .col-sm-2, .col-sm-4, .col-md-4, .col-md-8 {
    width: 100%;
  }

  footer .row {
    gap: 1rem;
  }
}
