/* ========================================================
   WEDDING INVITATION LUXURY THEME
   Bagas & Sarah Digital Wedding
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel:wght@400;600;700&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-gold: #c5a059;
    --primary-gold-dark: #a27b34;
    --primary-gold-light: #f4e8c1;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #edc967 50%, #aa771c 100%);
    --bg-warm: #fcfaf7;
    --bg-card: #ffffff;
    --bg-dark: #1b241e;
    --text-dark: #2c302e;
    --text-muted: #6b726e;
    --border-color: rgba(197, 160, 89, 0.25);
    --font-script: 'Alex Brush', cursive;
    --font-serif: 'Playfair Display', serif;
    --font-cinzel: 'Cinzel', serif;
    --font-sans: 'Montserrat', sans-serif;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-gold: 0 8px 25px rgba(197, 160, 89, 0.2);
    --radius-lg: 20px;
    --radius-md: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-warm);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body.locked {
    overflow: hidden;
    height: 100vh;
}

/* Typography Helpers */
.font-script {
    font-family: var(--font-script);
}

.font-serif {
    font-family: var(--font-serif);
}

.font-cinzel {
    font-family: var(--font-cinzel);
}

.text-gold {
    color: var(--primary-gold) !important;
}

.bg-gold {
    background-color: var(--primary-gold) !important;
    color: #fff;
}

/* ========================================================
   COVER / OPENING OVERLAY
   ======================================================== */
.wedding-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(20, 26, 22, 0.82), rgba(20, 26, 22, 0.88)), url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1600&auto=format&fit=crop&q=80') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
    padding: 20px;
}

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

.cover-card {
    max-width: 480px;
    width: 100%;
    padding: 40px 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    animation: fadeInScale 1s ease-out;
}

.cover-couple-name {
    font-size: 3.5rem;
    color: #f7e7ce;
    margin: 15px 0;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.cover-guest-box {
    margin: 25px 0;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(244, 232, 193, 0.4);
}

.cover-guest-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    margin-top: 5px;
}

.btn-open-invite {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #1b241e;
    background: var(--gold-gradient);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: all 0.3s ease;
}

.btn-open-invite:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.45);
}

/* ========================================================
   FLOATING ELEMENTS (AUDIO & BOTTOM NAV)
   ======================================================== */
.floating-audio-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(27, 36, 30, 0.85);
    backdrop-filter: blur(8px);
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: transform 0.3s ease, background 0.3s;
}

.floating-audio-btn:hover {
    transform: scale(1.1);
}

.floating-audio-btn.playing {
    animation: spin 5s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.bottom-navbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: rgba(27, 36, 30, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 50px;
    padding: 6px 14px;
    display: flex;
    gap: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    max-width: 95vw;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c4cdc7;
    text-decoration: none;
    font-size: 0.72rem;
    padding: 8px 12px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.bottom-nav-link i {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.bottom-nav-link:hover,
.bottom-nav-link.active {
    color: #ffffff;
    background: var(--gold-gradient);
    color: #1b241e;
    font-weight: 600;
}

/* ========================================================
   SECTION STYLING
   ======================================================== */
section {
    padding: 90px 20px;
    position: relative;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-gold-dark);
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    color: var(--text-dark);
    margin: 10px 0;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background-color: var(--primary-gold);
}

.section-divider i {
    color: var(--primary-gold);
    font-size: 0.9rem;
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(252, 250, 247, 0.9), rgba(252, 250, 247, 0.92)), url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1600&auto=format&fit=crop&q=80') center/cover no-repeat;
    padding-top: 120px;
    padding-bottom: 100px;
}

.hero-names {
    font-size: 4.5rem;
    line-height: 1.1;
    color: var(--primary-gold-dark);
    margin: 20px 0;
}

.hero-ampersand {
    font-family: var(--font-serif);
    font-size: 3rem;
    display: block;
    color: var(--text-muted);
}

/* COUNTDOWN TIMER */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.countdown-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    min-width: 80px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-gradient);
}

.countdown-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: var(--font-cinzel);
    display: block;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* QUOTE SECTION */
.quote-section {
    background-color: #f7f4ed;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.quote-box {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.quote-arabic {
    font-size: 1.5rem;
    line-height: 2.2;
    color: #1b241e;
    margin-bottom: 20px;
    font-family: 'Traditional Arabic', 'Scheherazade New', serif;
    direction: rtl;
}

.quote-translation {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.8;
}

/* COUPLE SECTION */
.couple-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.couple-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
}

.couple-photo-wrapper {
    width: 190px;
    height: 190px;
    margin: 0 auto 25px;
    border-radius: 50%;
    padding: 6px;
    background: var(--gold-gradient);
    position: relative;
}

.couple-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
}

.couple-title {
    font-size: 1.8rem;
    font-family: var(--font-serif);
    color: var(--text-dark);
    margin-bottom: 8px;
}

.couple-parents {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 20px;
}

.couple-ig {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.couple-ig:hover {
    background: var(--primary-gold);
    color: #ffffff;
    border-color: var(--primary-gold);
}

/* LOVE STORY TIMELINE */
.timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--primary-gold-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 45px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    text-align: left;
}

.timeline-icon {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #1b241e;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}

.timeline-content {
    background: #ffffff;
    padding: 22px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.timeline-year {
    display: inline-block;
    padding: 3px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--primary-gold-light);
    color: var(--primary-gold-dark);
    border-radius: 20px;
    margin-bottom: 8px;
}

/* EVENT CARDS */
.event-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gold-gradient);
}

.event-icon-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #faf5ea;
    color: var(--primary-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    border: 1px solid var(--border-color);
}

.event-title {
    font-size: 1.7rem;
    font-family: var(--font-serif);
    margin-bottom: 15px;
}

.event-details {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.event-details p {
    margin-bottom: 8px;
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 260px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 36, 30, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff;
    font-size: 1.6rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* GIFT & DIGITAL ENVELOPE */
.gift-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    margin-bottom: 25px;
    text-align: center;
}

.bank-logo {
    height: 38px;
    margin-bottom: 15px;
    object-fit: contain;
}

.account-number {
    font-family: var(--font-cinzel);
    font-size: 1.4rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 10px 0 5px;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 0.88rem;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold-dark);
    background: transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: var(--gold-gradient);
    color: #1b241e;
    border-color: transparent;
}

/* RSVP & GUESTBOOK */
.rsvp-wrapper {
    max-width: 780px;
    margin: 0 auto;
}

.rsvp-form-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.form-control, .form-select {
    border: 1px solid #d8deda;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.25rem rgba(197, 160, 89, 0.25);
    outline: none;
}

.attendance-radios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.attendance-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #d8deda;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fafafa;
}

.attendance-radios input[type="radio"] {
    display: none;
}

.attendance-radios input[type="radio"]:checked + .attendance-label {
    border-color: var(--primary-gold);
    background: var(--primary-gold-light);
    color: var(--primary-gold-dark);
    font-weight: 600;
}

.btn-submit-rsvp {
    background: var(--gold-gradient);
    color: #1b241e;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    padding: 14px 30px;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit-rsvp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* WISHES FEED */
.wishes-card-feed {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.wishes-list {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
}

.wishes-list::-webkit-scrollbar {
    width: 6px;
}

.wishes-list::-webkit-scrollbar-thumb {
    background: var(--primary-gold-light);
    border-radius: 10px;
}

.wish-item {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wish-item:last-child {
    border-bottom: none;
}

.wish-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #faf5ea;
    border: 1px solid var(--border-color);
    color: var(--primary-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.wish-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 5px;
}

.wish-name {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-dark);
}

.wish-badge {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.badge-hadir {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.badge-tidak-hadir {
    background-color: #f5f5f5;
    color: #757575;
}

.badge-ragu {
    background-color: #fff8e1;
    color: #f57f17;
}

.wish-time {
    font-size: 0.75rem;
    color: #9e9e9e;
}

.wish-text {
    font-size: 0.92rem;
    color: #555555;
    line-height: 1.6;
}

/* FOOTER */
.wedding-footer {
    background: var(--bg-dark);
    color: #ffffff;
    text-align: center;
    padding: 70px 20px 100px;
}

.footer-couple {
    font-size: 3.5rem;
    color: #f7e7ce;
    margin: 15px 0;
}

/* LIGHTBOX MODAL */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* TOAST ALERT */
.copy-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: #1b241e;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 99999;
    border: 1px solid var(--primary-gold);
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================================
   RESPONSIVE DESIGN
   ======================================================== */
@media (max-width: 768px) {
    .cover-couple-name {
        font-size: 2.8rem;
    }

    .hero-names {
        font-size: 3.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 55px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item .timeline-icon {
        left: 0 !important;
        right: auto !important;
    }

    .bottom-navbar {
        padding: 4px 10px;
        gap: 4px;
    }

    .bottom-nav-link {
        font-size: 0.65rem;
        padding: 6px 8px;
    }

    .bottom-nav-link i {
        font-size: 0.95rem;
    }

    .couple-photo-wrapper {
        width: 150px;
        height: 150px;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
