/* Google Fonts applied in HTML: 
   Great Vibes (Cursive)
   Cormorant Garamond (Serif)
   Montserrat (Sans-serif)
*/

:root {
    --primary-color: #8b0000; /* Deep red */
    --text-dark: #222;
    --text-light: #666;
    --bg-color: #f8f6f0; /* Cream paper color */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px 0 rgba(139, 0, 0, 0.05);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    /* Subtle paper texture */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Falling Hearts Animation */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    color: rgba(220, 20, 60, 0.4);
    font-size: 14px;
    animation: fallDown linear infinite;
}

@keyframes fallDown {
    0% {
        transform: translateY(-10vh) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: translateY(10vh) scale(1);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(110vh) scale(1) rotate(45deg);
        opacity: 0;
    }
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

/* Typography */
h1, h2, h3 {
    color: var(--primary-color);
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.names {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    font-weight: normal;
    line-height: 1.2;
    color: var(--text-dark);
}

.ampersand {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    margin: -10px 0;
    color: var(--text-light);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

/* Hero Section */
.hero-image-wrapper {
    margin-top: 2rem;
    position: relative;
    padding: 0 1rem;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 700px;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Family Section */
.quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.family-details {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 3rem;
}

.family-side {
    flex: 1;
    padding: 0 10px;
}

.side-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.parents {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-family: 'Montserrat', sans-serif;
}

.address {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.groom-bride-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.groom-bride-name span:last-child {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    display: block;
    margin-top: 0.5rem;
}

.heart-divider {
    display: flex;
    align-items: center;
    color: rgba(220, 20, 60, 0.4);
    font-size: 2rem;
}

.secondary-images {
    border-radius: 10px;
    overflow: hidden;
    padding: 5px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.secondary-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Invitation Events */
.invitation-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-bottom: 3rem;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3rem;
}

.event-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.event-chibi {
    width: 160px;
    height: auto;
}

.event-info {
    text-align: center;
}

.event-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: var(--text-dark);
    text-decoration-thickness: 1px;
}

.day-of-week {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
}

.date-big {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.date-big .time {
    font-size: 1.5rem;
    font-weight: 400;
}

.date-big .year {
    font-size: 1.5rem;
    font-weight: 400;
}

.date-big .divider {
    font-weight: 300;
    color: var(--text-dark);
    font-size: 2rem;
}

.month {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.lunar-date {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Location Box */
.location-box {
    margin-top: 2rem;
}

.location-header {
    display: none;
}

.venue-name {
    display: none;
}

.map-button {
    display: inline-block;
    padding: 12px 30px;
    background: #4a80ff; /* Blue like in UI */
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 128, 255, 0.3);
}

.map-button:hover {
    background: #3665cc;
    transform: translateY(-2px);
}

/* Calendar Section */
.calendar-header-img {
    margin-bottom: 1rem;
}

.calendar-save-date-cursive {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    line-height: 0.8;
    color: var(--text-dark);
}

.calendar-wrapper {
    max-width: 450px;
    margin: 0 auto;
}

.calendar-month {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 2px solid var(--primary-color);
    padding: 30px 10px;
    background: white;
    row-gap: 30px;
}

.weekday {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-dark);
    padding: 5px 0;
}

.day {
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    color: var(--text-dark);
}

.day.empty {
    visibility: hidden;
}

.heart-mark {
    position: absolute;
    font-size: 4.5rem;
    z-index: 0;
    opacity: 0.5;
    color: rgba(220, 20, 60, 0.8);
    animation: zoomInOut 1.5s infinite alternate ease-in-out;
}

.day span {
    position: relative;
    z-index: 1;
}

@keyframes zoomInOut {
    0% { transform: scale(0.9); }
    100% { transform: scale(1.15); }
}

/* Countdown */
.countdown-section .section-title {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box .number {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1;
}

.colon {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-dark);
}

/* Form */
.rsvp-text {
    margin-bottom: 2rem;
}

#rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}

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

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.8);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #6b0000;
}

.form-status {
    margin-top: 1rem;
    font-weight: 500;
}

.form-status.success { color: green; }
.form-status.error { color: red; }

/* Wedding Box */
.wedding-box-section {
    padding: 4rem 2rem;
}

.wedding-box-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.wedding-box-quote {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.gift-box-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border: 3px solid var(--primary-color);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gift-box-container:hover {
    transform: scale(1.05);
}

.qr-code-container {
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: fadeIn 0.5s ease;
}

.qr-code-container.hidden {
    display: none;
}

.qr-code-img {
    max-width: 250px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid var(--primary-color);
}

.close-qr-btn, .download-qr-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s, background 0.3s;
}

.close-qr-btn {
    background: var(--text-light);
    color: white;
}

.close-qr-btn:hover {
    background: var(--text-dark);
    transform: scale(1.05);
}

.download-qr-btn {
    background: var(--primary-color);
    color: white;
}

.download-qr-btn:hover {
    background: #b31030;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gift-box-img {
    width: 100%;
    height: auto;
}

.wedding-box-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--primary-color);
}

/* Floating button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn:hover {
    transform: scale(1.1);
    background: white;
}

.footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .names {
        font-size: 3.5rem;
    }
    
    .family-details {
        flex-direction: column;
        gap: 2rem;
    }
    
    .heart-divider {
        justify-content: center;
        margin: 1rem 0;
    }

    .event-card {
        flex-direction: column;
    }

    .countdown-timer {
        gap: 0.5rem;
    }

    .time-box .number {
        font-size: 2rem;
    }

    .colon {
        font-size: 2rem;
    }
    
    .glass-panel {
        padding: 2rem 1rem;
    }
    
    .date-big {
        font-size: 2.2rem;
        gap: 10px;
    }
    .date-big .time, .date-big .year {
        font-size: 1.2rem;
    }
}

.event-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: var(--text-light);
    text-transform: uppercase;
}


