* {
  margin: 0px;
  padding: 0px;
}

@font-face {
  font-family: 'ciguatera';
  src: url('font/ciguatera.otf') format('.otf');
}
@font-face {
  font-family: 'arnel';
  src: url('font/Arnel-Regular.otf') format('.otf');
}
@font-face {
  font-family: 'cogley';
  src: url('font/Cogley.ttf') format('.ttf');
}
@font-face {
  font-family: 'crashbow';
  src: url('font/Crashbow.ttf') format('.ttf');
}
@font-face {
  font-family: 'boost';
  src: url('font/BoostPlayer_PERSONAL_USE_ONLY.otf') format('.otf');
}
@font-face {
  font-family: 'hemgjord';
  src: url('font/HemgjordLettering_PERSONAL_USE_ONLY.otf') format('.otf');
}
@font-face {
  font-family: 'lovera';
  src: url('font/Lovera\ Personal\ Use\ Only.otf') format('.otf');
}
@font-face {
  font-family: 'margesh';
  src: url('font/Margesh.otf') format('.otf');
}
@font-face {
  font-family: 'never';
  src: url('font/Never.otf') format('.otf');
}
@font-face {
  font-family: 'nusaline';
  src: url('font/Nusaline.otf') format('.otf');
}

body {
  /* font-family: 'montserrat', sans-serif; */
  /* background-color: red; */
  transition: background-color 1s ease-in-out;
  width: 100%;
  /* height: 2500px; */
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 10px;
  background-color: #ffff;
  /* position: fixed; */
  display: none;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #e5d0ac;
}

/* navbar */

nav {
  display: flex;
  background-color: #ffff;
  justify-content: space-between;
  padding: 20px 0px;
  letter-spacing: 1px;
  height: 10px;
  width: 100%;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 999;
}

.logo {
  display: flex;
  width: 50%;
  height: 45px;
  align-items: center;
  position: relative;
  left: 10px;
}

.logo img {
  width: 30px;
  padding: 0px 18px;
}

.logo .nama {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0px 5px;
  font-weight: 600;
  font-size: 16px;
  color: #a31d1d;
  font-family: Helvetica, sans-serif;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: space-evenly;
  width: 50%;
  box-sizing: border-box;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #a31d1d;
  font-weight: 600;
  font-family: Arial;
  font-size: 13px;
  padding: 10px;
  display: inline-block;
}

nav ul li span {
  width: 100%;
  height: 3px;
  position: absolute;
  bottom: 4px;
  left: 0;
  opacity: 0;
  background-color: #6d2323;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  pointer-events: none;
}

nav ul li a:hover span,
nav ul li.active a span {
  transform: scaleX(1);
  opacity: 1;
}

/* ikon menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  height: 20px;
  justify-content: space-between;
  position: relative;
  right: 10px;
}

.menu-toggle input {
  position: absolute;
  width: 40px;
  height: 28px;
  left: -6px;
  top: -4px;
  opacity: 0;
  cursor: pointer;
  z-index: 15;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: black;
  border-radius: 3px;
  transition: all 0.5s;
}

/* humberger menu animation */

/* humberger pertama berputar 45 derajat */

/*input dihitung sebagai anak pertama,sehingga span pertama menjadi anak kedua*/
.menu-toggle span:nth-child(2) {
  transform-origin: 0 100%;
}

.menu-toggle span:nth-child(4) {
  transform-origin: 0 100%;
}

/* ketika input diceklis maka ia akan mencari span pertama yang merupakan anak kedua */
.menu-toggle input:checked ~ span:nth-child(2) {
  transform: rotate(50deg) translate(-1px, -3px);
}

.menu-toggle input:checked ~ span:nth-child(3) {
  transform: scale(0);
  opacity: 0;
}

.menu-toggle input:checked ~ span:nth-child(4) {
  transform: rotate(-50deg) translate(0px, 4px);
}

/* article */

.hero {
  display: flex;
  flex-direction: column;
  margin-top: 50px;
}

.hero video {
  width: 100%;
}

.hero div {
  display: flex;
  width: 100%;
  height: 500px;
  background: linear-gradient(
    to top,
    rgba(255, 0, 0, 0.7),
    rgba(255, 0, 0, 0.3),
    rgba(255, 255, 255, 0)
  );
  position: absolute;
  top: 550px;
}

.judul {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20px;
}

/* kontainer satu */
.container-satu {
  margin: 40px auto;
  display: flex;
  flex-wrap: wrap;
  width: 900px;
  justify-content: center;
  flex-direction: row;
  box-sizing: border-box;
}

.dinas {
  width: 30%;
  border: solid white 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box;
  border-radius: 20px;
  margin: 5px;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 15px;
  flex-wrap: wrap;
  text-align: center;
}

.dinas img {
  width: 65%;
}

.dinas:hover {
  box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.5);
}

/* kontainer dua */
.container-dua {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  margin: 100px 0px;
  box-sizing: border-box;
  background-color: #e5d0ac;
}

.container-dua ul {
  list-style-type: none;
  width: 70%;
  display: flex;
  flex-direction: row;
}

.container-dua ul li {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 5px;
  width: 250px;
  overflow: hidden;
  background-color: #e5d0ac;
  gap: 3px;
}

.container-dua ul li img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.container-dua .cover {
  box-shadow: 0 0 5px 0.2px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  height: inherit;
  background-color: #ffff;
}

.container-dua ul li:hover img {
  transform: scale(1.3);
}

.container-dua ul li .content {
  display: flex;
  flex-direction: column;
  height: 30%;
}

.container-dua ul li a {
  text-decoration: none;
  color: black;
  font-size: 15px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  height: 60px;
  margin-top: 15px;
  text-align: left;
}

.container-dua ul li p {
  font-size: 13px;
  font-family: arial;
  color: #999;
  padding: 5px;
  align-items: end;
  text-align: left;
  width: 100%;
}

.info {
  box-sizing: border-box;
  padding: 0px 50px;
  width: 40%;
}

.info h3 {
  padding: 10px 0px 15px 0px;
}

.info a {
  text-decoration: none;
  color: black;
  background-color: white;
  border: solid black 2px;
  border-radius: 15px;
  padding: 5px 10px;
  width: 50%;
  transition: all 0.3s ease-in-out;
}

.info a:hover {
  color: white;
  background-color: black;
}

/* Quantum data */
.quantum {
  width: 100%;
  height: 160px;
  background-color: #a31d1d;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.quantum ul {
  display: flex;
  list-style-type: none;
  flex-direction: row;
  padding: 10px 20px 0px 20px;
  width: 100%;
  box-sizing: border-box;
  justify-content: space-around;
}

.quantum ul li {
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 16px;
}

/* kontainer tiga */
.container-tiga {
  display: flex;
  flex-direction: row;
  width: 1200px;
  margin: 100px auto;
  box-sizing: border-box;
}

.pijar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40%;
  flex-direction: column;
  background-color: black;
  margin-right: 10px;
}

.pijar img {
  width: 80%;
}

.pijar p {
  position: relative;
  padding: 20px 0px;
  font-size: 20px;
  color: white;
}

.inti {
  box-sizing: border-box;
  display: flex;
  width: 60%;
  flex-direction: row;
  flex-wrap: wrap;
  margin-left: 10px;
}

.inti-pijar {
  width: 47%;
  text-decoration: none;
  overflow: hidden;
  border: solid 2px #ffff;
}

.inti-pijar img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.inti-pijar:hover img {
  transform: scale(1.3);
}

.inti-pijar p {
  font-size: 20px;
  text-align: center;
  position: relative;
  bottom: 47px;
  padding: 10px 0px;
  color: white;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.2),
    rgba(255, 255, 255, 0)
  );
}

/* footer */
.kontak {
  display: flex;
  background-color: #ffffff;
  flex-direction: column;
  height: auto;
  position: relative;
  /* z-index: -1; */
}

.kabinet {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-family: Helvetica, sans-serif;
}

.kabinet img {
  width: 3%;
  padding: 10px;
}

.kontak h3 {
  font-size: 18px;
  padding: 10px;
}

.kontak ul {
  padding-left: 10px;
  list-style: none;
}

.kontak ul li {
  padding-bottom: 5px;
}

.kontak ul li a {
  text-decoration: none;
  color: red;
}

.kontak p {
  width: inherit;
  height: 20px;
  margin: auto;
  font-size: 16px;
  padding: 20px;
}

/* responsive */
/* ukuran tablet */
@media screen and (min-width: 577px) and (max-width: 991px) {
  nav ul {
    width: 60%;
  }

  .logo {
    width: 40%;
  }

  .hero {
    height: auto;
    /* margin-top: 50px; */
  }

  .hero img {
    height: auto;
    max-height: 600px;
    object-fit: cover;
  }

  .judul {
    height: auto;
    padding: 10px;
    font-size: 16px;
    text-align: center;
  }

  .container-satu {
    width: 100%;
    padding: 0 20px;
    margin: 30px auto;
  }

  .dinas {
    width: 45%;
    font-size: 14px;
  }

  .dinas img {
    width: 75%;
  }

  .container-dua {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    margin: 60px 0;
  }

  .container-dua ul {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    margin-bottom: 30px;
    box-sizing: border-box;
  }

  .container-dua ul li {
    min-width: 200px;
    flex-shrink: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .container-dua ul li img {
    width: 100%;
  }

  .container-dua ul li a {
    font-size: 16px;
    text-align: left;
    margin-top: 10px;
  }

  .container-dua ul li p {
    font-size: 14px;
    text-align: left;
    margin-top: 8px;
    width: 90%;
  }

  .info {
    width: 100%;
    padding: 20px;
    text-align: left;
    box-sizing: border-box;
  }

  .info h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .info a {
    font-size: 16px;
  }

  .container-tiga {
    flex-direction: column;
    width: 100%;
    padding: 0 15px;
    margin: 60px auto;
  }

  .pijar {
    width: 100%;
    padding-top: 15px;
    margin: 0 0 20px 0;
  }

  .pijar img {
    width: 50%;
  }

  .pijar p {
    font-size: 18px;
    padding: 15px 0;
    text-align: center;
  }

  .inti {
    width: 100%;
    margin: 0;
    flex-direction: row;
    justify-content: center;
  }

  .inti-pijar {
    width: 48%;
  }

  .inti-pijar p {
    font-size: 16px;
    bottom: 35px;
    padding: 8px 0;
  }
}

/* ukuran mobile */
@media screen and (max-width: 576px) {
  .logo {
    width: 100%;
  }

  nav ul {
    position: absolute;
    flex-direction: column;
    top: 20px;
    left: 0px;
    width: 100%;
    height: 220px;
    background-color: #ffff;
    z-index: 10;
    transform: translateY(-300px);
    transition: all 0.5s;
  }

  nav ul li {
    padding: 10.5px;
    text-align: center;
  }

  body .blur {
    transition: background-color 0.5s ease-in-out;
    opacity: 0.8;
  }

  nav ul.slide {
    transform: translateY(29px);
    background-color: #ffff;
    z-index: 10;
  }

  .menu-toggle {
    display: flex;
    z-index: 5;
  }

  /* HERO SECTION */
  .hero {
    margin-top: 13%;
    height: auto;
    width: 100%;
  }

  .hero img {
    width: 100%;
  }

  /* CONTAINER SATU - DINAS */
  .container-satu {
    margin: 5px 0;
    width: 100%;
    padding: 10px 5px;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .dinas {
    width: 45%;
    margin: 5px 0;
    font-size: 14px;
  }

  .dinas img {
    width: 100%;
  }

  /* CONTAINER DUA - INFORMASI & LIST */
  .container-dua {
    flex-direction: column;
    margin: 20px 0px;
    padding: 1rem 0.5rem;
  }

  .container-dua ul {
    width: 100%;
    flex-direction: row;
    margin-bottom: 0px;
  }

  .container-dua ul li {
    width: 60%;
    max-width: 300px;
    border: none;
  }

  .container-dua ul li img {
    width: 100%;
  }

  .container-dua ul li a {
    font-size: 16px;
    margin-top: 10px;
    text-align: left;
    width: 100%;
    height: 100px;
    word-break: break-word;
    padding-bottom: 5px;
  }

  .container-dua ul li p {
    font-size: 14px;
    text-align: left;
    margin-top: 12px;
    width: 90%;
  }

  .container-dua .cover {
    width: 100%;
  }

  .container-dua .info {
    text-align: left;
    width: 100%;
    padding: 10px;
  }

  .container-dua .info h3 {
    margin-bottom: 10px;
    font-size: 16px;
  }

  /* QUANTUM SECTION */
  .quantum {
    height: auto;
    width: 100%;
    padding: 25px 0px;
    text-align: center;
  }

  .quantum ul {
    flex-direction: column;
    gap: 12px;
  }

  .quantum ul li {
    font-size: 14px;
  }

  /* CONTAINER TIGA - PIJAR & INTI */
  .container-tiga {
    flex-direction: column;
    width: 100%;
    margin: 40px auto;
    padding: 0 1rem;
  }

  .pijar {
    width: 100%;
    margin: 0 0 20px 0;
  }

  .pijar img {
    width: 80%;
  }

  .pijar p {
    font-size: 16px;
    padding: 15px 0;
    text-align: center;
  }

  .inti {
    width: 100%;
    gap: 2px;
  }

  .inti-pijar {
    width: 48%;
  }

  .inti-pijar p {
    font-size: 16px;
    bottom: 40px;
    padding: 8px 0;
  }

  /* FOOTER - KONTAK */
  .kabinet img {
    width: 8%;
  }

  .kontak {
    height: auto;
  }

  .kontak p {
    padding: 20px;
  }
}
