:root {
    --cream: #FDFBF7;
    --gold: #C5A059;
    --gold-light: #E4D4B5;
    --soft-pink: #F6E9E9;
    --text-dark: #4A443F;
    --text-light: #FFFFFF;
    --serif: 'Playfair Display', serif;
    --sans: 'Montserrat', sans-serif;
    
    --shadow-soft: 0 8px 24px rgba(197, 160, 89, 0.08);
    --shadow-medium: 0 12px 32px rgba(197, 160, 89, 0.15);
    --glass-bg: rgba(253, 251, 247, 0.85);
}

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

body {
    font-family: var(--sans);
    color: var(--text-dark);
    background-color: #f0f0f0;
    overflow: hidden;
    height: 100vh;
    font-size: 12px;
    line-height: 1.6;
}

/* Desktop Wrapper */
.desktop-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('./assets/soft_background.png') center/cover no-repeat;
    z-index: 0;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(25px);
    background: rgba(253, 251, 247, 0.4);
}

/* App Container (Mobile only view) */
.app-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 100dvh;
    margin: 0 auto;
    background-color: var(--cream);
    box-shadow: 0 0 40px rgba(0,0,0,0.15);
    overflow-x: hidden;
    overflow-y: hidden;
    z-index: 1;
}

/* Typography (Small & Elegant) */
h1, h2, h3, h4, .title, .subtitle, .section-title {
    font-family: var(--serif);
    font-weight: 500;
}

.title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--gold);
}

.subtitle {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--text-dark);
    opacity: 0.8;
}

.section-title {
    font-size: 22px;
    text-align: center;
    color: var(--gold);
    margin-bottom: 8px;
}

.section-desc {
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

p {
    font-size: 12px;
}

/* Buttons */
.btn-primary {
    background: var(--gold);
    color: var(--text-light);
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:active {
    transform: scale(0.96);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold-light);
    padding: 8px 20px;
    border-radius: 25px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-outline:active {
    background: var(--soft-pink);
    border-color: var(--gold);
}

.w-100 { width: 100%; }

/* Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.6);
    margin-bottom: 16px;
}

/* Sections */
.section {
    min-height: 100dvh;
    padding: 60px 20px 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Background & Parallax */
.hero-bg, .cover-bg, .closing-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-position: center;
    background-size: cover;
    z-index: -1;
}

.cover-bg, .hero-bg, .closing-bg { background-image: url('./assets/soft_background.png'); opacity: 0.8;}

/* Main Content Area */
#main-content {
    height: 100dvh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
#main-content.locked {
    overflow: hidden;
}

/* Particles Layer */
#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}
.particle-sparkle {
    position: absolute;
    background-color: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; transform: scale(0.8); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Cover Screen */
.cover-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 200;
    background: var(--cream);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
}

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

.cover-content {
    position: relative;
    z-index: 10;
    background: rgba(253, 251, 247, 0.85);
    padding: 32px 20px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    width: 85%;
    max-width: 320px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255,255,255,0.5);
}

.guest-info {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid var(--gold-light);
    border-bottom: 1px solid var(--gold-light);
}
.guest-name {
    font-size: 16px;
    margin: 4px 0;
    color: var(--gold);
}

/* Top Controls */
.top-controls {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 150;
}
.progress-container {
    width: 100%;
    height: 3px;
    background: rgba(197, 160, 89, 0.1);
}
.progress-bar {
    height: 3px;
    background: var(--gold);
    width: 0%;
}
.music-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--gold-light);
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: var(--gold);
    cursor: pointer;
    animation: spin 5s linear infinite;
}
.music-btn.paused {
    animation: none;
    opacity: 0.6;
}
.music-btn.paused::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 18px;
    background: var(--gold);
    transform: rotate(45deg);
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Hero / Home */
.hero-content {
    text-align: center;
    padding: 24px;
    border-radius: 16px;
}

/* Couple Section */
.couple-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.couple-names {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    background: var(--glass-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(197, 160, 89, 0.2);
}
.name-highlight {
    font-size: 26px;
    font-family: var(--serif);
    color: var(--gold);
    margin-bottom: 6px;
}
.couple-names .and-symbol {
    font-family: var(--serif);
    font-size: 24px;
    color: var(--gold-light);
    margin: 8px 0;
}
.parents { font-size: 11px; color: var(--text-dark); opacity: 0.8; margin: 4px 0; }

/* Timeline */
.timeline {
    position: relative;
    padding-left: 24px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--gold-light);
}
.timeline-item {
    position: relative;
    margin-bottom: 24px;
}
.timeline-item .dot {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 9px;
    height: 9px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--cream);
}
.timeline-content {
    background: var(--glass-bg);
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.6);
}
.timeline-content h4 { font-size: 14px; color: var(--gold); margin-bottom: 2px; }
.timeline-date { font-size: 10px; color: #888; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* Event Details */
.event-card {
    text-align: center;
    padding: 24px 20px;
}
.event-icon {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 12px;
}
.event-info {
    margin: 16px 0;
    font-size: 12px;
    line-height: 1.8;
}
.event-info i {
    margin-right: 6px;
    color: var(--gold);
}
.countdown-wrapper {
    text-align: center;
    margin-top: 24px;
}
.countdown-wrapper h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.countdown {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.cd-item {
    background: var(--glass-bg);
    border: 1px solid var(--gold-light);
    color: var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-soft);
}
.cd-item span { font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1; }
.cd-item p { font-size: 9px; margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dark); }

/* Gallery */
.gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 10px;
}
.gallery-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 16px;
    scrollbar-width: none;
}
.gallery-wrapper::-webkit-scrollbar { display: none; }
.gallery-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-medium);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swipe-indicator {
    text-align: center;
    font-size: 10px;
    color: #888;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RSVP */
.input-group {
    margin-bottom: 12px;
    text-align: left;
}
.input-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dark);
}
.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gold-light);
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 12px;
    background: rgba(253, 251, 247, 0.9);
    transition: border 0.3s, box-shadow 0.3s;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
}

.comments-section {
    margin-top: 24px;
}
.comments-section h3 {
    font-size: 14px;
    margin-bottom: 12px;
}
.comments-list {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
}
.comments-list::-webkit-scrollbar {
    width: 4px;
}
.comments-list::-webkit-scrollbar-thumb {
    background: var(--gold-light);
    border-radius: 4px;
}
.comment-item {
    background: var(--glass-bg);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    text-align: left;
}
.comment-item h4 { font-size: 12px; margin-bottom: 2px; display: inline-block; }
.badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.badge-yes { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.badge-no { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.comment-item p { font-size: 11px; margin-top: 4px; line-height: 1.5; color: #555; }

/* Gift */
.bank-card { padding: 20px; text-align: center; }
.bank-logo { font-weight: 600; font-size: 16px; color: var(--gold); margin-bottom: 6px; letter-spacing: 1px; }
.account-num { font-size: 18px; letter-spacing: 2px; margin-bottom: 4px; font-family: var(--sans); }
.account-name { font-size: 11px; margin-bottom: 12px; color: #666; }
.address-card { padding: 20px; text-align: center; }
.address-card h3 { font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 6px;}
.address-card p { font-size: 11px; line-height: 1.6; margin-bottom: 12px; color: #555; }



/* Bottom Floating Navbar */
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 380px;
    height: 54px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 27px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
    z-index: 100;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255,255,255,0.8);
    transition: bottom 0.3s ease;
}

.nav-item {
    text-decoration: none;
    color: #a0a0a0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 14.28%; /* 7 items */
    height: 100%;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.nav-item i {
    font-size: 18px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item span {
    font-size: 9px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    position: absolute;
    bottom: 6px;
}

.nav-item.active {
    color: var(--gold);
}

.nav-item.active i {
    transform: translateY(-6px) scale(1.1);
}

.nav-item.active span {
    opacity: 1;
    transform: translateY(0);
}

.nav-indicator {
    position: absolute;
    top: 4px;
    left: 6px;
    width: calc((100% - 12px) / 7);
    height: 46px;
    background: rgba(197, 160, 89, 0.15);
    border-radius: 23px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Animations */
.fade-in { opacity: 0; transition: opacity 1s ease; }
.reveal-up { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: all 1s cubic-bezier(0.25, 1, 0.5, 1); }

.in-view { opacity: 1; transform: translate(0); }

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }
