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

:root {
    --inv-bg: #f4f9f7;
    --inv-base: #3d7a7a;
    --inv-accent: #8ea4c0;
    --inv-border: #c8d8e4;
    --inv-gold: #a89045;
    --inv-text: #4a4a4a;
    --font-base: 'Poppins', sans-serif;
    --font-latin: 'Cinzel Decorative', serif;
    --font-accent: 'Cinzel Decorative', serif;
}

body {
    font-family: var(--font-base);
    background: var(--inv-bg);
    color: var(--inv-text);
    overflow-x: hidden;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.hidden {
    display: none !important;
}

/* Section Base */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    position: relative;
    overflow: hidden;
    background: url('../img/content.svg') center/cover no-repeat;
}

.section-content {
    text-align: center;
    z-index: 2;
    width: 100%;
}

/* Frame Decoration */
.frame-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.frame-corner {
    position: absolute;
    width: 80px;
    height: 80px;
}

.frame-corner::before,
.frame-corner::after {
    content: '';
    position: absolute;
    background: var(--inv-accent);
    border-radius: 50%;
    opacity: 0.2;
}

.frame-tl { top: 10px; left: 10px; }
.frame-tl::before { width: 60px; height: 60px; top: 0; left: 0; }
.frame-tl::after { width: 30px; height: 30px; top: 25px; left: 25px; opacity: 0.15; }

.frame-tr { top: 10px; right: 10px; }
.frame-tr::before { width: 60px; height: 60px; top: 0; right: 0; }
.frame-tr::after { width: 30px; height: 30px; top: 25px; right: 25px; opacity: 0.15; }

.frame-bl { bottom: 10px; left: 10px; }
.frame-bl::before { width: 60px; height: 60px; bottom: 0; left: 0; }
.frame-bl::after { width: 30px; height: 30px; bottom: 25px; left: 25px; opacity: 0.15; }

.frame-br { bottom: 10px; right: 10px; }
.frame-br::before { width: 60px; height: 60px; bottom: 0; right: 0; }
.frame-br::after { width: 30px; height: 30px; bottom: 25px; right: 25px; opacity: 0.15; }

.frame-border {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--inv-border), var(--inv-accent), var(--inv-border), transparent);
    opacity: 0.5;
}

.frame-border.frame-top { top: 15px; }
.frame-border.frame-bottom { bottom: 15px; }

/* Floral Decorations */
.floral-top, .floral-bottom {
    position: absolute;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 1;
}

.floral-top {
    top: 0;
    background: radial-gradient(ellipse at top, rgba(142, 164, 192, 0.15) 0%, transparent 60%);
}

.floral-bottom {
    bottom: 0;
    background: radial-gradient(ellipse at bottom, rgba(142, 164, 192, 0.15) 0%, transparent 60%);
}

/* Floral Ornament (flower icon on opening) */
.floral-ornament {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: radial-gradient(circle, var(--inv-accent) 20%, transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
    position: relative;
}

.floral-ornament::before {
    content: '✿';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--inv-base);
    opacity: 0.8;
}

/* Decorative Divider */
.divider-ornament {
    width: 120px;
    height: 20px;
    margin: 20px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-ornament::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--inv-accent), transparent);
}

.divider-ornament::after {
    content: '❦';
    position: relative;
    background: var(--inv-bg);
    padding: 0 10px;
    color: var(--inv-accent);
    font-size: 16px;
    z-index: 1;
}

/* Watercolor Overlay */
.watercolor-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(142, 164, 192, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Opening Section */
.opening-section {
    background: url('../img/opening.svg') center/cover no-repeat;
}

.opening-content {
    text-align: center;
    z-index: 2;
}

.wedding-of {
    font-family: var(--font-base);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--inv-base);
    margin-bottom: 10px;
}

.couple-name {
    font-family: var(--font-latin);
    font-size: 32px;
    color: var(--inv-base);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.wedding-date-small {
    font-size: 14px;
    color: var(--inv-gold);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.kepada {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.guest-name {
    font-family: var(--font-latin);
    font-size: 22px;
    color: var(--inv-base);
    margin: 10px 0 30px;
}

.btn-open {
    background: linear-gradient(135deg, var(--inv-accent), var(--inv-base));
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 14px;
    font-family: var(--font-base);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(61, 122, 122, 0.3);
}

.btn-open:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 122, 122, 0.4);
}

/* Quotes Section */
.arabic-text {
    font-size: 20px;
    line-height: 2;
    color: #3d5a5a;
    margin-bottom: 20px;
    direction: rtl;
}

.translation {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.quran-ref {
    font-size: 13px;
    color: var(--inv-gold);
    font-weight: 500;
}

/* Mempelai Section */
.salam {
    font-size: 14px;
    color: var(--inv-base);
    font-style: italic;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.person-name {
    font-family: var(--font-latin);
    font-size: 24px;
    color: var(--inv-base);
    margin-bottom: 8px;
    font-weight: 700;
}

.person-info {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.ampersand {
    font-family: var(--font-latin);
    font-size: 36px;
    color: var(--inv-accent);
    margin: 15px 0;
}

.bride, .groom {
    margin: 15px 0;
}

/* Acara Section */
.insyaallah {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.date-number {
    font-family: var(--font-accent);
    font-size: 72px;
    color: var(--inv-base);
    font-weight: 600;
    line-height: 1;
}

.date-month {
    font-size: 18px;
    color: var(--inv-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.date-year {
    font-size: 14px;
    color: #999;
}

.venue-name {
    font-size: 16px;
    font-weight: 600;
    color: #3d5a5a;
    margin-bottom: 8px;
}

.venue-address {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
}

.event-details {
    margin: 20px 0;
}

.event-item {
    background: rgba(142, 164, 192, 0.08);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid rgba(142, 164, 192, 0.15);
}

.event-item h4 {
    font-size: 14px;
    color: var(--inv-base);
    margin-bottom: 5px;
}

.event-item p {
    font-size: 13px;
    color: #666;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(142, 164, 192, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 58px;
    border: 1px solid rgba(142, 164, 192, 0.15);
}

.countdown-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--inv-base);
}

.countdown-label {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* Maps Section */
.map-iframe {
    width: 100%;
    height: 250px;
    border: none;
    border-radius: 12px;
    margin-bottom: 15px;
}

.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--inv-accent), var(--inv-base));
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(61, 122, 122, 0.3);
}

.btn-maps:hover {
    transform: translateY(-2px);
}

/* RSVP Section */
.section-title {
    font-family: var(--font-latin);
    font-size: 24px;
    color: var(--inv-base);
    margin-bottom: 15px;
}

.doa-text {
    font-size: 14px;
    font-style: italic;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

.doa-ref {
    font-size: 12px;
    color: var(--inv-gold);
    margin-bottom: 25px;
}

.rsvp-info {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.btn-rsvp {
    background: linear-gradient(135deg, var(--inv-accent), var(--inv-base));
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 14px;
    font-family: var(--font-base);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(61, 122, 122, 0.3);
}

.btn-rsvp:hover {
    transform: translateY(-2px);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-content h3 {
    font-size: 18px;
    color: var(--inv-base);
    margin-bottom: 20px;
}

#rsvp-form input,
#rsvp-form select,
#rsvp-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--inv-border);
    border-radius: 10px;
    margin-bottom: 12px;
    font-family: var(--font-base);
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

#rsvp-form input:focus,
#rsvp-form select:focus,
#rsvp-form textarea:focus {
    border-color: var(--inv-accent);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--inv-accent), var(--inv-base));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 25px;
    font-size: 14px;
    font-family: var(--font-base);
    cursor: pointer;
    transition: all 0.3s;
}

/* Gift Section */
.gift-text {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.bank-card {
    background: rgba(142, 164, 192, 0.06);
    border: 1px solid rgba(142, 164, 192, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.bank-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--inv-base);
    margin-bottom: 8px;
}

.bank-number {
    font-size: 20px;
    font-weight: 600;
    color: #3d5a5a;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.bank-holder {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.btn-copy {
    background: transparent;
    border: 1px solid var(--inv-accent);
    color: var(--inv-accent);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-family: var(--font-base);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: var(--inv-accent);
    color: white;
}

/* Thanks Section */
.thanks-text {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.turut {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.keluarga {
    font-size: 15px;
    font-weight: 500;
    color: var(--inv-base);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 8px 5px;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    z-index: 100;
    border-top: 1px solid rgba(142, 164, 192, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    color: #999;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 10px;
    transition: all 0.3s;
}

.nav-item i {
    font-size: 18px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--inv-base);
    background: rgba(142, 164, 192, 0.1);
}

/* Music Button */
.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(61, 122, 122, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    color: white;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(61, 122, 122, 0.3);
    transition: all 0.3s;
}

.music-btn.playing {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Animate on scroll - hidden by default */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--inv-accent);
    border-radius: 4px;
}
