@import url("https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap");

:root {
  --primary: #678fd3;
}

* {
  padding: 0;
  margin: 0;
  text-align: center;
  box-sizing: border-box;
}

.gowunbatang-reg {
  font-family: "Gowun Batang", serif;
  font-weight: 400;
  font-style: normal;
}

.gowunbatang-bold {
  font-family: "Gowun Batang", serif;
  font-weight: 700;
  font-style: normal;
}

body {
  background-color: #000f2a;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(../images/bg.webp);
  background-size: cover;
  background-position: center;
  width: 100vw;
  height: 100vh;
  transition: all 1s ease-in-out;
  position: relative;
  overflow: hidden;
}

.cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  transition: all 1s ease-in-out;
  position: relative;
  z-index: 2;
}

.pengantin-container {
  position: relative;
  width: 240px;
  height: 240px;
  margin-bottom: 15px;
  background-image: url("../images/Pengantin.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pengantin {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  object-fit: cover;
}

.cover p {
  color: var(--primary);
  font-size: 25px;
}

.cover h1 {
  color: var(--primary);
  font-size: 60px;
  font-family: "Dancing Script", cursive;
  font-weight: 400;
  font-style: normal;
  margin: 20px 0;
}

.cover div {
  margin-bottom: 20px;
  font-size: 17px;
  color: white;
}

.open {
  cursor: pointer;
  padding: 3% 7%;
  background-color: var(--primary);
  border: 2px solid white;
  font-size: 20px;
  border-radius: 10px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 3;
  position: relative;
}

.fade-out {
  opacity: 0;
}

/* 🌊 Efek Ombak Laut Transparan */
.ocean {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(to top, rgba(0, 64, 128, 0.7), rgba(0, 119, 190, 0.3));
  overflow: hidden;
  z-index: 1;
}

/* Gelombang utama */
.wave {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100px;
  background: rgba(255, 255, 255, 0.18); /* transparan lembut */
  clip-path: polygon(
    0% 60%, 10% 55%, 20% 60%, 30% 65%, 40% 60%, 50% 55%,
    60% 60%, 70% 65%, 80% 60%, 90% 55%, 100% 60%, 100% 100%, 0% 100%
  );
  animation: waveMove 8s linear infinite;
}

/* Lapisan kedua */
.wave2 {
  background: rgba(255, 255, 255, 0.12);
  animation-delay: -4s;
  height: 110px;
  bottom: 10px;
}

/* Lapisan ketiga */
.wave3 {
  background: rgba(255, 255, 255, 0.08);
  animation-delay: -2s;
  height: 120px;
  bottom: 20px;
  filter: blur(3px);
}

@keyframes waveMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* 📱 Responsif */
@media (min-width: 768px) {
  section {
    width: 30vw;
  }

  .cover p {
    font-size: 20px;
  }

  .cover h1 {
    font-size: 50px;
  }

  .cover div {
    font-size: 15px;
  }

  .open {
    font-size: 15px;
  }

  .slide-out {
    transform: translateX(35vw);
  }
}
