
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@400;700&display=swap');

:root {
    --primary-color: #f3e5f5; /* Soft Pink */
    --secondary-color: #ffd700; /* Gold */
    --background-color: #fffaf0; /* Cream */
    --text-color: #333;
    --hero-font: 'Great Vibes', cursive;
    --body-font: 'Montserrat', sans-serif;
}

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-4c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm58-33c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm-79 2c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-2 2c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM92 8c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z" fill="%23e0e0e0" fill-opacity="0.4" fill-rule="evenodd"/%3E%3C/svg%3E');
}

header, footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--primary-color);
}

main {
    padding: 1rem;
}

section {
    background-color: white;
    margin: 1.5rem auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07), 0 1px 8px rgba(0, 0, 0, 0.05);
}

#hero {
    position: relative;
    text-align: center;
    color: white;
    padding: 0;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1523438885224-82731da35f51?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    border-radius: 12px;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

#hero h1, #hero h2 {
    font-family: var(--hero-font);
    margin: 0;
    font-weight: 400;
}

#hero h1 {
    font-size: 5rem;
    color: var(--secondary-color);
}

#hero h2 {
    font-size: 2.5rem;
}

#invitation h2, #details h2, #gallery h2, #guestbook h2 {
    font-family: var(--hero-font);
    font-size: 2.8rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.details-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

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

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
}

#guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#guestbook-form input, #guestbook-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: var(--body-font);
}

#guestbook-form button {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, box-shadow 0.3s;
}

#guestbook-form button:hover {
    background-color: #e1bee7;
    box-shadow: 0 4px 15px rgba(216, 133, 235, 0.4);
}

#guestbook-messages .message {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    border-left: 5px solid var(--primary-color);
}

#guestbook-messages .message strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

/* Responsive Design */
@media (max-width: 600px) {
    #hero h1 {
        font-size: 3.5rem;
    }

    #hero h2 {
        font-size: 2rem;
    }

    section {
        padding: 1.5rem;
    }
}
