* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  color: #2fa4d7;
}

.split-layout {
  display: flex;
  height: 100vh;
}

:root {
  --playball: "Playball";
  --nunito: "Nunito Sans";
  --primary: #2fa4d7;
  --secondary: #3e2c23;
}

.top-left {
  position: absolute;
  top: 0;
  left: 0;
  animation: scalling 10s infinite linear;
}

.bottom-right {
  position: absolute;
  bottom: 0;
  right: 0;
  animation: scalling 20s infinite linear;
}

.top-left img,
.bottom-right img {
  transition: 10s;
}

@keyframes scalling {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
  }
}

/* left panel */
.left-panel {
  flex: 2;
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url("image/bg.png");
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  color: var(--primary);
}

.left-panel .top-right img,
.left-panel .bottom-left img {
  width: 200px;
  transition: 2s;
}

/* SCROLL DOWN */

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, -300px); /* posisi awal di atas */
  font-size: 30px;
  color: white;
  text-align: center;
  opacity: 0;
  transition: all 0.8s ease-out;
  pointer-events: none;
}

/* Saat muncul */
.scroll-down.muncul {
  transform: translate(-50%, 0); /* jatuh ke posisi */
  opacity: 1;
  animation: bounce 1.5s infinite 0.8s;
  /* bounce mulai setelah jatuh */
}

/* BOUNCE */
@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, 10px);
    opacity: 1;
  }
}

/* right panel */

.right-panel {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* landing top */

.landing-top {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  text-align: center;
  background-image: url("image/bg.png");
  background-position: center;
  background-size: cover;
  color: var(--primary);
  transition: 1s ease-in-out;
  z-index: 10;
}

.landing-top.hide {
  transform: translateY(-100vh);
}

.landing-top button {
  background-color: var(--primary);
  color: #fff;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.07);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.landing-top .pengantin {
  font-family: var(--playball);
  font-size: 40px;
}

.landing-top .maaf {
  font-size: 12px;
}

.landing-top .image-wrapper {
  width: 250px;
  height: 300px;
  margin: auto;
  margin-bottom: 30px;
}

.landing-top,
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-top .atas {
  margin-top: 50px;
}

/* hero */

.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  text-align: center;
  background-image: url("image/bg.png");
  background-position: center;
  background-size: cover;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

.hero h5 {
  margin-top: 30px;
}

.hero .pengantin {
  font-size: 35px;
  font-family: var(--playball);
}

.hero .content {
  position: relative;
  transform: scale(0.3);
  transition: 2s ease-in-out;
}

.hero .content.tampil {
  transform: scale(1);
}

.hero .content > * {
  position: relative;
  z-index: 7;
}

.hero .image-wrapper {
  width: 250px;
  height: 300px;
  border: 3px solid #a82323;
  margin: auto;
  --bg: url("image/4.png");
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
}
.hero .image-wrapper::after {
  position: absolute;
  content: "";
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transition: 2s;
}

.image-wrapper.fade-in::after {
  opacity: 0.5;
  transform: scale(1.05);
}
.image-wrapper.fade-out::after {
  opacity: 1;
  transform: scale(1);
}

.hero .top-left img,
.hero .bottom-right img {
  width: 200px;
}

.hero #saveDate {
  padding: 8px 15px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  font-size: 13px;
  border-radius: 20px;
  margin-top: 20px;
  position: relative;
}

.hero .content .countdown-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero .content .countdown-wrapper p {
  display: flex;
  justify-content: center;
  align-items: center; /* 🔥 ini kunci vertical center */
  flex-direction: column;
  text-align: center;
  font-size: 11px;
  color: white;
  background-color: #2fa4d7;
  width: 70px;
  height: 60px;
  font-family: "Poppins";
  margin: 10px;
  padding: 0; /* 🔥 hapus padding biar center pas */
  padding-top: 5px;
  border-radius: 8px;
}

.hero .content .countdown-wrapper span {
  font-size: 20px;
  line-height: 1; /* 🔥 biar angka tidak turun */
}

/* scroll indicator */

.scroll-indicator-wrapper {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-indicator {
  width: 20px;
  height: 40px;
  border: 2px solid wheat;
  border-radius: 20px;
  margin: auto;
  position: relative;
}

.scroll-indicator::after {
  content: "";
  width: 4px;
  height: 8px;
  background: wheat;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 8px;
  border-radius: 2px;
  animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim {
  0% {
    opacity: 0;
    top: 8px;
  }
  50% {
    opacity: 1;
    top: 16px;
  }
  100% {
    opacity: 0;
    top: 24px;
  }
}

.hero .top-right img,
.hero .bottom-left img {
  width: 200px;
  transition: 2s;
}

/* quote */

.quote {
  padding: 70px 10px;
  background-color: #3e2c23;
  text-align: center !important;
  color: #fff;
}

.quote .header {
  display: flex;
  gap: 10px;
  font-size: 40px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.quote .header p {
  font-size: 20px;
  margin-top: 40px;
}
.quote .header .n {
  margin-top: 60px;
  font-size: 40px;
}

.quote .header .a {
  font-size: 40px;
}

/* groom-bride */

.groom-bride {
  background-image: url("image/bg.png");
  background-position: center;
  background-size: cover;
  padding: 30px 5px;
  color: var(--primary);
  overflow: hidden;
  position: relative;
}

.groom-bride .content {
  padding: 30px 3px;
  position: relative;
  margin: auto;
}

.groom-bride .content > * {
  position: relative;
  z-index: 2;
}
.groom-bride .content::after {
  position: absolute;
  content: "";
  inset: 0;
  background-color: #fff;
  opacity: 0.8;
}

.groom-bride .bride,
.groom-bride .groom {
  width: 250px;
  height: 300px;
  margin: auto;
  border: 2px solid #a82323;
}
.groom-bride .bride img,
.groom-bride .groom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.groom-bride .groom {
  margin-top: 100px;
}
.groom-bride .content a {
  border-radius: 10px;
  display: inline-block;
  height: 25px;
  line-height: 12px;
  background-color: #2fa4d7;
  color: #fff;
}
.groom-bride .content h4 {
  font-family: var(--playball);
  font-size: 30px;
  margin-top: 20px;
}
.groom-bride .content span {
  font-weight: bold;
  font-size: large;
}

/* wedding -event */

.wedding-event {
  padding: 50px 10px;
  background-color: #3e2c23;
}

.wedding-event .akad-nikah .content > *,
.wedding-event .resepsi .content > *,
.wedding-event .streaming .content > * {
  position: relative;
  z-index: 2;
}

.wedding-event .akad-nikah,
.wedding-event .resepsi,
.wedding-event .streaming {
  padding: 40px 5px;
  background-image: url("image/bg.png");
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.wedding-event .akad-nikah .kapan,
.wedding-event .resepsi .kapan {
  display: flex;
  margin: auto;
  gap: 20px;
  justify-content: center;
  align-items: center;
  line-height: 0;
}
.wedding-event .akad-nikah .line,
.wedding-event .resepsi .line {
  height: 50px;
  width: 1px;
  background-color: #a82323;
}
.wedding-event .akad-nikah .tanggal,
.wedding-event .resepsi .tanggal {
  line-height: 15px;
}

.wedding-event .akad-nikah .tanggal .angka,
.wedding-event .resepsi .tanggal .angka {
  font-size: 40px;
  margin-top: 25px;
}

.wedding-event a {
  border-radius: 10px;
  display: inline-block;
  height: 25px;
  line-height: 12px;
  background-color: #2fa4d7;
  color: #fff;
  text-decoration: none;
  padding: 2px 10px;
  font-size: 13px;
  line-height: 17px;
}

/* love-story */
.love-story {
  padding: 70px 10px;
  background-image: url("image/bg.png");
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  color: #2fa4d7;
  z-index: 1;
}

.love-story .content {
  position: relative;
  padding: 40px 20px;
  color: white;
  z-index: 2;
}

.love-story .content::before {
  position: absolute;
  content: "";
  inset: 0;
  background-color: #fff;
  padding: 40px 0;
  opacity: 0.5;
  z-index: -1;
}

.love-story h2 {
  font-size: 32px;
  font-family: var(--playball);
  color: #a82323;
}

.love-story p {
  color: #a82323;
  font-family: var(--nunito);
}
.love-story .text p {
  color: #fff;
  font-family: var(--nunito);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding-left: 40px;
  --line-height: 0px;
}

/* Garis vertikal */
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  width: 5px;
  height: var(--line-height);
  background: #2fa4d7;
  transition: height 0.2s ease-out;
  z-index: 1;
}
.timeline::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--secondary);
}

/* Item */
.timeline-item {
  position: relative;
  margin-bottom: 80px;
  margin-left: 10px;
  color: white;
  padding: 20px 20px;
  /* background-color: #a82323; */
  text-align: center;
}

.timeline-item .speech-buble::after {
  position: absolute;
  content: "";
  width: 26px;
  height: 26px;
  top: 13px;
  left: -12px;
  transform: rotate(45deg);
  border: 1px solid var(--light);
  background-color: #2fa4d7;
}

/* Dot */
.timeline-dot {
  position: absolute;
  left: -37px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 2;
  transition: all 5s;
  font-size: 35px;
  top: 15px;
}

.timeline-dot i {
  color: #3e2c23;
  transition: all 0.4s ease;
}

.timeline-dot.active i {
  color: #2fa4d7;
}

.timeline-content {
  background-color: #2fa4d7;
  padding: 30px 0;
  width: 350px;
  margin: auto;
  color: #fff;
}

/* Image */
.timeline-content .image img {
  width: 250px;
  border-radius: 15px;
  object-fit: cover;
}

/* Text */
.timeline-content .text h4 {
  margin-bottom: 5px;
}

.timeline-content .date {
  font-size: 14px;
  color: white;
  display: block;
  margin-bottom: 10px;
}

@keyframes rotating {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

/* galery */
.galery {
  padding: 70px 0;
  position: relative;
  background-color: var(--secondary);
}

.galery .line {
  width: 100%;
  height: 1px;
  background-color: #fff;
  margin-bottom: 20px;
}

.galery .vidio-wrapper {
  width: 100%;
  height: 300px;
  margin-top: 70px;
}

.galery iframe {
  width: 100%;
  height: 100%;
}

.galery .header {
  text-align: center;
  margin-bottom: 20px;
}

.galery .header h2 {
  font-family: var(--playball);
  font-size: 40px;
  font-weight: lighter;
  color: #fff;
  text-align: center;
}

/* kolom */

/* tinggi selang seling */
.galery .satu,
.galery .empat {
  height: 350px;
}

.galery .dua,
.galery .tiga {
  height: 300px;
}

/* image */
.galery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-top: 6px;
  display: block;
  border-radius: 10px;
}

/* gift */
.gift {
  padding: 60px 0;
  background-image: url("image/bg.png");
  position: relative;
  overflow: hidden;
  color: #a82323;
}

.gift h3 {
  font-family: var(--playball);
  font-size: 30px;
  font-weight: lighter;
  text-align: center;
}

.gift .header i {
  font-size: 40px;
}

.gift .card {
  text-align: left;
  margin: auto;
  width: 85%;
  height: 170px;
  padding: 20px;
  line-height: 5px;
  position: relative;
  background-image: url("image/bg-card.png");
  background-size: cover;
  background-repeat: no-repeat;
  color: #a82323;
}

.gift .card .image-wrapper {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 80px;
  height: 30px;
}

.gift a {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: #a82323;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid white;
}

.gift .card .nama {
  margin-top: 70px;
}

.gift .kado {
  height: 200px;
}
.gift .kado .nama {
  margin-top: 1px;
}
.gift .kado .penerima {
  margin-top: 20px;
}

.gift .kado .image-wrapper {
  position: absolute;
  right: 0;
  top: 20px;
}
.gift .kado .image-wrapper i {
  font-size: 30px;
  color: #a82323;
}

/* rsvp */

.rsvp {
  padding: 70px 20px;
  background-color: var(--secondary);
  color: #fff;
}

.rsvp .header {
  margin: auto;
  text-align: center;
  margin-bottom: 30px;
}

.rsvp .header h2 {
  font-family: var(--playball);
  font-size: 40px;
  text-align: center;
  font-weight: lighter;
}

.rsvp .header h1 {
  font-family: var(--playball);
}

.rsvp p {
  text-align: center;
}

.rsvp button {
  background-color: var(--primary);
  color: white;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 10px;
}

.rsvp #konfirmasi {
  background-color: var(--primary);
  border-radius: 0;
}

.rsvp .card-body {
  height: 40vh;
  overflow: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-top: 0;
}

.rsvp table thead {
  position: sticky;
  top: 0;
}

/* congrat */

.congrat {
  padding: 50px 20px;
  padding-bottom: 80px;
  background-color: var(--secondary);
  color: #fff;
}

.congrat .header h2 {
  font-family: var(--playball);
  font-size: 50px;
  text-align: center;
  font-weight: lighter;
}
.congrat .header p {
  margin-bottom: 50px;
}

.congrat .kotak-pesan {
  height: 40vh;
  margin-top: 40px;
  background: #fff;
  overflow-y: scroll;
  padding: 20px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 20px;
}
.congrat .kotak-pesan .text-pesan {
  color: black;
  padding: 0 10px;
  background-color: var(--primary);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  border-radius: 10px;
  color: #fff;
}
.congrat .kotak-pesan .text-pesan .nama {
  font-weight: bold;
  margin-top: 14px;
}
.congrat .kotak-pesan .text-pesan p {
  margin-top: -15px;
}

.congrat .text-pesan i {
  color: red;
  font-size: 30px;
}

.congrat button {
  background-color: var(--primary);
  color: white;
  font-weight: bold;
  margin-top: 10px;
}

/* tahnkyou */
.thankyou {
  padding: 80px 10px;
  background-image: url("image/bg.png");
  position: relative;
  overflow: hidden;
  color: #a82323;
}

.thankyou h3 {
  font-weight: lighter;
  font-family: var(--playball);
  font-size: 40px;
  margin-bottom: 20px;
  text-align: center;
  color: #a82323;
}
.thankyou i {
  color: red;
}

.thankyou .nama_pengantin {
  font-size: 30px;
}

.thankyou p {
  color: white;
}

/* footer */
footer {
  padding: 50px 0;
  background-color: var(--secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #fff;
}

footer a {
  color: white;
}

footer .medsos {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  justify-content: center;
  text-align: center;
}

/* audio */

.audio-icon {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  height: 40px;
  width: 40px;
  font-size: 2rem;
  border-radius: 50%;
  animation: rotating 2s linear infinite;
  color: white;
  cursor: pointer;
  transform-origin: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  mix-blend-mode: difference;
  z-index: 10;
}

@keyframes rotating {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .left-panel {
    display: none;
  }

  .right-panel {
    flex: 1;
  }

  /* hero */
  .hero .content .countdown-wrapper p {
    width: 60px;
    height: 50px;
    align-items: center;
    font-family: "Poppins";
    font-size: 10px;
    margin: 6px;
    padding: 0; /* 🔥 hapus padding biar center pas */
    padding-top: 3px;
  }

  .hero .content .countdown-wrapper span {
    font-size: 18px;
    line-height: 1; /* 🔥 biar angka tidak turun */
  }
  /* love story */

  .love-story {
    padding: 50px 10px;
  }

  .timeline {
    padding-left: 40px;
  }

  .timeline-content {
    text-align: center;
    padding: 30px 20px;
    width: 270px;
    margin: auto;
    margin-left: -13px;
  }

  .timeline-content .image img {
    width: 100%;
    height: 300px;
    border: 4px solid var(--primary);
  }

  .timeline::after {
    height: 100%;
  }

  .love-story .content {
    position: relative;
    padding: 30px 10px;
  }

  .love-story .floral-wrapper img {
    width: 300px;
  }

  .galery .vidio-wrapper {
    min-width: 100%;
    height: 250px;
    margin-top: 150px !important;
  }

  .galery iframe {
    width: 100%;
    height: 100%;
  }
}
