/* Wedding Invitation - Theme 52 Mulyo Replica CSS */
@font-face {
    font-family: 'Prata Regular 1';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/prata_regular1_2020.ttf') format('truetype');
}

@font-face {
    font-family: 'Prata';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/prata-v22-latin-regular.ttf') format('truetype');
}

:root {
    --gold: #9E7628;
    --gold-light: #C5A059;
    --brown-accent: #bba588;
    --dark-brown: #3E3024;
    --bg-cream: #FDFBF7;
    --bg-card: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #211c18;
    color: #4a4036;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

.font-prata {
    font-family: 'Prata Regular 1', 'Prata', serif;
}

/* Container Frame Mobile First 484px max width */
.invitation-container {
    width: 100%;
    max-width: 484px;
    margin: 0 auto;
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    min-height: 100vh;
}

/* Responsive Artboard Canvas for Section 1 Hero */
.hero-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 484px;
    height: 826px;
    overflow: hidden;
    margin: 0 auto;
}

.hero-canvas-content {
    width: 484px;
    height: 826px;
    position: absolute;
    top: 0;
    left: 50%;
    transform-origin: top center;
    transform: translateX(-50%);
}

@media (max-width: 484px) {
    .hero-canvas-wrapper {
        height: calc(826px * (100vw / 484));
    }
    .hero-canvas-content {
        transform: translateX(-50%) scale(calc(100vw / 484));
    }
}

/* Cover / Splash screen overlay */
#splashCover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    z-index: 1000;
    background-color: #1a1714;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s ease;
}

#splashCover.opened {
    transform: translateY(-100%);
    pointer-events: none;
}

/* Animations */
@keyframes floatGentle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1.5deg); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

.animate-float {
    animation: floatGentle 5s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

/* Reveal on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Music Player Button */
.music-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(158, 118, 40, 0.9);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: scale(1.1);
    background: #9E7628;
}

.music-toggle.spinning {
    animation: spin 4s linear infinite;
}

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

/* ======================================================== */
/* STICKY BOTTOM NAVIGATION BAR                             */
/* Hidden by default, slides up when invitation is opened   */
/* ======================================================== */
.sticky-bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 0;
    width: 100%;
    z-index: 850;
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(120%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.sticky-bottom-nav.nav-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-bottom-nav .nav-container {
    background: rgba(28, 23, 18, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(197, 160, 89, 0.45);
    box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.55), 0 0 15px rgba(158, 118, 40, 0.2);
    border-radius: 9999px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: calc(100vw - 32px);
}

.sticky-bottom-nav .nav-item {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 9999px;
    color: #c7b9a5;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sticky-bottom-nav .nav-item i {
    font-size: 15px;
    margin-bottom: 2px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.sticky-bottom-nav .nav-item:hover {
    color: #E8CCA0;
}

.sticky-bottom-nav .nav-item:hover i {
    transform: translateY(-2px);
}

.sticky-bottom-nav .nav-item.active {
    background: linear-gradient(135deg, rgba(158, 118, 40, 0.9), rgba(197, 160, 89, 0.9));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(158, 118, 40, 0.4);
}

.sticky-bottom-nav .nav-item.active i {
    color: #ffffff;
    transform: scale(1.1);
}

/* Adjust Music Toggle to sit slightly higher on the right so it doesn't overlap on bottom edges */
.music-toggle {
    bottom: 84px;
    right: 18px;
}

@media (max-width: 380px) {
    .sticky-bottom-nav .nav-item {
        padding: 5px 7px;
        font-size: 8px;
    }
    .sticky-bottom-nav .nav-item i {
        font-size: 13px;
    }
    .music-toggle {
        bottom: 80px;
        right: 14px;
        width: 38px;
        height: 38px;
    }
}

/* Custom Scrollbar for inner elements */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-thumb {
    background: #c5a059;
    border-radius: 4px;
}

/* Wishes List Scroll Container (Shows approx 5 wishes, scrollable if > 5) */
.wishes-scroll-box {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
    scroll-behavior: smooth;
}

.wishes-scroll-box::-webkit-scrollbar {
    width: 5px;
}

.wishes-scroll-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.wishes-scroll-box::-webkit-scrollbar-thumb {
    background: #C5A059;
    border-radius: 4px;
}

.wishes-scroll-box::-webkit-scrollbar-thumb:hover {
    background: #9E7628;
}

