/* Girly Color Palette */
:root {
    --girly-purple: #B88FD9;
    --girly-lavender: #D4B5F0;
    --girly-blue: #A8D8EA;
    --girly-mint: #A8E6CF;
    --girly-pink: #FFB6D9;
    --bg-cream: #FFF5F8;
    --white: #FFFFFF;
    --text-dark: #5A4664;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    color: var(--girly-purple);
}

h3 {
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--girly-purple) 0%, var(--girly-lavender) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .tagline {
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0.95;
}

/* Party Details Section */
.party-details {
    padding: 60px 20px;
    background-color: var(--white);
}

.party-details h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.detail {
    background-color: var(--bg-cream);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.detail h3 {
    font-size: 1.6rem;
    color: var(--girly-pink);
    margin-bottom: 1rem;
}

.detail p {
    margin-bottom: 0.5rem;
}

.detail strong {
    color: var(--girly-purple);
    font-weight: 700;
}

.detail a {
    color: var(--girly-purple);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.detail a:hover {
    color: var(--girly-mint);
}

/* Gallery Section */
.gallery {
    padding: 60px 20px;
    background-color: var(--bg-cream);
}

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

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 8px var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px var(--shadow-hover);
}

.photo-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--girly-lavender) 0%, var(--girly-pink) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px var(--shadow);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
}

.photo-placeholder p:first-child {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.gallery-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--girly-purple);
    font-style: italic;
    font-size: 0.95rem;
}

/* RSVP Section */
.rsvp {
    padding: 60px 20px;
    background-color: var(--white);
}

.rsvp h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.rsvp-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

#rsvpForm {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-cream);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--girly-purple);
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    border: 2px solid var(--girly-lavender);
    border-radius: 8px;
    background-color: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--girly-purple);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    color: var(--white);
    background: linear-gradient(135deg, var(--girly-purple) 0%, var(--girly-lavender) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-hover);
}

.submit-btn:active {
    transform: translateY(0);
}

.success-message {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, var(--girly-pink) 0%, var(--girly-mint) 100%);
    color: var(--white);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
}

.success-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

/* Footer */
footer {
    padding: 40px 20px;
    background-color: var(--girly-purple);
    color: var(--white);
    text-align: center;
}

footer a {
    color: var(--girly-pink);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

.footer-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    border-radius: 8px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--white);
    padding: 10px 0;
    height: 150px;
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--girly-pink);
}

/* Responsive Design */
@media (min-width: 768px) {
    .details-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .hero .tagline {
        font-size: 1.6rem;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero {
        padding: 40px 20px;
    }

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

    .party-details,
    .gallery,
    .rsvp {
        padding: 40px 20px;
    }

    #rsvpForm {
        padding: 1.5rem;
    }

    .close {
        top: 15px;
        right: 25px;
        font-size: 40px;
    }
}
