@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --bg-cream: #FAF8F5;
    --primary-blue: #A2B9C8;
    --text-burgundy: #5B2C38;
    --accent-gold: #C5A059;
    --card-bg: rgba(255, 255, 255, 0.92);
    --border-light: rgba(197, 160, 89, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-cream);
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-burgundy);
    overflow-x: hidden;
}

#petals-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.screen {
    width: 100%;
    min-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

#cover-screen {
    background: url('cover.jpg') no-repeat center center/cover;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
}

#seal-button {
    width: 140px;
    height: 140px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

#video-screen {
    z-index: 25;
    display: none;
    background: #000000;
}

#video-screen video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

#invitation-screen {
    z-index: 1;
    display: none;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background: var(--bg-cream);
    padding-bottom: 0px;
}

#invitation-screen.visible {
    opacity: 1;
}

.hero-banner-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: url('hero-banner.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 20px 220px 20px;
}

.hero-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.5) 100%
    );
    z-index: 1;
}

.hero-overlay-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-burgundy);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    animation: fadeIn 2s ease-in-out forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    letter-spacing: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #4A4A4A;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.hero-names {
    font-family: 'Alex Brush', cursive;
    font-size: 4.8rem;
    font-weight: 400;
    color: var(--text-burgundy);
    line-height: 1.1;
    margin-bottom: 0;
}

.hero-names span {
    display: block;
    font-size: 3rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    margin: -5px 0;
}

.flower-divider-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -35px;
    position: relative;
    z-index: 5;
    pointer-events: none;
}

.flower-divider {
    max-width: 380px;
    width: 85%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.celebrate-card-wrapper {
    max-width: 520px;
    margin: 30px auto 10px auto;
    padding: 0 15px;
}

.celebrate-card {
    position: relative;
    background: #FCFBF9;
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 4px;
    padding: 50px 55px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.celebrate-card .fade-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.celebrate-card.animate-fade .fade-item:nth-child(3) { transition-delay: 0.1s; }
.celebrate-card.animate-fade .fade-item:nth-child(4) { transition-delay: 0.25s; }
.celebrate-card.animate-fade .fade-item:nth-child(5) { transition-delay: 0.4s; }
.celebrate-card.animate-fade .fade-item:nth-child(6) { transition-delay: 0.55s; }
.celebrate-card.animate-fade .fade-item:nth-child(7) { transition-delay: 0.7s; }
.celebrate-card.animate-fade .fade-item:nth-child(8) { transition-delay: 0.85s; }
.celebrate-card.animate-fade .fade-item:nth-child(9) { transition-delay: 1.0s; }

.celebrate-card.animate-fade .fade-item {
    opacity: 1;
    transform: translateY(0);
}

.side-border-img {
    position: absolute;
    top: 15px;
    bottom: 15px;
    width: 30px;
    pointer-events: none;
    background-image: url('frame-border.png');
    background-repeat: repeat-y;
    background-size: contain;
    background-position: center;
}

.side-border-img.left { left: 12px; }
.side-border-img.right { right: 12px; transform: scaleX(-1); }

.celebrate-title {
    font-size: 2.8rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--text-burgundy);
    line-height: 1.2;
    margin-bottom: 25px;
}

.celebrate-divider-line {
    width: 80px;
    height: 1px;
    background: var(--accent-gold);
    margin: 0 auto 30px auto;
    opacity: 0.6;
}

.celebrate-text {
    font-size: 1.35rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-burgundy);
    line-height: 1.6;
    margin-bottom: 40px;
    font-style: italic;
}

.celebrate-location-title {
    font-size: 2.2rem;
    color: var(--text-burgundy);
    font-family: 'Cormorant Garamond', serif;
    margin-bottom: 15px;
}

.celebrate-venue-name {
    font-size: 1.3rem;
    color: var(--text-burgundy);
    font-weight: 600;
    margin-bottom: 4px;
}

.celebrate-venue-region {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
}

.celebrate-time {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-burgundy);
}

.invitation-body {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 20px 10px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-burgundy);
    margin: 40px 0 6px 0;
    font-weight: 400;
    font-family: 'Cormorant Garamond', serif;
}

.section-subtitle {
    font-size: 1.15rem;
    font-style: italic;
    color: #777;
    margin-bottom: 25px;
    font-family: 'Cormorant Garamond', serif;
}

.venue-location-section {
    margin: 40px 0 20px 0;
    text-align: center;
}

.venue-building-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 20px auto 25px auto;
    display: block;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s ease;
}

.venue-building-img:hover { transform: scale(1.02); }

.map-frame-wrapper {
    position: relative;
    max-width: 420px;
    margin: 25px auto 10px auto;
    padding: 12px 0;
}

.map-container {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
    box-shadow: 
        0 0 0 4px rgba(197, 160, 89, 0.2),
        0 10px 25px rgba(0, 0, 0, 0.08);
    background: #fff;
    z-index: 1;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 18px;
}

.map-top-ornament,
.map-bottom-ornament {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    pointer-events: none;
}

.map-top-ornament {
    top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M50 0 C40 12, 35 12, 0 12 C15 12, 25 18, 50 4 C75 18, 85 12, 100 12 C65 12, 60 12, 50 0 Z' fill='%23C5A059'/%3E%3Ccircle cx='50' cy='3' r='2.5' fill='%235B2C38'/%3E%3C/svg%3E");
}

.map-bottom-ornament {
    bottom: 2px;
    transform: translateX(-50%) rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M50 0 C40 12, 35 12, 0 12 C15 12, 25 18, 50 4 C75 18, 85 12, 100 12 C65 12, 60 12, 50 0 Z' fill='%23C5A059'/%3E%3Ccircle cx='50' cy='3' r='2.5' fill='%235B2C38'/%3E%3C/svg%3E");
}

.countdown-section-wrapper {
    position: relative;
    overflow: hidden;
    padding: 40px 10px 40px 10px;
    margin: 30px 0 10px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.countdown-section-wrapper.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.curtain {
    position: absolute;
    top: 0;
    height: 100%;
    width: 90px;
    z-index: 15;
    pointer-events: none;
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.1s ease-out;
}

.curtain-left { left: 0; background-image: url('curtain-left.png'); background-position: left center; }
.curtain-right { right: 0; background-image: url('curtain-right.png'); background-position: right center; }

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 25px;
    position: relative;
    z-index: 5;
    direction: ltr;
}

.time-box { text-align: center; }

.time-box .number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--text-burgundy);
    line-height: 1;
}

.time-box .label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #8C8C8C;
    text-transform: uppercase;
    margin-top: 8px;
}

.rsvp-custom-section {
    margin: 50px auto 10px auto;
    padding: 20px 10px 0px 10px;
    text-align: center;
}

.rsvp-script-title {
    font-family: 'Great Vibes', 'Cormorant Garamond', cursive, serif;
    font-size: 3.4rem;
    color: var(--text-burgundy);
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.1;
}

.rsvp-description-text {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--text-burgundy);
    line-height: 1.6;
    margin-bottom: 35px;
    font-weight: 400;
}

.rsvp-seal-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    cursor: pointer;
    width: fit-content;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rsvp-seal-wrapper:hover {
    transform: scale(1.08);
}

.wax-seal-btn {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #C9DCE8 0%, #A2B9C8 60%, #7694A8 100%);
    box-shadow: 
        0 12px 25px rgba(162, 185, 200, 0.5),
        inset 0 3px 6px rgba(255, 255, 255, 0.7),
        inset 0 -4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 3px solid #8FAABF;
}

.wax-seal-inner {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1px dashed rgba(91, 44, 56, 0.45);
    background: radial-gradient(circle at 40% 40%, #B8CEE0 0%, #8FAABF 100%);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 4px;
}

.seal-text {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-burgundy);
    letter-spacing: 2px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.seal-ornament {
    width: 35px;
    height: 8px;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M20 0 L22 4 L26 5 L22 6 L20 10 L18 6 L14 5 L18 4 Z' fill='%235B2C38'/%3E%3Cpath d='M0 5 Q10 2 20 5 Q30 8 40 5' stroke='%235B2C38' stroke-width='0.8' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.rsvp-pointer-hint {
    margin-bottom: 35px;
}

.chevron-arrow {
    display: block;
    font-size: 1.1rem;
    color: var(--text-burgundy);
    line-height: 1;
    font-weight: 300;
    margin-bottom: 2px;
}

.click-to-open {
    font-family: 'Great Vibes', 'Cormorant Garamond', cursive, serif;
    font-size: 1.8rem;
    color: var(--text-burgundy);
    margin: 0;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-cream);
    width: 90%;
    max-width: 400px;
    padding: 35px 25px;
    border-radius: 12px;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    direction: ltr;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-burgundy);
    cursor: pointer;
}

.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-burgundy);
    margin-bottom: 4px;
}

.modal-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-burgundy);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    background: #fff;
    color: #333;
    outline: none;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-gold);
}

.submit-rsvp-btn {
    width: 100%;
    padding: 12px;
    background: var(--text-burgundy);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.submit-rsvp-btn:hover {
    background: #3e1e26;
}

.rsvp-footer-closing {
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Typewriter styles for smooth layout */
.hope-see-you {
    font-family: 'Great Vibes', 'Cormorant Garamond', cursive, serif;
    font-size: 3rem;
    color: var(--text-burgundy);
    font-weight: 400;
    margin-bottom: 8px;
    min-height: 1.2em; /* Prevents shifting while empty */
}

.couple-signature {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--text-burgundy);
    letter-spacing: 0.5px;
    font-weight: 400;
    min-height: 1.2em; /* Prevents shifting while empty */
}

/* Blinking typing cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 0.7s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    50% { opacity: 0; }
}

.bottom-couple-section {
    position: relative;
    width: 100%;
    margin-top: -15px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-cream);
}

.couple-image-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    line-height: 0;
}

.blended-couple-img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 60%, black 50%, transparent 100%);
    mask-image: radial-gradient(ellipse 95% 85% at 50% 60%, black 50%, transparent 100%);
}

.top-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to bottom, var(--bg-cream) 0%, rgba(250, 248, 245, 0.4) 50%, rgba(250, 248, 245, 0) 100%);
    pointer-events: none;
}

#audio-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}