/* Wedding Invitation Styles */
:root {
    --primary-color: #f8c8dc; /* Soft pink */
    --secondary-color: #3a3a3a; /* Dark gray for text */
    --accent-color: #a1d1c9; /* Soft teal accent */
    --background-color: #fefaf7; /* Off-white background */
    --border-color: #e6d7d2; /* Soft beige for borders */
    --shadow-color: rgba(0, 0, 0, 0.05);
    --text-color: var(--secondary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background: #fcfcfc;
    overflow-x: hidden;
    font-size: 16px;
}

/* Mobile-first container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.section {
    margin: 60px auto;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.section::before,
.section::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="30" viewBox="0 0 100 30"><path d="M10,15 Q25,0 40,15 T70,15 T100,15" fill="none" stroke="%23f8c8dc" stroke-width="2"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.section::before {
    top: 10px;
    left: 20px;
}

.section::after {
    bottom: 10px;
    right: 20px;
    transform: scaleX(-1);
}

/* Header Styles */
.header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50"><circle cx="25" cy="25" r="5" fill="%23f8c8dc" opacity="0.3"/></svg>'), linear-gradient(to right bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
    background-size: 50px 50px, cover;
    border-radius: 0 0 50% 50% / 15%;
    box-shadow: 0 5px 20px var(--shadow-color);
    margin-bottom: 100px;
    padding: 20px;
}

.couple-image-container {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 5px 20px var(--shadow-color);
    margin-bottom: 30px;
    position: relative;
    z-index: 3;
}

.couple-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.couple-image:hover {
    transform: scale(1.05);
}

.floral-accent {
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="150" height="150" viewBox="0 0 150 150"><g transform="translate(75,75)"><path d="M0,0 C20,20 40,-20 0,-40 C-20,-20 -40,20 0,0 Z" fill="%23f8c8dc" opacity="0.7"/><path d="M0,0 C-20,20 -40,-20 0,-40 C20,-20 40,20 0,0 Z" fill="%23a1d1c9" opacity="0.7"/><path d="M0,0 C20,-20 -20,-40 -40,0 C-20,20 20,40 0,0 Z" fill="%23f8c8dc" opacity="0.7"/><path d="M0,0 C-20,-20 20,-40 40,0 C20,20 -20,40 0,0 Z" fill="%23a1d1c9" opacity="0.7"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 1;
}

.top-left {
    top: 20px;
    left: 20px;
}

.top-right {
    top: 20px;
    right: 20px;
    transform: scaleX(-1);
}

.footer-left {
    bottom: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
}

.footer-right {
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    transform: scaleX(-1);
}

.invitation-text {
    z-index: 2;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
    max-width: 90%;
    margin-top: 20px;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Mobile-first typography */
/* Mobile-first typography - starting with smaller sizes for mobile */
h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 10px 0;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin: 5px 0;
    line-height: 1.3;
}

h3 {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--secondary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Larger typography for desktop - will override mobile styles */
@media (min-width: 768px) {
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

.section h2 {
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background-color: var(--accent-color);
}

/* Ceremony & Reception Styles */
.ceremony, .reception {
    position: relative;
}

/* Mobile-first image containers */
.ceremony-image-container, .reception-image-container {
    width: 95%;
    max-width: 500px;
    height: 230px;
    margin: 0 auto 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-color);
    position: relative;
}

@media (min-width: 768px) {
    .ceremony-image-container, .reception-image-container {
        height: 300px;
        margin: 0 auto 40px;
        width: 90%;
    }
}

.ceremony-image, .reception-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.ceremony-image:hover, .reception-image:hover {
    transform: scale(1.05);
}

.second-reception-image {
    margin-top: 40px;
    max-width: 700px;
}

/* Mobile-first guest image container */
.guest-image-container {
    width: 95%;
    max-width: 500px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-color);
    position: relative;
}

@media (min-width: 768px) {
    .guest-image-container {
        height: 250px;
        margin: 0 auto 40px;
        width: 90%;
    }
}

.guest-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.guest-image:hover {
    transform: scale(1.05);
}

.date, .time, .location, .venue {
    margin: 10px 0;
}

.date, .time {
    font-size: 1.3rem;
    font-weight: 400;
}

.location, .venue {
    font-style: italic;
}

/* Dress Code */
.dress-code {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Quote Section */
.quote-section {
    margin: 60px auto;
    text-align: center;
    max-width: 800px;
    position: relative;
}

/* Mobile-first beach couple image */
.beach-couple-image {
    position: relative;
    width: 95%;
    max-width: 900px;
    height: 300px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-color);
}

@media (min-width: 768px) {
    .beach-couple-image {
        height: 400px;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .beach-couple-image {
        height: 500px;
    }
}

.beach-wedding-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-style: italic;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    padding: 40px 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    margin: 0;
    z-index: 2;
}

blockquote::before, blockquote::after {
    content: "";
    font-family: Georgia, serif;
    font-size: 6rem;
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
}

blockquote::before {
    left: 10px;
    top: -20px;
}

blockquote::after {
    content: "";
    right: 10px;
    bottom: -60px;
}

/* RSVP Form */
.rsvp-section {
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
}

.form-group {
    margin: 20px 0;
}

input[type="text"],
input[type="tel"],
input[type="email"],
button {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.attendance-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 1px;
}

button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Map Section */
.map-section h2 {
    margin-bottom: 30px;
}

.map-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

.map-wrapper {
    flex: 1 1 300px;
    max-width: 500px;
}

iframe {
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 15px;
}

.directions-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    margin-top: 10px;
    font-weight: 500;
    transition: all 0.3s;
}

.directions-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
footer {
    position: relative;
    text-align: center;
    padding: 40px 0;
    margin-top: 100px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    margin: 20px 0;
}

.wedding-website {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.wedding-website:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .header {
        height: auto;
        min-height: 100vh;
        border-radius: 0 0 30% 30% / 10%;
    }
    
    .floral-accent {
        width: 100px;
        height: 100px;
    }
    
    .section {
        padding: 30px 15px;
    }
    
    blockquote {
        font-size: 1.4rem;
        padding: 20px 40px;
    }
    
    .map-container {
        flex-direction: column;
        align-items: center;
    }
    
    .couple-image-container {
        width: 200px;
        height: 200px;
    }
    
    .ceremony-image-container,
    .reception-image-container,
    .guest-image-container {
        height: 220px;
    }
    
    .beach-couple-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .invitation-text {
        padding: 20px;
    }
    
    .section::before,
    .section::after {
        width: 60px;
    }
    
    .attendance-options {
        flex-direction: column;
        gap: 10px;
    }
}
