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

body {
    font-family: 'Hannari Mincho', 'Cormorant Garamond', 'Noto Serif JP', serif;
    line-height: 1.8;
    color: #3e2723;
    background: #faf8f5;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    text-align: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(62, 39, 35, 0.3) 0%, rgba(139, 69, 19, 0.2) 100%);
    z-index: 2;
}

.header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 60px 40px 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.main-title {
    font-family: 'Hannari Mincho', 'Playfair Display', 'Noto Serif JP', serif;
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 4px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease forwards 0.3s;
    text-align: center;
    line-height: 1.3;
}

.subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #f8f8f8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease forwards 0.6s;
    text-align: center;
}

.couple-names {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease forwards 0.9s;
}

.name {
    font-family: 'Hannari Mincho', 'Playfair Display', 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.and {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    font-weight: 400;
    color: #f8f8f8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    margin: 0 3px;
}

/* Section Styles */
.wedding-details,
.invitation-message,
.rsvp-section {
    padding: 50px 0;
    opacity: 0;
    transform: translateY(100px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Ensure sections are visible by default */
    display: block;
    visibility: visible;
    background: #faf8f5;
}

.wedding-details.visible,
.invitation-message.visible,
.rsvp-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Individual element animations */
.animate-element {
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.animate-element:nth-child(1) { transition-delay: 0.2s; }
.animate-element:nth-child(2) { transition-delay: 0.3s; }
.animate-element:nth-child(3) { transition-delay: 0.4s; }
.animate-element:nth-child(4) { transition-delay: 0.5s; }
.animate-element:nth-child(5) { transition-delay: 0.6s; }

/* Wedding Details */
.details-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.date-time,
.venue {
    text-align: center;
    padding: 20px 40px;
    position: relative;
}



.date-time h3,
.venue h3 {
    font-family: 'Hannari Mincho', 'Playfair Display', 'Noto Serif JP', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0px;
    color: #3e2723;
    letter-spacing: 3px;
}

.date,
.time,
.ceremony-time,
.reception,
.church-name,
.hall-name,
.address,
.building,
.phone {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #3e2723;
    line-height: 1.8;
    font-family: 'Hannari Mincho', 'Noto Serif JP', serif;
}

/* English text styling */
.time,
.reception,
.church-name,
.hall-name,
.address,
.building,
.phone {
    font-family: 'Hannari Mincho', 'Playfair Display', 'Noto Serif JP', serif;
    /* font-family: 'Libre Caslon Text', 'LTC Caslon Pro', serif; */
}

.ceremony-time {
    font-weight: 500;
    color: #3e2723;
    font-size: 1.4rem;
}

.reception {
    color: #6d4c41;
    font-style: italic;
    font-size: 1.2rem;
}

/* Separator 1 - Small decorative separators */
.separator {
    text-align: center;
    padding: 0px 0px 20px;
    margin: 0 auto;
    max-width: 210px; /* 70% of 300px */
}

.separator-image {
    height: 16px;
    opacity: 0.8;
    filter: brightness(0.8) contrast(1.1);
}

/* Separator 2 - Full width decorative separator */
.separator2 {
    max-width: 35vw; /* 50% of 70vw = 35vw */
    width: 35vw;
    margin-left: calc(-17.5vw + 50%); /* Adjusted for 35vw width */
    margin-right: calc(-17.5vw + 50%); /* Adjusted for 35vw width */
    padding: 40px 20px;
    box-sizing: border-box;
    background: url('./assets/separator2.png') no-repeat center center;
    background-size: contain;
    min-height: 40px; /* 50% of 80px */
    text-align: center;
}

.separator2 .separator-image {
    display: none;
}

/* Polaroid Photos */
.polaroid-section {
    padding: 60px 20px;
    text-align: center;
}

.polaroid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.polaroid {
    background: white;
    padding: 15px 15px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 250px;
    width: 100%;
}

.polaroid:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.polaroid:nth-child(1) {
    transform: rotate(-3deg);
}

.polaroid:nth-child(2) {
    transform: rotate(2deg);
}

.polaroid:nth-child(3) {
    transform: rotate(-1deg);
}

.polaroid:nth-child(1):hover {
    transform: rotate(-3deg) translateY(-5px) scale(1.02);
}

.polaroid:nth-child(2):hover {
    transform: rotate(2deg) translateY(-5px) scale(1.02);
}

.polaroid:nth-child(3):hover {
    transform: rotate(-1deg) translateY(-5px) scale(1.02);
}

.polaroid-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.polaroid-caption {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: #3e2723;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 1px;
}

/* Invitation Message */
.message-card {
    text-align: center;
    padding: 60px 40px;
    position: relative;
}

.japanese-message,
.english-message {
    margin-bottom: 50px;
    font-family: 'Hannari Mincho', 'Noto Serif JP', serif;
}

.japanese-message p,
.english-message p {
    margin-bottom: 10px;
    font-size: 1.4rem;
    line-height: 2.2;
    color: #3e2723;
    letter-spacing: 0.8px;
}

.english-message p {
    font-size: 1.6rem;
}

.english-message {
    font-family: 'Hannari Mincho', 'Cormorant Garamond', 'Noto Serif JP', serif;
    color: #3e2723;
}

/* RSVP Form */
.rsvp-card {
    padding: 80px 60px;
    position: relative;
}

.rsvp-card h3 {
    font-family: 'Hannari Mincho', 'Playfair Display', 'Noto Serif JP', serif;
    font-size: 2.8rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 10px;
    color: #3e2723;
    letter-spacing: 3px;
}

.rsvp-deadline {
    text-align: center;
    color: #6d4c41;
    margin-bottom: 25px;
    font-size: 1.3rem;
    letter-spacing: 2px;
    font-family: 'Hannari Mincho', 'Playfair Display', 'Noto Serif JP', serif;
    /* font-family: 'Libre Caslon Text', 'LTC Caslon Pro', serif; */
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #3e2723;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 20px 25px;
    border: 1px solid #6d4c41;
    border-radius: 0;
    font-size: 1.2rem;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    color: #3e2723;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3e2723;
    background: #fafbfc;
    box-shadow: 0 0 0 3px rgba(62, 39, 35, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 22px 28px;
    border: 1px solid #6d4c41;
    background: #ffffff;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.radio-label:hover {
    border-color: #3e2723;
    background: #f8f9fa;
}

.radio-label input[type="radio"] {
    margin-right: 20px;
    transform: scale(1.3);
}

.radio-text {
    font-size: 1.3rem;
    color: #3e2723;
}

.submit-btn {
    width: 100%;
    padding: 25px;
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
    color: white;
    border: none;
    font-size: 1.4rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    letter-spacing: 2px;
    font-family: inherit;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2e1a17 0%, #4e342e 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(62, 39, 35, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: #6d4c41;
    font-size: 1.3rem;
    letter-spacing: 2px;
    background: #faf8f5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 60px 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.modal-content h3 {
    font-family: 'Hannari Mincho', 'Playfair Display', 'Noto Serif JP', serif;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #3e2723;
    letter-spacing: 2px;
}

.modal-content p {
    margin-bottom: 18px;
    font-size: 1.3rem;
    color: #3e2723;
    line-height: 1.8;
}

.close-btn {
    background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 0;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 35px;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 1px;
}

.close-btn:hover {
    background: linear-gradient(135deg, #2e1a17 0%, #4e342e 100%);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0;
    }
    
    .header {
        padding: 80px 20px 60px;
    }
    
    .header-content {
        padding: 40px 20px 30px;
    }
    
    .main-title {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }
    
    .subtitle {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .couple-names {
        gap: 15px;
    }
    
    .name {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .and {
        font-size: 1.4rem;
    }
    
    .details-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .date-time,
    .venue,
    .message-card,
    .rsvp-card {
        padding: 20px 20px;
    }
    
    .couple-names {
        flex-direction: column;
        gap: 15px;
    }
    
    .name {
        font-size: 1.4rem;
    }
    
    .and {
        font-size: 1.6rem;
    }
    
    .wedding-details,
    .invitation-message,
    .rsvp-section {
        padding: 40px 0;
    }
    
    .polaroid-section {
        padding: 40px 20px;
    }
    
    .polaroid-container {
        gap: 30px;
    }
    
    .polaroid {
        max-width: 200px;
    }
    
    .polaroid-image {
        height: 150px;
    }
    
    /* Separator 1 - Tablet */
    .separator {
        padding: 30px 20px;
        max-width: 175px; /* 70% of 250px */
    }
    
    .separator-image {
        max-width: 105px; /* 70% of 150px */
    }
    
    /* Separator 2 - Tablet */
    .separator2 {
        padding: 50px 15px;
        max-width: 35vw; /* 50% of 70vw = 35vw */
        width: 35vw;
        margin-left: calc(-17.5vw + 50%); /* Adjusted for 35vw width */
        margin-right: calc(-17.5vw + 50%); /* Adjusted for 35vw width */
        min-height: 50px; /* 50% of 100px */
        background-size: 90% auto;
    }
    
    .separator2 .separator-image {
        display: none;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 30px 15px 25px;
    }
    
    .main-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .couple-names {
        gap: 10px;
    }
    
    .name {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .and {
        font-size: 1.2rem;
    }
    
    .date-time,
    .venue,
    .message-card,
    .rsvp-card {
        padding: 30px 20px;
    }
    
    .radio-group {
        gap: 15px;
    }
    
    .radio-label {
        padding: 15px 20px;
    }
    
    .polaroid-section {
        padding: 30px 15px;
    }
    
    .polaroid-container {
        gap: 20px;
        flex-direction: column;
    }
    
    .polaroid {
        max-width: 180px;
    }
    
    .polaroid-image {
        height: 120px;
    }
    
    .polaroid-caption {
        font-size: 1.2rem;
    }
    
    /* Separator 1 - Mobile */
    .separator {
        padding: 20px 15px;
        max-width: 140px; /* 70% of 200px */
    }
    
    .separator-image {
        max-width: 84px; /* 70% of 120px */
    }
    
    /* Separator 2 - Mobile */
    .separator2 {
        padding: 60px 10px;
        max-width: 70vw; /* 70% of 100vw */
        width: 70vw;
        margin-left: calc(-35vw + 50%); /* Adjusted for 70% width */
        margin-right: calc(-35vw + 50%); /* Adjusted for 70% width */
        min-height: 120px;
        background-size: 95% auto;
    }
    
    .separator2 .separator-image {
        display: none;
    }

    .japanese-message p {
        font-size: 1.0rem;
    }

    .english-message p {
        font-size: 1.2rem;
        line-height: 2.0;
    }
    
} 