/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Sans' serif;
}

body {
    background-color: #FDFD96;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    background-color: #E1BEE7;
    padding: 1rem;
    position: fixed;
    width: 50%;
    top: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #666;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 0;
    flex: 1;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #B9F6CA;
    padding: 0;
}

.cover_photo {
    width: 100vw;
    height: 60vh;
    overflow: hidden;
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -2rem;
}

.cover_photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 3rem;
    margin: 2rem 0 1rem 0;
    padding: 0 2rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding: 0 2rem;
}

/* Gallery Section */
.gallery {
    padding: 4rem 2rem;
    background-color: #cdd0c5;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 250px);
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    max-height: 250px;
    min-height:250px;
    max-width: 250px;
    min-width:250px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border-radius: 8px;
    border: none;
    border-right: 24px solid #E1BEE7; /* default, will be overridden by nth-child */
    border-bottom: 24px solid #E1BEE7;
    box-sizing: border-box;
}

.gallery-item:nth-child(1) img {
    border-right-color: #E1BEE7;
    border-bottom-color: #E1BEE7;
}
.gallery-item:nth-child(2) img {
    border-right-color: #B9F6CA;
    border-bottom-color: #B9F6CA;
}
.gallery-item:nth-child(3) img {
    border-right-color: #FFCCBC;
    border-bottom-color: #FFCCBC;
}

.gallery-item:nth-child(3n+1) img {
    border-right-color: #E1BEE7;
    border-bottom-color: #E1BEE7;
}
.gallery-item:nth-child(3n+2) img {
    border-right-color: #B9F6CA;
    border-bottom-color: #B9F6CA;
}
.gallery-item:nth-child(3n) img {
    border-right-color: #FFCCBC;
    border-bottom-color: #FFCCBC;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* RSVP Form */
.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.rsvp-form img {
    display: block;
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #333;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #555;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

/* Timeline Styles */
.timeline-container {
    width: 90%;
    max-width: 900px;
    margin: 100px auto 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: #E1BEE7;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-event {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.timeline-event.left {
    flex-direction: row-reverse;
}

.timeline-event .timeline-img {
    width: 300px;
    height: 300px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1;
}

.timeline-event .timeline-content {
    background: #cdd0c5;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-width: 220px;
    max-width: 350px;
    z-index: 1;
}

.timeline-event:nth-child(odd) .timeline-content {
    background: #B9F6CA;
}

.timeline-event:nth-child(even) .timeline-content {
    background: #FFCCBC;
}

.timeline-event.left .timeline-content {
    text-align: right;
}

@media (max-width: 800px) {
    .timeline-container {
        width: 100%;
        padding: 1rem 0;
    }
    .timeline-event, .timeline-event.left {
        flex-direction: column !important;
        align-items: center;
        margin: 2rem 1rem;
    }
    .timeline-event .timeline-content {
        margin: 1rem 0;
        text-align: center !important;
        min-width: 200px;
        max-width: 300px;
    }
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile nav enhancements */
@media (max-width: 768px) {
    nav {
        width: 100%;
        right: auto;
        left: 0;
    }
    .nav-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
    }
    nav ul.nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        background-color: #E1BEE7;
        padding: 1rem 0;
        margin-top: 3rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    nav.open ul.nav-menu {
        display: flex;
    }
}

