@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@700&display=swap');

:root {
    --soft-brown: #8e7366;
    --dark-text: #5d4a41;
    --bg-color: #f9f6f2;
}

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

body {
    background-color: #1a1a1a;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    /* align-items dihapus agar halaman panjang tidak terpotong di tengah */
    min-height: 100dvh; 
    overflow-x: hidden;
}

.mobile-wrapper {
    width: 100%;
    max-width: 450px;
    background-color: var(--bg-color);
    overflow-y: hidden; 
    overflow-x: hidden;
    position: relative;
    min-height: 100dvh;
}

/* Class tambahan yang dipicu JS */
.mobile-wrapper.unlocked {
    overflow-y: auto; 
}

.page {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    z-index: 10;
    background-color: var(--bg-color);
}

.hidden {
    display: none !important;
}

/* --- TATA LETAK BUNGA (FIXED POJOK) --- */

#page1::before, #page1::after, 
.content-area::before, .content-area::after {
    content: '';
    position: absolute;
    width: 160px; 
    height: 160px;
    background-image: url('https://res.cloudinary.com/dzuf3srww/image/upload/q_auto,f_auto/v1777904856/Bunga_daun_pojokan_h3ojpa.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1000;
    pointer-events: none;
    opacity: 0; 
    animation-duration: 1.5s, 5s; 
    animation-timing-function: ease-out, ease-in-out;
    animation-iteration-count: 1, infinite; 
    animation-fill-mode: forwards;
}

#page1 { position: relative; }
.content-area { position: relative; }

#page1::before {
    top: -30px; left: -30px;
    transform: rotate(280deg);
    animation-name: fadeInOnly, swayTL;
}
#page1::after {
    top: -30px; right: -30px;
    transform: scaleX(-1) rotate(280deg);
    animation-name: fadeInOnly, swayTR;
}
.content-area::before {
    bottom: -30px; left: -30px;
    transform: scaleY(-1) rotate(280deg);
    animation-name: fadeInOnly, swayBL;
}
.content-area::after {
    bottom: -30px; right: -30px;
    transform: scale(-1) rotate(280deg);
    animation-name: fadeInOnly, swayBR;
}

/* --- KEYFRAME ANIMASI --- */

@keyframes fadeInOnly {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes swayTL {
    0%, 100% { transform: rotate(280deg); }
    50% { transform: rotate(274deg); }
}

@keyframes swayTR {
    0%, 100% { transform: scaleX(-1) rotate(280deg); }
    50% { transform: scaleX(-1) rotate(274deg); }
}

@keyframes swayBL {
    0%, 100% { transform: scaleY(-1) rotate(280deg); }
    50% { transform: scaleY(-1) rotate(274deg); }
}

@keyframes swayBR {
    0%, 100% { transform: scaleX(-1) scaleY(-1) rotate(280deg); }
    50% { transform: scaleX(-1) scaleY(-1) rotate(274deg); }
}

/* --- LAYOUT FOTO & KONTEN --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 50dvh; 
    flex-shrink: 0; 
}

.main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; 
}

.image-overlay {
    position: absolute;
    bottom: -2px; 
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(249,246,242,0), rgba(249,246,242,1));
    z-index: 2;
}

.content-area {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 20px;
    margin-top: -30px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.the-wedding {
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--dark-text);
    margin-bottom: 19px;
    text-transform: uppercase;
}

.couple-name {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(35px, 9vw, 50px);
    color: var(--soft-brown);
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    position: relative;
    left: -5px;
}
.guest-box { margin-bottom: 25px; position: relative; top: 0px; }
.guest-name { 
    font-size: 1.4rem; 
    color: var(--dark-text); 
    font-weight: 600;
    position: relative;
    top: 8px;
}

/* --- TOMBOL --- */
.btn-open {
    --skala: 0.8; 
    display: inline-flex;
    align-items: center;
    gap: calc(12px * var(--skala));
    padding: calc(12px * var(--skala)) calc(35px * var(--skala));
    font-size: calc(16px * var(--skala));
    border-radius: calc(50px * var(--skala));
    background-color: #5d4a41; 
    color: #fdfdf5; 
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    z-index: 1001;
}

.btn-open:hover {
    background-color: #4a3b34;
}

.icon-envelope {
    width: calc(24px * var(--skala));   
    height: calc(18px * var(--skala));
    color: inherit; 
}


/* --- ANIMASI TOMBOL HILANG (GANTI JADI SATU BLOK INI SAJA) --- */
.btn-open.fade-out {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.5s ease !important;
    animation: none !important; 
}

/* --- ANIMASI MASUK --- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.the-wedding {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.couple-name {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.guest-box {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.btn-open {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

/* --- HALAMAN 2 --- */

#page2 {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4ece6; 
    padding: 20px;
}

.inner-card, .inner-card h1, .inner-card p, .photo-circle, .wedding-title, .date-highlight, .save-button {
    opacity: 0;
}

.tampilkan-animasi .inner-card { animation: fadeInUp 2s ease-out forwards; }
.tampilkan-animasi .photo-circle { animation: fadeInUp 1.5s ease-out 0.4s forwards; }
.tampilkan-animasi .wedding-title { animation: fadeInUp 1.5s ease-out 0.6s forwards; }
.tampilkan-animasi .inner-card h1 { animation: fadeInUp 1.5s ease-out 0.8s forwards; }
.tampilkan-animasi .inner-card p { animation: fadeInUp 1.5s ease-out 1.2s forwards; }
.tampilkan-animasi .date-highlight { animation: fadeInUp 1.5s ease-out 1.4s forwards; }
.tampilkan-animasi .save-button { animation: fadeInUp 1.5s ease-out 1.8s forwards; }

.inner-card {
    background-color: #fcf9f5;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(210, 180, 160, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(210, 180, 160, 0.2) 0%, transparent 50%);
    border-radius: 20px;
    padding: 60px 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    z-index: 1;
}

.inner-card h1 { 
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    font-weight: 400;
    color: #5a4a42;
    margin: 25px 0 10px 0;
}

.inner-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #8d7567;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.photo-circle {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    border: 1px solid #d4c1b0;
    padding: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
}

.wedding-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #5a4a42;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 20px;
}

.date-highlight {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #5a4a42;
    letter-spacing: 2px;
    margin: 15px 0;
    text-transform: uppercase;
    display: block;
}

.save-button {
    display: inline-block;
    background-color: #bfa895;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

/* BUNGA PAGE 2 */
.bunga-atas::before, .bunga-atas::after, .inner-card::before, .inner-card::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background-image: url('https://res.cloudinary.com/dzuf3srww/image/upload/q_auto,f_auto/v1777904856/Bunga_daun_pojokan_h3ojpa.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 20;
}

.bunga-atas::before { top: -30px; left: -40px; transform: scaleY(-1) rotate(185deg); animation: swayAtasKiri 5s infinite ease-in-out; }
.bunga-atas::after { top: -30px; right: -40px; transform: scale(-1) rotate(185deg); animation: swayAtasKanan 5s infinite ease-in-out; }
.inner-card::before { bottom: -30px; left: -40px; transform: scaleY(-1) rotate(260deg); animation: swayBawahKiri 5s infinite ease-in-out; }
.inner-card::after { bottom: -30px; right: -40px; transform: scale(-1) rotate(260deg); animation: swayBawahKanan 5s infinite ease-in-out; }

.tampilkan-animasi .bunga-atas { opacity: 1; transition: opacity 2s ease-out 0.2s; }
.bunga-atas { opacity: 0; }

@keyframes swayAtasKiri { 0%, 100% { transform: scaleY(-1) rotate(185deg); } 50% { transform: scaleY(-1) rotate(190deg) translateY(5px); } }
@keyframes swayAtasKanan { 0%, 100% { transform: scale(-1) rotate(185deg); } 50% { transform: scale(-1) rotate(190deg) translateY(5px); } }
@keyframes swayBawahKiri { 0%, 100% { transform: scaleY(-1) rotate(260deg); } 50% { transform: scaleY(-1) rotate(265deg) translateY(-5px); } }
@keyframes swayBawahKanan { 0%, 100% { transform: scale(-1) rotate(260deg); } 50% { transform: scale(-1) rotate(265deg) translateY(-5px); } }
/* --- HALAMAN 3 --- */

#page3 {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: #fdfaf7;
    z-index: 5;
    overflow: visible;
}


.mempelai-section {
    width: 100%;
    padding: 60px 20px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.label-mempelai {
    font-family: 'Great Vibes', cursive;
    /* Menggunakan Deep Mocha agar elegan dan menyatu dengan tema */
    color: #5d4a41;
    text-shadow: none;
    font-size: 2.2rem;
    font-weight: 400;
    text-align: center;
    display: block;
    width: 100%;
    margin: 15px auto 0px auto;
    /* Margin bawah dinolkan supaya lebih rapat dengan nama */
    letter-spacing: 1px;
}
.mempelai-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- WADAH HALAMAN 3 --- */
.mempelai-container {
    background: #ffffff; /* Ini yang membuat wadah putih muncul */
    padding: 50px 25px;
    border-radius: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    /* Shadow agar terlihat melayang di atas background krem */
    box-shadow: 0 10px 30px rgba(166, 139, 119, 0.08); 
    border: 1px solid rgba(166, 139, 119, 0.12);
    position: relative;
    margin: 0 auto;
    overflow: visible !important; /* Penting agar bunga pojok tidak terpotong */
}
 
/* Memastikan elemen di dalamnya tidak meluber */
.mempelai-section {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fdfaf7; /* Warna dasar halaman */
}

/* Tambahan: Styling untuk Icon Instagram jika kamu pakai FontAwesome */
.social-icon {
    color: #8e7366;
    font-size: 1.2rem;
    text-decoration: none;
    margin-top: 5px;
    transition: 0.3s;
    display: inline-block;
}

.social-icon:hover {
    color: #5d4a41;
}

.image-wrapper {
    position: relative;
    width: 240px;
    height: 320px;
    margin: 30px auto;
    padding: 10px;
    border: 2px solid #d4b99a;
    border-radius: 120px 120px 25px 25px;
    z-index: 2;
    background: white;
}

.profile-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 110px 110px 20px 20px;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

.profile-img.cewek { object-position: center 10% !important; }
.profile-img.cowok { object-position: center 20% !important; }

.nama-mempelai {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #8e7366;
    letter-spacing: 3px;
    /* Jarak antar huruf diperlebar agar terlihat mahal */
    text-align: center;
}
.orang-tua {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #7a6a5e;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

.divider-ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #a68b77;
    margin: 40px 0;
    text-align: center;
}

.image-wrapper::before {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -15px;
    width: 130px;
    height: 130px;
    background-image: url('https://www.transparentpng.com/download/watercolor-flower/dry-flower-element-png-I9z8K1.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 3;
}

.mempelai-container::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background-image: url('https://www.transparentpng.com/download/watercolor-flower/boho-dry-flower-decoration-png-V2J7mN.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    pointer-events: none;
}

/* --- DEKORASI 4 BUNGA POJOK PAGE 3 --- */

/* Base setup untuk semua bunga di sudut container */
.mempelai-container::before,
.mempelai-container::after,
.bunga-corner-bottom::before,
.bunga-corner-bottom::after {
    content: '';
    position: absolute;
    width: 150px;
    /* Ukuran bunga */
    height: 150px;
    background-image: url('https://res.cloudinary.com/dzuf3srww/image/upload/q_auto,f_auto/v1777904856/Bunga_daun_pojokan_h3ojpa.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 20;
    opacity: 1 !important;
}

/* --- SUDUT ATAS --- */
/* Pojok Kiri Atas */
.mempelai-container::before {
    top: -35px;
    left: -35px;
    transform: scaleY(-1) rotate(185deg);
    animation: swayAtasKiri 5s infinite ease-in-out;
}

/* Pojok Kanan Atas */
.mempelai-container::after {
    top: -35px;
    right: -35px;
    transform: scale(-1) rotate(185deg);
    animation: swayAtasKanan 5s infinite ease-in-out;
    background-image: url('https://res.cloudinary.com/dzuf3srww/image/upload/q_auto,f_auto/v1777904856/Bunga_daun_pojokan_h3ojpa.png') !important;
}

/* --- SUDUT BAWAH --- */
.bunga-corner-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Pojok Kiri Bawah */
.bunga-corner-bottom::before {
    bottom: -35px;
    left: -35px;
    transform: scaleY(-1) rotate(260deg);
    animation: swayBawahKiri 5s infinite ease-in-out;
}

/* Pojok Kanan Bawah */
.bunga-corner-bottom::after {
    bottom: -35px;
    right: -35px;
    transform: scale(-1) rotate(260deg);
    animation: swayBawahKanan 5s infinite ease-in-out;
}

/* --- MEMASTIKAN CONTAINER OVERFLOW VISIBLE --- */
.mempelai-container {
    overflow: visible !important;
}

.mempelai-section {
    overflow: visible !important;
}
/* --- ANIMASI SIDE SLIDE (PER ELEMEN) --- */

/* 1. Kondisi Awal (Wanita dari Kiri) */
.mempelai-card:first-of-type {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Kondisi Awal (Pria dari Kanan) */
.mempelai-card:last-of-type {
    opacity: 0;
    transform: translateX(80px);
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 3. Kondisi Awal (Divider Ampersand) */
.divider-ampersand {
    opacity: 0;
    transform: scale(0.5);
    transition: all 1.2s ease-out;
}

/* --- STATE MUNCUL (Saat JS menempelkan class .muncul) --- */
.mempelai-card.muncul,
.divider-ampersand.muncul {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* --- ANIMASI ISI KARTU (Berurutan setelah kartu muncul) --- */
.label-mempelai, .image-wrapper, .nama-mempelai, .orang-tua {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

/* Saat kartu bapaknya muncul, anaknya ikut muncul berurutan */
.mempelai-card.muncul .label-mempelai { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.mempelai-card.muncul .image-wrapper   { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }
.mempelai-card.muncul .nama-mempelai   { opacity: 1; transform: translateY(0); transition-delay: 1.0s; }
.mempelai-card.muncul .orang-tua      { opacity: 1; transform: translateY(0); transition-delay: 1.3s; }

/* --- HALAMAN 4: QUOTES --- */
#page4 {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fdfaf7;
    padding: 100px 20px;
    z-index: 5;
    overflow: hidden;
}



.quotes-container {
    background: #ffffff;
    padding: 60px 30px 50px 30px; 
    border-radius: 30px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(166, 139, 119, 0.08);
    border: 1px solid rgba(166, 139, 119, 0.12);
    position: relative;
    
    /* URUTAN 2: Kotak Quotes muncul sedikit terlambat */
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s ease-out 0.5s; /* Delay 0.5 detik */
}

#page4.muncul .quotes-container {
    opacity: 1;
    transform: translateY(0);
}

/* Base Style Bunga */
.quotes-container::before,
.quotes-container::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 120px;
    height: 120px;
    background-image: url('https://res.cloudinary.com/dzuf3srww/image/upload/q_auto,f_auto/v1777904856/Bunga_daun_pojokan_h3ojpa.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 2;
}

/* URUTAN 1: Bunga Atas (Muncul paling pertama) */
.quotes-container::before {
    top: -40px;
    transform: translateX(-50%) scale(1) rotate(315deg);
    transition: opacity 1s ease 0.2s; /* Delay cuma 0.2 detik */
}

/* URUTAN 3: Bunga Bawah (Muncul paling terakhir) */
.quotes-container::after {
    bottom: -45px;
    transform: translateX(-50%) rotate(135deg) scale(1);
    transition: opacity 1s ease 1.2s; /* Delay 1.2 detik */
}

/* Trigger Animasi Sway & Fade In */
#page4.muncul .quotes-container::before {
    opacity: 0.85;
    animation: swayAtas 4s ease-in-out infinite;
}

#page4.muncul .quotes-container::after {
    opacity: 0.85;
    animation: swayBawah 4s ease-in-out infinite;
}

/* Keyframes Sway */
@keyframes swayAtas {
    0%, 100% { transform: translateX(-50%) rotate(315deg) scale(1); }
    50% { transform: translateX(-52%) rotate(310deg) scale(1.02); }
}

@keyframes swayBawah {
    0%, 100% { transform: translateX(-50%) rotate(135deg) scale(1); }
    50% { transform: translateX(-48%) rotate(140deg) scale(1.02); }
}

/* Font Styling */
.basmalah { font-family: 'Amiri', serif; font-size: 1.4rem; color: #a68b77; margin-bottom: 15px; }
.ayat-arab { font-family: 'Amiri', serif; font-size: 1.25rem; line-height: 2.2; color: #5d4a41; margin-bottom: 20px; direction: rtl; }
.divider-quotes { width: 40px; height: 1px; background-color: #d4b99a; margin: 15px auto; opacity: 0.6; }
.arti-ayat { font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-style: italic; color: #8e7366; line-height: 1.8; margin-bottom: 12px; }
.surah-name { font-family: 'Cinzel', serif; font-size: 0.7rem; font-weight: 700; color: #a68b77; letter-spacing: 2px; text-transform: uppercase; }

/* --- HALAMAN 5: LOVE STORY --- */
#page5 {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    background-color: #fdfaf7;
    padding: 20px 20px 20px 20px;
    z-index: 5;
    overflow: hidden; /* Mencegah horizontal scroll saat animasi */
}

/* Status awal Page 5 sebelum muncul */
#page5.hidden {
    display: none;
}

.story-title {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

/* Trigger saat page5 mendapat class 'muncul' dari Observer */
#page5.muncul .story-title {
    opacity: 1;
    transform: translateY(0);
}

.story-title h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #8e7366;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Garis Tengah Timeline */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #d4b99a 10%, #d4b99a 90%, transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Base Style Item */
.timeline-item {
    padding: 20px 30px;
    position: relative;
    width: 50%;
    opacity: 0;
    /* Transisi smooth menggunakan cubic-bezier */
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Arah Animasi Berbeda (Kiri & Kanan) */
.timeline-item.left { 
    left: 0; 
    transform: translateX(-50px); 
    text-align: right;
}
.timeline-item.right { 
    left: 50%; 
    transform: translateX(50px); 
    text-align: left;
}

/* Munculkan Item saat class 'muncul' ditambahkan oleh JS */
.timeline-item.muncul {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Titik Tengah (Bulatan) */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #fdfaf7;
    border: 2px solid #d4b99a;
    top: 35px; /* Sesuaikan dengan posisi konten */
    border-radius: 50%;
    z-index: 2;
}

/* Posisi Bulatan: Item Kiri di Kanan, Item Kanan di Kiri */
.timeline-item.left::after {
    right: -6px;
}
.timeline-item.right::after {
    left: -6px;
}

/* Content Box */
.timeline-content {
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(166, 139, 119, 0.05);
    border: 1px solid rgba(166, 139, 119, 0.1);
}

.story-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #a68b77;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.timeline-content h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: #5d4a41;
    margin-bottom: 8px;
}

.timeline-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: #7a6a5e;
    line-height: 1.7;
    margin: 0;
}

/* --- Responsive (Mobile View) --- */
@media screen and (max-width: 600px) {
    .timeline::after { 
        left: 20px; 
        transform: none;
    }
    
    .timeline-item { 
        width: 100%; 
        padding-left: 45px; 
        padding-right: 10px; 
        left: 0 !important; /* Paksa ke kiri */
        text-align: left !important;
        transform: translateY(30px); /* Animasi dari bawah ke atas di mobile lebih cantik */
    }

    .timeline-item.left {
        transform: translateY(30px);
    }

    .timeline-item.right {
        transform: translateY(30px);
    }

    /* Titik dipindah ke kiri semua sesuai garis */
    .timeline-item::after { 
        left: 14px !important; 
        right: auto !important;
    }
    
    .timeline-item.muncul {
        transform: translateY(0) !important;
    }
}
/* --- RESET & CONTAINER --- */
#page6 {
    padding: 60px 15px;
    background-color: #fdfaf7;
    display: flex;
    justify-content: center;
}

.std-card {
    background: white;
    width: 100%;
    max-width: 360px;
    border-radius: 25px;
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(142, 115, 102, 0.1);
    text-align: center;
    position: relative;
    border: 1px solid rgba(212, 185, 154, 0.2);
}

/* --- JUDUL & TIMER --- */
.std-title {
    font-family: 'Cinzel', serif;
    color: #8e7366;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.timer-box {
    background: #fdfaf7;
    border: 1px solid #eee;
    padding: 8px;
    min-width: 60px;
    border-radius: 10px;
}

.timer-box span {
    display: block;
    font-weight: bold;
    color: #8e7366;
    font-size: 1.1rem;
}

.std-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #a68b77;
    margin-bottom: 30px;
}

/* --- FOTO & BUNGA --- */
.std-photo-area {
    position: relative;
    margin: 20px auto 40px;
    width: 200px; /* Ukuran foto lebih kecil agar bunga muat */
}

.photo-border {
    border: 8px solid #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 100px 100px 10px 10px; /* Bentuk Kubah */
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.photo-border img {
    width: 100%;
    display: block;
}

.flower-decor {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: url('https://res.cloudinary.com/dzuf3srww/image/upload/v1777899582/bunga-undangan.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 3;
}

.f-left {
    top: -20px;
    left: -50px;
    transform: rotate(-15deg);
}

.f-right {
    bottom: -20px;
    right: -50px;
    transform: rotate(160deg);
}

/* --- LOKASI --- */
.std-location h4 {
    font-family: 'Cinzel', serif;
    color: #5d4a41;
    margin-bottom: 10px;
}

.std-location p {
    font-size: 0.8rem;
    color: #7a6a5e;
    line-height: 1.6;
}

.btn-maps {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background: #8e7366;
    color: white !important;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Animasi sederhana */
/* --- ANIMASI POP-UP SLOW MOTION --- */

/* 1. Kondisi Awal: Kecil dan Hilang */
.std-title, 
.timer-box, 
.std-date,
.std-location h4,
.std-location p,
.btn-maps {
    opacity: 0;
    transform: scale(0.5); /* Mulai dari setengah ukuran */
    /* Durasi ditambah jadi 1.5 detik agar lebih lambat */
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1); 
}

/* 2. Animasi Judul & Tanggal (Sangat Halus) */
#page6.muncul .std-title {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.3s;
}

#page6.muncul .std-date {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.6s; 
}

/* 3. Animasi Countdown (Muncul Bergantian Pelan-pelan) */
/* Jeda antar kotak dibuat 0.3 detik agar transisinya mengalir pelan */
#page6.muncul .timer-box:nth-child(1) { opacity: 1; transform: scale(1); transition-delay: 0.9s; }
#page6.muncul .timer-box:nth-child(2) { opacity: 1; transform: scale(1); transition-delay: 1.2s; }
#page6.muncul .timer-box:nth-child(3) { opacity: 1; transform: scale(1); transition-delay: 1.5s; }
#page6.muncul .timer-box:nth-child(4) { opacity: 1; transform: scale(1); transition-delay: 1.8s; }

/* 4. Bagian Lokasi & Tombol (Paling Terakhir Muncul) */
#page6.muncul .std-location h4 { opacity: 1; transform: scale(1); transition-delay: 2.1s; }
#page6.muncul .std-location p  { opacity: 1; transform: scale(1); transition-delay: 2.3s; }
#page6.muncul .btn-maps        { opacity: 1; transform: scale(1); transition-delay: 2.6s; }

/* Bunga muncul dengan gerakan sangat lambat di akhir */
.f-left, .f-right {
    opacity: 0;
    transform: scale(0);
    transition: all 2s cubic-bezier(0.22, 1, 0.36, 1) 2.8s;
}

#page6.muncul .f-left { opacity: 1; transform: scale(1) rotate(-15deg); }
#page6.muncul .f-right { opacity: 1; transform: scale(1) rotate(160deg); }

/* Card Utama muncul perlahan */
.std-card {
    opacity: 0;
    transition: opacity 2s ease;
}

#page6.muncul .std-card {
    opacity: 1;
}

/* --- HALAMAN 7: OUR GALLERY --- */
#page7 {
    padding: 100px 10px; 
    background-color: #fdfaf7;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-container {
    width: 100%;
    max-width: 600px; 
    z-index: 5;
    position: relative;
}

.gallery-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #8e7366;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    margin-top: 0px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
}

/* --- PERBAIKAN POSISI GAMBAR SESUAI FOTO --- */

/* Gambar 1 (Paling Atas) */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    aspect-ratio: 16 / 10; 
}
.gallery-item:nth-child(1) img {
    object-fit: cover;
    object-position: 30% 30%; /* Fokus atas: Kepala aman */
}

/* Gambar 2, 3, 5 (Tengah) - Tetap berkelompok */
.gallery-item:nth-child(2),
.gallery-item:nth-child(3),
.gallery-item:nth-child(5) {
    aspect-ratio: 1 / 1.1; 
}

/* Gambar 4 - Sekarang terpisah agar bisa diatur khusus */
.gallery-item:nth-child(4) {
    aspect-ratio: 1 / 1.1; /* Sesuaikan rasio jika perlu */
}
.gallery-item:nth-child(4) img {
    object-fit: cover;
    /* Silakan ubah nilai di bawah ini untuk mengatur fokusnya */
    object-position: 0% 0%; 
}

/* Gambar 6 (Paling Bawah) */
.gallery-item:nth-child(6) {
    grid-column: span 2;
    aspect-ratio: 16 / 9; 
}
.gallery-item:nth-child(6) img {
    object-fit: cover;
    object-position: 10% 42%; /* Fokus atas: Kepala aman */
}

/* --- ANIMASI FOTO: SLIDE UP REVEAL --- */
.gallery-item {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(166, 139, 119, 0.2);
    border: 1px solid rgba(166, 139, 119, 0.2);
    
    /* Keadaan awal: Transparan dan Bergeser ke Bawah (30px) */
    opacity: 0;
    transform: translateY(30px);
    
    /* Transisi menggunakan cubic-bezier agar pergerakan naiknya terlihat halus/premium */
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 10;
}

.gallery-item.muncul {
    /* Keadaan akhir: Muncul penuh dan Kembali ke posisi asli */
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Jeda muncul foto (Staggered) agar mengalir satu per satu */
.gallery-item:nth-child(1) { transition-delay: 0.1s; }
.gallery-item:nth-child(2) { transition-delay: 0.3s; }
.gallery-item:nth-child(3) { transition-delay: 0.5s; }
.gallery-item:nth-child(4) { transition-delay: 0.7s; }
.gallery-item:nth-child(5) { transition-delay: 0.9s; }
.gallery-item:nth-child(6) { transition-delay: 1.1s; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --- ANIMASI GOYANG DAUN MELAMBAI HALUS --- */
@keyframes wavingTop {
    0% { transform: translateX(-50%) translateY(0) rotate(315deg) scale(1); }
    50% { transform: translateX(-48%) translateY(5px) rotate(320deg) scale(1.05); }
    100% { transform: translateX(-50%) translateY(0) rotate(315deg) scale(1); }
}

@keyframes wavingBottom {
    0% { transform: translateX(-50%) translateY(0) rotate(135deg) scale(1); }
    50% { transform: translateX(-52%) translateY(-5px) rotate(130deg) scale(1.05); }
    100% { transform: translateX(-50%) translateY(0) rotate(135deg) scale(1); }
}

.leaf-ornament {
    position: absolute;
    width: 120px; 
    opacity: 1 !important; 
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    pointer-events: none;
    z-index: 1;
    transform-origin: center; 
}

.top-right {
    top: 10px;
    left: 50%;
    animation: wavingTop 6s ease-in-out infinite;
}

.bottom-left {
    bottom: 10px;
    left: 50%;
    animation: wavingBottom 7s ease-in-out infinite;
}

.mobile-wrapper {
    max-width: 600px !important; 
}


/* --- HALAMAN 8: WEDDING GIFT --- */
#page8 {
    padding: 100px 20px;
    background-color: #fdfaf7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gift-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.gift-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #8e7366;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.gift-subtitle {
    font-size: 0.9rem;
    color: #a68b77;
    line-height: 1.6;
    margin-bottom: 40px;
}

.gift-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(166, 139, 119, 0.12);
    border: 1px solid rgba(166, 139, 119, 0.15);
    position: relative;
    overflow: hidden;
}
/* --- Styling Logo Bank di Page 8 --- */
.bank-logo {
    width: 140px;          /* Lebar logo Mandiri agar proporsional */
    height: auto;
    margin: 0 auto 20px;   /* Tengah secara horizontal dan beri jarak ke bawah */
    display: block;        /* Wajib agar margin auto bekerja */
    
    /* Opsional: Jika ingin logo lebih menyatu dengan tema earth-tone, 
       bisa gunakan grayscale atau sepia. Hapus baris ini jika ingin warna asli */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05)); 
    
    transition: transform 0.3s ease;
}

/* Sedikit efek hover agar interaktif */
.bank-logo:hover {
    transform: scale(1.05);
}

/* Penyesuaian ukuran logo di layar HP kecil */
@media (max-width: 480px) {
    .bank-logo {
        width: 110px;      /* Sedikit lebih kecil di HP agar tidak penuh */
        margin-bottom: 15px;
    }
}


.bank-label {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #8e7366;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.account-details {
    margin-bottom: 25px;
}

.account-number {
    font-size: 1.4rem;
    font-weight: 600;
    color: #5d4a41;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.account-holder {
    font-size: 1rem;
    color: #8e7366;
    text-transform: uppercase;
}

.copy-button {
    background-color: #8e7366;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(142, 115, 102, 0.3);
}

.copy-button:hover {
    background-color: #a68b77;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(142, 115, 102, 0.4);
}

.copy-button:active {
    transform: translateY(0);
}

/* --- Tambahan untuk Animasi Muncul --- */
.gift-card {
    opacity: 0;
    transform: translateY(30px); /* Sedikit naik ke atas saat muncul */
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Saat terkena scroll (Intersection Observer aktif) */
.gift-card.muncul {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Tambahan: Efek saat tombol diklik (feedback visual) */
.copy-button:active {
    transform: scale(0.95);
    background-color: #7a6358;
}

/* Memastikan teks subtitle tidak terlalu lebar di layar HP */
@media (max-width: 480px) {
    .gift-subtitle {
        padding: 0 15px;
        font-size: 0.85rem;
    }
    .account-number {
        font-size: 1.2rem;
    }
}

 /* Halaman 9 */ 
 .wish-section {
    padding: 60px 20px;
    background-color: #f9f6f2; /* Warna krem lembut */
    text-align: center;
}
/* Penataan Section Utama */
.wish-section {
    padding: 80px 20px; /* Memberi ruang atas dan bawah */
    background-color: #fcfaf7; /* Warna background krem sangat muda agar hangat */
    text-align: center;
}

/* Container untuk menjaga lebar konten */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Styling Judul (H2) */
.title {
    font-size: 2.5rem;
    color: #b89150; /* Warna emas muted yang elegan */
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Styling Subtitle (P) */
.subtitle {
    font-family: 'Assistant', sans-serif; /* Font sans-serif agar mudah dibaca */
    font-size: 1.1rem;
    color: #666; /* Warna abu-abu gelap agar kontrasnya pas */
    margin-bottom: 40px; /* Jarak ke konten di bawahnya (misal form/list) */
    font-style: italic;
}

/* Efek Responsif untuk Layar Kecil (HP) */
@media (max-width: 768px) {
    .wish-section {
        padding: 50px 15px;
    }
    
    .title {
        font-size: 2rem;
    }
}


.wish-form {
    max-width: 500px;
    margin: 0 auto 40px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.wish-form input, .wish-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Segoe UI', sans-serif;
}

.wish-form button {
    background-color: #d4a373; /* Warna gold/brown */
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.wish-form button:hover {
    background-color: #bc8a5f;
}

.wish-list {
    max-width: 600px;
    margin: 0 auto;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    padding: 10px;
}

.wish-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 5px solid #d4a373;
}

.wish-item h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1em;
}

.wish-item p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
}
/* Statistik */
.wish-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    min-width: 80px;
}

.stat-item span {
    display: block;
    font-weight: bold;
    font-size: 1.5em;
    color: #d4a373;
}

.stat-item p {
    margin: 0;
    font-size: 0.8em;
    color: #888;
}

/* Form Styling */
.select-kehadiran {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    font-family: inherit;
}

/* Label Hadir/Tidak Hadir di Nama */
.badge-status {
    font-size: 0.7em;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 8px;
    font-weight: normal;
}

.badge-hadir {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.badge-absen {
    background-color: #ffebee;
    color: #c62828;
}

/* Animasi muncul (untuk observer) */
#page9 {
    transition: all 1s ease-out;
    opacity: 0;
    transform: translateY(30px);
}

#page9.muncul {
    opacity: 1;
    transform: translateY(0);
}

/* --- WADAH SCROLL PESAN (WISH LIST) --- */
.wish-list {
    max-width: 100%;
    margin-top: 30px;
    
    /* PENTING: Batasi tinggi wadah agar muncul scrollbar */
    max-height: 400px; 
    overflow-y: auto; 
    
    /* Padding kanan memberi ruang untuk scrollbar agar tidak menutupi teks */
    padding: 10px 15px 10px 10px; 
    
    /* Smooth scroll di mobile */
    -webkit-overflow-scrolling: touch; 
    
    /* Sembunyikan scrollbar bawaan browser jika ingin terlihat lebih clean (opsional) */
    scrollbar-width: thin;
    scrollbar-color: #d4a373 #f9f6f2;
}

/* Custom tampilan scrollbar untuk Chrome/Safari */
.wish-list::-webkit-scrollbar {
    width: 6px;
}

.wish-list::-webkit-scrollbar-track {
    background: #f9f6f2;
    border-radius: 10px;
}

.wish-list::-webkit-scrollbar-thumb {
    background: #d4a373;
    border-radius: 10px;
}

/* Styling isi pesan agar lebih cantik */
.wish-item {
    background: white;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(166, 139, 119, 0.08);
    border-left: 4px solid #d4a373;
    text-align: left;
}

.wish-item h4 {
    font-size: 0.95rem;
    color: #5d4a41;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.wish-item p {
    font-size: 0.85rem;
    color: #7a6a5e;
    line-height: 1.5;
    margin: 0;
    
    /* Tambahkan ini */
    overflow-wrap: break-word; /* Memastikan kata panjang patah ke bawah */
    word-wrap: break-word;      /* Dukungan untuk browser lama */
    hyphens: auto;              /* (Opsional) Menambah tanda hubung otomatis */
}

/* CSS UNTUK KOTAK LONJONG (TOAST) - VERSI 2 BARIS */
/* CSS TOAST NOTIFIKASI - FIX RATA TENGAH PRESISI */
.toast-notif {
    position: fixed;
    bottom: 60px; 
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    
    /* Warna Krem Mewah */
    background: rgba(245, 240, 230, 0.95); 
    color: #5d4e40; 
    
    /* --- PERBAIKAN RATA TENGAH --- */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* ---------------------------- */

    padding: 14px 20px;
    width: 280px;            
    white-space: normal;      
    line-height: 1.5;        
    border-radius: 25px;      
    
    font-size: 0.85rem;
    font-weight: 600;
    
    /* Layering & Shadow */
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    
    /* Transisi Animasi Membal */
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Saat Toast Muncul */
.toast-notif.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Memastikan baris baru tetap di tengah */
.toast-notif br {
    display: block;
    content: "";
    margin-top: 4px;
}
/* --- Halaman 10 & Container --- */
/* Container Utama */
.page-container {
    padding: 80px 40px;
    background-color: #fcfbf7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Ornamen Atas */
.top-ornament {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.top-ornament .line {
    width: 30px;
    height: 1px;
    background-color: #8d775f;
}

.top-ornament .leaf-icon {
    color: #8d775f;
    font-size: 1.2rem;
}

/* Header Nama */
.couple-signature {
    margin-bottom: 40px;
}

.couple-signature .name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 500;
    color: #6b5a4a;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.couple-signature .ampersand {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #c5b4a2;
    margin: 0 10px;
}

/* Frame Foto - SEKARANG TEGAK LURUS */
.photo-wrapper {
    margin-bottom: 50px;
}

.photo-frame {
    width: 280px;
    background-color: #fff;
    padding: 15px 15px 60px 15px; /* Area bawah lebih lebar untuk kesan polaroid */
    box-shadow: 0 20px 40px rgba(141, 119, 95, 0.12); /* Shadow lembut */
    /* HAPUS: transform: rotate(2deg); */
    transform: rotate(0deg); /* Pastikan tegak lurus */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); /* Transisi lebih halus */
}

.photo-frame:hover {
    /* HAPUS: transform: rotate(0deg) scale(1.05); */
    transform: scale(1.03); /* Hanya sedikit membesar saat hover */
}

.photo-frame img {
    width: 100%;
    aspect-ratio: 4/5; /* Rasio potret lebih elegan */
    object-fit: cover;
    filter: brightness(0.98) contrast(1.02);
}

/* Teks Penutup */
.title-closing {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #8d775f;
    margin-bottom: 20px;
    font-weight: 400;
}

.message {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #7a6e63;
    max-width: 300px;
    margin: 0 auto 40px;
}

.closing-quote {
    margin-top: 15px;
    font-style: italic;
    color: #8d775f;
    font-weight: 500;
}

/* Signature Akhir */
.final-signature p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a69689;
    margin-bottom: 10px;
}

.couple-names {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.4rem !important;
    color: #6b5a4a !important;
    font-weight: 600 !important;
    text-transform: none !important;
}
/* --- Penambahan Animasi (Tanpa Menghapus Kode Asli) --- */

/* 1. State Awal: Sembunyikan elemen & geser sedikit ke bawah */
.top-ornament, 
.couple-signature, 
.photo-frame, 
.title-closing, 
.message, 
.final-signature {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Khusus Photo Frame agar transisinya tetap mulus dengan efek hover Anda */
.photo-frame {
    transform: translateY(40px) rotate(0deg);
}

/* 2. State Aktif: Muncul saat class .active ditambahkan ke .page-container */
.page-container.active .top-ornament,
.page-container.active .couple-signature,
.page-container.active .photo-frame,
.page-container.active .title-closing,
.page-container.active .message,
.page-container.active .final-signature {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Delay Beruntun (Staggered Effect) agar muncul satu per satu dari atas ke bawah */
.page-container.active .top-ornament { transition-delay: 0.2s; }
.page-container.active .couple-signature { transition-delay: 0.4s; }
.page-container.active .photo-frame { transition-delay: 0.6s; }
.page-container.active .title-closing { transition-delay: 0.8s; }
.page-container.active .message { transition-delay: 1.0s; }
.page-container.active .final-signature { transition-delay: 1.2s; }

/* Menjaga fungsi hover asli Anda tetap bekerja setelah animasi selesai */
.page-container.active .photo-frame:hover {
    transform: scale(1.03) translateY(0);
}
 /* Halaman 11 */
#page11 { 
    width: 100%; 
    min-height: 100vh; 
    position: relative; 
    overflow: hidden; 
}

.hero-wrapper {
    width: 100%; 
    height: 100vh;
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative; 
    text-align: center; 
}

/* Slider Background */
.bg-slider-hero {
    position: absolute; 
    top: 0; left: 0;
    width: 500%; 
    height: 100%;
    display: flex; 
    z-index: 1;
    animation: slideHeroBg 25s infinite ease-in-out;
}

.bg-slide {
    width: 20%; 
    height: 100%;
    background-size: cover; 
    background-position: center;
    /* Menambahkan filter agar foto tidak terlalu 'nabrak' teks */
    filter: brightness(0.7) sepia(0.2); 
}

/* Overlay: Menggunakan gradasi Earth-Tone yang lebih pekat di bawah */
.hero-overlay {
    position: absolute; 
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, 
                rgba(68, 59, 49, 0.4) 0%, 
                rgba(34, 28, 23, 0.85) 100%);
    z-index: 2;
}

.hero-content { 
    position: relative; 
    z-index: 3; 
    padding: 30px; 
    max-width: 350px;
    color: #fdfaf7; /* Off-white agar lebih lembut */
}

/* Logo & Teks */
.logo-box-new img {
    width: 110px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.logo-box-new img:hover {
    transform: scale(1.1);
}

.brand-name { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.5rem; 
    letter-spacing: 6px; 
    margin: 0;
    color: #e0d5c1; /* Gold pucat */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.brand-sub { 
    font-size: 0.85rem; 
    letter-spacing: 4px; 
    margin-bottom: 20px; 
    text-transform: uppercase;
    color: #c5b4a2;
}

.brand-description { 
    font-size: 0.95rem; 
    font-weight: 300; 
    line-height: 1.7; 
    margin-bottom: 25px; 
    opacity: 0.9;
}

/* Voucher Box: Diperkecil & Margin disesuaikan */
.voucher-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(224, 213, 193, 0.5); 
    padding: 10px 15px; /* Ukuran padding diperkecil */
    border-radius: 12px; 
    cursor: pointer;
    transition: 0.3s;
    max-width: 280px; /* Batas lebar agar lebih ramping */
    margin: 0 auto 20px auto; /* Margin bawah untuk jarak ke tombol */
}

.voucher-box:hover {
    background: rgba(255, 255, 255, 0.1);
}

.voucher-box small {
    display: block;
    font-size: 0.65rem; /* Ukuran teks diperkecil */
    color: #c5b4a2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.voucher-box .code { 
    font-size: 1.1rem; /* Ukuran kode diperkecil */
    font-weight: 700; 
    letter-spacing: 3px; 
    margin: 4px 0; /* Margin antar teks dipersempit */
    color: #e0d5c1;
}

.voucher-box .hint {
    font-size: 0.6rem; /* Ukuran hint diperkecil */
    opacity: 0.7;
}
/* Tambahan agar saat diklik ada efek sedikit membal */
.voucher-box:active {
    transform: scale(0.96);
}

/* Toast Voucher */
.toast-notif {
    position: fixed;
    bottom: 80px; /* Sedikit lebih naik agar tidak tertutup jari */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    /* Latar belakang krem terang transparan (Glassmorphism) */
    background: rgba(224, 213, 193, 0.9); 
    /* Warna teks cokelat gelap agar kontras */
    color: #4a3f35; 
    padding: 10px 22px;
    border-radius: 50px; 
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animasi membal/bounce */
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.toast-notif.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Tombol Pesan: Berada di bawah Voucher */
.cta-button {
    display: inline-block; 
    padding: 14px 35px;
    background: #8b7969; /* Earth brown */
    color: #fff;
    text-decoration: none; 
    border-radius: 8px;
    font-weight: 600; 
    margin-bottom: 30px; /* Jarak ke sosmed */
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.cta-button:hover {
    background: #6b5a4a;
    transform: scale(1.05);
}

/* Icon Sosmed: Berada di paling bawah */
.social-links { 
    display: flex; 
    justify-content: center; 
    gap: 25px; 
    margin-bottom: 10px; 
}

.social-links a { 
    color: #e0d5c1; 
    font-size: 1.6rem; 
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover { 
    color: #fff; 
    transform: translateY(-5px); 
}

/* Keyframes Slider */
@keyframes slideHeroBg {
    0%, 15% { transform: translateX(0%); }
    20%, 35% { transform: translateX(-20%); }
    40%, 55% { transform: translateX(-40%); }
    60%, 75% { transform: translateX(-60%); }
    80%, 95% { transform: translateX(-80%); }
    100% { transform: translateX(0%); }
}

/* --- STYLE PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 200px;
    height: auto;
    display: block;
    margin: 20px auto; /* '20px' mengatur jarak atas-bawah, 'auto' tetap di tengah */
    
    /* Tambahkan ini jika ingin menggeser ke samping secara manual */
    position: relative;
    left: -3px; /* Geser ke kiri 10px */
    top: -40px;  /* Geser ke atas 50px */
    
    animation: pulse 2s infinite ease-in-out;
}


.loader-text {
    margin-top: 15px;
    /* Font sans-serif bulat agar senada dengan logonya */
    font-family: 'Inter', 'Assistant', 'Arial', sans-serif; 
    /* Mengambil warna paling terang dari logo */
    color: #1AC0C4; 
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.loader-line {
    margin-top: 25px;
    width: 120px;
    height: 3px; /* Sedikit lebih tebal agar seimbang dengan font logo yang bold */
    background: rgba(26, 192, 196, 0.15);
    position: relative;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    /* Menggunakan gradasi linear seperti pada ikon amplop di logo */
    background: linear-gradient(90deg, #1AC0C4, #0E8D91); 
    animation: loading-bar 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}



/* --- KEYFRAMES --- */
@keyframes pulse {
    0%, 100% { transform: scale(0.98); opacity: 0.9; }
    50% { transform: scale(1.02); opacity: 1; }
}


@keyframes loading-bar {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

/* Menghilangkan Preloader */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
