body {
    background-image: url("images/BEGROUND.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #EAD7C0;
    margin: 0;
    font-family: Arial, sans-serif;
}

.navbar {
position: sticky;
top: 0;
z-index: 1000;
background-color: transparent;
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 40px;
}

.logo {
    font-family: 'Allura', cursive;
    font-size: 32px;
    font-weight: 400;
    color: #EAD7C0;
}

.nav-links {
display: flex;
align-items: center;
gap: 35px;
}

.nav-links a {
text-decoration: none;
color: #EAD7C0;
transition: color 0.3s ease;
}

.nav-links a:hover {
color: #F7C1D1;
}

.menu-toggle {
display: none;
background: none;
border: none;
color: #EAD7C0;
font-size: 28px;
cursor: pointer;
}


section {
    padding: 60px 40px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45vh;
    padding-top: 20px;
}

.hero img {
    box-sizing: border-box;
    width: 32%;
    margin-right: 12%;
    height: auto;
    padding: 0;
    border: 1px solid #B89B72;
    border-radius: 4px;
    outline: 1px solid rgba(184, 155, 114, 0.5);
    outline-offset: 4px;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.hero img:hover {
    transform: translateY(-4px);
}

.hero h2 {
font-family: 'Lora', serif;
font-size: 38px;
font-weight: 400;
max-width: 100%;
line-height: 1.4;
color: #EAD7C0;
}

.hero-text {
    max-width: 550px;
}

.hero-text {
    position: relative;
    padding: 25px;
}

.hero-text h2 {
    font-family: 'Lora', serif;
    color: #F5EBDD;
    text-shadow: 2px 3px 8px rgba(184, 155, 114, 0.25);
}

.hero-text p {
    color: #D8C6B0;
    line-height: 1.8;
}

button {
    padding: 12px 24px;
    background-color: #F7C1D1;
    border: none;
    color: #0F172A;
}

button {
    cursor: pointer;
}

.hero button:hover {
    background-color: #C98FA4;
}

.gallery + button:hover {
    background-color: #C98FA4;
}

.story {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
}

/* Bingkai foto vintage - Our Memories */
.gallery img {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 250px;
    padding: 7px;
    background-color: #F5EBDD;
    border: 1px solid #C9B08A;
    border-radius: 4px;
    outline: 1px solid rgba(201, 176, 138, 0.5);
    outline-offset: -4px;
    object-fit: contain;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: translateY(-8px) scale(1.04) rotate(0deg);
    box-shadow: 5px 10px 18px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
}

.gallery {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 18px;
align-items: start;
}

/* Efek foto miring - Our Memories */
.gallery img:nth-child(4n + 1) {
    transform: rotate(-1.2deg);
}

.gallery img:nth-child(4n + 2) {
    transform: rotate(0.8deg);
}

.gallery img:nth-child(4n + 3) {
    transform: rotate(-0.5deg);
}

.gallery img:nth-child(4n) {
    transform: rotate(1.4deg);
}

.gallery img:nth-child(4n + 1):hover {
    transform: translateY(-8px) scale(1.04) rotate(-1.2deg);
}

.gallery img:nth-child(4n + 2):hover {
    transform: translateY(-8px) scale(1.04) rotate(0.8deg);
}

.gallery img:nth-child(4n + 3):hover {
    transform: translateY(-8px) scale(1.04) rotate(-0.5deg);
}

.gallery img:nth-child(4n):hover {
    transform: translateY(-8px) scale(1.04) rotate(1.4deg);
}

/* Tombol Load More Memories */
.gallery + button {
margin-top: 25px;
padding: 12px 24px;
background-color: #DCE5EC;
color: #0F172A;
border: 1px solid #AABCCB;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.3s ease;
}

.gallery + button:hover {
background-color: #AABCCB;
}

/* DIGITAL BOOK */
.book-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.book-cover {
    width: 350px;
    min-height: 420px;
    padding: 35px;
    background-color: #EAD7C0;
    color: #0F172A;
    border: 8px solid #C9B08A;
    border-radius: 8px 18px 18px 8px;
    box-shadow: 8px 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.book-cover p {
    font-size: 12px;
    letter-spacing: 3px;
}

.book-cover h2 {
    font-size: 30px;
    line-height: 1.5;
}

.book-cover button,
.book-page button {
background-color: #6B4226;
color: #FFF8EE;
border: 1px solid #8B6547;
border-radius: 25px;
padding: 12px 24px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}

.book-cover button:hover,
.book-page button:hover {
background-color: #4A2C1A;
transform: translateY(-2px);
}

.book-page {
position: relative;
max-width: 500px;
padding: 45px 35px;
background-color: #F5E6CF;
color: #493526;
font-family: 'Lora', serif;
font-size: 16px;
border: 2px solid #C9A16A;
border-radius: 5px;
line-height: 1.9;
box-shadow: 0 8px 25px rgba(60, 38, 20, 0.18);
overflow: hidden;
}


.highlight {
    background: linear-gradient(
        transparent 35%,
        #F3DFA5 35%,
        #F3DFA5 90%,
        transparent 90%
    );
    padding: 2px 4px;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Hiasan halaman buku */
.book-page {
    position: relative;
    overflow: hidden;
}

/* Bintang kecil di sudut kiri bawah */
.book-page::after {
    content: "✦";
    position: absolute;
    bottom: 12px;
    left: 20px;
    color: #C9B08A;
    font-size: 20px;
}

/* Bayangan lembut pada kertas */
.book-page {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Garis dekoratif di bawah judul */
.book-page h3 {
    padding-bottom: 14px;
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.book-page h3::after {
    content: "";
    display: block;
    width: 65px;
    height: 3px;
    margin-top: 12px;
    background: linear-gradient(to right, #D8B58A, #E8AFC0);
    border-radius: 10px;
}


/* SAMPUL MEMORY OF US - VINTAGE STYLE */
.book-cover {
    position: relative;
    overflow: hidden;
    background-color: #EAD7C0;
    border: 8px solid #C9B08A;
    box-shadow: 8px 10px 25px rgba(0, 0, 0, 0.3);
}

/* BUNGA VINTAGE DI SUDUT KIRI ATAS */
.book-cover {
    position: relative;
}

.book-cover::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 145px;
    height: 145px;
    background-image: url("images/BUNGA-KIRI.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
    pointer-events: none;
    z-index: 1;
}

.book-cover::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 170px;
    height: 170px;
    background-image: url("images/BUNGA-KANAN.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    pointer-events: none;
    z-index: 1;
}

.book-cover {
    position: relative;
}

.book-cover::marker {
    content: "";
}

.book-cover {
    outline: 1px solid #C9A16A;
    outline-offset: -22px;
}

/* ORNAMEN VINTAGE PADA SUDUT SAMPUL */
.book-cover {
    outline: 1px solid #C9A16A;
    outline-offset: -22px;
}

/* Ornamen sudut kiri atas */
.book-cover {
    background-image:
        radial-gradient(circle at 28px 28px, #B58A55 2px, transparent 3px);
    background-repeat: no-repeat;
}

/* KUPU-KUPU VINTAGE DI SUDUT KANAN ATAS */
.book-cover .butterfly-decoration {
    position: absolute;
    top: 15px;
    right: 115px;
    width: 115px;
    height: auto;
    pointer-events: none;
    z-index: 4;
}

/* PITA VINTAGE PADA SAMPUL */
.ribbon-decoration {
position: absolute;
top: 140px;
left: 50%;
transform: translateX(-50%);
width: 110px;
height: auto;
z-index: 2;
pointer-events: none;
}

/* DEKORASI VINTAGE DI SUDUT SAMPUL */
.book-cover .vintage-corners {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    z-index: 1;
}

/* DEKORASI BUNGA UNGU PADA HALAMAN BUKU */
.book-page {
    position: relative;
    overflow: hidden;
}

.book-page::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 100%;
    background-image: url("images/BUNGA-UNGU.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: right top;
    pointer-events: none;
    z-index: 0;
}

.book-page h3,
.book-page p,
.book-page button {
    position: relative;
    z-index: 1;
}

/* GALERI FOTO LITTLE THINGS ABOUT ME */

.about-me {
    padding: 70px 40px;
    text-align: center;
    background-color: transparent;
    color: #EAD7C0;
}

.about-me h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.about-me p {
    margin-bottom: 35px;
    font-size: 16px;
}

.about-me-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.about-me-gallery img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border: 6px solid #EAD7C0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.about-me-gallery img:hover {
    transform: translateY(-6px);
}

/* OUR MOMENTS TOGETHER - VINTAGE SCRAPBOOK */

.couple-memories {
    padding: 70px 40px;
    background-color: transparent;
    color: #EAD7C0;
    text-align: center;
}

.couple-memories h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #EAD7C0;
}

.couple-memories p {
    font-size: 16px;
    margin-bottom: 40px;
    color: #EAD7C0;
}

.couple-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.couple-gallery img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    padding: 9px;
    background-color: #EAD7C0;
    border: 1px solid #C9A875;
    border-radius: 3px;
    box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.couple-gallery img:nth-child(odd) {
    transform: rotate(-1.5deg);
}

.couple-gallery img:nth-child(even) {
    transform: rotate(1.5deg);
}

.couple-gallery img:hover {
    transform: rotate(0deg) translateY(-7px) scale(1.03);
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .couple-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .couple-gallery img {
        height: 240px;
    }
}

@media (max-width: 600px) {
    .couple-memories {
        padding: 45px 18px;
    }

    .couple-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .couple-gallery img {
        height: 220px;
        padding: 6px;
    }
}

.story img {
    display: block;
    width: 350px;
    max-width: 90%;
    height: auto;
    margin: 0 auto;
    padding: 5px;
    border: 1px solid #B89B72;
    outline: 1px solid rgba(184, 155, 114, 0.4);
    outline-offset: 4px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-end;
}

.story img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* =================================
TAMPILAN MEMORY OF US DI HP
================================= */

@media screen and (max-width: 600px) {


.book-container {
    padding: 25px 12px;
}

.book-page {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 35px 22px;
    font-size: 16px;
    line-height: 1.8;
}

.book-page h3 {
    font-size: 23px;
}

.book-page button {
    padding: 12px 18px;
    font-size: 14px;
}

.book-cover {
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
}


}

/* Tampilan Home di HP */
@media screen and (max-width: 600px) {


.hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: auto;
    padding: 50px 20px;
    gap: 25px;
}
.hero img {
    width: 85%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
}
.hero-text {
    max-width: 100%;
    padding: 0;
}

.hero h2 {
    font-size: 28px;
    max-width: 100%;
    line-height: 1.3;
}

.story {
flex-direction: column;
text-align: center;
gap: 25px;
padding: 30px 20px;
}

.story img {
    display: block;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    padding: 15px 20px;
}

.logo {
    font-size: 23px;
}

.menu-toggle {
    display: block;
}

.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #0F172A;
}

.nav-links.active {
    display: flex;
}

.nav-links a {
    font-size: 24px !important;
    font-weight: 600;
    padding: 8px 0;
}

}

.favorite-word {
    font-family: 'Allura', cursive;
    font-size: 1.3em;
    font-weight: 400;
    color: #D98C9B;
    display: inline-block;
    transform: rotate(-5deg);
}

/* ===== NAVY VINTAGE APP EXPERIENCE ===== */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    min-height: 100vh;
    background-color: #071426;
    background-image:
        linear-gradient(180deg, rgba(5, 15, 31, .58), rgba(5, 15, 31, .78)),
        url("images/BEGROUND.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.navbar {
    background: rgba(7, 20, 38, .82);
    border-bottom: 1px solid rgba(201, 176, 138, .22);
    backdrop-filter: blur(16px);
}
.nav-links a { padding: 10px 2px; }
.nav-links a:hover { color: #D9B989; }
section { scroll-margin-top: 80px; }
.hero { gap: 36px; max-width: 1280px; margin: 0 auto; }
.hero-text h2 { font-size: clamp(2rem, 4vw, 3.8rem); }
.favorite-word { color: #D9B989; font-family: 'Allura', cursive; font-size: 1.18em; }
.hero img { border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.story, #our-memories, .about-me, .couple-memories {
    max-width: 1280px; margin-left: auto; margin-right: auto;
}
#our-memories > h2, .about-me h2, .couple-memories h2, .story h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}
#our-memories > p, .about-me > p, .couple-memories > p { color: #D8C6B0; }
button { border-radius: 999px; transition: transform .25s ease, background .25s ease; }
button:hover { transform: translateY(-2px); }
.music-toggle {
    position: fixed; right: 22px; bottom: 88px; z-index: 1200;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 17px; color: #F5EBDD;
    background: rgba(12, 29, 51, .94); border: 1px solid #B89B72;
    box-shadow: 0 8px 28px rgba(0,0,0,.3); backdrop-filter: blur(12px);
}
.music-icon { font-size: 21px; color: #D9B989; }
.music-toggle.is-playing .music-icon { animation: musicPulse 1.2s ease-in-out infinite; }
@keyframes musicPulse { 50% { transform: scale(1.18) rotate(8deg); } }
.mobile-dock { display: none; }
.book-container { scroll-margin-top: 85px; }
.book-pages { max-width: 570px; width: 100%; }
.book-page { width: auto; }
.book-page button { margin: 6px 4px 0 0; }
.book-cover { box-sizing: border-box; max-width: 100%; }
.gallery + button { color: #0F172A; }
img { max-width: 100%; }
@media (max-width: 900px) {
    .navbar { padding: 16px 22px; }
    section { padding: 48px 24px; }
    .hero { min-height: auto; }
    .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .story { gap: 24px; }
}
@media (max-width: 600px) {
    body { background-attachment: scroll; padding-bottom: 82px; }
    .navbar { padding: 14px 18px; }
    .logo { font-size: 27px; }
    .menu-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 12px; right: 12px;
        flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
        border: 1px solid rgba(201,176,138,.3); border-radius: 16px;
        background: rgba(7,20,38,.97); box-shadow: 0 12px 30px rgba(0,0,0,.3);
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 13px 14px; border-radius: 10px; }
    section { padding: 38px 18px; }
    .hero { flex-direction: column; align-items: stretch; gap: 22px; }
    .hero-text { padding: 8px 0; }
    .hero-text h2 { font-size: 2.25rem; }
    .hero img { width: 100%; margin: 0; max-height: 360px; object-fit: cover; }
    .story { flex-direction: column; align-items: stretch; }
    .story img { width: 100%; }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .gallery img { height: 190px; }
    .about-me-gallery { gap: 14px; }
    .about-me-gallery img { width: calc(50% - 10px); height: 220px; }
    .about-me-gallery img:last-child { width: 70%; }
    .couple-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .couple-gallery img { height: 190px; padding: 6px; }
    .book-container { padding: 30px 14px; }
    .book-cover { width: 100%; min-height: 390px; padding: 30px 22px; }
    .book-cover h2 { font-size: 26px; }
    .book-page { padding: 38px 23px; font-size: 15px; }
    .book-page::before { width: 150px; opacity: .45; }
    .music-toggle { right: 12px; bottom: 108px; padding: 10px 13px; }
    .music-label { font-size: 12px; }
    .mobile-dock {
        display: flex; position: fixed; z-index: 1100; bottom: 0; left: 0; right: 0;
        justify-content: space-around; align-items: center; gap: 2px;
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
        background: rgba(7,20,38,.96); border-top: 1px solid rgba(201,176,138,.35);
        backdrop-filter: blur(16px);
    }
    .mobile-dock a {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
        text-decoration: none; color: #EAD7C0; padding: 5px 2px; border-radius: 12px;
    }
    .mobile-dock a span { font-size: 23px; line-height: 1.1; color: #D9B989; }
    .mobile-dock a small { font-size: 10px; }
}

/* FIX: posisi dekorasi sampul agar tidak menutupi tulisan */
.book-cover .butterfly-decoration {
    top: 14px;
    right: 24px;
    width: 68px;
    max-width: 18%;
    height: auto;
    z-index: 3;
}

.book-cover .ribbon-decoration {
    top: auto;
    bottom: 82px;
    left: 24px;
    width: 76px;
    max-width: 20%;
    height: auto;
    transform: none;
    z-index: 3;
}

.book-cover > p,
.book-cover > h2,
.book-cover > button {
    position: relative;
    z-index: 2;
}

@media (max-width: 600px) {
    .book-cover .butterfly-decoration {
        top: 14px;
        right: 20px;
        width: 58px;
    }
    .book-cover .ribbon-decoration {
        bottom: 76px;
        left: 18px;
        width: 66px;
    }
}

/* PENYESUAIAN SAMPUL: label turun, kupu-kupu di tengah atas, judul lebih elegan */
.book-cover > p {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    margin-bottom: 0;
    line-height: 1.5;
}

.book-cover .butterfly-decoration {
    top: 9px;
    left: 50%;
    right: auto;
    width: 62px;
    max-width: 16%;
    height: auto;
    transform: translateX(-50%);
    z-index: 3;
}

.book-cover h2 {
    position: relative;
    z-index: 2;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 31px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.42;
    margin-top: 12px;
    margin-bottom: 4px;
    text-wrap: balance;
}

@media (max-width: 600px) {
    .book-cover > p {
        margin-top: 28px;
        font-size: 10px;
        letter-spacing: 2px;
    }
    .book-cover .butterfly-decoration {
        top: 8px;
        width: 54px;
        max-width: 16%;
    }
    .book-cover h2 {
        font-size: 26px;
        line-height: 1.4;
    }
}

/* ===== NAVIGASI ARTISTIK DENGAN IKON SERAGAM ===== */
.nav-links { gap: clamp(12px, 1.8vw, 27px); }
.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #EAD7C0;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 14px 8px 14px 8px;
    transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
    white-space: nowrap;
}
.nav-links a svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.nav-links a:nth-child(even) { transform: translateY(3px) rotate(-1deg); }
.nav-links a:nth-child(odd) { transform: translateY(-2px) rotate(.7deg); }
.nav-links a:hover, .nav-links a:focus-visible {
    color: #F5D8A8;
    background: rgba(217,185,137,.10);
    border-color: rgba(217,185,137,.38);
    transform: translateY(-3px) rotate(0deg);
    outline: none;
}
.nav-links a span { font-size: 15px; }

/* ===== OUR MOMENTS: FIGURA FOTO VINTAGE YANG LEBIH RAPI ===== */
.couple-gallery {
    gap: 25px;
    align-items: center;
}
.couple-gallery img {
    box-sizing: border-box;
    height: 285px;
    padding: 7px;
    border: 1px solid rgba(217,185,137,.9);
    border-radius: 18px 18px 12px 12px;
    background: linear-gradient(145deg, #F4E6D0, #D9C19D);
    box-shadow: 0 12px 28px rgba(0,0,0,.30), inset 0 0 0 1px rgba(255,255,255,.45);
    transition: transform .3s ease, box-shadow .3s ease, border-radius .3s ease;
}
.couple-gallery img:nth-child(4n + 1) { transform: rotate(-1.2deg); border-radius: 20px 12px 18px 12px; }
.couple-gallery img:nth-child(4n + 2) { transform: rotate(1deg); border-radius: 12px 20px 12px 18px; }
.couple-gallery img:nth-child(4n + 3) { transform: rotate(-.5deg); border-radius: 16px 16px 24px 10px; }
.couple-gallery img:nth-child(4n) { transform: rotate(1.3deg); border-radius: 12px 18px 12px 24px; }
.couple-gallery img:hover {
    transform: translateY(-7px) rotate(0deg) scale(1.025);
    box-shadow: 0 18px 35px rgba(0,0,0,.42), 0 0 0 2px rgba(217,185,137,.25);
    border-radius: 15px;
}
.about-me-gallery img {
    border-radius: 16px 16px 34px 16px;
    border-width: 5px;
    border-color: #EAD7C0;
    box-shadow: 0 12px 28px rgba(0,0,0,.32), 0 0 0 1px rgba(217,185,137,.6);
}
.about-me-gallery img:nth-child(2) { transform: translateY(8px) rotate(1deg); }
.about-me-gallery img:nth-child(2):hover { transform: translateY(0) rotate(0deg); }
.about-me-gallery img:first-child { transform: rotate(-1.2deg); }
.about-me-gallery img:first-child:hover { transform: translateY(-6px) rotate(0deg); }
.about-me-gallery img:last-child { transform: rotate(1.2deg); }
.about-me-gallery img:last-child:hover { transform: translateY(-6px) rotate(0deg); }

.mobile-dock a span {
    width: 30px;
    height: 28px;
    display: grid;
    place-items: center;
    font-size: 22px;
}
.mobile-dock a:active, .mobile-dock a:hover {
    background: rgba(217,185,137,.14);
}
@media (max-width: 900px) {
    .nav-links { gap: 8px; }
    .nav-links a { gap: 6px; padding: 9px 8px; }
    .nav-links a span { font-size: 13px; }
    .nav-links a svg { width: 17px; height: 17px; }
    .couple-gallery img { height: 250px; }
}
@media (max-width: 600px) {
    .nav-links a { transform: none; }
    .nav-links a span { font-size: 17px; }
    .nav-links a svg { width: 20px; height: 20px; }
    .couple-gallery img { height: 190px; padding: 5px; }
    .mobile-dock { gap: 1px; padding-left: 3px; padding-right: 3px; }
    .mobile-dock a { padding: 5px 0; }
    .mobile-dock a span { font-size: 20px; width: 25px; }
    .mobile-dock a small { font-size: 9px; }
}

/* FINAL POLISH: smooth navigation, balanced spacing, and clearer focus states */
html { scroll-behavior: smooth; }
section, #our-memories, #for-you { scroll-margin-top: 94px; }
.navbar { background: linear-gradient(180deg, rgba(7, 19, 37, .97), rgba(7, 19, 37, .84)); border-bottom: 1px solid rgba(217, 185, 137, .18); }
.nav-links a { display: inline-flex; align-items: center; gap: 8px; }
.nav-links a:focus-visible, button:focus-visible, .mobile-dock a:focus-visible { outline: 2px solid #D9B989; outline-offset: 4px; }
.hero, .story, #our-memories, .about-me, .couple-memories, .book-container { scroll-margin-top: 100px; }
.gallery img, .about-me-gallery img, .couple-gallery img { transition: transform .28s ease, box-shadow .28s ease, filter .28s ease; }
.gallery img:hover, .about-me-gallery img:hover, .couple-gallery img:hover { filter: brightness(1.035); }
.couple-gallery img { border: 7px solid #EAD7C0; outline: 1px solid rgba(217,185,137,.58); outline-offset: 2px; box-shadow: 0 12px 28px rgba(0,0,0,.24); }
.about-me-gallery img { border: 7px solid #EAD7C0; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.music-toggle { transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.music-toggle:hover { background: rgba(20, 43, 69, .98); box-shadow: 0 10px 30px rgba(0,0,0,.38); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 600px) {
  section, #our-memories, #for-you { scroll-margin-top: 72px; }
  .navbar { position: sticky; }
  .couple-gallery img { border-width: 5px; }
  .about-me-gallery img { border-width: 5px; }
}


/* ==========================================
   NAVIGASI HALAMAN SEPERTI APLIKASI
   Hanya satu menu ditampilkan pada satu waktu.
   ========================================== */
.app-view {
    display: none !important;
}

.app-view.is-active {
    display: block !important;
}

.hero.app-view.is-active {
    display: flex !important;
    box-sizing: border-box;
    min-height: calc(100vh - 92px);
    align-items: center;
    padding-top: 35px;
    padding-bottom: 45px;
}

.book-container.app-view.is-active {
    display: flex !important;
    min-height: calc(100vh - 100px);
    box-sizing: border-box;
}

.nav-links a[aria-current="page"] {
    color: #D9B77E;
}

.nav-links a[aria-current="page"] svg {
    stroke: #D9B77E;
}

.mobile-dock a[aria-current="page"] {
    color: #F5EBDD;
    background: rgba(201, 176, 138, 0.22);
    border-radius: 14px;
}

@media (max-width: 600px) {
    .hero.app-view.is-active {
        min-height: calc(100svh - 76px);
        padding-top: 24px;
        padding-bottom: 90px;
    }

    .book-container.app-view.is-active {
        min-height: calc(100svh - 80px);
        padding-bottom: 90px;
    }
}

.story.app-view.is-active { display: flex !important; }
