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

:root {
    --color-primary: #F5F1EC;
    --color-rose: #f43f5e;
    --color-rose-light: #fda4af;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-small {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {

    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-date {
    text-align: center;
    order: 1;
}

.date-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 0;
    font-weight: 400;
    text-align: center;
}

.date-subtitle {
    color: var(--color-text-light);
    font-size: 0.875rem;
    text-align: center;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    order: 1;
}

.hero-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.main-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.main-subtitle {
    font-family: var(--font-serif);
    color: var(--color-text-light);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-frame {
    position: relative;
    width: 16rem;
    height: 20rem;
    background-color: white;
    border-radius: 50% 50% 0 0 / 40% 40% 0 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #dec9b0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-flower {
    margin: auto;
}

.hero-names {
    text-align: center;
    order: 1;
}

.names-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 400;
}

.ampersand {
    color: var(--color-text);
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 3rem;
    }

    .hero-date {
        text-align: left;
        order: 1;
    }

    .date-title {
        font-size: 3rem;
    }

    .date-subtitle {
        font-size: 1rem;
    }

    .hero-center {
        order: 2;
    }

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

    .hero-image-frame {
        width: 18rem;
        height: 24rem;
    }

    .hero-names {
        text-align: right;
        order: 3;
    }

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

/* Couple Section */
.couple-section {
    background-color: white;
}

.couple-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
}

.couple-family {
    padding-bottom: 3rem;
}

.couple-address {
    font-size: 14px;
    font-style: italic;
    margin-top: 0.3rem;
}
.couple-item {
    text-align: center;
    padding: 5rem 0;
}

.couple-image-wrapper {
    margin-bottom: 1.5rem;
}

.couple-image {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    object-fit: cover;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.couple-name {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.couple-desc {
    color: var(--color-text-light);
    max-width: 20rem;
    margin: 0 auto;
}

.couple-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-icon {
    width: 2rem;
    height: 2rem;
    color: #fb7185;
    fill: #fb7185;
}

@media (min-width: 768px) {
    .couple-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 5rem;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #fb7185;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
    transition: color 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #fb7185;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

/* Section Titles */
.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 400;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Timeline Section */
.timeline-section {
    padding: 5rem 0 0;
    background-color: white;
}

.timeline {
    position: relative;
    max-width: max-content;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background-color: #e5e7eb;
    display: none;
}

.timeline-border {
    position: relative;
    width: 60px;
    height: 1px;
    background: #ede3dc;
}

.timeline-bank {
    margin: auto;
}

.timeline-border:after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ede3dc;
    border-radius: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.timeline-content {
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.timeline-time {
    color: var(--color-rose);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.timeline-desc {
    color: var(--color-text-light);
}

.timeline-icon {
    width: 10rem;
    height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.timeline-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--color-rose);
}

@media (min-width: 768px) {
    .timeline-line {
        display: block;
    }
    
    /*.timeline-icon {*/
    /*    position: absolute;*/
    /*    left: 0;*/
    /*    right: 0;*/
    /*    margin: auto;*/
    /*}*/

    .timeline-item {
        flex-direction: row;
    }
}

/* Location Section */
.location-section {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.location-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #ffe4e6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-rose);
}

.location-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.location-text {
    color: var(--color-text-light);
}

.location-map {
    height: 24rem;
    background-color: #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Invitation Card Section */
.invitation-section {
    padding: 5rem 0;
    background-color: white;
}

.invitation-card {
    position: relative;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    text-align: center;
}

.invitation-corner {
    position: absolute;
    width: 4rem;
    height: 4rem;
    border-color: #fda4af;
    border-style: solid;
}

.invitation-corner-tl {
    top: 1rem;
    left: 1rem;
    border-width: 2px 0 0 2px;
    border-radius: 0.5rem 0 0 0;
}

.invitation-corner-tr {
    top: 1rem;
    right: 1rem;
    border-width: 2px 2px 0 0;
    border-radius: 0 0.5rem 0 0;
}

.invitation-corner-bl {
    bottom: 1rem;
    left: 1rem;
    border-width: 0 0 2px 2px;
    border-radius: 0 0 0 0.5rem;
}

.invitation-corner-br {
    bottom: 1rem;
    right: 1rem;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 0.5rem 0;
}

.invitation-wreath {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}


.wreath-circle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    border: 4px solid #bbf7d0;
    background-color: white;
}

.wreath-dot {
    position: absolute;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #86efac;
    opacity: 0.5;
}

.wreath-dot-1 {
    top: -0.5rem;
    left: -0.5rem;
}

.wreath-dot-2 {
    top: -0.5rem;
    right: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

.wreath-dot-3 {
    bottom: -0.5rem;
    left: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

.wreath-dot-4 {
    bottom: -0.5rem;
    right: -0.5rem;
}

.wreath-circle .heart-icon {
    width: 3rem;
    height: 3rem;
}

.invitation-greeting {
    color: var(--color-text-light);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.invitation-names {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 400;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.invitation-message {
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 28rem;
    margin: 0.5rem auto 2rem;
}

.invitation-date-box {
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    padding: 1.5rem 0;
    margin: 2rem 0;
}

.invitation-day {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.invitation-date {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.invitation-time {
    color: var(--color-text-light);
}

.invitation-footer {
    color: var(--color-text-light);
}

.invitation-wreath-cover {
    height: 200px;
    width: auto;
}

.invitation-date-lunar {
    font-size: 1.4rem;
    font-style: italic;
    display: block;
}

@media (min-width: 768px) {
    .invitation-names {
        font-size: 3.5rem;
    }
}

/* RSVP Section */
.rsvp-section {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.rsvp-form {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-rose);
}

.form-textarea {
    resize: vertical;
}

.form-button {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--color-rose);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #e11d48;
}

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

.footer-heart {
    margin-bottom: 1rem;
}

.footer-heart .heart-icon {
    margin: 0 auto;
}

.footer-names {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.footer-date {
    color: #9ca3af;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-link {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-rose);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
