/* =============================================
   CSS – WEDDING INVITATION: RED & BLUE SERIES
   Citra & Kevin | 30.12.2030
   ============================================= */

/* ---- Google Fonts already loaded via HTML ---- */

:root {
    --red-deep:    #7A1A1A;
    --red-medium:  #9B2335;
    --red-light:   #C0392B;
    --blue-dark:   #3A5A72;
    --blue-mid:    #4A7A9B;
    --cream:       #F5EDE3;
    --cream-light: #FDF8F3;
    --brown-warm:  #5C3A1E;
    --gold:        #C4993A;
    --bg-dark:     #0F1626;
    --text-dark:   #2C1810;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    min-height: 100vh;
    font-family: 'Cormorant Garamond', Georgia, serif;
    overflow-x: hidden;
}

/* =============================================
   COVER SCREEN
   ============================================= */
.cover-screen {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 460px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    transition: opacity 0.8s ease, transform 0.8s ease;
    overflow: hidden;
}

.cover-screen.closing {
    opacity: 0;
    transform: translateX(-50%) scale(1.04);
    pointer-events: none;
}

@media screen and (min-width: 520px) {
    .cover-screen {
        margin: 2rem 0;
        height: calc(100vh - 4rem);
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    }
}

@media screen and (max-width: 519px) {
    .cover-screen {
        left: 0;
        transform: none;
        max-width: 100%;
        height: 100%;
    }
    
    .cover-screen.closing {
        transform: scale(1.04);
    }
}

.cover-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-card {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100%;
    aspect-ratio: 9 / 16;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Force perfect 9:16 aspect ratio fitting container */
@media (min-aspect-ratio: 9/16) {
    .cover-card {
        height: 100%;
        width: auto;
    }
}
@media (max-aspect-ratio: 9/16) {
    .cover-card {
        width: 100%;
        height: auto;
    }
}

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

/* Open invitation button wrap */
.cover-btn-wrap {
    position: absolute;
    bottom: 0.5%; /* Placed exactly at 0.5% from the bottom of the card content */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 10;
}

/* ---- The Open Invitation Image Button ---- */
.open-btn-img-wrap {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    outline: none;
    display: inline-block;
    width: 42%; /* Takes 42% of the card width to scale proportionally, matching the design photo */
    max-width: 190px;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.open-btn-img {
    display: block;
    width: 100%;
    height: auto;
}

.open-btn-img-wrap:hover {
    transform: scale(1.05);
}

.open-btn-img-wrap:active {
    transform: scale(0.97);
}

/* =============================================
   MAIN INVITATION (hidden by default)
   ============================================= */
.main-invitation {
    min-height: 100vh;
    background-color: var(--bg-dark);
    transition: opacity 0.6s ease;
}

.main-invitation.hidden {
    display: none;
    opacity: 0;
}

.main-invitation.visible {
    display: block;
    opacity: 1;
}

/* ---- Top navigation bar ---- */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(15, 22, 38, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196, 153, 58, 0.2);
}

.top-nav-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--cream);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.top-nav-date {
    font-family: 'Inter', sans-serif;
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
}

/* =============================================
   WRAPPER & CONTAINER
   ============================================= */
.main-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--bg-dark);
}

.invitation-container {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
}

/* Desktop: phone-like frame */
@media screen and (min-width: 520px) {
    .main-wrapper {
        padding: 2rem 0 4rem;
        min-height: calc(100vh - 52px);
    }
    .invitation-container {
        border-radius: 24px;
        overflow: hidden;
        box-shadow:
            0 30px 80px rgba(0,0,0,0.7),
            0 0 0 1.5px rgba(196, 153, 58, 0.2);
    }
}

@media screen and (max-width: 519px) {
    .invitation-container {
        width: 100%;
    }
}

/* =============================================
   SECTIONS & IMAGES
   ============================================= */
.page-section {
    width: 100%;
    display: block;
    line-height: 0;
}

.invite-img {
    width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}



/* =============================================
   FOOTER
   ============================================= */
.invite-footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0c10 100%);
    padding: 3rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
    border-top: 1px solid rgba(196, 153, 58, 0.15);
}

.footer-ornament {
    font-size: 1.6rem;
    color: var(--gold);
    opacity: 0.7;
    line-height: 1;
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--cream);
    font-size: 1.8rem;
    letter-spacing: 0.04em;
}

.footer-date {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-note {
    font-family: 'Cormorant Garamond', serif;
    color: rgba(245, 237, 227, 0.55);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 0.3rem;
}

/* =============================================
   MUSIC BUTTON
   ============================================= */
.music-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 600;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-deep), var(--blue-dark));
    color: var(--cream);
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.music-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 22px rgba(0,0,0,0.55);
}

.music-btn.hidden {
    display: none;
}

/* =============================================
   MAPS BUTTON OVERLAYS (Page 5)
   ============================================= */
.maps-section {
    position: relative;
    width: 100%;
}

.maps-overlay-btn {
    position: absolute;
    left: 30.93%;
    width: 37.68%;
    height: 6.1%;
    background-color: rgba(255, 255, 255, 0);
    cursor: pointer;
    border-radius: 22px;
    outline: none;
    z-index: 5;
    animation: mapsGlowPulse 2.2s infinite ease-in-out;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes mapsGlowPulse {
    0%, 100% {
        box-shadow: 0 0 0px rgba(196, 153, 90, 0);
        background-color: rgba(255, 255, 255, 0);
    }
    50% {
        box-shadow: 0 0 14px 4px rgba(196, 153, 90, 0.5);
        background-color: rgba(255, 255, 255, 0.08);
    }
}

.maps-overlay-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 18px 5px rgba(196, 153, 90, 0.75);
    animation: none; /* Pause flashing when hovering */
}

.maps-overlay-btn:active {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 8px 2px rgba(196, 153, 90, 0.55);
    transform: scale(0.97);
}

.akad-maps-btn {
    top: 55.31%;
}

.resepsi-maps-btn {
    top: 90.62%;
}

/* =============================================
   RSVP & WISHES SECTION
   ============================================= */
.rsvp-wishes-section {
    position: relative;
    width: 100%;
}

.rsvp-overlay-btn {
    position: absolute;
    left: 45.74%;
    top: 33.18%;
    width: 37.69%;
    height: 6.04%;
    background-color: rgba(255, 255, 255, 0);
    border: none;
    cursor: pointer;
    border-radius: 22px;
    outline: none;
    z-index: 5;
    transition: all 0.3s ease;
}

.rsvp-overlay-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.rsvp-overlay-btn:active {
    transform: scale(0.97);
}

.wishes-overlay-btn {
    position: absolute;
    left: 12.78%;
    top: 87.40%;
    width: 37.69%;
    height: 6.04%;
    background-color: rgba(255, 255, 255, 0);
    border: none;
    cursor: pointer;
    border-radius: 22px;
    outline: none;
    z-index: 5;
    transition: all 0.3s ease;
}

.wishes-overlay-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.wishes-overlay-btn:active {
    transform: scale(0.97);
}

/* =============================================
   RSVP MODAL POPUP
   ============================================= */
.rsvp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.rsvp-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.rsvp-modal-content {
    border-radius: 36px;
    width: 90%;
    max-width: 400px;
    padding: 2.2rem 1.8rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(196, 153, 58, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.rsvp-modal.active .rsvp-modal-content {
    transform: scale(1);
}

.rsvp-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    line-height: 1;
    font-weight: 300;
}

.rsvp-modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.rsvp-modal-title {
    font-family: 'Beth Ellen', cursive;
    font-size: 1.85rem;
    text-align: center;
    margin-bottom: 0.8rem;
    font-weight: normal;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.rsvp-modal-subtitle {
    font-family: 'Childos Arabic', 'Caveat', 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem;
    text-align: center;
    margin-bottom: 1.75rem;
    line-height: 1.4;
    padding: 0 0.5rem;
}

.rsvp-form-group {
    margin-bottom: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.rsvp-form-group label {
    font-family: 'Childos Arabic', 'Caveat', 'FF Providence Sans', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    text-align: left;
    letter-spacing: 0.03em;
}

.rsvp-submit-btn {
    width: 100%;
    padding: 0.95rem;
    border: none;
    border-radius: 28px;
    font-family: 'FF Providence Sans', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.rsvp-submit-btn:active {
    transform: translateY(1px);
}

/* Blue theme for RSVP */
.rsvp-theme-blue .rsvp-modal-content {
    background-color: #1a293a; /* dark blue */
    color: #FDF8F3;
}

.rsvp-theme-blue .rsvp-modal-close {
    color: #FDF8F3;
}

.rsvp-theme-blue .rsvp-modal-title {
    color: #FDF8F3;
}

.rsvp-theme-blue .rsvp-modal-subtitle {
    color: #ffffff; /* white */
}

.rsvp-theme-blue .rsvp-form-group label {
    color: #ffffff; /* white */
}

.rsvp-theme-blue .rsvp-form-group input,
.rsvp-theme-blue .rsvp-form-group select,
.rsvp-theme-blue .rsvp-form-group textarea {
    background-color: #22354A; /* lighter blue input */
    border: 1px solid rgba(196, 153, 58, 0.25);
    color: #FDF8F3;
    font-family: 'FF Providence Sans', 'Inter', sans-serif;
    font-size: 0.95rem;
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.rsvp-theme-blue .rsvp-form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.45;
}

.rsvp-theme-blue .rsvp-form-group input::placeholder,
.rsvp-theme-blue .rsvp-form-group textarea::placeholder {
    color: rgba(245, 237, 227, 0.4);
    font-family: 'FF Providence Sans', 'Inter', sans-serif;
    font-size: 0.95rem;
}

.rsvp-theme-blue .rsvp-form-group input:focus,
.rsvp-theme-blue .rsvp-form-group select:focus,
.rsvp-theme-blue .rsvp-form-group textarea:focus {
    border-color: #C4993A; /* gold */
    background-color: #263C54;
}

.rsvp-theme-blue .rsvp-submit-btn {
    background-color: #571b19; /* dark red button */
    color: #FDF8F3;
    box-shadow: 0 4px 14px rgba(87, 27, 25, 0.4);
}

.rsvp-theme-blue .rsvp-submit-btn:hover {
    background-color: #451413;
    box-shadow: 0 6px 18px rgba(87, 27, 25, 0.5);
}

/* Red theme for Wishes */
.rsvp-theme-red .rsvp-modal-content {
    background-color: #571b19; /* dark red */
    color: #FDF8F3;
}

.rsvp-theme-red .rsvp-modal-close {
    color: #FDF8F3;
}

.rsvp-theme-red .rsvp-modal-title {
    color: #FDF8F3;
}

.rsvp-theme-red .rsvp-modal-subtitle {
    color: #ffffff; /* white */
}

.rsvp-theme-red .rsvp-form-group label {
    color: #ffffff; /* white */
}

.rsvp-theme-red .rsvp-form-group input,
.rsvp-theme-red .rsvp-form-group select,
.rsvp-theme-red .rsvp-form-group textarea {
    background-color: #6E2421; /* lighter red/brown input */
    border: 1px solid rgba(196, 153, 58, 0.25);
    color: #FDF8F3;
    font-family: 'FF Providence Sans', 'Inter', sans-serif;
    font-size: 0.95rem;
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.rsvp-theme-red .rsvp-form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.45;
}

.rsvp-theme-red .rsvp-form-group input::placeholder,
.rsvp-theme-red .rsvp-form-group textarea::placeholder {
    color: rgba(245, 237, 227, 0.4);
    font-family: 'FF Providence Sans', 'Inter', sans-serif;
    font-size: 0.95rem;
}

.rsvp-theme-red .rsvp-form-group input:focus,
.rsvp-theme-red .rsvp-form-group select:focus,
.rsvp-theme-red .rsvp-form-group textarea:focus {
    border-color: #C4993A; /* gold */
    background-color: #7D2C28;
}

.rsvp-theme-red .rsvp-submit-btn {
    background-color: #1a293a; /* dark blue button */
    color: #FDF8F3;
    box-shadow: 0 4px 14px rgba(26, 41, 58, 0.4);
}

.rsvp-theme-red .rsvp-submit-btn:hover {
    background-color: #131F2C;
    box-shadow: 0 6px 18px rgba(26, 41, 58, 0.5);
}

/* =============================================
   WISHES DISPLAY SECTION
   ============================================= */
.wishes-display-section {
    margin-top: 1.8rem;
    border-top: 1px solid rgba(196, 153, 58, 0.25);
    padding-top: 1.2rem;
}

.wishes-display-title {
    font-family: 'Childos Arabic', 'Caveat', 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 500;
    color: #ffffff; /* white */
    margin-bottom: 0.8rem;
    text-align: center;
    letter-spacing: 0.05em;
}

.wishes-list {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* Custom Scrollbar for wishes list */
.wishes-list::-webkit-scrollbar {
    width: 5px;
}

.wishes-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.wishes-list::-webkit-scrollbar-thumb {
    background: rgba(196, 153, 58, 0.4);
    border-radius: 10px;
}

.wishes-list::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 153, 58, 0.6);
}

.wish-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 0.75rem 0.95rem;
    animation: slideInWish 0.4s ease-out;
}

@keyframes slideInWish {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wish-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.wish-sender-name {
    font-family: 'FF Providence Sans', 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #FDF8F3;
}

.wish-timestamp {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(245, 237, 227, 0.55);
}

.wish-message {
    font-family: 'FF Providence Sans', 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    word-break: break-word;
}

/* =============================================
   WEDDING GIFT & VIDEO SECTION
   ============================================= */
.wedding-gift-video-section {
    position: relative;
    width: 100%;
}

.wedding-gift-video-wrap {
    position: absolute;
    left: 9.91%;
    top: 17.5%; /* moved down slightly to clear the top ribbon and balance layout */
    width: 80.19%;
    height: 25.37%; /* standard 16:9 landscape height relative to viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(196, 153, 58, 0.2);
    border-radius: 36px; /* heavily rounded corners to match the photo frame */
}

.wedding-gift-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
    display: block;
}

.wedding-gift-ribbon-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 15; /* sits in front of the video wrap (z-index: 10) */
    pointer-events: none; /* lets user click the video play/pause buttons under it */
    display: block;
}

/* =============================================
   KIRIM GIFT OVERLAY BUTTON
   ============================================= */
.gift-overlay-btn {
    position: absolute;
    left: 31.11%;
    top: 76.25%;
    width: 37.59%;
    height: 5.99%;
    background-color: #1a293a; /* dark blue */
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 28px; /* capsule */
    outline: none;
    z-index: 10;
    font-family: 'FF Providence Sans', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(26, 41, 58, 0.4);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.gift-overlay-btn:hover {
    background-color: #131F2C;
    box-shadow: 0 6px 18px rgba(26, 41, 58, 0.5);
    transform: translateY(-1px);
}

.gift-overlay-btn:active {
    transform: translateY(1px);
}

/* =============================================
   GIFT BANK CARDS INSIDE MODAL
   ============================================= */
.gift-card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.gift-bank-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(196, 153, 58, 0.25);
    border-radius: 18px;
    padding: 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.gift-bank-card .bank-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #ffffff; /* white */
}

.gift-bank-card .account-number {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin: 0.2rem 0;
}

.gift-bank-card .account-holder {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    color: rgba(245, 237, 227, 0.8);
    margin-bottom: 0.5rem;
}

.gift-bank-card .copy-btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 20px;
    background-color: #1a293a; /* dark blue */
    color: #ffffff;
    font-family: 'FF Providence Sans', 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s, transform 0.2s;
}

.gift-bank-card .copy-btn:hover {
    background-color: #131F2C;
    transform: translateY(-1px);
}

.gift-bank-card .copy-btn:active {
    transform: translateY(1px);
}
