body {
    margin:0;
    font-family: 'Playfair Display', serif;
    background:#000;
    color:#fff;
    scroll-behavior: smooth;
}
body.lock-scroll {
    overflow: hidden;
    height: 100vh;
}

/* NAVBAR */
/* nav {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display:flex;
    gap:10px;
    background:rgba(255,255,255,0.1);
    padding:10px;
    border-radius:50px;
    z-index: 9996;
} */

nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    
    display: flex;
    gap: clamp(10px, 2vw, 20px);

    padding: clamp(10px, 1.5vw, 18px) clamp(15px, 3vw, 30px);
    border-radius: 60px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition: transform 0.4s ease, opacity 0.4s ease;

    z-index: 9996;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

nav.hide {
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
}

nav.scrolled {
    transform: translateX(-50%) translateY(-10px); /* 🔥 naik dikit */
}

/* nav.hide {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
} */

nav button {
    background:none;
    border:none;
    color:white;
    font-size:18px;
}

nav button:hover {
    transform: scale(1.2);
    transition: 0.3s;
}

.nav-btn {
    position: relative;
    background: none;
    border: none;
    /* font-size: 18px; */
    cursor: pointer;
    z-index: 2;
    transition: 0.3s;
    font-size: clamp(18px, 2.5vw, 26px); /* 🔥 responsive */
}

/* ACTIVE ICON */
.nav-btn.active {
    transform: scale(0.85);
    text-shadow: 0 0 10px currentColor;
    animation: bounce 0.4s;
}

@keyframes bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1.3); }
}

/* INDICATOR BULAT */
.nav-indicator {
    position: absolute;
    bottom: 6px;
    left: 0;
    width: clamp(35px, 5vw, 45px);
    height: clamp(35px, 5vw, 45px);
    border-radius: 12px;
    z-index: 1;
    filter: blur(6px); /* glow halus */
    opacity: 0.8;
    transition: none;
}

nav.dark .nav-indicator {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

nav.light .nav-indicator {
    background: rgba(0,0,0,0.15);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

nav.dark {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(14px);
}

nav.dark button {
    color: #fff;
}

nav.light {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

nav.light button {
    color: #000;
}

.music-btn:hover {
    transform: scale(1.1);
}

/* MUSIC BUTTON */
.music-btn {
    position:fixed;
    right:20px;
    bottom:20px;    
    width: clamp(45px, 6vw, 65px);
    height: clamp(45px, 6vw, 65px);
    border-radius:50%;
    background:white;
    color:black;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    z-index: 9996;
    font-size: clamp(18px, 2vw, 26px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {

    nav {
        bottom: 10px;
        gap: 12px;
        padding: 10px 18px;
    }

    .nav-btn {
        font-size: 20px;
    }

    .music-btn {
        right: 15px;
        bottom: 15px;
    }

}

/* ROTATE ANIMATION */
.rotate {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ENVELOPE */
#envelope {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* WRAPPER */
.envelope-wrapper {
    position: relative;
    width: clamp(280px, 40vw, 500px); /* 🔥 responsif */
    aspect-ratio: 4 / 3; /* biar proporsional */
    height: 180px;
    cursor: pointer;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.6),
        0 5px 20px rgba(0,0,0,0.3);
}

@media (min-width: 1024px) {
    .envelope-wrapper {
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .envelope-wrapper {
        width: 85vw; /* hampir full layar tapi masih ada space */
    }
}

.envelope-wrapper:hover {
    transform: scale(1.05);
    transition: 0.3s;
}

@media (hover: hover) {
    .envelope-wrapper:hover {
        transform: scale(1.08);
        transition: 0.3s;
    }
}

/* BODY (bawah) */
.envelope-body {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #eaeaea;
    border-radius: 6px;
    z-index: 1;
}

/* FLAP (tutup segitiga atas) */
.envelope-flap {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: #dcdcdc;

    clip-path: polygon(0 0, 100% 0, 50% 60%);
    transform-origin: top;
    transition: transform 1s ease;
    z-index: 3;
}

/* LETTER (isi) */
.letter {
    position: absolute;
    width: 90%;
    height: 80%;
    background: white;
    top: 10%;
    left: 5%;
    border-radius: 4px;

    display: flex;
    justify-content: center;
    align-items: center;

    transform: translateY(0);
    transition: transform 1s ease;

    z-index: 2;
}

/* TEKS */
.letter p {
    font-family: 'Dancing Script', cursive;
    font-size: 20px;
    color: black;
    white-space: pre-line;
    opacity: 0;
    /* transition: opacity 0.3s ease; */
}

.letter {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.seal {
    background:white;
    color:black;
    padding:20px;
    border-radius:50%;
    cursor:pointer;
    
    z-index: 10000;
}

/* SECTION */
section {
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:40px 20px;
    text-align:center;
    position: relative;
    transition: background 0.8s ease;
}

/* SECTION GANJIL (HITAM) */
section:nth-of-type(odd) {
    background: linear-gradient(
        180deg,
        #000000 0%,
        #111111 50%,
        #000000 100%
    );
    color: #ffffff;
}

/* SECTION GENAP (PUTIH) */
section:nth-of-type(even) {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f2f2f2 50%,
        #ffffff 100%
    );
    color: #000000;
}

section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0,0,0,0.1)
    );
    pointer-events: none;
}

section:nth-of-type(odd) h1,
section:nth-of-type(odd) h2,
section:nth-of-type(odd) p {
    color: #fff;
}

section:nth-of-type(even) h1,
section:nth-of-type(even) h2,
section:nth-of-type(even) p {
    color: #000;
}

/* HERO ANIMATION */
.hero {
    margin-top: 150px;
    display: flex;
    /*flex-direction: row !important;  🔥 PENTING */
   /*  flex-wrap: nowrap; 🔥 jangan boleh turun */
    align-items: center;
    justify-content: center;

    min-height: 100vh;
    padding: 40px 20px;

    /* position: relative; */
}

.hero-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(20px, 25vw, 72px) !important;
}

/* KIRI (TEXT) */
.hero-content {
    flex: 1;
    z-index: 2;
    /*max-width: 65%; 🔥 ini kunci */
}

.hero-content p {
    font-size: 36px;
}


/* KANAN (GAMBAR) */
.hero-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    margin-right: 10px;
    flex-shrink: 0; /* 🔥 jangan menyusut & turun */
}

/* GAMBAR PNG */
.hero-image img {
    width: clamp(120px, 25vw, 400px); /* 🔥 kunci utama */
    height: auto;
    opacity: 25%;

    object-fit: contain;

    filter: grayscale(100%) 
    drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    
    /* animation: floatImage 4s ease-in-out infinite; */
    mix-blend-mode: lighten;
}

.hero-content h1 {
    font-size: clamp(20px, 5vw, 40px);
}

.hero h2 {
    font-size: clamp(18px, 4vw, 32px);
}

@media (max-width: 768px) {

    .hero {
        padding: 20px;
        gap: 10px;
    }

    .hero-content {
        flex: 1.2; /* 🔥 teks lebih dominan */
    }

    .hero-image img {
        width: clamp(100px, 30vw, 180px); /* 🔥 kecil tapi tetap proporsional */
    }

    
    .hero-title {
        font-size: clamp(20px, 30vw, 42px) !important; /* 🔥 kecil tapi tetap proporsional */
    }
    
}


@keyframes floatImage {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* MESSAGE BOX */
#messages {
    max-height:200px;
    overflow-y:auto;
    margin-top:10px;
}

.msg {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.msg-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: url('assets/img/bg2.png') center/cover no-repeat;

  z-index: 0;
}

.msg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4); /* karena section ini gelap */
  /* backdrop-filter: blur(2px); */
  z-index: 1;
}

/* 🔥 konten di atas */
.msg > *:not(.msg-bg) {
  position: relative;
  z-index: 2;
}

/* FORM */
.form-box {
  max-width: 500px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;

  background: rgba(255,255,255,0.3); /* 🔥 ini opacity */
  /* backdrop-filter: blur(10px); */

  padding: 20px;
  border-radius: 16px;

  border: 1px solid rgba(255,255,255,0.3);
}

.form-box input,
.form-box textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: rgba(255,255,255,0.3);
}

.form-box textarea {
  min-height: 100px;
  resize: none;
}

.form-box button {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.form-box button:hover {
  background: #333;
}
/* CARD WRAPPER */
.messages-card {
  max-width: 600px;
  margin: auto;

  /* background: rgba(255,255,255,0.85); */
  background: rgba(255,255,255,0.3); 
  /* backdrop-filter: blur(10px); */

  border-radius: 16px;
  padding: 15px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.1);

  height: 200px; /* 🔥 tinggi fix */
  overflow-y: auto; /* 🔥 scroll aktif */
  scroll-behavior: smooth;
}


/* optional: scrollbar cantik */
.messages-card::-webkit-scrollbar {
  width: 6px;
}

.messages-card::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}

/* LIST PESAN */
.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ITEM PESAN */
.message-item {
  text-align: left;
  padding: 12px;

  background: white;
  border-radius: 10px;

  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: rgba(255,255,255,0.3) !important;
}

.message-name {
  font-weight: bold;
  margin-bottom: 3px;
}

.message-text {
  font-size: 14px;
}

/* GIFT */
.gift-slider {
    display:flex;
    gap:10px;
    overflow-x:auto;
}

.gift-item {
    min-width:200px;
    background:white;
    color:black;
    padding:20px;
    border-radius:10px;
}

/* RESPONSIVE */
@media(max-width:768px){
    nav {
        bottom:5px;
        padding:5px;
    }
}

.parallax {
    background-image: url('assets/img/bg.jpg');
    min-height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
}

.parallax::after {
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
}

.parallax .content {
    position: relative;
    z-index: 1;
    text-align:center;
}

#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 10000;
    mix-blend-mode: screen;
}

.petal {
    position: fixed;
    width: 20px;
    height: 20px;
    background-image: url('assets/img/petal.png'); /* gambar bunga */
    background-size: cover;
    opacity: 1;
    animation: fall linear infinite;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
}

/* Animasi jatuh */
@keyframes fall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    50% {
        transform: translateY(50vh) translateX(30px) rotate(180deg);
    }
    100% {
        transform: translateY(110vh) translateX(-30px) rotate(360deg);
    }
}

.petal {
    position: absolute;
    top: -50px;
    background-image: url('assets/img/petal.png');
    background-size: cover;
    pointer-events: none;

    filter: blur(0.5px);
    box-shadow: 
        0 0 10px rgba(255,255,255,0.4),
        0 0 20px rgba(255,255,255,0.2);
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9995;

    background-image: url('assets/img/noise.png'); /* texture noise */
    opacity: 0.05;
    mix-blend-mode: overlay;

    animation: grainMove 0.5s steps(2) infinite;
}

@keyframes grainMove {
    0% { transform: translate(0,0); }
    25% { transform: translate(-2%,2%); }
    50% { transform: translate(2%,-2%); }
    75% { transform: translate(-1%,1%); }
    100% { transform: translate(0,0); }
}

.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9994;

    background: radial-gradient(
        circle at center,
        transparent 60%,
        rgba(0,0,0,0.4) 100%
    );
}

.glass {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 20px;
    padding: 20px;

    border: 1px solid rgba(255,255,255,0.2);

    box-shadow:
        0 8px 32px rgba(0,0,0,0.3);
}

section:nth-of-type(even) .glass {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
}

.countdown {
  display: flex;
  gap: 20px;
  margin-top: 20px;

  justify-content: center; /* biar di tengah */
}

.time-box {
  width: 110px;
  height: 110px;

  background: rgba(0, 0, 0, 0.7); /* lebih elegan */
  backdrop-filter: blur(6px);

  color: white;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);

  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.time-box span {
  font-size: 48px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

.time-box p {
  margin-top: 5px;
  font-size: 13px;
  opacity: 0.8;
}

.home {
  position: relative;
  overflow: hidden;
}

.home::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: url('assets/img/bg3.png');
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; */
  /* backdrop-filter: blur(4px); */

  /* transform: translateY(0);
  transition: transform 0.2s ease-out; */
  z-index: -1;
}

.home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.3);
  /* backdrop-filter: blur(2px); */
  z-index: 1;
}

.home > * {
  position: relative;
  z-index: 2;
}

.bg-fixed {
  position: fixed; /* 🔥 ini kunci utama */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-image: url('assets/img/bg3.png');
  background-size: cover;
  background-position: center;

  z-index: -1;
}

.home * {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .home {
    background-attachment: scroll; /* fallback */
  }
}
.section-title {
  font-size: 32px;
  margin-bottom: 90px;
  font-family: 'Playfair Display', serif;
}

.couple-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.couple-card {
  width: 320px;
  padding: 30px;

  background: rgba(255,255,255,0.5);
  /* backdrop-filter: blur(10px); */

  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);

}

.name {
  font-size: 24px;
  margin-bottom: 10px;
  font-family: 'Great Vibes', cursive;
  font-size: 40px;
}

.label {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 5px;
}

.parents {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.address {
  font-size: 14px;
  opacity: 0.8;
}

/* kondisi awal (sembunyi) */
.fade-item {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.8s ease;
}

/* saat muncul */
.fade-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* delay biar berurutan */
.fade-item:nth-child(1) { transition-delay: 0.2s; }
.fade-item:nth-child(2) { transition-delay: 0.4s; }
.fade-item:nth-child(3) { transition-delay: 0.6s; }

.couple-card:first-child {
  transform: translateX(-50px);
}

.couple-card:last-child {
  transform: translateX(50px);
}

.map {
  margin-top: 15px;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
} 

.info {
  padding: 80px 20px;
  text-align: center;
}

.info-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.info-card {
  color: black !important;
  width: 320px;
  padding: 30px;

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);

  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-card h3 {
  color: black !important;
  font-size: 22px;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.date {
  color: black !important;
  font-weight: bold;
  margin-bottom: 10px;
}

.place {
  color: black !important;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

.emoji-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.emoji-box span {
  font-size: 20px;
  cursor: pointer;
  transition: 0.2s;
}

.emoji-box span:hover {
  transform: scale(1.3);
}

.quote {
  margin-top: 30px;
  font-size: 14px !important;
  font-family: 'Dancing Script', cursive;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.quote span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  opacity: 0.7;
}

.quote::before {
  content: "❦";
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  opacity: 0.7;
}

.gift {
  padding: 80px 20px;
  text-align: center;
}

.gift-desc {
  max-width: 500px;
  margin: 0 auto 40px;
  font-size: 14px;
  opacity: 0.8;
}

.gift-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.gift-card {
  width: 280px;
  padding: 25px;

  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);

  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);

  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gift-card h3 {
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.bank {
  font-size: 14px;
  opacity: 0.7;
}

.rekening {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
  letter-spacing: 1px;
}

.gift-card button {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.gift-card button:hover {
  background: #333;
}

.gift-card:hover {
  transform: translateY(-5px);
  transition: 0.3s;
}

.footer {
  padding: 30px 20px;
  text-align: center;

  background: rgba(255, 172, 172, 0.8);
  color: #000000;

  backdrop-filter: blur(10px);
}

.footer p {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

.wa-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;

  color: #1b0401; /* warna WhatsApp */
  text-decoration: none;

  transition: 0.3s;
}

.wa-link:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.footer::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  margin: 0 auto 15px;
  background: rgba(255,255,255,0.3);
}