@import url("https://fonts.googleapis.com/css2?family=Lora:wght@600;700&family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #2f2f2f;
  --text-dark: #18181b;
  --text-light: #71717a;
  --white: #ffffff;
  --max-width: 1200px;
  --header-font: "Lora", serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--text-dark);
}

.section__subheader {
  color: var(--text-light);
}

.btn {
  padding: 0.75rem 1rem;
  max-width: 100px;
  font-size: 15px;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--text-dark);
}

.btn__about {
  margin-top: 30px;
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

/* HEADER */

header {
  position: relative;
  overflow: hidden;
}

header video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.2)
  );
  z-index: -1;
}

nav.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease-in-out;
  color: var(--text-dark);
}

.nav__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.nav__logo {
  flex: 1;
}

.nav__logo a {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--header-font);
  color: var(--white);
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.link a {
  position: relative;
  padding: 10px 0;
  color: var(--white);
  transition: 0.3s;
  font-size: 14px;
}

.link a::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 0;
  background-color: var(--white);
  transition: 0.3s;
}

.link a:hover::after {
  width: 100%;
}

.nav__menu__btn {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
}

.nav__actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
}

.nav__actions span {
  font-size: 1.2rem;
  color: var(--white);
  cursor: pointer;
}

.language-dropdown {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 5px;
}

.lang-btn img {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

.lang-btn span {
  font-size: 14px;
}

.lang-btn i {
  font-size: 16px;
  transition: transform 0.3s;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  list-style: none;
  padding: 5px 0;
  margin: 0;
  display: none;
  min-width: 150px;
  z-index: 100;
}

.lang-menu.open {
  display: block;
}

.language {
  padding: 8px 15px;
}

.language a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s;
}

.language:hover a {
  color: var(--white);
  background: var(--primary-color);
  border-radius: 5px;
  padding: 5px 10px;
}

.language img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  object-fit: cover;
}

.language span {
  font-size: 14px;
}

.lang-menu.open ~ .lang-btn i {
  transform: rotate(180deg);
}

.header__container {
  text-align: center;
  color: var(--white);
}

.header__container h1 {
  margin-bottom: 1rem;
  font-size: 3.5rem;
  font-weight: 600;
  font-family: var(--header-font);
}

.header__container p {
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 4rem;
  font-size: 1rem;
}

.header__container a {
  display: inline-block;
  padding: 0 8px;
  font-size: 1.5rem;
  color: var(--white);
  backdrop-filter: blur(10px);
  border: 1px solid var(--white);
  border-radius: 100%;
}

.header__container a:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateX(10px) translateY(-10px);
}

/* ABOUT */
.about__container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}
  
.about__container .about__bg {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-3rem);
  max-width: 300px;
  opacity: 0.4;
  z-index: -1;
}
  
.about__grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
}
  
.about__card span {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 5px 10px;
  font-size: 1.25rem;
  background-color: #cad8d8;
  border-radius: 100%;
}
  
.about__card h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--header-font);
  color: var(--text-dark);
}
  
.about__card p {
  color: var(--text-light);
}
  
.about__image img {
  max-width: 500px;
  margin: auto;
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}

/* SERVICES */
.services__container {
  padding-block: 5rem;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, var(--max-width))
    minmax(0, 1fr);
  row-gap: 2rem;
}
  
.services__grid__top {
  grid-column: 1/3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
  
.services__grid__bottom {
  grid-column: 2/4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
  
.services__container img {
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}
  
.services__content {
  padding-right: 1rem;
}
  
.services__content .section__subheader {
  margin-bottom: 2rem;
}


/* PRODUCT */
.product__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
}
  
.product__image {
  position: relative;
  isolation: isolate;
}

.product__image:nth-child(5) {
  display: none;
}
  
.product__image::before {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: #ebf1f1;
  border-radius: 15px;
  transition: 0.3s;
  z-index: -1;
}
  
.product__image:hover::before {
  height: 80%;
}
  
.product__image__content {
  padding-bottom: 2rem;
  text-align: center;
  transition: 0.3s;
}
  
.product__image__content img {
  margin-bottom: 1rem;
  max-width: 250px;
  margin: auto;
}
  
.product__image__content p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}
  
.product__image__content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}
  
.product__image:hover .product__image__content {
  transform: translateY(-2rem);
}
  
.product__image a {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translate(-50%, 50%);
  padding: 0 7px;
  font-size: 1.75rem;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 100%;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: 0.3s;
}
  
.product__image:hover a {
  opacity: 1;
}

/* FASILITAS */
.facility__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
  
.facility__image {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 100%;
  min-height: 470px;
  margin: auto;
}
  
.facility__bg {
  position: absolute;
  max-width: 200px;
  right: 0;
  top: -4rem;
  opacity: 0.5;
}
  
.facility__img-1,
.facility__img-2,
.facility__img-3 {
  position: absolute;
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}
  
.facility__img-1 {
  max-width: 375px;
}
  
.facility__img-2 {
  max-width: 175px;
  right: 0;
}
  
.facility__img-3 {
  max-width: 250px;
  right: 0;
  bottom: -2rem;
}
  
.facility__grid {
  margin-block: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
  
.facility__card {
  display: flex;
  gap: 1rem;
}
  
.facility__card span {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-dark);
}
  
.facility__card p {
  color: var(--text-light);
}

/* PARTNER */

.partner__slider {
  overflow-x: hidden;
  margin-top: 2rem;
}

.overflow {
  display: flex;
  gap: 1rem;
  overflow: hidden;
}

.partner__wrapper {
  display: flex;
  justify-content: space-around;
  animation: scroll 30s linear infinite;
}

.partner__item {
  margin-left: 1rem;
  padding: 1rem;
  aspect-ratio: 30/9;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.partner__item img {
  width: 10rem;
  margin-inline: 2rem;
}

@keyframes scroll {
  0% {
      transform: translateX(0);
  }
  100% {
      transform: translateX(-100%);
  }
}

/* FOOTER */

.footer {
  background: var(--primary-color);
  padding: 50px 0 20px;
  position: relative;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer__col {
  padding: 0 15px;
}

.footer__logo {
  width: 140px;
  height: 50px;
}

.footer__col p {
  color: var(--white);
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0 20px;
}

.social__links {
  display: flex;
  gap: 1rem;
}

.social__links a {
  display: inline-block;
  font-size: 22px;
  color: var(--white);
  transition: all .45s ease;
}

.social__links a:hover {
  transform: translateY(-3px);
  color: var(--main-color);
}

.footer__col h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--white);
  padding-bottom: 10px;
}

.footer__col ul li {
  margin-bottom: 1rem;
  list-style: none;
}

.footer__col ul li a {
  color: var(--white);
  font-size: 14px;
  transition: all .45s ease;
  display: block;
}

.footer__col ul li a:hover {
  transform: translateX(5px);
  color: var(--main-color);
}

.contact__info li {
  display: flex;
  align-items: center;
  max-height: 20px;
  gap: 10px;
}

.contact__info li span {
  color: var(--white);
  font-size: 18px;
}

.contact__info li p, 
.contact__info li p a {
  color: var(--white);
  font-size: 14px;
}

.contact__info li p a:hover {
    color: var(--main-color);
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 30px;
}

.footer__bottom p {
  color: var(--white);
  font-size: 14px;
}

/* CONTACT */
.section {
  padding: 4rem 0 1rem;
}

.section__title {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: #000;
}

.section__subtitle {
  display: block;
  font-size: 14px;
  margin-bottom: 4rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

/*=============== LAYOUT ===============*/
.container {
  max-width: 968px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/*=============== BUTTONS ===============*/

.button {
  padding: 0.75rem 1rem;
  font-size: 15px;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.button:hover {
  background-color: #000;
  transform: scale(1.05);
  transition: 0.3s ease-in-out;
}

.button__icon {
  margin-left: 0.5rem;
}

.button--flex {
  display: inline-flex;
  align-items: center;
}

/*=============== CONTACT ===============*/
.contact__container {
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  column-gap: 6rem;
  padding-bottom: 3rem;
}

.contact__title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact__info {
  display: grid;
  row-gap: 1rem;
  grid-template-columns: 300px;
}

.contact__card {
  background-color: #fff;
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
}

.contact__card-icon {
  font-size: 1.5rem;
  color: #000;
  margin-bottom: 0.5rem;
}

.contact__card-title,
.contact__card-data {
  font-size: 14px;
}

.contact__card-title {
  font-weight: 600;
}

.contact__card-data {
  display: block;
  margin-bottom: 0.5rem;
}

.contact__button {
  color: #000;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.25rem;
}

.contact__button-icon {
  font-size: 1rem;
  transition: 0.3s;
}

.contact__button:hover .contact__button-icon {
  transform: translateX(0.25rem);
}

.contact__form {
  width: 360px;
}

.contact__form-div {
  position: relative;
  margin-bottom: 1rem;
  height: 4rem;
}

.contact__form-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(0, 0, 0, 0.3);
  background: none;
  color: #000;
  outline: none;
  border-radius: 0.75rem;
  padding: 1.5rem;
  z-index: 1;
}

.contact__form-tag {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  font-size: 14px;
  padding: 0.2rem;
  background-color: #fff;
  z-index: 10;
}

.contact__form-area {
  height: 9rem;
}

.contact__form-area textarea {
  resize: none;
}

/* RESPONSIVE */
@media (width < 1200px) {
  .services__container {
    row-gap: 1rem;
  }

  .services__grid__top,
  .services__grid__bottom {
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
  }

  .services__grid__top img:first-child,
  .services__grid__bottom img:first-child {
    display: none;
  }

  .product__container {
    gap: 1rem;
  }
}

@media (width < 900px) {
  .container {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  .button {
    padding: 1rem 1rem;
  }

  .button__icon {
    width: 22px;
    height: 22px;
  }

  nav {
    position: fixed;
    width: 100%;
    padding: 0 14px;
    background-color: #000000;
    z-index: 99;
  }
    
  .nav__links {
    position: absolute;
    left: 0;
    top: 68px;
    padding: 2rem;
    width: 100%;
    flex-direction: column;
    transform: scaleY(0);
    transform-origin: top;
    transition: 0.5s;
    background-color: rgba(0, 0, 0, 0.9);
  }
    
  .nav__links .link a {
    opacity: 0;
  }
  
  .nav__links.open .link a {
    opacity: 1;
  }
  
  .nav__links.open {
    transform: scaleY(1);
  }
  
  .nav__menu__btn {
    display: block;
  }
  
  .nav__actions {
    display: none;
  }

  .section__header {
    font-size: 2rem;
    font-weight: 600;
  }

  .about__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .about__container .about__bg {
    left: 0;
    transform: translateX(0);
  }

  .about__image {
    grid-area: 1/1/2/2;
  }

  .services__grid__top,
  .services__grid__bottom {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid__top img:nth-child(2),
  .services__grid__bottom img:nth-child(4) {
    display: none;
  }

  .product__content {
    display: flex;
    flex-direction: column;
    grid-column: 1/3;
    align-items: center;
    justify-content: center;
  }

  .product__content p {
    text-align: center;
  }

  .product__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .product__image:nth-child(5) {
    display: block;
  }

  .product__btn {
    grid-column: 1/3;
    text-align: center;
    margin-top: 2rem;
  }

  .facility__container {
    grid-template-columns: repeat(1, 1fr);
    gap: 4rem;
  }

  .contact__container {
    column-gap: 3rem;
  }
}

@media (width < 600px) {
  .section {
    padding: 2rem 0 4rem;
  }

  .section__header {
    font-size: 30px;
    font-weight: 600;
  }

  .section__subheader {
    font-size: 14px;
  }

  .section__title {
    font-size: 30px;
    font-weight: 600;
  }

  .section__subtitle {
    font-size: 14px;
  }

  .contact__title {
    font-size: 20px;
    font-weight: 600;
  }

  .header__container h1 {
    margin-top: 4rem;
    font-size: 2rem;
  }

  .services__grid__top,
  .services__grid__bottom {
    padding-inline: 1rem;
    grid-template-columns: repeat(1, 1fr);
  }

  .blog__grid {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 2rem;
  }

  .footer__bar {
    flex-direction: column;
  }

  .contact__container {
    grid-template-columns: 1fr;
    row-gap: 3rem;
  }

  .contact__info {
    justify-content: center;
    margin: 0 auto;
    width: 100%;
  }

  .contact__form {
    margin: 0 auto;
    width: 100%;
  }
}
