/* Mobile-first design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background styling with fixed position */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: 40% center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Navigation styling */
.main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem;
    z-index: 100;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 150;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    transition: all 0.3s ease;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    list-style-type: none;
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    margin: 1.5rem 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 300;
    transition: all 0.2s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #f0b8b8;
    font-weight: 400;
}

/* Content styling */
.content-container {
    padding: 2rem 1rem;
    margin-top: 4rem;
    height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.date {
    font-size: 1.3rem;
    font-weight: 300;
}

.details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    padding: 1rem 0;
}

.detail-item {
    width: 100%;
    max-width: 300px;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.detail-item p {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.rsvp {
    width: 100%;
    margin: 2rem 0;
    text-align: center;
}

.rsvp-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: #f0b8b8;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.rsvp-button:hover {
    background-color: #e09999;
    transform: scale(1.05);
}

/* Desktop styles */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        display: flex;
        justify-content: flex-end;
        gap: 2rem;
        width: 100%;
        height: auto;
        background-color: transparent;
        padding: 0;
    }

    .nav-menu li {
        margin: 0;
    }

    h1 {
        font-size: 3.5rem;
    }

    .details {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .rsvp-button {
        padding: 1.2rem 4rem;
    }
}