:root {
            --primary-color: #8b0000;
            --accent-color: #d4af37;
            --bg-light: #fffdf9;
            --text-light: #f4f6f4;
            --text-dark: #2c3e50;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            color: var(--text-dark);
            background-color: var(--bg-light);
            overflow-x: hidden;
            scroll-behavior: smooth;
            perspective: 2000px;
        }

        body.locked {
            overflow: hidden;
        }

        /* --- ORNAMEN CHINESE CORNER UTAMA (4 POJOK HALAMAN) --- */
        .main-corner {
            position: fixed;
            width: 50px;
            height: 50px;
            border: 3px solid var(--accent-color);
            z-index: 99;
            pointer-events: none;
            opacity: 0.85;
        }
        .main-corner::before {
            content: '';
            position: absolute;
            width: 38px;
            height: 38px;
            border: 1px solid var(--accent-color);
        }
        .mc-tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
        .mc-tl::before { top: 4px; left: 4px; border-right: none; border-bottom: none; }
        
        .mc-tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }
        .mc-tr::before { top: 4px; right: 4px; border-left: none; border-bottom: none; }
        
        .mc-bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }
        .mc-bl::before { bottom: 4px; left: 4px; border-right: none; border-top: none; }
        
        .mc-br { bottom: 20px; right: 20px; border-left: none; border-top: none; }
        .mc-br::before { bottom: 4px; right: 4px; border-left: none; border-top: none; }

        /* Ornamen Pembatas Pola Awan */
        .chinese-border {
            width: 100%;
            height: 35px;
            background: 
                url('https://cdn-icons-png.flaticon.com/512/2926/2926321.png') no-repeat center,
                radial-gradient(circle inside, transparent 20%, var(--accent-color) 21%, var(--accent-color) 34%, transparent 35%, transparent);
            background-size: 25px 25px, 30px 30px;
            opacity: 0.8;
            margin: 40px 0;
        }

        .double-happiness {
            font-family: 'Noto Serif TC', serif;
            color: var(--accent-color);
            font-size: 3.5rem;
            margin-bottom: 5px;
            line-height: 1;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
        }

        .animate-on-scroll {
            opacity: 0;
            transform: translateY(40px);
            transition: all 1.2s ease-out;
        }

        .animate-on-scroll.appear {
            opacity: 1;
            transform: translateY(0);
        }

        .music-control {
            position: fixed;
            bottom: 35px;
            right: 35px;
            z-index: 999;
            background: var(--accent-color);
            color: var(--primary-color);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            visibility: hidden;
        }

        .heart-particle {
            position: fixed;
            top: -20px;
            color: rgba(255, 182, 193, 0.7);
            font-size: 16px;
            pointer-events: none;
            z-index: 98;
            animation: fall linear forwards;
        }

        @keyframes fall {
            to { transform: translateY(105vh) rotate(360deg); }
        }

        /* COVER UTUH */
        .book-cover-wrapper {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100vh;
            z-index: 1000;
            transform-origin: left center;
            transition: transform 2s cubic-bezier(0.66, 0, 0.34, 1), opacity 1.5s ease;
            background: linear-gradient(rgba(110, 0, 0, 0.93), rgba(60, 0, 0, 0.97)), 
                        url('https://images.unsplash.com/photo-1590075865003-e48277adc5e8?q=80&w=1920') no-repeat center center/cover;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: var(--text-light);
            padding: 20px;
            box-shadow: 10px 0 30px rgba(0,0,0,0.5);
            backface-visibility: hidden;
        }

        .cover-pattern {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background-image: url('https://www.transparenttextures.com/patterns/chinese-lanterns.png');
            opacity: 0.15;
            pointer-events: none;
        }

        /* Bingkai Pojok Cover */
        .corner-ornament {
            position: absolute;
            width: 60px;
            height: 60px;
            border: 2px solid var(--accent-color);
        }
        .corner-inner {
            position: absolute;
            width: 48px;
            height: 48px;
            border: 1px solid var(--accent-color);
        }
        .top-left { top: 30px; left: 30px; border-right: none; border-bottom: none; }
        .top-left .corner-inner { top: 4px; left: 4px; border-right: none; border-bottom: none; }
        .top-right { top: 30px; right: 30px; border-left: none; border-bottom: none; }
        .top-right .corner-inner { top: 4px; right: 4px; border-left: none; border-bottom: none; }
        .bottom-left { bottom: 30px; left: 30px; border-right: none; border-top: none; }
        .bottom-left .corner-inner { bottom: 4px; left: 4px; border-right: none; border-top: none; }
        .bottom-right { bottom: 30px; right: 30px; border-left: none; border-top: none; }
        .bottom-right .corner-inner { bottom: 4px; right: 4px; border-left: none; border-top: none; }

        /* Ornamen Sudut Dalam Box Kartu */
        .card-corner {
            position: absolute;
            width: 20px;
            height: 20px;
            border: 2px solid var(--accent-color);
        }
        .cc-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
        .cc-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
        .cc-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
        .cc-br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

        .book-cover-wrapper h1 {
            font-family: 'Sacramento', cursive;
            font-size: 4.5rem;
            color: var(--accent-color);
            margin: 15px 0;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .book-cover-wrapper p {
            font-family: 'Cinzel', serif;
            font-size: 1.1rem;
            letter-spacing: 4px;
        }

        .guest-container {
            margin-top: 25px;
            background: rgba(0, 0, 0, 0.25);
            padding: 15px 30px;
            border-radius: 8px;
            border: 1px solid rgba(214, 175, 55, 0.3);
            max-width: 400px;
            width: 100%;
        }
        .guest-label {
            font-size: 0.85rem !important;
            letter-spacing: 2px !important;
            color: #ddd;
            text-transform: uppercase;
        }
        .guest-name {
            font-family: 'Cinzel', serif;
            font-size: 1.3rem !important;
            font-weight: 600;
            color: var(--accent-color);
            margin-top: 5px;
            letter-spacing: 1px !important;
        }

        .btn-open {
            font-family: 'Cinzel', serif;
            font-weight: 600;
            font-size: 1rem;
            letter-spacing: 2px;
            color: var(--primary-color);
            background: var(--accent-color);
            border: 2px solid var(--accent-color);
            padding: 12px 35px;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.4s ease;
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
            position: relative;
            z-index: 10;
        }

        .btn-open:hover {
            background: transparent;
            color: var(--accent-color);
            box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6), inset 0 0 0 2px var(--accent-color);
            transform: translateY(-2px);
        }

        /* MAIN CONTENT CONTAINER */
        .main-content {
            opacity: 0;
            transition: opacity 1.2s ease-in 0.5s;
            background-image: url('https://www.transparenttextures.com/patterns/subtle-clouds.png');
        }

        .main-content.show {
            opacity: 1;
        }

        .section-title {
            font-family: 'Cinzel', serif;
            color: var(--primary-color);
            margin-bottom: 5px;
            font-size: 2.2rem;
            letter-spacing: 2px;
            text-align: center;
        }

        /* PASANGAN SECTION */
        .couple-section {
            padding: 120px 20px 60px 20px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }

        .flower-branch-left {
            position: absolute;
            top: 40px; left: 40px;
            width: 120px; opacity: 0.15;
            pointer-events: none;
        }
        .flower-branch-right {
            position: absolute;
            top: 40px; right: 40px;
            width: 120px; opacity: 0.15;
            transform: scaleX(-1);
            pointer-events: none;
        }

        .bible-verse {
            max-width: 650px;
            margin: 0 auto 40px auto;
            font-style: italic;
            font-size: 0.95rem;
            color: #555;
            line-height: 1.6;
        }

        .bible-reference {
            display: block;
            margin-top: 8px;
            font-weight: 600;
            color: var(--primary-color);
            font-family: 'Cinzel', serif;
            font-style: normal;
        }

        .couple-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px; /* Diperkecil dari 40px ke 20px agar lebih kompak di HP */
    max-width: 1000px;
    margin: 40px auto 0 auto;
    width: 90%; /* Memberikan jarak 5% di kiri dan kanan layar */
}

        .profile-card {
    flex: 1 1 100%; /* Memaksa kartu mengambil lebar penuh di layar HP */
    min-width: 250px; /* Memastikan kartu tidak terlalu gepeng */
    max-width: 400px; /* Batasan agar tidak terlalu lebar di desktop */
    padding: 30px 15px; /* Mengurangi padding horizontal agar konten tidak terpotong */
    background: white;
    border: 1px solid rgba(214, 175, 55, 0.3);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    position: relative;
}

        /* --- TAMPILAN FOTO BULAT BULAT TANPA BORDER (SUPER ELEGAN) --- */
        .photo-frame-container {
            position: relative;
            margin-bottom: 25px;
            display: inline-block;
            border-radius: 50%;
            /* Memberikan efek bayangan emas super tipis dan mewah di luar foto */
            box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25), 0 4px 10px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }
        
        /* Efek overlay gradasi lembut agar foto berbaur romantis */
        .photo-frame-container::after {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(to bottom, transparent 75%, rgba(212, 175, 55, 0.1));
            pointer-events: none;
            border-radius: 50%;
        }

        .profile-img {
            width: 200px;
            height: 200px;
            object-fit: cover;
            border-radius: 50%; /* Bulat sempurna modern */
            display: block;
            transform: scale(1.01); /* Menghindari aliasing/pecah di pinggiran lingkaran */
        }

        .ampersand {
            font-family: 'Sacramento', cursive;
            font-size: 3.5rem;
            color: var(--accent-color);
            margin: 0 10px;
        }

        .profile-card h3 {
            font-family: 'Cinzel', serif;
            font-size: 2rem;
            color: var(--accent-color);
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }

        /* OUR STORY SECTION */
        .story-section {
            padding: 80px 20px;
            background: #fffbf4;
            background-image: url('https://www.transparenttextures.com/patterns/chinese-lanterns.png');
        }

        .timeline-wrapper {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
}

/* Garis Tengah */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--accent-color);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    width: 100%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timeline-content {
    width: 45%; /* Lebar kotak konten */
    background: white;
    padding: 20px;
    border: 1px solid var(--accent-color);
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Penempatan Zigzag */
.timeline-item.left .timeline-content { text-align: right; }
.timeline-item.right { flex-direction: row-reverse; }

/* Ornamen Chinese Tambahan */
.timeline-content::after {
    content: '囍';
    position: absolute;
    top: -10px;
    color: var(--accent-color);
    font-size: 1.5rem;
}
.timeline-item.left .timeline-content::after { right: -25px; }
.timeline-item.right .timeline-content::after { left: -25px; }

/* Responsif Mobile */
@media (max-width: 768px) {
    .timeline-wrapper::before { left: 20px; }
    .timeline-dot { left: 20px; }
    .timeline-item { flex-direction: row-reverse !important; }
    .timeline-content { width: 80% !important; margin-left: 40px; text-align: left !important; }
}

        .story-date {
            font-family: 'Cinzel', serif;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 5px;
        }

        .story-content {
            background: white;
            padding: 20px;
            border-radius: 4px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
            border: 1px solid rgba(214, 175, 55, 0.2);
            border-left: 4px solid var(--primary-color);
            position: relative;
        }

        /* VIDEO SECTION */
        .video-section {
            padding: 80px 20px;
            background: white;
            text-align: center;
        }

        .video-wrapper {
            max-width: 750px;
            margin: 40px auto 0 auto;
            border: 4px solid var(--accent-color);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
            aspect-ratio: 16/9;
        }

        .video-wrapper iframe {
            width: 100%; height: 100%; border: 0;
        }

        /* COUNTDOWN */
        .countdown-container {
            background: var(--primary-color);
            color: white;
            padding: 60px 20px;
            text-align: center;
            background-image: url('https://www.transparenttextures.com/patterns/chinese-lanterns.png');
        }

        .timer {
            display: flex; justify-content: center; gap: 20px; max-width: 600px; margin: 30px auto 0 auto;
        }

        .time-box {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--accent-color);
            padding: 20px; border-radius: 4px; flex: 1; min-width: 80px;
            position: relative;
        }

        .time-box span {
            display: block; font-size: 2.2rem; font-weight: 600; color: var(--accent-color); font-family: 'Cinzel', serif;
        }

        /* ACARA */
        .event-section {
            background: #fffbf4; padding: 80px 20px;
        }

        .event-grid {
            display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; max-width: 900px; margin: 40px auto;
        }

        .event-card {
            background: white; padding: 40px 30px; border-radius: 4px;
            box-shadow: 0 10px 30px rgba(139, 0, 0, 0.05); border: 1px solid rgba(214, 175, 55, 0.2); border-top: 5px solid var(--primary-color); flex: 1; min-width: 280px; text-align: center;
            position: relative;
        }

        .event-card i { font-size: 2rem; color: var(--accent-color); margin-bottom: 15px; }
        .event-card h4 { font-family: 'Cinzel', serif; color: var(--primary-color); margin-bottom: 15px; font-size: 1.4rem; }

        /* GALERI FOTO */
        .gallery-section { 
            padding: 80px 20px; 
            background: #fdfaf2; 
            text-align: center; 
        }

        .gallery-grid {
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
            grid-auto-rows: 280px; 
            gap: 20px; 
            max-width: 1100px; 
            margin: 40px auto 0 auto; 
            width: 100%;
        }

        .gallery-item { 
            overflow: hidden; 
            border-radius: 8px; 
            border: 3px solid rgba(214, 175, 55, 0.4); 
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            display: flex;
            justify-content: center; 
            align-items: center;    
            background-color: #fff;
        }

        .gallery-item img { 
            width: 100%; 
            height: 100%; 
            object-fit: cover; 
            transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
            display: block;
        }

        .gallery-item:hover img { 
            transform: scale(1.08); 
        }

        /* REKENING / DIGITAL GIFT */
        .gift-section {
            padding: 80px 20px; background: white; text-align: center;
        }

        .gift-container {
            display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; max-width: 800px; margin: 40px auto 0 auto;
        }

        .gift-card {
            background: #fffdf9; border: 1px solid var(--accent-color); border-radius: 4px; padding: 30px; flex: 1; min-width: 280px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05); position: relative;
        }

        .bank-logo {
            font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.5rem; color: var(--primary-color); margin-bottom: 15px;
        }

        .account-number {
            font-size: 1.3rem; font-weight: 600; letter-spacing: 1px; margin: 10px 0; color: #333;
        }

        .btn-copy {
            background: var(--primary-color); color: white; border: none; padding: 8px 20px; border-radius: 4px; cursor: pointer;
            font-size: 0.85rem; font-weight: 500; transition: 0.3s; margin-top: 10px;
        }
        .btn-copy:hover { background: var(--accent-color); color: var(--primary-color); }

        /* BUKU TAMU */
        .guestbook-section {
            padding: 80px 20px; background: #fffbf4;
        }

        .guestbook-container {
            max-width: 700px; margin: 40px auto 0 auto; background: white; padding: 35px; border-radius: 8px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.05); border: 1px solid rgba(214, 175, 55, 0.2);
        }

        .form-group { margin-bottom: 20px; text-align: left; }
        .form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.9rem; }
        .form-control {
            width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-family: 'Montserrat', sans-serif; font-size: 0.95rem;
        }
        .form-control:focus { outline: none; border-color: var(--accent-color); }

        .btn-submit {
            width: 100%; background: var(--primary-color); color: white; border: 1px solid var(--accent-color);
            padding: 12px; border-radius: 4px; font-family: 'Cinzel', serif; font-weight: 600; cursor: pointer; transition: 0.3s;
        }
        .btn-submit:hover { background: var(--accent-color); color: var(--primary-color); }
        .btn-submit:disabled { background: #ccc; border-color: #bbb; color: #777; cursor: not-allowed; }

        .comments-display {
            margin-top: 40px; max-height: 300px; overflow-y: auto; text-align: left; border-top: 1px solid #eee; padding-top: 20px;
        }

        .comment-box {
            background: #fafafa; padding: 15px; border-radius: 4px; margin-bottom: 15px; border-left: 3px solid var(--primary-color);
        }

        .comment-name { font-weight: 600; color: var(--primary-color); font-size: 0.95rem; display: flex; justify-content: space-between; }
        .comment-status { font-size: 0.75rem; background: #e0e0e0; padding: 2px 8px; border-radius: 10px; color: #555; }
        .comment-text { margin-top: 8px; font-size: 0.9rem; color: #555; line-height: 1.5; }

        /* MAPS */
        .map-section { padding: 80px 20px; text-align: center; background: white; }
        .map-container { max-width: 800px; margin: 30px auto 0 auto; border: 3px solid var(--primary-color); border-radius: 4px; overflow: hidden; }
        .map-container iframe { width: 100%; height: 350px; border: 0; }
        .btn-map {
            display: inline-block; margin-top: 25px; padding: 12px 30px; background: var(--primary-color); color: white;
            text-decoration: none; font-weight: 500; border-radius: 4px; transition: 0.3s; border: 1px solid var(--accent-color);
        }
        .btn-map:hover { background: var(--accent-color); color: var(--primary-color); }

        /* FOOTER */
        footer {
            background: var(--primary-color); color: var(--text-light); text-align: center; padding: 50px 20px;
            font-family: 'Cinzel', serif; font-size: 0.9rem; letter-spacing: 2px; border-top: 3px solid var(--accent-color);
            background-image: url('https://www.transparenttextures.com/patterns/chinese-lanterns.png');
        }

        @media (max-width: 768px) {
            .book-cover-wrapper h1 { font-size: 3.2rem; }
            .timer { gap: 10px; }
            .time-box { padding: 15px 5px; }
            .time-box span { font-size: 1.6rem; }
            .main-corner { width: 35px; height: 35px; }
            .main-corner::before { width: 25px; height: 25px; }
            .profile-img { width: 170px; height: 170px; }
        }

        @media (max-width: 480px) {
            .gallery-grid {
                grid-template-columns: 1fr;
                grid-auto-rows: 320px;
                padding: 0 10px;
            }
            .profile-img {
        width: 150px; /* Foto diperkecil dari 200px ke 150px agar proporsional di HP */
        height: 150px;
    }
    
    .ampersand {
        font-size: 2.5rem; /* Simbol & diperkecil agar tidak memakan ruang */
        margin: 5px 0;
    }

    .profile-card h3 {
        font-size: 1.6rem; /* Judul nama diperkecil sedikit agar tidak turun baris */
    }
        }
        
        img {
    max-width: 100%;
    height: auto;
}

/* Animasi Background Foto Berganti */
.countdown-container {
    position: relative;
    background-size: cover;
    background-position: center;
    animation: changeBackground 15s infinite; /* Ganti foto setiap 15 detik */
}

@keyframes changeBackground {
    0%, 33% { background-image: url('URL_FOTO_1.jpg'); }
    34%, 66% { background-image: url('URL_FOTO_2.jpg'); }
    67%, 100% { background-image: url('URL_FOTO_3.jpg'); }
}

/* Animasi Muncul dari Kanan ke Kiri untuk Countdown */
.timer.animate-on-scroll.appear {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Efek Muncul Smooth untuk Foto Mempelai */
.profile-card.animate-on-scroll.appear {
    animation: fadeInScale 1s ease-out;
    animation: zoomInSmooth 1.5s ease-out forwards;
}

@keyframes fadeInScale {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes zoomInSmooth {
    0% {
        transform: scale(0.7); /* Mulai dari ukuran 70% */
        opacity: 0;
    }
    100% {
        transform: scale(1);   /* Berakhir di ukuran normal */
        opacity: 1;
    }
}

/* Terapkan animasi saat class .appear ditambahkan oleh JS */