/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;600&family=Unbounded:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,500;0,600;0,700;1,700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #145da0;
  --black-color: hsl(220, 12%, 8%);
  --white-color: hsl(48, 90%, 90%);
  --text-color: hsl(220, 8%, 28%);
  --body-color: hsla(49, 28%, 92%, 1.00);
  --shadow-img: drop-shadow(0 16px 24px hsla(0, 0%, 0%, .2));

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --second-font: "Unbounded", sans-serif;
  --biggest-font-size: 3rem;
  --bigger-font-size: 2.5rem;
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 6rem;
    --bigger-font-size: 4.5rem;
    --big-font-size: 3.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--black-color);
}

input,
button {
  border: none;
  outline: none;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-bold);
  font-family: var(--second-font);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title, 
.section__subtitle {
  text-align: center;
  font-family: var(--second-font);
}

.section__title {
  font-size: var(--big-font-size);
  border-bottom: 2px solid var(--black-color);
  margin-bottom: 2rem;
}

.section__subtitle {
  display: block;
  font-size: var(--h2-font-size);
  margin-bottom: 2rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;  
  background-color: var(--first-color);
  z-index: var(--z-fixed);
  transition: box-shadow .4s;
}

nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  color: var(--white-color);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
}

.nav__logo img {
  width: 10rem;
}

.nav__toggle,
.nav__close{
  display: inline-flex;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: var(--first-color);
    width: 80%;
    height: 100%;
    padding: 8rem 3.5rem 0;
    box-shadow: -4px 0 16px hsla(0, 0%, 0%, .1);
    transition: right .4s;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 3.5rem; 
}

.nav__link {
  color: var(--white-color);
  font-family: var(--second-font);
  transition: color .4s; 
}

.nav__link:hover {
  color: var(--black-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}


/* Show menu */
.show-menu {
  right: 0px;
}


/* Add shadow header */
.shadow-header {
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, .1);
}

/* Active link */
.active-link {
  color: var(--black-color);
}

/*=============== HOME ===============*/
.home {
  background-color: var(--body-color);
}

.home__container {
  padding-block: 4rem 1rem;
  display: block;
}

.slider-container {
  overflow: hidden;
  width: 90%;
  margin-top: -3.5rem;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.home__welcome {   
  position: relative;
  justify-self: center;
  display: flex;
  justify-content: space-around;
  box-sizing: border-box;
  border-radius: 5px;
  margin: 8rem auto;
  width: 90%;
}

.home__welcome h2 {
  font-size: var(--h3-font-size);
  margin: auto;
}

.home__img-gms {
  width: 50%;
  height: auto;
}

.home__dam-3,
.home__dam-4,
.home__dam-5 {
  position: absolute;
}

.home__dam-3 {
  width: 90px;
  top: -3rem;
  right: -1rem;
}

.home__dam-4 {
  width: 60px;
  right: .75rem;
  bottom: -.5rem;
}

.home__dam-5 {
  width: 80px;
  top: 9rem;
  left: -2.5rem;
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  background-color: var(--black-color);
  color: var(--white-color);
  padding: 1rem 2rem;
  font-weight: var(--font-semi-bold);
  border-radius: .75rem;
  transition: box-shadow .4s;
}

.button:hover {
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, .2);
}


/*=============== ABOUT ===============*/
.about {
  background-color: var(--body-color);
}

.about__container {
  display: block;
  padding-bottom: 1rem 2rem;
  width: 100hw;
  height: auto;
}

.about__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 3.5rem;
  padding: 1rem;
  gap: 1rem;
}

.about__data,
.about__images {
  width: 100%;
}

.about__data {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__title {
  text-align: center;
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
}

.about__description {
  text-align: justify;
  font-size: var(--normal-font-size);
}

.about__images {
  border-radius: .25rem;
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, .1); 
}


/*=============== PRODUCT ===============*/
.product {
  background-color: var(--body-color);
}

.product__container {
  display: block;
  padding-block: 4rem 1rem;
  margin-bottom: 4rem;
}

.product__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product__card {
  margin: 20px 1rem;
  overflow: hidden;
  width: 40%;
  height: 300%;
}

.product__card a {
  text-decoration: none;
  color: var(--black-color);
}

.product__images {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  background-colord: black;
}

.product__images img {
  width: 80%;
  height: 100%;
  object-fit: cover;
  box-sizing: border-box;
  margin: auto;
  border-radius: 5px;
  transition: transform 0.4s ease-in-out;
  overflow: hidden;
}

.product__images img:hover {
  transform: scale(1.1);
  cursor: pointer;
}


.product__info {
  height: 40%;
  margin-top: 1em;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}


.title {
  font-size: 1ren;
  width: 100%;
  height: 50%;
  font-weight: bold;
  transition: color 0.5s;
  box-sizing: border-box;
}


.title:hover {
  color: #145da0;
  cursor: pointer;
}

.product__info p {
  font-size: smaller;
}

.product__info .product__harga {
  height: 50%;
  font-size: smaller;
  font-weight: 300;
  box-sizing: border-box;
}

/*=============== PORTOFOLIO ===============*/
.porto {
  background-color: var(--body-color);
}

.porto__container {
  padding-block: 4rem 5rem;
  display: block;
}

.info2 {
  font-size: var(--h1-font-size);
  display: flex;  
  margin: 2remrem;
  justify-content: center;
}

.content__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 9rem;
}

.content__card   {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
  align-items: center;
  margin: 1rem;
  width: 100%;
}

.judul {
  font-size: 12px;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 2rem;
}

.client__card {
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  size-adjust: auto;
  margin: 0 auto 3rem;
  object-position: center;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.client__card:hover {
  transform: scale(1.03);
  cursor: pointer;
}

.client__card img {
  size-adjust: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-sizing: border-box;  
  transition: transform 0.3s ease-in-out;
}

.client__card img:hover {
  transform: scale(1.03);
  cursor: pointer;
}

/*=============== LOCATION ===============*/
.lokasi__container {
  display: flex;
  justify-content: center;
  width: 100vw;
}

.lokasi {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem;
  margin-bottom: 9rem;
  width: 100%;
  height: 300px;
}

.map {
  box-sizing: border-box;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/*=============== ARTICLE ===============*/

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--first-color);
  padding-block: 2rem 1rem;
}

.footer__container {
  display: flex;
  justify-content: center;
}

.footer__content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* biar rapi kalau ada konten tambahan */
  gap: 1.5rem;
  width: 100%;
}

.footer__social {
  display: flex;
  justify-self: center;
  column-gap: 1rem;
}

.footer__social-link {
  font-size: 1.5rem;
  color: var(--white-color);
  transition: transform .4s;
}

.footer__social-link:hover {
  transform: translateY(-.25rem);
}

.footer__copy {
  display: block;
  margin-top: 1rem;
  color: var(--white-color);
  text-align: center;
  font-size: var(--small-font-size);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  background-color: #b8c6d3ff;
}

::-webkit-scrollbar-thumb {
  background-color: #145da0;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #00101fff;
}


/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--white-color);
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, .1);
  color: var(--black-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  border-radius: .5rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s transform .4s;
}

.scrollup:hover {
  transform: translateY(-.5rem);
}


/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  /* ========== HOME ========== */
  .home__dam-3,
  .home__dam-4,
  .home__dam-5 {
    position: absolute;
  }

 .home__welcome h2 {
    font-size: var(--normal-font-size);
  }
  .home__dam-3 {
    width: 60px;
    top: -3rem;
    right: -1rem;
  }
  .home__dam-4 {
    width: 30px;
    right: .75rem;
    bottom: -.5rem;
  }
  .home__dam-5 {
    width: 50px;
    top: 5rem;
    left: -2.5rem;
  }

  /* ========== ABOUT ========== */
  .about__content {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    flex-direction: column;
    width: 95%;
  }
  .about__data,
  .about__images {
    width: 100%;
  }
  .about__title {
    font-size: var(--h3-font-size);
  }
  .about__description {
    font-size: var(--small-font-size);
  }

  /* ========== PRODUCT ========== */
  .product__content {
    justify-content: center;
  }
  .product__card {
    width: 100%;
  }
  .product__images {
    width: 50%;
  }
  .product__info {
     font-size: var(--small-font-size);
  }

  /* ========== PORTO ========== */  
  .info2 {
    font-size: var(--h2-font-size);
    margin-bottom: 2rem;
  }
  .judul { 
    font-size: .5rem;
  } 
  .content__card {
    margin: 0;
    width: 100%;
  }

  
  /* ========== LOKASI ========== */ 
  .lokasi {
    margin-top: 3rem;
    width: 100%;
    height: 70%;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .nav__menu {
    width: 55%;
  }

  .home__container,
  .about__container,
  .product__container,
  .porto__container {
    grid-template-columns: 400px;
    justify-content: center;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .nav {
    height: clac(var(--header-hight) + 2rem);
  }
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__menu {
    width: initial;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }

  /* ========== HOME ========== */
  .home__container {
    grid-template-columns: 530px 550px;
    align-items: center;
    column-gap: 2rem;
    padding-block: 8rem 3rem;
  }
  .home__data {
    text-align: initial;
  }
  .home__title {
    margin-bottom: 1rem;
    position: relative;
    z-index: 5;
    } 
  .home__dam-3 {
    width: 150px;
    top: -3rem;
    right: -1rem;
  }
  .home__dam-4 {
    width: 120px;
    right: .75rem;
    bottom: -.5rem;
  }
  .home__dam-5 {
    width: 140px;
    top: 5rem;
    left: -2.5rem;
  }
  .home__welcome h2 {
    font-size: var(--big-font-size);
  }

  /* ========== ABOUT ========== */
  .about__container {
    grid-template-columns: 460px 420px;
    align-items: center;
    column-gap: 11rem;
    padding-block: 10rem 4rem;
  }
  .about__content {
    flex-direction: row;
  }

  /* ========== PRODUCT ========== */  
  .product__card {
    width: 20%;
  }
  .product__info {
    font-size: var(--normal-font-size);
  }

  /* ========== PORTO ========== */
  .content__card   {
    width: 40%;
  }
  .judul h3 {
    font-size: var(--h3-font-size); 
  }

  /* ========== LOKASI ========== */
  .lokasi {
    width: 80%;
    height: 600px;
  }

  /* ========== FOOTER ========== */  
  .footer__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }
  .footer__content {
    grid-template-columns: repeat(3, max-content);
    column-gap: 4rem;
  }
  .footer__logo {
    align-self: start;
  }
  .footer__logo img {
    width: 2rem;
  }
  .footer__logo span {
    font-size: var(--h3-font-size);
  }
  .footer__social {
    justify-self: initial;
  }
  .footer__title {
    text-align: initial;
  }
  .footer__form {
    width: 340px;
  }

  .scrollup {
    right: 3rem;
  }
}

/* For 2K resolutions (2048 x 1152, 2048 x 1536) */
@media screen and (min-width: 2040px) {
  body {
    zoom: 1.4;
  }
}
