* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #d8d1cb;
  overflow-x: hidden;
} 



/* ===== SECTION ===== */
.wedding-section {
  min-height: 100vh;
  background: url("../../images/serene/bgutamacalmbrown.webp") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 60px 20px;
  overflow: hidden;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ===== BACKGROUND FLOWERS ===== */
.bg-flower {
  position: absolute;
  width: 520px;
  opacity: 0.85;
}

.bg-flower.left {
  left: -80px;
  top: 30%;
  transform: translateY(-50%);
}

.bg-flower.right {
  right: -80px;
  top: 30%;
  transform: translateY(-50%);
}

.bg-flower.left2 {
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
}

.bg-flower.right2 {
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
}

.bg-flower.left3 {
  left: -80px;
  top: 80%;
  transform: translateY(-50%);
}

.bg-flower.right3 {
  right: -80px;
  top: 80%;
  transform: translateY(-50%);
}

/* ===== WRAPPER ===== */
.invitation-wrapper {
  background: url("../../images/serene/bgwrappercalmbrown.webp") center/cover no-repeat;
  width: 860px;
  padding: 100px 20px 80px;
  text-align: center;
  position: relative;
  border-radius: 480px 480px 0px 0px;
  box-shadow: 20px 20px 40px rgba(0,0,0,0.15);
}


/* ===== TEXT STYLES ===== */
.monogram {
  width: 300px;             
  margin: 0 auto 30px;       
}

.monogram img {
  width: 100%;
  height: auto;
  display: block;
}

.small-title {
  font-size: 23px;
  margin-bottom: 25px;
  color: #4d4d4d;
  letter-spacing: 3px;
}

.main-names {
  font-size: 106px;
  margin-bottom: 40px;
  color: #4d4d4d;
}

.invite-text {
  margin-bottom: 40px;
  font-size: 20px;
  color: #4d4d4d;
  text-transform: uppercase;
}

.person-name {
  font-size: 40px;
  margin-bottom: 10px;
  color: #4d4d4d;
  font-family: 'tangerine';
  font-weight: 400;
}

.parents {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 40px;
  color: #4d4d4d;
}

.ampersand {
  font-size: 26px;
  margin: 10px 0 20px;
  color: #4d4d4d;
}

.closing-text-pem {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 30px;
  color: #4d4d4d;
  font-style: italic;
}

.date {
  font-size: 13px;
  letter-spacing: 2px;
  margin-top: 0;
  color: #4d4d4d;
}

.date span {
  display: block;
  font-size: 20px;
  margin-top: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .invitation-wrapper {
    width: 100%;
    padding: 80px 30px 60px;
    border-radius: 220px 220px 0px 0px;
  }

  .main-names {
    font-size: 38px;
  }

}

@media (max-width: 600px) {
  .monogram {
    width: 200px;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {

  /* SECTION ACUAN */
  .wedding-section {
    padding-top: 30px;
    position: relative;
  }

  /* WRAPPER */
  .invitation-wrapper {
    position: relative;
    z-index: 2;
  }

  .bg-flower {
  position: absolute;
  width: 240px;
  opacity: 0.85;
}

  .bg-flower.left {
    left: -25%;
    top: 30%;
    z-index: 3;
  }

  .bg-flower.right {
    right: -25%;
    top: 30%;
    z-index: 3;
  }

  .bg-flower.left2 {
    left: -30%;
    top: 50%;
    z-index: 3;
  }

  .bg-flower.right2 {
    right: -30%;
    top: 50%;
    z-index: 3;
  }

  .bg-flower.left3 {
    left: -35%;
    top: 85%;
    z-index: 3;
  }

  .bg-flower.right3 {
    right: -35%;
    top: 85%;
    z-index: 3;
  }

  .small-title {
  font-size: 15px;
  margin-bottom: 25px;
  color: #4d4d4d;
  letter-spacing: 3px;
  font-weight: 600;
}

.main-names {
  font-size: 46px;
  margin-bottom: 40px;
  color: #4d4d4d;
}

.invite-text {
  margin-bottom: 40px;
  font-size: 18px;
  color: #4d4d4d;
  text-transform: uppercase;
}

.person-name {
  font-size: 30px;
  margin-bottom: 10px;
  color: #4d4d4d;
}

.parents {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 40px;
  color: #4d4d4d;
}

.ampersand {
  font-size: 26px;
  margin: 10px 0 20px;
  color: #4d4d4d;
}

.closing-text-pem {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 35px;
  color: #4d4d4d;
  font-style: italic;
}

.date {
  font-size: 13px;
  letter-spacing: 2px;
  margin-top: 0;
  color: #4d4d4d;
}

.date span {
  display: block;
  font-size: 20px;
  margin-top: 8px;
}

}


/* ===== COUNTDOWN SECTION ===== */
.countdown-section {
  width: 100%;
  padding: 50px 20px;
  background: url("../../images/serene/bgwrappercalmbrown.webp") center/cover no-repeat;
  text-align: center;
  position: relative;
}

/* ===== TITLE ===== */
.countdown-title {
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 30px;
  color: #4d4d4d;
  text-transform: uppercase;
}

/* ===== COUNTDOWN WRAP ===== */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ===== COUNT BOX ===== */
.countdown-box {
  width: 120px;
  height: 140px;
  background: #4d4d4d;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* NUMBER */
.count-number {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #ffffff;
}

/* LABEL */
.count-label {
  font-size: 13px;
  letter-spacing: 2px;
  color: #ffffff;
}

@media (max-width: 600px) {
  .countdown-title {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .countdown-container {
    gap: 10px;
  }

  .countdown-box {
    width: 70px;
    height: 110px;
  }

  .count-number {
    font-size: 20px;
  }

  .count-label {
    font-size: 9px;
  }
}

/* ===== DETAIL SECTION ===== */
.detail-section {
  background: url("../../images/serene/bgutamacalmbrown.webp") center/cover no-repeat;
  padding: 0 20px 100px;
}

.detail-wrapper {
  width: 860px;
  margin: 0 auto;
  background: url("../../images/serene/bgwrappercalmbrown.webp") center/cover no-repeat;
  padding-right: 20px;
  padding-left: 20px;
  padding-bottom: 100px;
  padding-top: 10px;
  text-align: center;
  border-radius: 0px 0px 480px 480px;
}




/* ===== TITLES ===== */
.section-title {
  font-size: 30px;
  margin: 80px 0 40px;
  text-transform: uppercase;
  color: #4d4d4d;
}

.section-titlex {
  font-size: 30px;
  text-transform: uppercase;
  color: #4d4d4d;
  margin-bottom: 20px;
}

.section-titlea {
  font-size: 30px;
  text-transform: uppercase;
  color: #4d4d4d;
  margin-bottom: 20px;
}

/* ===== LOCATION ===== */
.location-illustration img {
  width: 480px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .location-illustration img {
    width: 100%;
    max-width: 360px;   
    margin: 0 auto 20px;
    padding: 0 16px;    
    display: block;
  }
}

@media (max-width: 480px) {
  .location-illustration img {
    max-width: 300px;
    padding: 0 20px;    
  }
}

.location-name {
  font-size: 24px;
  margin-bottom: 10px;
  color: #4d4d4d;
}

@media (max-width: 768px) {
  .location-name {
  font-size: 21px;
  }
}

.location-address {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #4d4d4d;
}

.location-btn {
  display: inline-block;
  padding: 15px 38px;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 40px;
  background-color: #4d4d4d;
  text-decoration: none;
  color: whitesmoke;
}

.dress-desc {
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 40px;
  color: #4d4d4d;
  font-style: italic;
}

/* ===== DRESS CODE ===== */
.dress-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  justify-items: center; /* center tiap kolom */
}

.dress-item {
  display: flex;
  flex-direction: column;
  align-items: center;   /* INI KUNCI: bikin konten tepat di tengah */
  text-align: center;
}

.dress-item p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #4d4d4d;
}

.dress-item span {
  font-size: 12px;
  opacity: 0.7;
}

/* Lingkaran warna */
.color-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid #ccc;
  box-sizing: border-box;
}

.color-circle.white {
  background: #fff;
}

.color-circle.black {
  background: #000;
  border-color: #000;
}

/* Tablet */
@media (max-width: 768px) {
  .color-circle {
    width: 60px;
    height: 60px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .dress-grid {
    gap: 24px;
  }

  .color-circle {
    width: 52px;
    height: 52px;
    border-width: 1.5px;
  }

  .dress-item p {
    font-size: 13px;
  }
}

/* ===== OUR MOMENTS ===== */
.om-section{
  padding: 55px 10px 20px; /* jarak kiri kanan tipis */
  text-align:center;
}

/* SUB TITLE */
.om-sub {
  font-size:13px;
  opacity: 0.7;
  color: #4d4d4d;
}

/* TITLE */
.om-title{
  font-size: 30px;
  margin-top: 5px;
  margin-bottom: 40px;
  color: #4d4d4d;
}

/* GRID */
.om-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

/* IMAGE */
.om-item{
  width:100%;
  border-radius:6px;
  cursor:pointer;

}

/* ===== POPUP ===== */
.om-popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.9);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.om-popup img{
  max-width:85%;
  max-height:85%;
}

.om-close{
  position:absolute;
  top:20px;
  right:30px;
  font-size:40px;
  color:white;
  cursor:pointer;
}

.om-nav{
  position:absolute;
  top:50%;
  color:white;
  font-size:40px;
  cursor:pointer;
}

.om-prev{ left:20px; }
.om-next{ right:20px; }

/* ===== MOBILE ===== */
@media (max-width:768px){
  .om-title{
    font-size:34px;
  }

  .om-grid{
    gap:10px;
  }

  .om-popup img{
    max-width:95%;
    max-height:95%;
  }

  .om-close{
    font-size:32px;
    top:14px;
    right:20px;
  }

  .om-nav{
    font-size:32px;
  }
}

.wedding-gift-section {
  padding: 40px 0 0;
  text-align: center;
}

.gift-block {
  max-width: 520px;
  margin: 0 auto;
}

.gift-title {
  font-size: 30px;
  margin-bottom: 50px;
  color: #4d4d4d;
  text-transform: uppercase;
}

.gift-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.gift-subtitle {
  font-size: 18px;
  margin-bottom: 16px;
  color: #4d4d4d;
  text-transform: uppercase;
}

.gift-text {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 20px;
  color: #4d4d4d;
}

.bank-info {
  margin-top: 20px;
}

.bank-logo {
  width: 90px;
  margin-bottom: 12px;
  opacity: 0.85;
}

.rekening {
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.nama-rekening {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 18px;
}

.copyBtn {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.3);
  padding: 8px 18px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.copyBtn:hover {
  background: rgba(0,0,0,0.05);
}

.gift-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.4);
  padding-bottom: 3px;
  color: inherit;
}


@media (max-width: 768px) {

  .gift-wrapper {
    width: 88%;
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .gift-title {
    font-size: 24px;
  }
}


/* ===== RSVP & WISH ===== */
.rsvp-section,
.wish-section {
  margin-top: 10px;
  text-align: center;
}

.rsvp-subtitle,
.wish-subtitle {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.7;
  margin-bottom: 40px;
  color: #4d4d4d;

}

/* FORM */
.rsvp-form,
.wish-form {
  max-width: 520px;
  margin: 0 auto;
   font-family: 'Times New Roman', Times, serif;
}

/* INPUT & SELECT */
.rsvp-input-name,
.rsvp-input-guest,
.wish-input-name,
.wish-input-text {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.3);
  background: transparent;
  padding: 12px 6px;
  font-size: 13px;
  margin-bottom: 30px;
  outline: none;
  color: #4d4d4d;
  font-family: 'Times New Roman', Times, serif;
}

/* TEXTAREA */
.wish-input-text {
  resize: none;
  min-height: 90px;
  color: #4d4d4d;
   font-family: 'Times New Roman', Times, serif;
}

/* BUTTON */
.rsvp-btn-send,
.wish-btn-send {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.4);
  padding: 10px 28px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #4d4d4d;
  font-family: 'Times New Roman', Times, serif;
  text-transform: uppercase;
}

.rsvp-btn-send:hover,
.wish-btn-send:hover {
  background: rgba(0,0,0,0.05);
}

/* WISH LIST LEFT-ALIGNED & SCROLL */
.wish-list {
  margin-top: 40px;
  max-height: calc(5 * 70px + 4 * 30px); /* kira-kira tinggi 5 item + gap */
  overflow-y: auto;
  padding: 10px 15px; /* padding kiri-kanan */
  text-align: left;
  border-radius: 8px; /* opsional */
}

/* custom scrollbar */
.wish-list::-webkit-scrollbar {
  width: 6px;
}
.wish-list::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 3px;
}

/* ITEM */
.wish-list .wish-item {
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.85;
  text-align: left;
  word-break: break-word;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1); /* garis pembatas */
}

/* hapus border untuk item terakhir */
.wish-list .wish-item:last-child {
  border-bottom: none;
}



/* FEEDBACK */
.rsvp-feedback {
  margin-top: 20px;
  font-size: 12px;
  opacity: 0.8;
}

/* MOBILE */
@media (max-width: 600px) {
  .rsvp-section,
  .wish-section {
    margin-top: 80px;
  }
}

/* ===== CLOSING SECTION ===== */
.closing-section {
  margin-top: 80px;
  padding-bottom: 60px;
  text-align: center;
}

.closing-text {
  font-size: 46px;
  margin-bottom: 30px;
  color: #4d4d4d;
  text-transform: uppercase;
}

.closing-text span {
  display: block;
  font-size: 13px;
  font-style: normal;
  opacity: 0.7;
  margin-top: 10px;
}

/* LOGO */
.closing-logo img {
  width: 60px;
  opacity: 0.6;
  transition: all 0.3s ease;
}


/* MOBILE */
@media (max-width: 600px) {
  .closing-section {
    margin-top: 90px;
  }

  .closing-text {
    font-size: 15px;
  }

  .closing-logo img {
    width: 100px;
  }
}

@media (max-width: 768px) {
  .detail-wrapper,
  .invitation-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .event-info,
  .dress-grid {
    flex-wrap: wrap;
  }
}


.hidden {
  display: none;
}

/* ===== GATES ===== */
#gates{
  position:relative;
  height:100vh;
  min-height:680px;
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
  justify-content:center;
}

#gates::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.418) 10%,
    rgba(2, 2, 2, 0.377) 80%
  );
}


.gates-inner{
  position:relative;
  z-index:2;
  text-align:center;
  max-width:980px;
}

.top-label{
  font-family: 'Times New Roman', Times, serif;
  letter-spacing:4px;
  font-size:23px;
  margin-bottom:8px;
  text-transform:uppercase;
  font-weight: bold;
  color: white;
}

.title{
  font-family: 'Times New Roman', Times, serif;
  font-size:70px;
  margin:8px 0;
  color: white;
}

.date{
  font-family: 'Times New Roman', Times, serif;
  letter-spacing:2px;
  color: white;
}

.invite-card{
  width:100%;
  max-width:520px;          
  background: url("../../images/serene/bgwrappercalmbrown.webp") center/cover no-repeat;
  border-radius:32px;
  overflow:hidden;
  box-shadow:0 24px 48px rgba(0,0,0,0.25);
  margin:0 auto;
}

.card-header{
  padding:36px 40px 28px;
  text-align:center;
}
.top-label{
  font-size:18px;
  margin-bottom:6px;
  color: #4d4d4d;
  font-family: 'Times New Roman', Times, serif;
}

.title{
  font-size:56px;
  margin-top: 4px;
  margin-bottom: 20px;
  color: #4d4d4d;
  font-family: 'Times New Roman', Times, serif;
}

.date{
  font-size:18px;
  letter-spacing:2px;
  font-weight: 600;
  color: #4d4d4d;
  font-family: 'Times New Roman', Times, serif;
}

/* IMAGE */
.card-image img{
  width:100%;
  height:380px;
  object-fit:cover;
  display:block;
}

/* CONTENT BAWAH */
.card-content{
  padding:4px 40px 40px;
  text-align:center;
}

.dear{
  font-size:20px;
  margin-bottom:8px;
  color: #4d4d4d;
  font-family: 'Times New Roman', Times, serif;
}

.subtitle{
  font-size:14px;
  margin-bottom:30px;
  color: #4d4d4d;
  font-style: italic;
}

/* BUTTON */
.open-btn{
  padding:14px 48px;
  border-radius:60px;
  background:#4d4d4d;
  color:#fff;
  text-decoration:none;
  font-family: 'Times New Roman', Times, serif;
  display:inline-block;
  color: #ffffff;
}

/* MOBILE */
@media (max-width:480px){
  .invite-card{
    max-width:360px;
    border-radius:26px;
  }

  .card-header,
  .card-content{
    padding:26px 24px;
  }

  .title{
    font-size:42px;
  }

  .card-image img{
    height:340px;
  }
}


/* SECTION PERTAMA */
#vinylControl {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

/* Animasi vinyl muter */
#vinylControl.playing {
  animation: spin 4s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsif Mobile */
@media (max-width: 768px) {
  #vinylControl {
    width: 50px;
    height: 50px;
    bottom: 15px;
    left: 15px;
  }
}

/* ===============================
   OUR STORY SECTION
================================ */
.os-image-box,
.os-description,
.os-timeline,
.os-closing {
  font-family: "Times New Roman", Times, serif;
  color: #333;
  text-align: center;
}

/* IMAGE */
.os-image-box img {
  width: 100%;
  max-width: 520px;
  margin: 20px auto 40px;
  display: block;
  border-radius: 18px;
}

/* TITLE & DESCRIPTION */
.os-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 16px;
  text-transform: uppercase;
  color: #4d4d4d;
}

.os-text {
  font-size: 15px;
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto 70px;
  color: #4d4d4d;
}

/* ===============================
   TIMELINE CENTER
================================ */
.os-timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto 70px;
  padding: 20px 0;
}

/* CENTER LINE */
.os-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #bdbcbc;
  transform: translateX(-50%);
}

/* EVENT */
.os-event {
  position: relative;
  width: 50%;
  padding: 10px 40px;
  box-sizing: border-box;
}

/* LEFT EVENTS */
.os-event:nth-child(even) {
  left: 0;
  text-align: right;
}

/* RIGHT EVENTS */
.os-event:nth-child(odd) {
  left: 50%;
  text-align: left;
}

/* DOT */
.os-dot {
  position: absolute;
  top: 18px;
  width: 12px;
  height: 12px;
  background: #4d4d4d;
  border-radius: 50%;
  z-index: 2;
}

/* DOT POSITION */
.os-event:nth-child(even) .os-dot {
  right: -6px;
}

.os-event:nth-child(odd) .os-dot {
  left: -6px;
}

/* CONTENT */
.os-content h4 {
  margin: 0;
  font-size: 18px;
  font-weight: normal;
}

.os-content p {
  margin-top: 6px;
  font-size: 14px;
  color: #555;
}

/* ===============================
   CLOSING TEXT
================================ */
.os-closing p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 14px;
  font-style: italic;
  line-height: 1.7;
  color: #555;
}

/* ===============================
   RESPONSIVE MOBILE
================================ */
@media (max-width: 680px) {

  .os-title {
    font-size: 30px;
  }

  .os-text {
    font-size: 14px;
  }

  /* Timeline jadi satu kolom */
  .os-line {
    left: 20px;
  }

  .os-event,
  .os-event:nth-child(even),
  .os-event:nth-child(odd) {
    width: 100%;
    left: 0;
    padding: 10px 20px 10px 50px;
    text-align: left;
  }

  .os-dot,
  .os-event:nth-child(even) .os-dot,
  .os-event:nth-child(odd) .os-dot {
    left: 14px;
    right: auto;
  }
}


/* ===============================
   PETAL FALL ANIMATION
================================ */
.petal-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 999;
}

.petal {
  position: absolute;
  top: -10%;
  width: 28px;
  opacity: 0.85;
  animation-name: petalFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* FALL + WIND */
@keyframes petalFall {
  0% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateX(var(--wind)) rotate(180deg);
  }
  100% {
    transform: translateX(calc(var(--wind) * -1)) translateY(120vh)
      rotate(360deg);
    opacity: 0;
  }
}

/* MOBILE ADJUST */
@media (max-width: 768px) {
  .petal {
    width: 22px;
  }
}

/* ===== CSS ANIMASI awal ===== */
.scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-anim.visible-unique987 {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: delay berbeda untuk efek bergantian */
.scroll-anim:nth-child(1) { transition-delay: 0.4s; }
.scroll-anim:nth-child(2) { transition-delay: 0.6s; }
.scroll-anim:nth-child(3) { transition-delay: 0.8s; }
.scroll-anim:nth-child(4) { transition-delay: 1.0s; }
.scroll-anim:nth-child(5) { transition-delay: 1.2s; }
.scroll-anim:nth-child(6) { transition-delay: 1.4s; }
.scroll-anim:nth-child(7) { transition-delay: 1.5s; }
.scroll-anim:nth-child(8) { transition-delay: 1.6s; }

/* ===== Animasi Elegan Countdown ===== */
.animasi-countdownbc {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.8s ease;
}

/* Trigger class */
.animasi-countdownbc.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Our Story Animasi ===== */
.anim-ourstory {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.8s ease;
}

/* Trigger class saat muncul */
.anim-ourstory.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Animasi Location & Dress Code ===== */
.anim-locdress {
  opacity: 0;
  transform: translateY(-40px);
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.8s ease;
}

.anim-locdress.show {
  opacity: 1;
  transform: translateY(0);
}


/* ===== Our Moments Animasi ===== */

/* Judul & subjudul */
.om-sub, .om-title {
  opacity: 0;
  transform: translateY(-30px);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.om-sub.show, .om-title.show {
  opacity: 1;
  transform: translateY(0);
}

/* Gambar */
.om-item {
  opacity: 0;
  transform: translateX(50px); /* default slide from right */
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.8s ease;
}

/* Slide from left untuk index ganjil */
.om-item.slide-left {
  transform: translateX(-50px);
}

.om-item.show {
  opacity: 1;
  transform: translateX(0);
}


/* ===== Wedding Gift Animasi ===== */

/* Judul */
.hadiah-animation .gift-title {
  opacity: 0;
  transform: translateY(-30px);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.hadiah-animation .gift-title.show {
  opacity: 1;
  transform: translateY(0);
}

/* Gift block */
.hadiah-animation .gift-block {
  opacity: 0;
  transform: translateY(50px);
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.8s ease;
}

.hadiah-animation .gift-block.show {
  opacity: 1;
  transform: translateY(0);
}


/* ===== RSVP & Wishes Animasi ===== */
.anim-rsvpwish {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.8s ease;
}

.anim-rsvpwish.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= PRELOADER ================= */
#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
  width: 200px; /* Lebar area loading */
  text-align: center;
}

/* Logo Favicon */
.loader-logo {
  width: 40px;
  height: auto;
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease;
}

/* Progress Bar Container */
.progress-container {
  width: 100%;
  height: 2px; /* Tipis biar elegan */
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

/* Progress Bar Inner */
.progress-bar {
  width: 0%; /* Start dari 0 */
  height: 100%;
  background: #1a1a1a; /* Warna bar gelap premium */
  transition: width 0.4s ease; /* Transisi pas nambah % */
}

.loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888888;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* Pastikan class dasar animasi kamu memiliki ini */
.gift-block, .gift-title, .anim-rsvpwish {
    opacity: 0;
    will-change: transform, opacity; /* Memberitahu Safari untuk menyiapkan GPU */
    -webkit-backface-visibility: hidden; /* Mencegah flicker di Chrome/Safari */
    backface-visibility: hidden;
}

.gift-block.show, .gift-title.show, .anim-rsvpwish.show {
    opacity: 1;
    transform: translateY(0); /* Atau animasi asalmu */
}