@font-face {
  font-family: "Ambyttion";
  src: url("/fonts/ambyttion.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "trajanpro-regular";
  src: url("/fonts/trajanpro-regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "BirdsofParadise";
  src: url("/fonts/BirdsofParadise.woff2") format("woff2"),
       url("/fonts/BirdsofParadise.woff") format("woff"),
       url("/fonts/BirdsofParadise.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Default (desktop) */
html, body {
  overflow: hidden; /* KUNCI SCROLL AWAL */
  height: 100%;
}

body {
  background: url('/background/bg1.jpg') no-repeat center center;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0;
}

body.cover-active,
.mobile-container.cover-active {
  overflow: hidden !important;
  height: 100vh;
}


/* === MOBILE MODE (HP KECIL – MENENGAH) === */
@media (max-width: 767px) {
  .mobile-container {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    background: #d9cfc6;
  }

  body {
    background: none !important;
    display: block;
  }
}

/* === TABLET / IPAD MODE === */
@media (min-width: 768px) and (max-width: 1024px) {
  .mobile-container {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    background: #d9cfc6;
    overflow-y: auto;
  }

  body {
    background: none !important;
    display: block;
  }
}

/* === DESKTOP MODE / SIMULASI MOBILE CENTER === */
@media (min-width: 1025px) {
  body {
    background: url("{{ asset('background/bg1.jpg') }}") center/cover no-repeat;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-container {
    width: 390px;
    height: 844px;
    background: #d9cfc6;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    overflow-y: auto;
  }
}


/* Hilangkan scrollbar di Chrome */
.mobile-container::-webkit-scrollbar {
  display: none;
}

/* Semua konten di atas background */
.mobile-container > * {
  position: relative;
  z-index: 1;
}

/* Mode Mobile: hanya tampil container */
@media (max-width: 768px) {
  body {
    background: none;      /* hilangkan background */
    display: block;        /* normal layout */
  }

  .mobile-container {
    width: 100%;
    height: 100vh;         /* penuh layar hp */
    box-shadow: none;
  }
}

.home-background {
  background: linear-gradient(rgba(217, 207, 198, 0.5), rgba(217, 207, 198, 0.5)),
    url('/background/bg1.jpg') no-repeat center center;
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Semua gambar background */
.home-background .bg-item {
  position: absolute;
  opacity: 1; /* selalu tampil */
}

.music-btn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border: none;
      background: white;
      color: white;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
      animation: float 2s ease-in-out infinite;
      transition: background 0.3s;
    }

    .music-btn:hover {
      background: white;
    }

    @keyframes float {
      0% { transform: translateY(0); }
      50% { transform: translateY(-2px); }
      100% { transform: translateY(0); }
    }


/* Layer background */


/* Fade in animasi background */
@keyframes fadeInBg {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

/* Card animation (slide + fade) */
.card-animate {
    animation: slideUp 1.5s ease-in-out forwards;
    opacity: 0;
}

@keyframes slideUp {
    0% {
        transform: translateY(60px) scale(0.95);
        opacity: 0;
    }
    60% {
        transform: translateY(-5px) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* Success message animation (bounce halus) */
.success-message {
    animation: bounce 1.2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Shimmer untuk judul */
.title-shimmer {
    background: linear-gradient(90deg, #ff85a2, #ffd6e0, #ff85a2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Tombol animasi hover */
button, .btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover, .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0px 8px 20px rgba(255, 105, 180, 0.4);
}




/* === Container tanaman === */

/* Wrapper */
.wrapper-tanaman {
  position: relative;
  width: 100%;     /* sesuaikan kebutuhan */
  overflow: hidden;    /* biar tanaman yang keluar layar tidak bikin scrollbar */
}

.wrapper-tanaman,
.cover-section {
  min-height: 100vh;
  height: auto;
}

/* Default tanaman */
.tanaman {
  position: absolute;
  pointer-events: none;
}

.animasi1,
.animasi2 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s ease;
}

/* === ANIMASI MASUK === */
@keyframes masukKiri {
  0%   { transform: translateX(-100px) scale(0.95); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes masukKanan {
  0%   { transform: translateX(100px) scale(0.95); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes masukBawah {
  0% { transform: translateY(100px) scale(0.85); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* === VARIASI GOYANG === */
@keyframes goyangAnginKiri {
  0%, 100% { transform: rotate(0deg) skewX(0deg); }
  25%      { transform: rotate(2deg) skewX(1deg); }
  50%      { transform: rotate(0deg) skewX(0deg); }
  75%      { transform: rotate(-2deg) skewX(-1deg); }
}

@keyframes goyangAnginKanan {
  0%, 100% { transform: rotate(0deg) skewX(0deg); }
  25%      { transform: rotate(-2deg) skewX(-1deg); }
  50%      { transform: rotate(0deg) skewX(0deg); }
  75%      { transform: rotate(2deg) skewX(1deg); }
}

.istana-tengah.active {
  animation: masukBawah 1.5s ease-out forwards;
}

.princess1.active {
  animation: masukKanan 1.5s ease-out forwards, goyangAnginKanan 6s ease-in-out 5s infinite;
}

.princess3.active {
  animation: masukKanan 2.2s ease-out forwards, goyangAnginKanan 6s ease-in-out 5s infinite;
}

.button-tengah.active {
  animation: masukBawah 1.25s ease-out forwards;
}

.bunga1-tengah.active {
  animation: masukBawah 1.2s ease-out forwards, goyangAnginKiri 5s ease-in-out 2s infinite;
}

.tanaman9-kiri.active {
  animation: masukKiri 1s ease-out forwards, goyangAnginKiri 5s ease-in-out 2s infinite;
}

.tanaman1-kiri.active {
  animation: masukKiri 2s ease-out forwards, goyangAnginKanan 6s ease-in-out 2.5s infinite;
}

.tanaman6-kiri.active {
  animation: masukKiri 2.5s ease-out forwards, goyangAnginKiri 4s ease-in-out 3s infinite;
}

.tanaman9b-kiri.active {
  animation: masukKiri 3s ease-out forwards, goyangAnginKanan 5s ease-in-out 3.5s infinite;
}

.tanaman4-kiri.active {
  animation: masukKiri 3s ease-out forwards, goyangAnginKiri 6s ease-in-out 4s infinite;
}

.tanaman7-kiri.active {
  animation: masukKiri 2s ease-out forwards, goyangAnginKanan 5s ease-in-out 4.5s infinite;
}

.tanaman8-kiri.active {
  animation: masukKiri 2s ease-out forwards, goyangAnginKiri 6s ease-in-out 5s infinite;
}

/* === TANAMAN KANAN === */
.tanaman9-kanan.active {
  animation: masukKanan 1s ease-out forwards, goyangAnginKanan 5s ease-in-out 2s infinite;
}

.tanaman1-kanan.active {
  animation: masukKanan 2.3s ease-out forwards, goyangAnginKiri 6s ease-in-out 2.5s infinite;
}

.tanaman6-kanan.active {
  animation: masukKanan 2.8s ease-out forwards, goyangAnginKanan 4s ease-in-out 3s infinite;
}

.tanaman9b-kanan.active {
  animation: masukKanan 3.3s ease-out forwards, goyangAnginKiri 5s ease-in-out 3.5s infinite;
}

.tanaman4-kanan.active {
  animation: masukKanan 3s ease-out forwards, goyangAnginKanan 6s ease-in-out 4s infinite;
}

.tanaman7-kanan.active {
  animation: masukKanan 2s ease-out forwards, goyangAnginKiri 5s ease-in-out 4.5s infinite;
}

.tanaman8-kanan.active {
  animation: masukKanan 2s ease-out forwards, goyangAnginKanan 6s ease-in-out 5s infinite;
}

.burung-kiri.active {
  animation: masukKiri 2s ease-out forwards, goyangAnginKanan 6s ease-in-out 5s infinite;
}

.burung-kanan.active {
  animation: masukKanan 3s ease-out forwards, goyangAnginKanan 6s ease-in-out 5s infinite;
}

.wedding-text.active {  
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center; /* buka dari tengah */
  animation: openText 1.5s ease-out forwards;
  animation-delay: 1s; /* mulai setelah 5 detik */
}

.wedding-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* penuh 1 layar */
  background: #fff;

}

.wedding-text {
  position: relative;
  z-index: 100;
  text-align: center;
  margin-top: 45%;
  font-size: 2.5rem;
  font-family: 'Clicker Script', cursive;
  color: #333;
}

@keyframes openText {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}


.home {
  background: linear-gradient(rgba(217, 207, 198, 0.5), rgba(217, 207, 198, 0.5)),
  url('/background/bg1.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  width: 100%;
  overflow: hidden;
  transition: opacity 1s ease;
  opacity: 1;
  filter: blur(0.5px);
  transition: opacity 2s ease, height 0.8s ease, min-height 0.8s ease;
}

/* ==== COVER SECTION (Hero) ==== */
.cover-section {
  position: relative;
  min-height: 100svh; /* fix nav safari */
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;

  display: flex;
  justify-content: center; /* pusat horizontal */
  align-items: flex-start; /* mulai dari atas */
  text-align: center;

  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 5%, rgba(0,0,0,1)),
    url('/background/new/IMG_0048.jpg') no-repeat center top;
  background-size: cover;

  color: white;
  z-index: 10;
}


/* Isi konten teks */
.cover-content {
  width: 100%;
  max-width: 420px;
  position: relative;
  top: 45vh; /* Geser turun - PENTING! */
}


.namanikah {
  font-family: "Ambyttion", sans-serif;
  font-size: clamp(52px, 20vw, 90px);
  margin-bottom: 0px;
}

.namaundangan {
  font-family: "trajanpro-regular";
  font-size: clamp(12px, 5vw, 28px);
  margin-bottom: 12px;
}

.kepada {
  font-size: clamp(10px, 4vw, 20px);
  margin-bottom: 14px;
}

.mohonmaaf {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(8px, 3vw, 15px);
  opacity: .9;
  margin-top: 6px;
}

.open-btn {
  font-size: clamp(8px, 3vw, 18px);
  padding: 14px 26px;
  border-radius: 12px;
  margin-top: 26px;
}


/* saat cover hide */
.cover-section.hide {
  opacity: 0;
  pointer-events: none;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
  transition: opacity .6s ease;
}

/* iPad & tablet fix */
@media (min-width: 768px) and (max-width: 1024px) {
  .cover-content {
    max-width: 85%;
  }
}

/* Desktop mode tetap tampil mobile, tapi center */
@media (min-width: 1025px) {
  .cover-section {
    height: 844px;
    min-height: unset;
  }
}


.cover-section.hide {
  opacity: 0;
  pointer-events: none;
  height: 0 !important;    /* <--- penting */
  min-height: 0 !important;
  overflow: hidden;
}

.subtitle {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: -5px;
  color: #846d34;
  font-family: 'Times New Roman', serif;
  z-index: 100;
}

.title {
  font-size: 4rem;
  color: #846d34;
  margin: 5px 0;
  font-family: 'Clicker Script', cursive;
  z-index: 100;
}

.and {
  display: block;
  font-size: 2rem;
  color: #846d34;
  margin: -5px;
  font-family: 'Dancing Script', cursive;
  z-index: 100;
}

.time {
  background-color: #e5728f;
  background-image: url('/background/new/timebg.png');
  background-size: cover;
  padding-top: 30px;
}

.time1 {
  background-color: white;
  height: 75vh;   /* bagian atas */
  margin: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
  padding-top: 30px;
  padding-bottom: 30px;
  border-radius: 16px;
}

.time2 {
  height: calc(100vh - 75vh - 40px); /* sisa tingginya otomatis */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.time2 img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timefoto{
  width: 85%;
  margin-bottom: 5%;
}


.infinity {
  font-family: "BirdsofParadise";
  color: #e5728f;
  font-size: 40px;
  margin-top: 0;
}

.timequotes{
  color: #e5728f;
  font-size: 12px;
  margin-left: 30px;
  margin-right: 30px;
}

.save-btn{
  font-size: 12px;
  animation: float 3s ease-in-out infinite;
  outline-color: #e5728f;
  border-color: #e5728f;
  outline: 2px solid;
  font-weight: 600;
  color: #e5728f;
}

.carousel {
  display: flex;
  width: 100%;
  overflow: hidden;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.slider {
  width: 100%;
  height: 200px; /* tinggi area carousel */
  overflow: hidden;
  position: relative;
}

.slide-track {
  display: flex;
  width: calc(90px * 6); /* 6 gambar portrait */
  animation: scroll 20s linear infinite;
}

.slide {
  width: 120px;      /* FOTO SANGAT KECIL */
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  width: 100%;
  height: 100%;     
  object-fit: cover;
  border-radius: 10px;
}


.countdown-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.countdown-box {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;

  /* agar lebih kecil dari parent */
  max-width: 280px; 
  width: 100%;
}

.countdown-box .item {
  width: 65px;
  height: 65px;
  background: #e5728f;
  border-radius: 12px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: white;
}

.countdown-box span {
  font-size: 1.3rem;
  font-weight: bold;
}

.countdown-box p {
  margin: 0;
  margin-top: 1px;
  font-size: 0.7rem;
}

.groombride{
  /* margin-top: 30px;
  background-image: url("/background/new/menara.png");
  background-size: cover;
  padding-top: 280px;
  height: 200vh;
  border-radius: 16px; */

  height: 170vh;
  background-color: rgb(229, 114, 143, 0.9);
  margin-left: 30px;
  margin-right: 30px;
  margin-top: 30px;
  border-radius: 16px 16px 0 0;

  color: white;
}

.sectiontittle{
  font-family: "trajanpro-regular";
  font-size: 30px;
}

.groombridefoto{
  /* width: 65%; */
  width: 85%;
}

.groombrridename{
  font-family: "BirdsofParadise";
  font-size: 50px;
  margin-top: 10px;
  margin-bottom: -10px;
}

.rsvp{
  margin-top: 80px;
  margin-bottom: 80px;
}

.daftartamu{
  background-color: #e5728f;
  padding: 30px;
}

.boxucapan{
  background-color: #feeaf1;
  padding: 10px;
  margin-top: 10px;
  max-width: 100%;
  overflow-x: hidden;
}

.boxucapan p {
  margin-top: 2px;
  word-break: break-word;
  white-space: normal;
}

.footer{
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)),
    url('/background/new/cover.jpg') no-repeat center center;
  background-size: 150%;
  background-position: 70% bottom;
  height: 60vh;
  color: white;
}

.withlove{
  font-size: 16px;
}

.quotes{
  font-size: 12px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 10px;
  margin-top: 70%;
}

.footername{
  margin-top: 10px;
  font-family: "BirdsofParadise";
  font-size: 30px;
}