/* ========================================
   RED PADANG - Wedding Invitation Theme
   Based on Camila & Zaky design
   ======================================== */

/* Custom Fonts from Wed-Webs */
@font-face { font-family:'Saudagar'; font-style:normal; font-weight:normal; font-display:swap; src:url('https://wedmedia.wed-webs.com/2022/07/05030300/Saudagar.ttf') format('truetype'); }
@font-face { font-family:'Hello Bride'; font-style:normal; font-weight:normal; font-display:swap; src:url('https://wedmedia.wed-webs.com/2024/05/06121211/Hello-Bride-Script.ttf') format('truetype'); }
@font-face { font-family:'Melika'; font-style:normal; font-weight:normal; font-display:swap; src:url('https://wedmedia.wed-webs.com/2022/02/05012546/zMelika-Letter.ttf') format('truetype'); }
@font-face { font-family:'Aerotis'; font-style:normal; font-weight:normal; font-display:swap; src:url('https://wedmedia.wed-webs.com/2022/04/05013808/Aerotis.ttf') format('truetype'); }
@font-face { font-family:'Everleigh'; font-style:normal; font-weight:normal; font-display:swap; src:url('https://wedmedia.wed-webs.com/2025/03/06165133/Everleigh.ttf') format('truetype'); }

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Forum&family=Philosopher:wght@400;700&family=Montserrat:wght@400;500;600&family=Karla:wght@400;600;700&family=Roboto:wght@300;400;500&display=swap');

:root {
    --rp-red: #A44952;
    --rp-red-light: #D36E78;
    --rp-mauve: #85686C;
    --rp-mauve-light: #C3989E;
    --rp-mauve-dark: #AF676A;
    --rp-cream: #F4ECD4;
    --rp-beige: #F8F3E6;
    --rp-offwhite: #F7F4F0;
    --rp-white: #FFFFFF;
    --rp-dark: #2C3835;
    --rp-max-width: 1024px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
    font-family:'Forum', sans-serif;
    color: var(--rp-mauve);
    background-color: var(--rp-offwhite);
    overflow-x: hidden;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Desktop background pattern outside the main container */
@media (min-width: 766px) {
    body {
        background-color: #E8E3DC;
        background-image: url('../img/pattern1.jpg');
        background-size: cover;
        background-attachment: fixed;
        background-position: center;
    }
}

img { max-width:100%; height:auto; }
a { text-decoration:none; color:inherit; }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes zoomIn { from { opacity:0; transform:scale(0.85); } to { opacity:1; transform:scale(1); } }
@keyframes bounceDown { 0%,20%,50%,80%,100%{transform:translateY(0);} 40%{transform:translateY(12px);} 60%{transform:translateY(6px);} }
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.05);} }
@keyframes spin { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }

.rp-fade-in { opacity:0; transform:translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.rp-fade-in.visible { opacity:1; transform:translateY(0); }
.rp-zoom-in { opacity:0; transform:scale(0.85); transition: opacity 0.8s ease, transform 0.8s ease; }
.rp-zoom-in.visible { opacity:1; transform:scale(1); }

/* ========== COVER / ENVELOPE ========== */
.rp-cover {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background-color: var(--rp-cream);
    background-image: url('../img/cover.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    text-align: center;
    padding: 8% 8% 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.rp-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--rp-cream) 0%, rgba(244,236,212,0) 51%);
    z-index: 1;
}
.rp-cover > * { position: relative; z-index: 2; }

.rp-cover.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.rp-cover__inner {
    background: radial-gradient(at center center, var(--rp-offwhite) 0%, rgba(247,244,240,0.73) 100%);
    border-radius: 300px;
    padding: 28% 8% 32%;
    box-shadow: 0 -7px 54px -3px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
    margin-bottom: 20%;
}

.rp-cover__label {
    font-family:'Saudagar', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1.8px;
    color: var(--rp-red);
    margin-bottom: 2px;
    line-height: 1.4em;
}

.rp-cover__guest {
    font-family:'Saudagar', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--rp-red);
    margin-bottom: 8%;
    line-height: 1.4em;
}

.rp-cover__address {
    font-family:'Forum', sans-serif;
    font-size: 0.9rem;
    color: var(--rp-mauve);
    margin-top: -5%;
    margin-bottom: 5%;
}

.rp-cover__logo {
    width: 40%;
    margin-bottom: 8%;
}

.rp-cover__title-sub {
    font-family:'Saudagar', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1.2px;
    color: var(--rp-red);
    line-height: 1.4em;
}

.rp-cover__title-names {
    font-family:'Hello Bride', sans-serif;
    font-size: 2.8rem;
    color: var(--rp-red);
    font-weight: normal;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--rp-red);
    margin: 0 0 5%;
}

.rp-cover__btn {
    display: inline-block;
    padding: 15px 25px;
    border: none;
    color: var(--rp-white);
    font-family:'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: linear-gradient(300deg, var(--rp-red) 0%, var(--rp-red-light) 100%);
    box-shadow: 0 10px 50px -10px rgba(88,91,94,0.13);
}
.rp-cover__btn:hover { opacity: 0.85; }

/* ========== MAIN CONTENT ========== */
.rp-main {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    background-color: var(--rp-offwhite);
    position: relative;
}
.rp-main.visible { display:block; opacity:1; }

/* ========== SECTION COMMON ========== */
.rp-section-title {
    font-family:'Saudagar', sans-serif;
    font-size: 2.5rem;
    color: var(--rp-red);
    font-weight: normal;
    margin-bottom: 8px;
    line-height: 1em;
    text-align: center;
}

.rp-section-subtitle {
    font-family:'Forum', sans-serif;
    font-size: 1rem;
    color: var(--rp-mauve);
    margin-bottom: 20px;
    line-height: 1.4em;
    text-align: center;
    font-weight: 500;
}

.rp-divider {
    width: 50%;
    max-width: 200px;
    height: 1px;
    background: var(--rp-mauve);
    margin: 8px auto 12px;
}

/* ========== HERO / HOME ========== */
@keyframes kenBurns {
    0%   { transform: scale(1)   translate(0, 0); }
    25%  { transform: scale(1.1) translate(-1%, -1%); }
    50%  { transform: scale(1.15) translate(0.5%, -0.5%); }
    75%  { transform: scale(1.08) translate(-0.5%, 0.5%); }
    100% { transform: scale(1)   translate(0, 0); }
}

.rp-hero {
    min-height: 100vh;
    background-color: var(--rp-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Animated background layer (Ken Burns effect to simulate video) */
.rp-hero::after {
    content: '';
    position: absolute;
    inset: -5%;
    background-image: url('../img/fallback.jpg');
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s ease-in-out infinite;
    z-index: 0;
}

.rp-hero > * { position: relative; z-index: 1; }

.rp-hero__inner {
    background: radial-gradient(at center center, rgba(255,255,255,0.71) 0%, rgba(255,255,255,0) 61%);
    padding: 28% 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 8%;
}

.rp-hero__logo {
    width: 24%;
    max-width: 195px;
    margin-bottom: 15px;
}

.rp-hero__subtitle {
    font-family:'Saudagar', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--rp-red);
    line-height: 1em;
    margin-top: 5px;
}

.rp-hero__names {
    font-family:'Hello Bride', sans-serif;
    font-size: 2.8rem;
    color: var(--rp-red);
    font-weight: normal;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--rp-red);
    line-height: 1.2;
    margin-bottom: 5%;
}

.rp-hero__scroll {
    animation: bounceDown 2s infinite;
}
.rp-hero__scroll i {
    font-size: 24px;
    color: var(--rp-red);
    filter: brightness(75%) contrast(140%) saturate(200%) hue-rotate(305deg);
}

/* ========== SALAM / QUOTE ========== */
.rp-salam-wrap {
    background-image: url('../img/pattern2.jpg');
    background-position: bottom center;
    background-size: cover;
    padding: 28% 8%;
    overflow: hidden;
}

.rp-salam-card {
    background: rgba(247,244,240,0.76);
    border-radius: 300px;
    box-shadow: 0 0 22px -7px rgba(0,0,0,0.5);
    overflow: hidden;
}

.rp-salam-card__ornament {
    text-align: end;
    margin: -3% -3% -10% 0;
}
.rp-salam-card__ornament img {
    width: 53%;
}

.rp-salam-inner {
    padding: 0 10% 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rp-salam__title-decorative {
    font-family:'Melika', sans-serif;
    font-size: 2.8rem;
    color: var(--rp-red);
    font-weight: normal;
    line-height: 1em;
}

.rp-salam__title-main {
    font-family:'Saudagar', sans-serif;
    font-size: 2.8rem;
    color: var(--rp-red);
    font-weight: normal;
    line-height: 1em;
    margin-bottom: 2%;
}

.rp-salam__quote {
    font-family:'Forum', sans-serif;
    font-size: 1rem;
    color: var(--rp-mauve);
    line-height: 1.4em;
    margin: 2% 14% 6% 14%;
    font-weight: 500;
}

.rp-salam__source {
    font-family:'Forum', sans-serif;
    font-size: 0.85rem;
    color: var(--rp-mauve);
    font-style: italic;
}

.rp-salam__photo {
    width: 100%;
    border-radius: 0 0 300px 300px;
    margin-top: 12%;
    display: block;
}

/* ========== COUPLE / MEMPELAI ========== */
.rp-couple-wrap {
    background-image: url('../img/pattern1.jpg');
    background-position: top center;
    background-size: cover;
    padding: 24% 8% 18%;
}

.rp-couple-title {
    font-family:'Saudagar', sans-serif;
    font-size: 1.8rem;
    color: var(--rp-red);
    font-weight: bold;
    text-align: center;
    margin-bottom: 5%;
    line-height: 1em;
}

.rp-couple-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 5%;
}

.rp-couple__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.rp-couple__photo {
    width: 100%;
    border-radius: 300px 300px 20px 20px;
    object-fit: cover;
    aspect-ratio: 3/4;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: block;
}

.rp-couple__nickname {
    font-family:'Hello Bride', sans-serif;
    font-size: 3.5rem;
    color: var(--rp-red);
    font-weight: normal;
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: var(--rp-red);
    line-height: 1.3em;
    margin-top: 5px;
}

.rp-couple__fullname {
    font-family:'Philosopher', sans-serif;
    font-size: 1.2rem;
    color: var(--rp-red);
    font-weight: normal;
    line-height: 1.3em;
}

.rp-couple__parents {
    font-family:'Forum', sans-serif;
    font-size: 1rem;
    color: var(--rp-mauve);
    line-height: 1.4em;
}

.rp-couple__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: var(--rp-red);
    color: var(--rp-white);
    border-radius: 50%;
    font-size: 20px;
    margin-top: 8px;
}
.rp-couple__social--second {
    background: var(--rp-red);
}

.rp-couple__ampersand {
    font-family:'Aerotis', sans-serif;
    font-size: 3.5rem;
    color: var(--rp-red);
    margin: 4% 0 10%;
    line-height: 1em;
    text-align: center;
}

/* ========== PHOTO DIVIDER (Carousel Slideshow) ========== */
.rp-photo-divider {
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}
.rp-photo-divider__slide {
    position: absolute;
    inset: -5%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: kenBurns 20s ease-in-out infinite;
    transition: opacity 1.2s ease;
}
.rp-photo-divider__slide.active {
    opacity: 1;
}

/* ========== EVENTS / ACARA ========== */
.rp-events-wrap {
    background-image: url('../img/pattern2.jpg');
    background-position: bottom center;
    background-size: cover;
    padding: 24% 6% 28%;
}

.rp-events-hero {
    background: linear-gradient(180deg, var(--rp-mauve-dark) 0%, var(--rp-mauve) 100%);
    border-radius: 300px;
    padding: 18% 12% 12%;
    box-shadow: 0 0 22px -7px rgba(0,0,0,0.5);
    overflow: hidden;
    margin-bottom: 0;
    text-align: center;
}

.rp-events-hero__title {
    font-family:'Everleigh', sans-serif;
    font-size: 1.6rem;
    color: var(--rp-white);
    font-weight: normal;
    text-align: center;
    padding: 0;
    line-height: 1.2em;
}

.rp-events-hero__text {
    font-family:'Forum', sans-serif;
    font-size: 1rem;
    color: var(--rp-white);
    text-align: center;
    padding: 0;
    line-height: 1.4em;
    font-weight: 500;
    margin-top: 5px;
}

.rp-events-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8%;
}

.rp-event-card {
    background-color: rgba(247,244,240,0.73);
    background-image: url('../img/cover.jpg');
    background-position: center center;
    background-size: cover;
    border-radius: 300px;
    padding: 38% 8%;
    box-shadow: 0 0 37px -9px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rp-event-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(at center center, var(--rp-offwhite) 0%, rgba(247,244,240,0.73) 100%);
    z-index: 1;
}
.rp-event-card > * { position: relative; z-index: 2; }

.rp-event-card__name {
    font-family:'Everleigh', sans-serif;
    font-size: 2.4rem;
    color: var(--rp-red);
    font-weight: normal;
    margin-bottom: 5px;
}

.rp-event-card__divider {
    width: 50%;
    height: 1px;
    background: var(--rp-mauve);
    margin: 6px auto;
}

.rp-event-card__detail {
    font-family:'Forum', sans-serif;
    font-size: 1.1rem;
    color: var(--rp-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
    text-align: center;
    display: block;
}
.rp-event-card__detail i { display: none; }

.rp-event-card__address {
    font-family:'Forum', sans-serif;
    font-size: 1rem;
    color: var(--rp-mauve);
    font-style: italic;
    line-height: 1.2em;
    margin-bottom: 8px;
    text-align: center;
}

.rp-event-card__maps-btn {
    display: inline-block;
    padding: 15px 25px;
    border: none;
    color: var(--rp-white);
    font-family:'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: linear-gradient(300deg, var(--rp-mauve) 0%, var(--rp-mauve-light) 100%);
    box-shadow: 0 10px 50px -10px rgba(88,91,94,0.13);
    margin-top: 1em;
}
.rp-event-card__maps-btn:hover { opacity: 0.85; }
.rp-event-card__maps-btn i { margin-right: 5px; }

/* ========== RSVP ========== */
.rp-rsvp-wrap {
    background-image: url('../img/pattern3.jpg');
    background-position: top center;
    background-size: cover;
    padding: 28% 8% 12%;
    position: relative;
    overflow: hidden;
}
.rp-rsvp-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, var(--rp-offwhite) 100%);
    pointer-events: none;
}

.rp-rsvp-card {
    background: rgba(247,244,240,0.48);
    border: 4px solid var(--rp-red);
    border-radius: 50px;
    padding: 24% 8% 20%;
    box-shadow: 0 0 54px -19px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
    z-index: 2;
}

.rp-rsvp__form {
    max-width: 100%;
    margin: -3% auto 0;
    text-align: left;
}

.rp-rsvp__form .form-group {
    margin-bottom: 15px;
}

.rp-rsvp__form label {
    display: block;
    font-family:'Forum', sans-serif;
    font-size: 1.1rem;
    color: var(--rp-mauve);
    margin-bottom: 6px;
    font-weight: 600;
}

.rp-rsvp__form input,
.rp-rsvp__form select,
.rp-rsvp__form textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid var(--rp-mauve);
    background-color: transparent;
    font-family:'Forum', sans-serif;
    font-size: 1rem;
    color: var(--rp-mauve);
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
    -webkit-appearance: none;
}
.rp-rsvp__form input:focus,
.rp-rsvp__form select:focus,
.rp-rsvp__form textarea:focus {
    border-bottom-color: var(--rp-red);
}

.rp-rsvp__form input::placeholder,
.rp-rsvp__form textarea::placeholder {
    color: var(--rp-mauve);
    opacity: 0.6;
}

.rp-rsvp__btn {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    background-color: var(--rp-mauve);
    color: var(--rp-white);
    border: none;
    border-radius: 50px;
    font-family:'Montserrat', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}
.rp-rsvp__btn:hover { opacity:0.9; }

.rp-rsvp__msg {
    display: none;
    padding: 10px 16px;
    border-radius: 10px;
    margin-top: 15px;
    font-family:'Forum', sans-serif;
    font-size: 14px;
    text-align: center;
}
.rp-rsvp__msg.success { display:block; background:rgba(164,73,82,0.1); color:var(--rp-red); }
.rp-rsvp__msg.error { display:block; background:rgba(133,104,108,0.1); color:var(--rp-mauve); }

.rp-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

/* ========== QR CODE ========== */
.rp-qrcode-wrap {
    background-image: url('../img/pattern3.jpg');
    background-position: top center;
    background-size: cover;
    padding: 0 8% 8%;
    position: relative;
}

.rp-qrcode-card {
    background: rgba(247,244,240,0.48);
    border: 4px solid var(--rp-red);
    border-radius: 50px;
    padding: 24% 8% 20%;
    box-shadow: 0 0 54px -19px rgba(0,0,0,0.5);
    text-align: center;
}

.rp-qrcode__box {
    background: var(--rp-white);
    display: inline-block;
    padding: 15px;
    border-radius: 15px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ========== UCAPAN / COMMENTS ========== */
.rp-ucapan-wrap {
    background-color: #AF8B7F;
    background-image: url('../img/pattern3.jpg');
    background-position: bottom center;
    background-size: cover;
    padding: 12% 8% 20%;
    position: relative;
    overflow: hidden;
}
.rp-ucapan-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, var(--rp-offwhite) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.rp-ucapan-section {
    position: relative;
    z-index: 2;
    text-align: center;
}

.rp-ucapan__form {
    max-width: 100%;
    margin: 0 auto 20px;
    text-align: left;
}

.rp-ucapan__form input,
.rp-ucapan__form textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid var(--rp-mauve);
    background-color: transparent;
    font-family:'Forum', sans-serif;
    font-size: 1rem;
    color: var(--rp-mauve);
    outline: none;
    margin-bottom: 12px;
    border-radius: 0;
}

.rp-ucapan__btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--rp-mauve);
    color: var(--rp-white);
    border: none;
    border-radius: 50px;
    font-family:'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

.rp-ucapan__list {
    max-height: 80vh;
    overflow-y: auto;
    padding: 1%;
    margin-top: 20px;
    text-align: left;
}
.rp-ucapan__list::-webkit-scrollbar { width:4px; background:none; }
.rp-ucapan__list::-webkit-scrollbar-thumb { background:#808080; border-radius:5px; }

.rp-ucapan__item {
    background: #FFFCF3;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
}

.rp-ucapan__item-name {
    font-family:'Forum', sans-serif;
    font-size: 1.1rem;
    color: var(--rp-mauve);
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1em;
}

.rp-ucapan__item-text {
    font-family:'Forum', sans-serif;
    font-size: 1rem;
    color: var(--rp-mauve);
    line-height: 1.2em;
    font-weight: 500;
}

/* ========== GALLERY ========== */
.rp-gallery-wrap {
    background-color: #AF8B7F;
    background-image: url('../img/pattern3.jpg');
    background-position: bottom center;
    background-size: cover;
    padding: 12% 8% 20%;
    position: relative;
    overflow: hidden;
}
.rp-gallery-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, var(--rp-offwhite) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.rp-gallery-section {
    position: relative;
    z-index: 2;
    text-align: center;
}

.rp-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.rp-gallery__item {
    overflow: hidden;
    border-radius: 500px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.8s;
}
.rp-gallery__item:hover { transform:scale(1.05); }

.rp-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s;
}

.rp-video {
    max-width: 100%;
    margin: 20px auto 0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.rp-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* ========== CERITA / STORY ========== */
.rp-cerita-wrap {
    background-color: var(--rp-offwhite);
    background-image: url('../img/pattern3.jpg');
    background-position: bottom center;
    background-size: cover;
    padding: 12% 8% 12%;
    position: relative;
    overflow: hidden;
}
.rp-cerita-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 30%;
    background: linear-gradient(180deg, var(--rp-offwhite) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.rp-cerita-section {
    position: relative;
    z-index: 2;
    text-align: center;
}

.rp-cerita-section .rp-section-title {
    font-family:'Saudagar', sans-serif;
    font-size: 2.5rem;
    color: var(--rp-red);
}

.rp-cerita__timeline {
    text-align: left;
    position: relative;
    padding-left: 25px;
    margin-top: 20px;
}
.rp-cerita__timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 8px;
    width: 2px;
    background: var(--rp-red);
    opacity: 0.3;
}

.rp-cerita__item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 10px;
}
.rp-cerita__item::before {
    content: '';
    position: absolute;
    left: -22px; top: 6px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--rp-red);
}

.rp-cerita__date {
    font-family:'Forum', sans-serif;
    font-size: 0.85rem;
    color: var(--rp-mauve);
    font-style: italic;
}
.rp-cerita__heading {
    font-family:'Saudagar', sans-serif;
    font-size: 1.3rem;
    color: var(--rp-red);
    margin: 3px 0;
}
.rp-cerita__text {
    font-family:'Forum', sans-serif;
    font-size: 1rem;
    color: var(--rp-mauve);
    line-height: 1.4;
}

/* ========== COUNTDOWN ========== */
.rp-countdown-wrap {
    background-color: var(--rp-beige);
    background-image: url('../img/cover.jpg');
    background-position: center center;
    background-size: cover;
    padding: 28% 6%;
    position: relative;
    overflow: hidden;
}
.rp-countdown-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--rp-offwhite) 100%);
    z-index: 1;
}

.rp-countdown-shape-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 2;
}
.rp-countdown-shape-top svg { display:block; width:100%; height:80px; }
.rp-countdown-shape-top svg path { fill: var(--rp-offwhite); }

.rp-countdown-inner {
    position: relative;
    z-index: 3;
    border: 4px solid var(--rp-mauve);
    border-radius: 300px 300px 0 0;
    padding: 48% 8% 58%;
    background-image: url('../img/cover.jpg');
    background-position: center center;
    background-size: cover;
    overflow: hidden;
}
.rp-countdown-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(at center center, var(--rp-offwhite) 0%, rgba(247,244,240,0.34) 100%);
    z-index: 1;
}
.rp-countdown-inner > * { position: relative; z-index: 2; }

.rp-countdown__ornament {
    text-align: center;
    margin-bottom: 10px;
}
.rp-countdown__ornament img { width: 43%; }

.rp-countdown__grid {
    display: flex;
    justify-content: center;
    gap: 3px;
    max-width: 87%;
    margin: 15px auto;
}

.rp-countdown__item {
    background: var(--rp-mauve);
    border-radius: 3px;
    padding: 1em 0.5em;
    flex: 1;
    text-align: center;
}

.rp-countdown__number {
    display: block;
    font-family:'Forum', sans-serif;
    font-size: 1.8em;
    color: var(--rp-white);
}

.rp-countdown__label {
    display: block;
    font-family:'Forum', sans-serif;
    font-size: 0.6em;
    color: var(--rp-white);
    font-style: italic;
    text-transform: uppercase;
}

.rp-countdown__save-btn {
    display: inline-block;
    padding: 15px 25px;
    background: var(--rp-mauve);
    color: var(--rp-white);
    border: none;
    border-radius: 50px;
    font-family:'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 50px -10px rgba(88,91,94,0.13);
    text-decoration: none;
    margin-top: 15px;
}

.rp-countdown__cta {
    position: relative;
    z-index: 3;
    text-align: center;
}

.rp-countdown__cta-text {
    font-family:'Everleigh', sans-serif;
    font-size: 1.6rem;
    color: var(--rp-mauve);
    margin: 5% 0 3%;
    line-height: 1.4em;
}

.rp-countdown__cta-btn {
    display: inline-block;
    padding: 15px 25px;
    border: none;
    color: var(--rp-white);
    font-family:'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    background-image: linear-gradient(300deg, var(--rp-mauve) 0%, var(--rp-mauve-light) 100%);
    box-shadow: 0 10px 50px -10px rgba(88,91,94,0.13);
    text-decoration: none;
}

/* ========== LOKASI ========== */
.rp-lokasi-wrap {
    background-image: url('../img/pattern3.jpg');
    background-position: bottom center;
    background-size: cover;
    padding: 0 8% 12%;
    position: relative;
}

.rp-lokasi-section {
    position: relative;
    z-index: 2;
    text-align: center;
}

.rp-lokasi__map {
    border-radius: 15px;
    overflow: hidden;
    margin-top: 15px;
}
.rp-lokasi__map iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* ========== HADIAH / GIFT ========== */
.rp-hadiah-wrap {
    background-image: url('../img/pattern3.jpg');
    background-position: bottom center;
    background-size: cover;
    padding: 0 8% 12%;
    position: relative;
}

.rp-hadiah-section {
    position: relative;
    z-index: 2;
    text-align: center;
}

.rp-hadiah__card {
    background: rgba(247,244,240,0.75);
    border: 2px solid var(--rp-mauve);
    border-radius: 25px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.rp-hadiah__bank {
    font-family:'Saudagar', sans-serif;
    font-size: 1.3rem;
    color: var(--rp-red);
    margin-bottom: 8px;
}

.rp-hadiah__norek {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.rp-hadiah__norek span {
    font-family:'Forum', sans-serif;
    font-size: 1.1rem;
    color: var(--rp-mauve);
    letter-spacing: 1px;
}

.rp-hadiah__copy {
    background: var(--rp-mauve);
    color: var(--rp-white);
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    font-family:'Montserrat', sans-serif;
    font-size: 11px;
    cursor: pointer;
    letter-spacing: 1px;
}

.rp-hadiah__owner {
    font-family:'Forum', sans-serif;
    font-size: 0.95rem;
    color: var(--rp-mauve);
}

.rp-hadiah__qris {
    max-width: 180px;
    margin-top: 15px;
    border-radius: 10px;
}

/* ========== FOOTER ========== */
.rp-footer {
    background: linear-gradient(360deg, var(--rp-red-light) 0%, var(--rp-red) 100%);
    text-align: center;
    padding: 22% 8% 28%;
}

.rp-footer__logo-icon {
    font-size: 95px;
    color: var(--rp-white);
    margin-bottom: 5px;
}
.rp-footer__logo-icon .fa-heart { font-size: 95px; }

.rp-footer__closing {
    font-family:'Forum', sans-serif;
    font-size: 1rem;
    color: var(--rp-white);
    margin-bottom: 15px;
    line-height: 1.4;
}

.rp-footer__credit {
    font-family:'Roboto', sans-serif;
    font-size: 0.6rem;
    color: var(--rp-white);
    line-height: 1em;
    margin-top: 8px;
}

/* ========== BOTTOM NAVIGATION ========== */
.rp-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 500px;
    display: none;
    justify-content: space-evenly;
    align-items: center;
    background: rgba(255,255,255,0.96);
    border-radius: 50px;
    padding: 8px 16px 10px;
    box-shadow: 0 -8px 12px -14px rgba(0,0,0,0.5);
    z-index: 500;
    margin-bottom: 10px;
}

body.rp-has-nav .rp-nav { display: flex; }
body.rp-has-nav { padding-bottom: 60px; }

.rp-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    cursor: pointer;
    transition: color 0.3s;
    color: var(--rp-red);
}
.rp-nav__item i { font-size: 18px; }
.rp-nav__item span {
    font-family:'Karla', sans-serif;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1em;
    margin-top: 2px;
}
.rp-nav__item.active,
.rp-nav__item:hover { color: #000; }

/* ========== MUSIC BUTTON ========== */
.rp-music-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 45px; height: 45px;
    background: var(--rp-red);
    color: var(--rp-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.rp-music-btn.playing { animation: pulse 1.5s infinite; }

/* ========== LIGHTBOX ========== */
.rp-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.rp-lightbox.active { opacity:1; pointer-events:all; }

.rp-lightbox__close {
    position: absolute;
    top: 20px; right: 20px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}

.rp-lightbox__img {
    max-width: 92%;
    max-height: 85vh;
    border-radius: 10px;
    object-fit: contain;
}

/* ========== TABLET/DESKTOP ========== */

/* Tablet (766px - 1024px) */
@media (min-width: 766px) {
    /* Center the entire page content for larger screens */
    .rp-main {
        max-width: var(--rp-max-width);
        margin: 0 auto;
    }

    .rp-cover__inner { padding: 12% 8% 12%; border-radius: 30px; max-width: 480px; }
    .rp-cover__logo { width: 28%; }
    .rp-cover__title-names { font-size: 4.5rem; }

    .rp-hero { max-width: var(--rp-max-width); margin: 0 auto; }
    .rp-hero__names { font-size: 4.5rem; }
    .rp-hero__logo { width: 170px; }
    .rp-hero__inner { padding: 8%; }

    .rp-salam-wrap { padding: 12% 8%; }
    .rp-salam-card { border-radius: 50px; }
    .rp-salam__photo { border-radius: 0 0 50px 50px; }

    .rp-couple-wrap { padding: 10% 8%; }
    .rp-couple-title { font-size: 2.4rem; }
    .rp-couple-row { flex-direction: row; align-items: flex-start; gap: 0; }
    .rp-couple__card { width: 40%; }
    .rp-couple__ampersand { margin: 0; width: 20%; align-self: center; font-size: 4.5rem; }
    .rp-couple__photo { border-radius: 300px 300px 20px 20px; }
    .rp-couple__nickname { font-size: 2.3rem; }
    .rp-couple__fullname { font-size: 1.6rem; }

    .rp-events-wrap { padding: 12% 6%; }
    .rp-events-hero { border-radius: 50px; }
    .rp-events-hero__title { font-size: 1.7rem; }
    .rp-events-cards { flex-direction: row; gap: 20px; }
    .rp-event-card { border-radius: 50px; padding: 18% 8%; flex: 1; }

    .rp-rsvp-wrap { padding: 10% 5%; }
    .rp-rsvp-card { border-radius: 50px; padding: 18% 8%; }

    .rp-qrcode-card { border-radius: 50px; padding: 18% 8% 18%; }

    .rp-countdown-wrap { padding: 12% 6%; }
    .rp-countdown-inner { border-radius: 50px; padding: 18% 8%; }

    .rp-gallery-wrap { padding: 10% 8%; }
    .rp-gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

    .rp-cerita-wrap { padding: 10% 8%; }

    .rp-photo-divider { min-height: 70vh; }

    .rp-ucapan-wrap { padding: 10% 8%; }

    .rp-lokasi-wrap { padding: 5% 8%; }

    .rp-hadiah-wrap { padding: 5% 8%; }

    .rp-footer { padding: 8%; }

    .rp-nav { width: 75vw; max-width: 600px; padding: 6px 16px 8px; }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    .rp-main {
        max-width: var(--rp-max-width);
        margin: 0 auto;
        box-shadow: 0 0 60px rgba(0,0,0,0.1);
    }

    .rp-cover { align-items: center; }
    .rp-cover__inner { padding: 8% 6% 8%; border-radius: 30px; max-width: 500px; }
    .rp-cover__logo { width: 14%; }
    .rp-cover__title-names { font-size: 4.5rem; }
    .rp-cover__title-sub { font-size: 1rem; }

    .rp-hero {
        max-width: var(--rp-max-width);
        margin: 0 auto;
    }
    .rp-hero__inner { padding: 8%; }
    .rp-hero__names { font-size: 4.5rem; }
    .rp-hero__logo { width: 195px; }
    .rp-hero__subtitle { font-size: 1.4rem; }

    .rp-salam-wrap { padding: 8%; }
    .rp-salam-card { border-radius: 50px; }
    .rp-salam__title-decorative { font-size: 3.5rem; }
    .rp-salam__title-main { font-size: 3rem; }
    .rp-salam__quote { font-size: 1.2rem; margin: 3% 20% 1% 20%; }
    .rp-salam__source { font-size: 1.2rem; }
    .rp-salam__photo { border-radius: 0 0 50px 50px; }

    .rp-couple-wrap { padding: 8% 5%; }
    .rp-couple-title { font-size: 2.5rem; }
    .rp-couple-row { flex-direction: row; align-items: flex-start; gap: 0; margin-top: 5%; }
    .rp-couple__card { width: 40%; }
    .rp-couple__ampersand { width: 19.333%; align-self: center; font-size: 4.5rem; margin: 3% 0; }
    .rp-couple__photo { border-radius: 300px 300px 20px 20px; }
    .rp-couple__nickname { font-size: 3rem; }
    .rp-couple__fullname { font-size: 1.5rem; }
    .rp-couple__parents { font-size: 1.1rem; }

    .rp-events-wrap { padding: 8% 5%; }
    .rp-events-hero { border-radius: 50px; }
    .rp-events-hero__title { font-size: 1.8rem; }
    .rp-events-hero__text { font-size: 1.2rem; }
    .rp-events-cards { flex-direction: row; gap: 20px; }
    .rp-event-card { border-radius: 50px; padding: 18% 8%; flex: 1; }
    .rp-event-card__name { font-size: 3rem; }
    .rp-event-card__detail { font-size: 1.2rem; }

    .rp-rsvp-wrap { padding: 8% 5%; }
    .rp-rsvp-card { border-radius: 50px; padding: 8%; }
    .rp-rsvp__form { max-width: 80%; margin: 0 auto; }

    .rp-qrcode-card { border-radius: 50px; padding: 8%; }

    .rp-countdown-wrap { padding: 8% 6%; }
    .rp-countdown-inner { border-radius: 50px; padding: 18% 8%; }
    .rp-countdown__cta-text { font-size: 2rem; }

    .rp-gallery-wrap { padding: 5% 5% 8%; }
    .rp-gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

    .rp-cerita-wrap { padding: 8%; }
    .rp-cerita-section .rp-section-title { font-size: 3.3rem; }

    .rp-ucapan-wrap { padding: 5% 5% 8%; }
    .rp-ucapan__list { max-height: 60vh; }

    .rp-lokasi-wrap { padding: 5% 8%; }
    .rp-lokasi__map iframe { height: 400px; }

    .rp-hadiah-wrap { padding: 5% 8%; }

    .rp-footer { padding: 8%; }
    .rp-footer__logo-icon { font-size: 114px; }
    .rp-footer__logo-icon .fa-heart { font-size: 114px; }
    .rp-footer__closing { font-size: 1.2rem; }

    .rp-nav { width: 50vw; max-width: 500px; padding: 6px 16px 8px; }
    .rp-nav__item span { font-size: 0.75rem; }
}

