@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #d5eeee;
  --blue: #245aac;
  --secondary-color: #212429;
  --gold : #ffd700;
  --text-dark: #000000;
  --dark: #000000;
  --max-width: 1200px;
  --light: #ffff;
}

html{
  scroll-behavior: smooth;
}

::-webkit-scrollbar{
  width: 10px;
  background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb{
  background-color: var(--gold);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #d5eeee;
  background-position: center center;
  background-size: cover;
  padding-top: 80px;
  
}

.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
}

nav {
  isolation: isolate;
  width: 100%;
  z-index: 9;
}

.nav-bg {
    background-color: var(--primary-color);
}

.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.nav__logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
}

.nav__logo img {
  display: flex;
  max-width: 45px;
}

.nav__logo span {
  display: flex;
  font-size: 25px;
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  top: 65px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background-color: #e3f6f8;
  transition: 0.5s;
  z-index: -1;
  transform: translateY(-100%);
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links a {
  font-size: 1.2rem;
  color: var(--dark);
}

.nav__links a:hover {
  color: var(--secondary-color);
}

.header__container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-block: 5rem 2rem;
  padding-inline: 1rem;
  display: grid;
  gap: 2rem;
}

.header__image img {
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
  display: flex;
}

.header__content {
  overflow: hidden;
  text-align: center;
}

.header__content h2 {
  position: relative;
  isolation: isolate;
  max-width: fit-content;
  margin-left: auto;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
  text-align: right;
}

.header__content h2::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 0;
  transform: translate(calc(-100% - 1rem), -50%);
  height: 2px;
  width: 150%;
  background-color: var(--dark);
}

.header__content h1 {
  font-size: 4rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 5rem;
}

.h1__span-1 {
  font-size: 4rem;
  color: var(--gold);
}

.h1__span-2 {
  font-size: 2rem;
  font-weight: 400;
}

.header__content p {
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.header__content .btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--light);
  background-color: var(--gold);
  border-radius: 5rem;
  transition: 0.3s;
  cursor: pointer;
}

.header__content .btn:hover {
  color: var(--gold);
  background-color: var(--light);
}

.socials {
  padding-block: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.socials a {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.socials a:hover {
  color: var(--primary-color);
}

.header__bar {
  font-size: 0.9rem;
  color: var(--text-dark);
}


.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  z-index: 1;
  border-radius: 5px;
}

/* Teks di tengah slide */
.centered-caption {

  z-index: 2;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.carousel-inner {
    box-shadow: 2px 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 5px;
    text-shadow: 2px 2px 2px #ffffffc3;
}

.carousel-item img {
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
    margin: auto;
    display: block;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item {
    transition: opacity 1s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.kelebihan {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transition: .5s;
}

.kelebihan:hover{
  background: var(--blue);
  cursor: pointer;
}

.kelebihan * {
  transition: .5s;
}

.kelebihan:hover *{
  color: var(--light) !important;
}

.icon {
  color: var(--gold);
}

.layanan-section {
  background-color: #e3f6f8;
}

.services {
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
  transition: .5s;
}

.services:hover{
  background: var(--gold);
  cursor: pointer;
}

.services * {
  transition: .5s;
}

.services:hover *{
  color: var(--light) !important;
}

.services .icon {
  color: var(--primary-color);
}

.layanan-section h1 {
  font-size: 2.5rem;
  color: #333;
}

.layanan-section .jasa {
  color: #ffd700;
}

.layanan-section .btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  color: var(--light);
  background-color: gold;
  transition: 0.3s;
  cursor: pointer;
}

.layanan-section .btn:hover {
  color: gold;
  background-color: var(--light);
}

.card {
    transition: box-shadow .3s;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 11px rgba(33, 33, 33, 0.48);
    cursor: pointer;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--gold);
  width: 30px;
  height: 30px;
  background-color: rgba(255, 215, 0, 0.1);
  border-radius: 50%;
  font-size: 14px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px;
}

.swiper-button-next {
  right: 0;
}

.swiper-button-prev {
  left: 0;
}

.swiper-pagination-bullet {
  background-color: rgb(247, 243, 223);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background-color: gold;
  opacity: 1;
}

.swiper {
  padding-bottom: 40px;
  position: relative;
}

.swiper-pagination {
  bottom: 10px !important;
  margin-top: 20px;
}

.mySwiper .swiper-slide img {
  transition: transform 0.3s ease;
}

.mySwiper .swiper-slide img:hover {
  transform: scale(1.2);
}

#contact{
  height: 400px;
  background: url(../img/gedung.jpg) no-repeat center;
  background-size: cover;
  background-attachment: fixed;
}

.hook-contact{
  background-color: rgba(0, 0, 0, 0.5);
  min-height: 400px;
}

.hook-content{
  margin-top: 2rem ;
}

#contact .hook-text {
  /* margin-top: 2rem; */
  color: white;
}

.hook-contact .btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
  background-color: var(--gold);
  border-radius: 5rem;
  transition: 0.3s;
  cursor: pointer;
}

.hook-contact .btn:hover {
  color: var(--gold);
  background-color: var(--light);
}

.berita-section {
  background-color: #e3f6f8;
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 70px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(0.9);
}


@media (width > 768px) {
  nav .nav__header{
    position: static;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .nav__header {
    padding: 0;
    background-color: transparent;
    
  }

  nav.scrolled {
  background-color:  var(--primary-color) !important;
  transition: background-color 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  nav.scrolled .nav__links a {
    color: var(--dark);
  }

  nav.scrolled .nav__links a:hover {
    color: var(--blue);
  }

  nav.shrink {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
  }

  nav.shrink .logo {
    max-width: 50px;
    transition: all 0.3s ease;
  }

  nav.shrink .nav__logo span {
    font-size: 1.8rem;
    transition: font-size 0.3s ease;
  }

  nav.shrink .nav__links a{
    font-size: 1rem;
    transition: all 0.3s ease;
  }

    .nav__logo span {
      display: flex;
    }

    .nav__menu__btn {
      display: none;
    }

    .nav__links {
      position: static;
      padding: 0;
      flex-direction: row;
      justify-content: flex-end;
      gap: 3rem;
      background-color: transparent;
      transform: none;
    }

    .nav__links a:hover {
      color: var(--blue);
    }

    .header__container {
      grid-template-columns: repeat(2, 1fr);
      align-items: center;
      padding-block: 2rem;
    }

    .header__image {
      grid-area: 1/2/2/3;
    }

    .header__content {
      text-align: left;
    }

    .socials {
      justify-content: flex-start;
    }

    .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;
    border-radius: 5px;
  }

  .centered-caption {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  }

  .centered-caption h2 {
    font-size: 2.5rem;
    font-weight: bold;
  }

  .centered-caption p {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    font-weight: 300;
  }

  #contact .hook-text {
    padding-top: 3rem;
  }

  #contact .hook-text h2 {
    font-size: 1.6rem;
    color: var(--light);
    font-weight: 600;
  }

  #contact .hook-text p {
    font-weight: 500;
    font-size: 1rem;
    color: var(--light);
  }

  .whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    transition: transform 0.3s ease;
  }

  .container-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    background-color: #e3f6f8;
  }

  .wrapper{
      padding: 30px 0;
      text-align: center;
  }

  .section-header{
      text-transform: uppercase;
      line-height: 70px;
      padding-bottom: 30px;
      font-size: 50px;
      color: #262626;
      letter-spacing: 2px;
  }

  .gallery-content h2 {
    font-size: 30px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--gold);
  }

  .gallery-content p {
    line-height: 1.5;
  }

  .main-content{
      width: 100%;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
  }

  .main-content .box {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }

  .main-content .box::before{
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 5px;
      height: 100%;
      transition: all 0.3s ease-in-out;
  }
  .main-content .box:hover:before{
      top: 0;
      right: calc(100% - 5px);
      z-index: 10;
  }

  .main-content .box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .main-content .box .img-text {
    position: absolute;
      display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(61, 61, 61, 0.651);
    width: 100%;
    height: 100%;
    top: 0;
    right: 100%;
    transition: all 0.5s ease-in-out;	
  }
  .main-content .box:hover .img-text{
      top: 0;
      right: 0;
  }

  .lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .lightbox-content {
    position: relative;
    width: 90vw;
    height: 80vh;
    max-width: 800px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

  }

  .lightbox-content img {
    max-width: 100%;
    max-height: 100%;
  }

  .lightbox-text {
    text-align: center;
    color: #fff;
    margin-top: 15px;
    max-width: 80%;
  }

  .lightbox-text h2 {
    margin: 0;
    font-size: 24px;
  }

  .lightbox-text p {
    font-size: 16px;
    line-height: 1.4;
    margin-top: 8px;
  }


  .lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
    z-index: 10000;
    padding: 10px;
  }

  .lightbox-prev {
    left: -60px;
  }

  .lightbox-next {
    right: -60px;
  }

  .social-media{
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .fa-brands:hover {
    transform: scale(1.2);
  }
}

@media (max-width: 768px) { 
/* .lightbox {
  display: none !important;
} */

.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-content {
  position: relative;
  width: 80vw;
  height: 70vh;
  max-width: 700px;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
}

.lightbox-text {
  text-align: center;
  color: #fff;
  margin-top: 15px;
  max-width: 80%;
}

.lightbox-text h2 {
  margin: 0;
  font-size: 24px;
}

.lightbox-text p {
  font-size: 16px;
  line-height: 1.4;
  margin-top: 8px;
}


.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  font-size: 20px;
  color: white;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  z-index: 10000;
  padding: 10px;
}

.lightbox-prev {
  left: -30px;
}

.lightbox-next {
  right: -30px;
}
  
.container-gallery {
  /* padding: 60px 0; */
  background-color: #e3f6f8;
}

.wrapper {
  max-width: var(--max-width);
  margin: auto;
  /* padding: 0 20px; */
}

.section-header {
  text-align: center;
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 40px;
}

.main-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.box {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

/* .box:hover {
  transform: scale(1.03);
  cursor: pointer;
} */

.box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-text {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* .box:hover .img-text {
  opacity: 1;
} */

.gallery-content {
  text-align: center;
}

.gallery-content h2 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: var(--gold);
}

.gallery-content p {
  font-size: 1rem;
}

}

@media (max-width: 560px) {
  .h1__span-1,
  .h1__span-2 {
    display: block;
  }

  .h1__span-1 {
    order: 1;
  }

  .h1__span-2 {
    order: 2;
  }
}