@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --biru: rgb(110, 214, 255);
  --birutua: rgb(27, 140, 253);
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--biru);
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(10px);
}
a {
  text-decoration: none;
  color: inherit;
}

nav {
  height: 9%;
  position: relative;
  background-color: #ffffff78;
  backdrop-filter: blur(10px);
  color: rgb(255, 255, 255);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  align-content: flex-start;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 300;
  justify-content: flex-start;
  gap: 60px;
  z-index: 1000;
}

nav ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 10px;
  gap: 1em;
  font-weight: inherit;
  justify-content: flex-start;
  margin-left: 5em;
  font-size: 20px;
}
nav ul li {
  transition: transform 0.1s ease-in;
}
nav ul li:hover {
  font-weight: 500;
  transform: scale(1.05);
  color: var(--birutua);
}
.logo {
  height: 100%;
  width: 50%;
}
.size-6 {
  top: 0;
  left: 0;
  width: 200px;
  transform: translateY(-65px) translateX(-40px);
  z-index: 2;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
  z-index: 2000;
  position: relative;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background: rgb(237, 226, 211);
  margin: 4px 0;
  transition: 0.3s;
}

.hero {
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
  position: relative;
  overflow: hidden;
  height: 95vh;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

section .hero-content {
  gap: 1em;
  display: flex;
  justify-content: left;
  flex-direction: column;
  height: 80%;
  color: rgb(255, 255, 255);
  margin-top: 10rem;
  margin-left: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.label-tombol {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-right: 90px;
  height: 30%;
  width: 50%;
}

.tombol {
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: "Roboto", "Arial", sans-serif;
  font-size: 20px; /* atur sesuai kebutuhan */
  font-weight: 300; /* normal */
  color: rgb(255, 255, 255);
  animation: fadeIn 2s ease-in-out;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: 0.3s, color 0.3s;
}
.gab-content {
  display: flex;
  flex-direction: column;
  height: 90%;
}

/* animasi navbar */

@keyframes slideDown {
  from {
    transform: translateY(-30px); /* mulai dari atas */
    opacity: 0; /* transparan */
  }
  to {
    transform: translateY(0); /* kembali ke posisi normal */
    opacity: 1; /* terlihat penuh */
  }
}

nav ul {
  animation: slideDown 2s ease-out;
  z-index: 1001;
}

/* animasi content */
@keyframes typing86 {
  from {
    color: rgb(214, 199, 179);
    width: 0;
  }
  to {
    color: rgb(255, 255, 255);
    width: 106ch;
  }
}
/* animasi content */
@keyframes typing114 {
  from {
    color: rgb(214, 199, 179);
    opacity: 0;
    width: 0;
  }
  to {
    color: rgb(255, 255, 255);
    opacity: 1;
    width: 100%;
  }
}

@keyframes typing40 {
  from {
    width: 0;
  }
  to {
    width: 40ch;
  }
}

@keyframes typing60 {
  from {
    width: 0;
  }
  to {
    width: 60ch;
  }
}

.item-descript {
  gap: 40px;
}

.item3 {
  animation: typing114 2s steps(130) forwards,
    blink-caret 0.75s step-end infinite;
  animation-delay: 1s;
  animation-fill-mode: both;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.9rem;
}
.item2 {
  animation: typing86 2s steps(106) forwards,
    blink-caret 0.75s step-end infinite;
  overflow: hidden;
  white-space: nowrap;
  font-size: rem;
}
.item1 {
  animation: fadeIn 4s ease-in-out;
  font-size: 3rem;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.tombol:hover {
  color: rgb(22, 168, 253);
}
.vidback {
  transform: translateY(-163px);
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
}
/* about */

#about {
  box-shadow: 0 5px -10px rgba(0, 0, 0, 0.4);
  background-color: var(--biru);
  backdrop-filter: blur(10px);
  height: 90vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin-top: 3rem;
  gap: 90px;
}
#about h1 {
  margin-left: 40%;
  margin-right: auto;
}

#about #about-title {
  margin-top: 30px;
  font-weight: 300;
  font-size: 2.5rem;
}

.bg-p {
  display: flex;
  flex-direction: row;
  box-shadow: 3px -3px 40px rgba(0, 0, 0, 0);
  border-radius: 40px;
  justify-content: space-evenly;
  height: auto;
  width: 98%;
  gap: 50px;
  margin: 0 20px;
}
.about-img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150%;
  height: 250px;
  overflow: hidden;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.content-img {
  filter: grayscale(100%);
  width: 120%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}
.about-img:hover {
  transform: scale(1.05);
}
.content-img:hover {
  filter: grayscale(0%);
}
#about .about-content .bg-p .content-bg-p {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  flex-wrap: wrap;
  font-weight: 400;
  font-family: "Raleway", sans-serif;
  height: 100%;
}

#about .about-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}
/* gaaleri */
#galeri {
  overflow: hidden;
}
.galeri-contain {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 20px;
  height: 75vh;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.galeri-contain::-webkit-scrollbar {
  display: none;
}
.judul-galeri {
  background: linear-gradient(180deg, white, var(--birutua));
  height: 100vh;
  text-align: center;
  border-radius: 40px;
}
.judul-galeri h2 {
  padding-top: 140px;
}
.galeri-contain h2 {
  margin-top: 100px;
}
.galeri-content {
  display: flex;
  flex: 0 0 60em;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  height: 290px;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

  transition: transform 0.3s ease;
}
.caption-galeri {
  position: absolute;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.486);
  padding: 12px;
  color: #fff;
  width: 100%;
  height: 60%;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transition: all 0.4s ease;
}
.galeri-content:hover .caption-galeri {
  bottom: -10px;
  opacity: 1;
}
.caption-galeri strong {
  font-size: 20px;
}
.foto-galeri:hover {
  filter: blur(1px);
}
.galeri-content:hover {
  transform: scale(1.05);
}
.foto-galeri {
  width: 105%;
  height: 290px;
  object-fit: ;
  border-radius: 20px;
  transition: all 0.4 ease;
}

/* struktur organisasi */
#struktur {
  margin-top: 20px;
  border-radius: 40px;
  height: 80dvh;
  position: relative;
  overflow: hidden;
  width: ;
  background: linear-gradient(180deg, white);
}
.dekor3 {
  position: absolute;
  opacity: 0.15;
  margin-top: 0px;
  width: 1100px;
}
.dekor2-bungkus {
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: flex-end;
  align-items: flex-end;
}
.dekor2 {
  border-radius: 50px;
  position: absolute;
  width: 220px;
  left: 0;
  bottom: 0;
  transform: translateX(-50px) translateY(55px);
}
.struktur-container {
  transform: translateY(0px);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 75vh;
  width: auto;
  flex-direction: column;
  gap: 100px;
  position: relative;
}
.struktur-container h1 {
  font-size: 30px;
  color: black;
  transform: translateY(30px);
}
.tooltip-text {
  position: absolute;
  bottom: -100%;
  left: 50%;
  height: 70%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.527);
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  width: 220px;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.foto {
  padding-top: 40px;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-direction: row;
  border-radius: 30px;
  gap: 50px;
  width: 95%;
  height: 100%;
}
.tooltip-over {
  display: inline-block;
  visibility: hidden;
  width: 140px;
  background-color: var(--biru);
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 6px;
  border-radius: 6px;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(100px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.tooltip-over-container {
  position: relative;
}
.foto:hover .tooltip-over {
  visibility: visible;
  opacity: 1;
}
.foto-pejabat {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.foto-item {
  z-index: 10;
  position: relative;
  text-align: center;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-80px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.foto-item:hover .tooltip-text {
  bottom: -10px;
  opacity: 1;
}
.foto-item:hover {
  transform: scale(1.05) translateX(-80px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.foto-pejabat:hover {
  transform: scale(1.05);
}
/* Berita Terkini */
.dekor {
  position: absolute;
  max-width: 400px;
  right: 0;
  top: 0;
  transform: translateX(120px);
}
#berita {
  background: linear-gradient(180deg, rgb(255, 252, 252), var(--birux));
  padding: 60px 20px;
  text-align: center;
  margin-top: 40px;
  transform: translateY(-70px);
  border-radius: 40px;
}

.berita-container h1 {
  margin-top: 90px;
  font-size: 2.2rem;
  transform: translateY(-60px);
  margin-bottom: 40px;
  font-weight: 500;
}

.berita-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.berita-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  width: 300px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.berita-item img {
  width: 100%;
  height: 170px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 15px;
}

.berita-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #222;
}

.berita-item p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 15px;
}

.berita-item a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4c46d5;
  text-decoration: none;
  transition: color 0.3s;
}
/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.page-btn {
  width: 45px;
  height: 45px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: #6c63ff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background: #f0f0f0;
}

.page-btn.active {
  background: #6c63ff;
  color: #fff;
  border-color: #6c63ff;
}

.berita-item a:hover {
  color: #6c63ff;
}

.berita-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
/* contact */
#contact {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  gap: 80px;
  height: 100dvh;
}
#contact h3 {
  font-size: 30px;
}
.from {
  display: flex;
  flex-direction: column;
}

form {
  margin-top: 50px;
  width: 60%;
  max-width: 450px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.436);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-family: "Raleway", sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.3rem;
}

form input,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.7);
}

form input:focus,
form textarea:focus {
  border-color: #6c63ff;
  box-shadow: 0 0 8px rgba(108, 99, 255, 0.4);
  background: #fff;
}

/* Tombol */
form button {
  padding: 12px 18px;
  background: linear-gradient(135deg, #6c63ff, #4c46d5);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover tombol */
form button:hover {
  background: linear-gradient(135deg, #4c46d5, #6c63ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(108, 99, 255, 0.4);
}

form:hover {
  background-color: rgba(255, 255, 255, 0.547);
  transform: scale(1.05);
}
/* footer */

.footer {
  background: #000;
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: 50px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-logo img {
  width: 120px;
  margin-bottom: 15px;
}

.footer-logo p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ccc;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #5ed83c;
}

.footer-contact p {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 8px;
}

.footer-social .social-icons {
  display: flex;
  gap: 12px;
}

.footer-social .social-icons img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}

@media (max-width: 768px) {
  .hero {
    position: relative;
    overflow: hidden;
    height: 90vh;
    background-size: cover;
    background-position: center;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }

  nav ul {
    position: absolute;
    top: 60px; /* geser ke bawah logo */
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    width: 200px;
    padding: 20px;
    border-radius: 10px;
    display: none; /* sembunyi default */
  }
  .size-6 {
    width: 200px;
    left: 0;
    top: 0;
  }
  nav ul.active {
    z-index: 1000;
    display: flex; /* tampil saat toggle */
  }

  nav ul li {
    margin: 15px 0;
    text-align: center;
  }

  .menu-toggle {
    display: flex; /* tampilkan garis 3 */
  }
  .item1 {
    font-size: 2.5em; /* kecilin font judul */
    text-align: center;
    transform: translateY(-60px);
    white-space: normal; /* izinkan teks turun ke baris baru */
    margin-right: 25px;
    word-wrap: break-word; /* kalau ada kata panjang, dipotong */
    line-height: 1.3;
  }

  .item2 {
    font-size: 1em; /* kecilin font deskripsi */
    max-width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    animation: fadeIn 4s ease-in-out;
    white-space: normal;
  }

  .item3 {
    font-size: 1em;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center; /* posisikan isi ke tengah */
    flex-wrap: wrap;
    /* izinkan teks membungkus */
    animation: fadeIn 4s ease-in-out;
    white-space: normal;
  }
  .item-descript {
    margin-right: 20px;
    margin-left: -10px;
    transform: translateY(-10px);
  }
  #about {
    width: 100%;
    height: 100dvh;
  }
  .label-tombol {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 50px;
  }
  .bg-p {
    gap: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: auto;
  }
  .judul-galeri h2 {
    padding-top: 50px;
  }
  #about h1 {
    margin-left: auto;
    margin-right: auto;
  }
  #about .about-content .bg-p .content-bg-p {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 1rem;
    height: 200px;
    margin-left: 20px;
    margin-right: 20px;
    text-align: center;
    height: auto;
  }
  #about .about-content .bg-p .about-img {
    width: 400px;
    height: 200px;
    display: flex;
    margin-left: auto;
    margin-right: auto;
  }
  .content-img {
    width: 110%;
    height: auto;
  }
  .about-content {
    width: 90%;
    height: 70%;
  }
  #galery {
    height: 100dvh;
  }
  .foto-galeri {
    width: 100%;
    height: 250px;
    object-fit: ;
  }
  .galeri-contain {
    display: flex;
    flex-direction: column;
  }
  .judul-galeri {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
  }
  .galeri-content {
    max-width: 380px;
    max-height: 240px;
  }
  #contact form {
    width: 90%;
    margin-bottom: 80px;
  }
  .caption-galeri {
    bottom: -200%;
    height: 80%;
  }
  .foto-item {
    width: 150px;
    height: 150px;
  }

  .tooltip-text {
    width: 150px;
    height: 95%;
    font-size: 0.7rem;
  }
  .dekor {
    position: absolute;
    max-width: 220px;
    right: 0;
    top: 0;
    transform: translateX(80px);
  }
  .dekor2-bungkus {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: flex-end;
    align-items: flex-end;
  }
  .dekor2 {
    max-width: 250px;
    left: 0;
    bottom: 0;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social .social-icons {
    justify-content: center;
  }
  #struktur {
    height: 100dvh;
  }
  .struktur-container {
    height: 115vh;
  }
  .tooltip-over {
    transform: translateY(90px);
  }
  .foto {
    transform: translateY(-100px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    width: 200px;
  }
}
