/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4a574;
    --secondary-color: #8b7355;
    --dark-color: #2c2416;
    --light-color: #f9f7f4;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
    --bg-overlay: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
                  url('assets/bg1.png') center/cover no-repeat;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-color);
    line-height: 1.6;
}

/* ============================================================
   MUSIC TOGGLE
   ============================================================ */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px var(--shadow);
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
    position: relative;
    height: 100dvh;
    max-height: 100dvh;
    padding: 60px 20px 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9f7f4 0%, #f0ece5 100%);
    overflow: hidden;
}

/* FIX: semua section non-cover pakai variabel bg yang sama — tidak duplikat */
.quotes-section,
.event-section,
.maps-section,
.rsvp-section,
.gift-section,
.thanks-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-overlay) !important;
}

/* Couple sedikit berbeda (lebih transparan) */
.couple-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)),
                url('assets/bg1.png') center/cover no-repeat !important;
}

.section-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
    max-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    animation: fadeInUp 0.6s ease forwards;
}

.section-content::-webkit-scrollbar {
    display: none;
}

.main-content .section         { display: none; }
.main-content .section.active-section {
    display: flex;
    animation: fadeIn 0.5s ease;
}

/* ============================================================
   DECO OVAL — FIX: digabung, tidak diulang tiap section
   ============================================================ */


   
.deco-oval {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
    z-index: 2;
    pointer-events: none;
}

.cover-section .deco-oval {
    width: 88%;
    max-width: 380px;
}

.quotes-section .deco-oval {
    margin-top: -45px;
    width: 93%;
    max-width: 420px;
}

.couple-section .deco-oval {
    margin-top: -45px;
    width: 93%;
    max-width: 420px;
}

.event-section .deco-oval {
    margin-top: -45px;
    width: 93%;
    max-width: 420px;
}

.maps-section .deco-oval {
    margin-top: -45px;
    width: 93%;
    max-width: 420px;
}

.rsvp-section .deco-oval {
    margin-top: -45px;
    width: 93%;
    max-width: 420px;
}

.gift-section .deco-oval {
    margin-top: -45px;
    width: 93%;
    max-width: 420px;
}

.thanks-section .deco-oval {
    margin-top: -45px;
    width: 93%;
    max-width: 420px;
}

.deco-oval img {
    width: 100%;
    height: auto;
}

/* ============================================================
   COVER SECTION
   ============================================================ */
.cover-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100dvh;
    max-height: 100dvh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('assets/bg1.png') center/cover no-repeat;
    color: var(--white);
}

.cover-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-top: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1.5s ease;
}

.cover-subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 300;
}

.bride-name,
.groom-name {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.and-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    margin: 15px 0;
}

.guest-info        { margin: 30px 0; }
.guest-info p      { font-size: 0.9rem; margin: 5px 0; }

.guest-name {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    margin-top: 15px;
    color: var(--primary-color);
}

.btn-open {
    display: block;
    padding: 15px 40px;
    background: var(--primary-color);
    border: none;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin: 20px auto 0;
    letter-spacing: 1px;
}

.btn-open:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 165, 116, 0.3);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 230, 249, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 10px 20px;
    z-index: 999;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.navbar.active {
    opacity: 1;
    transform: translateY(0);
}

.navbar::-webkit-scrollbar { height: 0; }

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.65rem;
    min-width: 65px;
    flex-shrink: 0;
    position: relative;
    padding: 6px 4px 4px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.12);
    transform: translate(-50%, -50%) scale(0);
    transform-origin: center center;
    transition:
        width        0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        height       0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-radius 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        top          0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform    0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow   0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.nav-item.active::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    transform: translate(0, 0) scale(1);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.25);
}

.nav-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 5px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    transition: background 0.35s ease,
                transform  0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease;
    box-shadow: 0 3px 10px rgba(212, 165, 116, 0.3);
}

.nav-item span {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
    margin-top: 2px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    font-size: 0.6rem;
}

.nav-item.active span {
    opacity: 1;
    color: var(--secondary-color);
    font-weight: 600;
}

/* FIX: active & hover digabung untuk shared styles */
.nav-item.active i,
.nav-item:hover i {
    background: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.5);
}
.nav-item.active i { transform: scale(1.1); }
.nav-item:hover i  { transform: scale(1.08); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    display: none;
    height: 100dvh;
    overflow: hidden;
}

.main-content.active {
    display: block;
    animation: fadeIn 1s ease forwards;
}

/* ============================================================
   QUOTES SECTION
   ============================================================ */

/* Wrapper dua frame berdampingan */
.arch-frames-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin: 0 auto 20px;
}

.arch-frame {
    width: 130px;
    height: 175px;
    border-radius: 75px 75px 16px 16px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.35);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Frame wanita sedikit lebih tinggi agar ada efek kedalaman */
.arch-frame--wanita {
    width: 140px;
    height: 190px;
    border-radius: 80px 80px 16px 16px;
}

.arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.05);
    transform-origin: center top;
}

.arch-frame::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 70px 70px 12px 12px;
    border: 1.5px solid rgba(212, 165, 116, 0.5);
    pointer-events: none;
    z-index: 1;
}

.arch-frame--wanita::before {
    border-radius: 76px 76px 12px 12px;
}

.quote-text {
    font-size: 0.75rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-dark);
    margin: 15px 0;
    padding: 0 10px;
}

.quote-source {
    font-size: 0.78rem;
    font-weight: 600;
    font-style: italic;
    color: var(--secondary-color);
    margin-top: 8px;
}

/* Mobile */
@media (max-width: 767px) {
    .arch-frames-wrapper  { gap: 12px; margin-top: 60px; margin-bottom: 16px; }
    .arch-frame           { width: 150px; height: 242px; border-radius: 65px 65px 14px 14px; }
    .arch-frame--wanita   { width: 150px; height: 242px; border-radius: 70px 70px 14px 14px; }
    .arch-frame::before        { border-radius: 60px 60px 10px 10px; }
    .arch-frame--wanita::before { border-radius: 66px 66px 10px 10px; }
    .quote-text           { font-size: 0.72rem; line-height: 1.6; margin: 10px 0; }
    .quote-source         { font-size: 0.72rem; }
}

/* ============================================================
   COUPLE SECTION
   ============================================================ */
.couple-section .section-content {
    padding: 0 40px;
}

.couple-alias {
    margin-top: 80px;
    margin-bottom: 20px;
}

.couple-alias img {
    width: 75%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.couple-intro {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 50px;
    color: var(--text-light);
}

.bride-groom-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 30px;
}

.person-name {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.person-parent {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 15px;
}

.instagram-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.instagram-link:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.dengan {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    margin: 2px 0;
}

/* ============================================================
   EVENT SECTION (Akad & Resepsi)
   ============================================================ */

/* Ribbon banner */
.event-ribbon {
    position: relative;
    display: inline-block;
    margin-top: 120px;
    margin-bottom: 30px;
    width: 80%;
    max-width: 300px;
}

.event-ribbon img {
    width: 100%;
    height: auto;
    display: block;
}

.event-ribbon-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    pointer-events: none;
}

/* Row: hari | tanggal besar | waktu */
.event-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 10px 0 24px;
    width: 100%;
}

.event-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
}

/* Garis pemisah kiri dan kanan angka tanggal */
.event-col:first-child {
    border-right: 2px solid #d0c0a8;
}

.event-col:last-child {
    border-left: 2px solid #d0c0a8;
}

.event-date-big {
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    padding: 0 20px;
}

.day {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dark);
}

.month {
    font-size: 0.85rem;
    color: var(--text-light);
}

.time-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.time {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Lokasi */
.event-location      { margin: 10px 0; }
.location-label      { font-size: 0.95rem; font-weight: 700; letter-spacing: 1px; color: var(--text-dark); margin-bottom: 10px; }
.location-address    { font-size: 0.95rem; line-height: 1.8; color: var(--text-light); }

/* Mobile */
@media (max-width: 767px) {
    .event-ribbon        { margin-top: 170px; margin-bottom: 20px; width: 75%; }
    .event-ribbon-text   { font-size: 1.5rem; }
    .event-date-big      { font-size: 3.8rem; padding: 0 14px; }
    .day                 { font-size: 0.85rem; letter-spacing: 1px; }
    .month               { font-size: 0.75rem; }
    .time-label          { font-size: 0.75rem; }
    .time                { font-size: 0.85rem; }
    .event-col           { padding: 0 8px; }
    .location-label      { font-size: 0.85rem; }
    .location-address    { font-size: 0.85rem; line-height: 1.6; }
}

/* ============================================================
   RSVP SECTION
   ============================================================ */
.rsvp-section .section-content {
    padding: 0 20px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0; /* FIX: hapus margin-top: 80px yang langsung ditimpa */
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 12px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    min-width: 72px;
}

.countdown-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
}

.rsvp-intro {
    font-size: 0.9rem;
    margin: 12px 0;
    color: var(--text-light);
}

.rsvp-form {
    max-width: 500px;
    margin: 12px auto;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    margin: 7px 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    appearance: auto;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-input {
    resize: none;
    height: 72px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    border: none;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 165, 116, 0.3);
}

.messages-list {
    max-width: 500px;
    margin: 14px auto 0;
    max-height: 160px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.message-card {
    background: var(--white);
    padding: 14px 16px;
    border-radius: 12px;
    margin: 10px 0;
    box-shadow: 0 3px 15px var(--shadow);
    text-align: left;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}

.message-name          { font-weight: 600; color: var(--primary-color); }

.message-status {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--light-color);
}

.message-status.hadir        { background: #d4edda; color: #155724; }
.message-status.tidak-hadir  { background: #f8d7da; color: #721c24; }
.message-status.masih-ragu   { background: #fff3cd; color: #856404; }

.message-text {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-word;
}

/* ============================================================
   GIFT SECTION
   ============================================================ */
.gift-section .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.gift-intro {
    font-size: 0.82rem;
    line-height: 1.6;
    margin-top: 70px;
    margin-bottom: 16px;
    color: var(--text-light);
    padding: 0 8px;
}

.gift-options {
    display: flex;
    flex-direction: row;
    gap: 10px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto 12px;
}

.gift-card {
    flex: 1;
    background: var(--white);
    padding: 16px 12px;
    border-radius: 16px;
    box-shadow: 0 5px 20px var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-logo {
    width: 64px;
    height: auto;
    margin-bottom: 8px;
    object-fit: contain;
}

.account-number {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 4px 0;
    word-break: break-all;
    text-align: center;
}

.account-name {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 10px;
    text-align: center;
}

.btn-copy {
    padding: 6px 14px;
    background: var(--primary-color);
    border: none;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-copy:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.shipping-address {
    background: var(--white);
    padding: 14px 20px;
    border-radius: 14px;
    box-shadow: 0 5px 20px var(--shadow);
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.shipping-address h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.shipping-address p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* ============================================================
   MESSAGES PANEL (di Gift Section)
   ============================================================ */
.btn-toggle-messages {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px auto 0;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-toggle-messages:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-toggle-messages.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Panel ucapan */
.messages-panel {
    max-width: 480px;
    width: 90%;
    margin: 10px auto 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.messages-panel.open {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.messages-panel::-webkit-scrollbar {
    display: none;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 2px;
}

.message-card {
    background: var(--white);
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 3px 12px var(--shadow);
    text-align: left;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.message-name          { font-weight: 600; color: var(--primary-color); font-size: 0.88rem; }

.message-status {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--light-color);
}

.message-status.hadir        { background: #d4edda; color: #155724; }
.message-status.tidak-hadir  { background: #f8d7da; color: #721c24; }
.message-status.masih-ragu   { background: #fff3cd; color: #856404; }

.message-text {
    color: var(--text-light);
    font-size: 0.82rem;
    line-height: 1.5;
    word-break: break-word;
}

/* Empty state */
.messages-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 0.82rem;
    padding: 20px 0;
    font-style: italic;
}

/* Mobile */
@media (max-width: 767px) {
    .btn-toggle-messages { font-size: 0.8rem; padding: 9px 20px; }
    .messages-panel.open { max-height: 220px; }
}

/* ============================================================
   THANKS SECTION
   ============================================================ */
.thanks-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 80px;
    margin-bottom: 30px;
    color: var(--text-light);
}

.closing-text {
    font-size: 1rem;
    margin: 20px 0;
    color: var(--text-dark);
}

.couple-names {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--primary-color);
    margin-top: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}

.footer p          { margin-bottom: 15px; }

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================================
   FLOWER FALLING EFFECT
   ============================================================ */
#flower-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;   /* tidak mengganggu klik */
    z-index: 998;           /* di bawah navbar (999) */
    overflow: hidden;
}

.falling-flower {
    position: absolute;
    top: -50px;             /* mulai dari atas layar */
    opacity: 0.85;
    animation: flowerFall linear forwards;
}

@keyframes flowerFall {
    0% {
        top: -50px;
        transform: rotate(0deg) translateX(0px);
        opacity: 0.85;
    }
    50% {
        transform: rotate(180deg) translateX(30px);  /* sedikit goyang */
    }
    100% {
        top: 110vh;
        transform: rotate(360deg) translateX(-20px);
        opacity: 0;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25%       { transform: scale(1.2); }
    50%       { transform: scale(1); }
}

/* ============================================================
   RESPONSIVE — Desktop (≥768px)
   ============================================================ */
@media (min-width: 768px) {
    .nav-item         { min-width: 70px; }
    .nav-item i       { width: 55px; height: 55px; font-size: 1.5rem; }
    .nav-item::before { width: 55px; height: 55px; }

    .bride-groom-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .dengan {
        writing-mode: vertical-rl;
        text-orientation: upright;
    }

    .person-info           { flex: 1; }
    .map-container         { max-height: 300px; }
    .map-container iframe  { height: 300px; }
    .countdown-value       { font-size: 3rem; }
    .countdown-item        { min-width: 100px; padding: 20px; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤767px)
   ============================================================ */
@media (max-width: 767px) {

    /* Section */
    .section                 { padding: 50px 16px 90px; align-items: flex-start; }
    .section-content         { padding-top: 8px; }

    /* Cover */
    .bride-name, .groom-name { font-size: 2.6rem; margin: 4px 0; }
    .and-text                { font-size: 1.6rem; margin: 8px 0; }
    .guest-info              { margin: 16px 0; }
    .guest-name              { font-size: 1.6rem; margin-top: 8px; }
    .btn-open                { padding: 12px 32px; font-size: 0.9rem; margin-top: 14px; }

    /* Couple */
    .couple-section .section-content { overflow-y: auto; padding: 0 20px; }
    .couple-alias            { margin-top: 50px; margin-bottom: 8px; }
    .couple-alias img        { width: 55%; }
    .couple-intro            { font-size: 0.78rem; line-height: 1.5; margin-bottom: 10px; }
    .bride-groom-info        { gap: 8px; padding: 0 10px; }
    .person-info             { padding: 10px 12px; }
    .person-name             { font-size: 1.5rem; margin-bottom: 4px; }
    .person-parent           { font-size: 0.75rem; margin-bottom: 4px; line-height: 1.4; }
    .instagram-link          { font-size: 0.75rem; }
    .dengan                  { font-size: 1.3rem; margin: -7px 0; }

    /* Maps */
    .section-title                    { font-size: 2rem; margin-top: 180px; margin-bottom: 10px; }
    .maps-section .location-address   { font-size: 0.8rem; margin-bottom: 8px; }
    .map-container                    { margin: 8px auto; width: 80%; max-height: 170px; border-radius: 12px; }
    .map-container iframe             { height: 170px !important; }
    .btn-map                          { padding: 10px 26px; font-size: 0.8rem; margin-top: 10px; }

    /* RSVP */
    .section-title           { font-size: 2rem; margin-top: 170px; margin-bottom: 10px; }
    .countdown               { gap: 8px; margin: 16px 0; }
    .countdown-item          { min-width: 60px; padding: 10px 8px; border-radius: 10px; }
    .countdown-value         { font-size: 1.6rem; }
    .countdown-label         { font-size: 0.7rem; margin-top: 4px; }
    .rsvp-intro              { font-size: 0.82rem; margin: 10px 0; }
    .rsvp-form               { margin: 8px auto; }
    .form-input              { padding: 10px 12px; width: 90%;font-size: 0.85rem; margin: 5px 0; }
    textarea.form-input      { height: 62px; }
    .btn-submit              { padding: 11px; width: 90%;font-size: 0.88rem; margin-top: 8px; }
    .messages-list           { max-height: 130px; margin: 10px auto 0; }
    .message-card            { padding: 10px 12px; }
    .message-text            { font-size: 0.8rem; }

    /* Gift */
    .section-title           { font-size: 2rem; margin-top: 120px; margin-bottom: 10px; }
    .gift-intro              { font-size: 0.75rem; margin-top: 60px; margin-bottom: 10px; }
    .gift-options            { gap: 8px; margin-bottom: 10px; width: 90%;}
    .gift-card               { padding: 12px 8px; }
    .payment-logo            { width: 54px; margin-bottom: 6px; }
    .account-number          { font-size: 0.72rem; }
    .account-name            { font-size: 0.68rem; margin-bottom: 6px; }
    .btn-copy                { padding: 5px 12px; font-size: 0.7rem; }
    .shipping-address        { padding: 10px 14px; width: 90%; }
    .shipping-address h3     { font-size: 1.3rem; margin-bottom: 4px; }
    .shipping-address p      { font-size: 0.75rem; }

    /* Thanks */
    .thanks-text             { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
    .couple-names            { font-size: 2.4rem; margin-top: 14px; }

    /* Navbar */
    .navbar                  { justify-content: flex-start; padding: 10px 5px 16px; }
    .nav-item                { min-width: 58px; padding: 4px 3px 3px; }
    .nav-item i              { width: 42px; height: 42px; font-size: 1.1rem; }
    .nav-item::before        { width: 42px; height: 42px; }
    .nav-item span           { font-size: 0.55rem; }
}