@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: rgb(89, 205, 56);
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(10px);
}
a {
  text-decoration: none;
  color: inherit;
}

nav {
  height: 9%;
  position: relative;
  background-color: #000000;
  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: 90px;
}

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:hover {
  transform: scale(1.05);
  color: #5ed83c;
}
.size-6 {
  display: flex;
  justify-content: flex-start;
  align-items: self-start;
  position: absolute;
  top: -28px;
  left: 40px;
  width: 110px;
  z-index: 2;
}

.menu-toggle {
  display: none; /* default sembunyi */
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
  z-index: 2000;
  position: relative; /* dorong ke kanan */
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background: rgb(237, 226, 211); /* warna garis */
  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: flex-start;
  align-items: center;
  padding-left: 20px;
  height: 30%;
}

.gab-content {
  display: flex;
  flex-direction: column;
  height: 90%;
}

/* animasi bar */

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

nav ul {
  animation: slideDown 0.8s 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 {
  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;
  margin-bottom: 30px;
}

.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: rgb(94, 216, 60);
  backdrop-filter: blur(10px);
  height: 90vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 2.5rem;
  margin-top: 3rem;
}
#about h1 {
  margin-left: auto;
  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);
  flex: 2;
  background-color: #ffffff;
  border-radius: 40px;
  transform: translateY(px);
  height: 500px;
  width: 98%;
}
.content-img {
  filter: grayscale(100%);
  margin-bottom: 40px;
  margin-right: 20px;
  height: auto;
  width: 450px;
  border-radius: 15px;
  object-fit: cover;
  align-self: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.content-img:hover {
  filter: grayscale(0);
  width: 455px;
  transform: scale(1.05);
}
#about .about-content .bg-p p {
  font-size: 1.5vw;
  flex-wrap: wrap;
  font-weight: 400;
  font-family: "Raleway", sans-serif;
  margin: 0 150px 100px;
  transform: translateY(100px);
}

#about .about-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  transform: translateY(30px);
}
/* gaaleri */
#galeri {
  overflow: hidden;
}
.galeri-contain {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  height: 100vh;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.galeri-contain::-webkit-scrollbar {
  display: none;
}
.judul-galeri {
  background: linear-gradient(180deg, white, rgb(89, 205, 56));
  height: 100vh;
  text-align: center;
  border-radius: 40px;
  transform: translateY(-80px);
}
.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: 300px;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  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) translateY(100px);
}
.foto-galeri {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: all 0.4 ease;
}

/* struktur organisasi */
.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 {
  position: absolute;
  width: 300px;
  left: 0;
  bottom: 0;
  transform: translateX(-50px) translateY(55px);
}
.struktur-container {
  background: linear-gradient(180deg, rgba(16, 24, 32));
  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: white;
  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 {
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  flex-direction: row;
  gap: 50px;
  width: 100%;
  height: 100%;
}
.tooltip-over {
  display: inline-block;
  visibility: hidden;
  width: 140px;
  background-color: #4fdf32;
  color: white;
  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), rgb(89, 205, 56));
  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: center;
  align-items: center;
  flex-direction: column;
}
#contact h3 {
  font-size: 30px;
  transform: translateY(-80px);
}
.from {
  display: flex;
  flex-direction: column;
}

#contact {
  margin-top: 100px;
}

form {
  width: 60%;
  max-width: 450px;
  margin: 2rem auto;
  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;
  transform: translateY(-50px);
}

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) translateY(-50px);
}
/* 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-social .social-icons img:hover {
  filter: brightness(0) invert(0.6) sepia(1) hue-rotate(90deg) saturate(3);
}

.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;
    right: 0px;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    width: 200px;
    padding: 20px;
    border-radius: 10px;
    display: none;
  }
  .size-6 {
    width: 100px;
    transform: translateY(10px) translateX(-25px);
  }
  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 15px 0;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }
  .item1 {
    font-size: 2.5em;
    text-align: center;
    transform: translateY(-60px);
    white-space: normal;
    margin-right: 25px;
    word-wrap: break-word;
    line-height: 1.3;
  }

  .item2 {
    font-size: 1em;
    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;
    flex-wrap: wrap;

    animation: fadeIn 4s ease-in-out;
    white-space: normal;
  }
  .item-descript {
    margin-right: 20px;
    margin-left: -10px;
    transform: translateY(-10px);
  }
  #about {
    width: 100%;
    height: auto;
  }
  .label-tombol {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-20px);
  }
  .bg-p {
    height: 100vh;
    gap: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
  }
  #about .about-content .bg-p p {
    font-size: 15px;
    margin-left: 20px;
    margin-right: 20px;
    text-align: center;
    transform: translateY(-40px);
  }
  #about .about-content .bg-p .content-img {
    width: 60%;
    transform: translateY(-90px);
    margin-left: auto;
    margin-right: auto;
  }
  #galery {
    transform: translateY(-120px);
  }
  .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: 330px;
    max-height: 300px;
  }
  #contact form {
    width: 90%;
    margin-bottom: 80px;
  }
  .caption-galeri {
    bottom: -200%;
  }
  .foto-item {
    width: 150px;
    height: 150px;
  }
  .foto {
    gap: 10px;
  }
  .tooltip-text {
    width: 150px;
    height: 95%;
  }
  .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-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;
    transform: translateY(-40px);
  }
}
