:root {
    --bg-color: #cdcdc9;
    --text-color: #4a4a4a;
    --accent-color: #18332b;
    /* Subtle Gold/Champagne */
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 40px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(253, 250, 246, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
}

@media (max-width: 800px) {
    nav {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
}

.nav-links {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-indicator {
    position: absolute;
    bottom: -15px;
    left: 0;
    font-size: 20px;
    pointer-events: none;
    will-change: transform;
    color: red;
    line-height: 1;
    z-index: 10;
}

.nav-links a {
    margin: 0 20px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Sections */
.section {
    padding: 100px 20px;
    width: 100%;
    min-height: 100vh;
    scroll-snap-align: start;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section>*:not(.flower-decoration) {
    z-index: 1;
    position: relative;
}

/* Flower Decorations */
.flower-decoration {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(150px, 20vw, 300px);
    height: auto;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.flower-left {
    left: 2%;
}

.flower-right {
    right: 2%;
}

@media (max-width: 800px) {
    .flower-decoration {
        opacity: 0.08;
    }

    .flower-left {
        left: -5vw;
    }

    .flower-right {
        right: -5vw;
    }
}

.grey {
    background-color: #f7f3ed;
}

/* Vertical Scroll Container */
.scroll-container {
    height: 100vh;
    overflow-y: hidden;
    scroll-behavior: auto;
    position: relative;
    overflow-x: hidden;
}

.hero {
    min-height: 100vh;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 25vh;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('background.jpg') center/cover;
    color: var(--white);
    position: relative;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.hero-title-space {
    font-size: 6rem;
    margin-bottom: 10px;
    margin-top: 0;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    opacity: 0;
}

.nav-title-target {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    opacity: 0;
}

.floating-title {
    position: fixed;
    z-index: 1010;
    margin: 0;
    font-size: 6rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    white-space: nowrap;
    transform-origin: center;
    pointer-events: none;
    will-change: transform, color;
    top: 0;
    left: 0;
    color: var(--white);
}

.hero .subtitle {
    font-size: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Floating Countdown */
.floating-countdown {
    position: fixed;
    z-index: 1005;
    pointer-events: none;
    top: 0;
    left: 0;
    will-change: transform;
}

.floating-countdown .countdown-item {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
}

.countdown-date {
    position: absolute;
    top: 0;
    left: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    white-space: nowrap;
    will-change: transform, color;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
    color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 70px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.countdown-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1;
    color: var(--white);
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Form Styles */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
    max-width: 600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.guest-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar for Guest List */
.guest-list::-webkit-scrollbar {
    width: 6px;
}

.guest-list::-webkit-scrollbar-track {
    background: rgba(181, 164, 139, 0.1);
    border-radius: 4px;
}

.guest-list::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.guest-entry {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(181, 164, 139, 0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.guest-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .guest-fields {
        grid-template-columns: 1fr;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-item {
        padding: 10px;
        min-width: 50px;
    }

    .countdown-value {
        font-size: 1.5rem;
    }
}

.guest-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contribution-section {
    border-top: 1px solid rgba(181, 164, 139, 0.2);
    padding-top: 25px;
}

.contribution-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: var(--white);
    font-family: inherit;
    box-sizing: border-box;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-remove {
    background: transparent;
    color: #cc0000;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
}

button {
    padding: 15px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

button:hover {
    opacity: 0.8;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

footer {
    padding: 40px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    margin-top: 0;
    color: var(--accent-color);
}

.modal-content h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-color);
    border-bottom: 1px solid rgba(181, 164, 139, 0.3);
    padding-bottom: 5px;
    margin-top: 20px;
}

.modal-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.modal-content li {
    padding: 5px 0;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}