:root {
    --primary: #967bb6;
    /* Lavender/Purple tone */
    --gold: #c5a059;
    --bg-color: #f8f9fa;
    --text-color: #4a4a4a;
    --font-heading: 'Great Vibes', cursive;
    --font-body: 'Cormorant Garamond', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    /* Fallback */
    background-image: url('https://images.unsplash.com/photo-1515934751635-c81c6bc9a2d8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Mobile Frame for Desktop */
.mobile-frame {
    max-width: 480px;
    /* Mobile width limit */
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

/* Backdrop Blur for Desktop Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    backdrop-filter: blur(20px);
    z-index: -1;
}

/* Cover Section adjustment for frame */
.cover-section {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    /* Match mobile frame */
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1515934751635-c81c6bc9a2d8?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    z-index: 1000;
    transition: transform 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.cover-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.cover-section .content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.couple-names {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin: 20px 0;
}

.open-btn {
    padding: 12px 30px;
    background-color: var(--gold);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Main Content */
.hidden {
    display: none;
    /* Initially hidden until opened */
}

main {
    padding-bottom: 80px;
    /* Space for bottom nav */
}

section {
    padding: 60px 20px;
    text-align: center;
}

h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 40px;
}

/* Quote */
.quote-section {
    background-color: white;
}

.verse {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Couple */
.couple-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.photo-frame {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--gold);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.separator {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold);
}

/* Event */
.event-section {
    background-color: #f0f0f0;
}

.event-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.event-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.map-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* RSVP Form */
.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
}

.submit-btn {
    padding: 12px;
    background-color: var(--gold);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 30px;
    z-index: 999;
}

.bottom-nav a {
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    font-size: 0.8rem;
}

.bottom-nav i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

/* Music Btn */
.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    cursor: pointer;
    color: var(--primary);
}