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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;

    /* padding-top: 100vh; */
}

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

/* Typography */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    /* line-height: 1.2; */
}

.module-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}












/* Story Section */
.story {
    padding: 4rem 0;
    background: #f8f9fa;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}


.story-text {
    animation: fadeInLeftImage linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 25%;
}



.story-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

    animation: revealImage linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 30%;
}


/* Gallery Section */
.gallery {
    padding: 6rem 0;
    background: white;
    margin-left: 1rem;
    margin-right: 1rem;
}

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

.photo-item {
    position: relative;
    overflow: clip;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .photo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
} */

.photo-item img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    /* transition: transform 0.3s ease; */
}

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

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    text-align: center;
    font-weight: 500;
}




/* Sweet Words Section */
.sweet-words {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.quote p {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.author {
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
}



/* Details Section */
.details {
    padding: 6rem 0;
    background: #f8f9fa;
}

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

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-card .icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.detail-card p {
    color: #666;
    margin-bottom: 0.5rem;
}



/* RSVP Section */
.rsvp {
    padding: 6rem 0;
    background: #f8f9fa;
}

.rsvp-deadline {
    text-align: center;
    font-size: 1.2rem;
    color: #e74c3c;
    margin-bottom: 3rem;
    font-weight: 500;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group select {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

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

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}



/* Footer */
.footer {
    padding: 4rem 0;
    background: #2c3e50;
    color: white;
    text-align: center;
}

.footer p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.footer-decoration i {
    font-size: 1.5rem;
    color: #e74c3c;
    margin: 0 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.footer-decoration i:nth-child(2) {
    animation-delay: 0.5s;
}

.footer-decoration i:nth-child(3) {
    animation-delay: 1s;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .and {
        font-size: 1.5rem;
    }

    .hero-subtitle .date {
        font-size: 1.2rem;
    }

    .hero-subtitle .time {
        font-size: 1rem;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .registry-links {
        flex-direction: column;
        align-items: center;
    }

    .registry-link {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .photo-item img {
        height: 480px;
    }
}