.marquee-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    opacity: 0.10;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #c0606a;
    letter-spacing: 4px;
    animation: scroll-left 20s linear infinite;
    text-transform: uppercase;
}

.marquee-track:nth-child(even) {
    animation-direction: reverse;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a0a0a;
    font-family: Lato, sans-serif;
    color: #f5e6e6;
    text-align: center;
}

#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.scipt {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 18px;
    color: #c0606a;
    letter-spacing: 3px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 96px;
    color: #e8394a;
    letter-spacing: 8px;
}

.tagline {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    letter-spacing: 6px;
    color: #c0606a;
    text-transform: uppercase;
}

#reading {
    padding: 100px 40px;
    max-width: 700px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 14px;
    color: #c0606a;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #e8394a;
    margin-bottom: 24px;
}

.section-text {
    font-size: 16px;
    line-height: 1.9;
    color: #d4b0b0;
    margin-bottom: 40px;
}

.quote {
    border-left: 3px solid #e8394a;
    padding: 16px 24px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 18px;
    color: #e8394a;
    text-align: left;
}

#identity {
    padding: 100px 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
    text-align: left;
}

.card {
    background-color: #2a0d0d;
    border: 1px solid #3d1515;
    padding: 32px;
    border-radius: 12px;
    transition: transform 0.3s ease,;
}

.card:hover {
    transform: translateY(-6px);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #e8394a;
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
    line-height: 1.8;
    color: #d4b0b0;
}

#closing {
    padding: 100px 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.tulip-box {
    background-color: #2a0d0d;
    border: 1px solid #3d1515;
    border-radius: 12px;
    padding: 48px 32px;
    margin: 40px 0;
}

.big-emoji {
    font-size: 64px;
    margin-bottom: 20px;
}

.tulip-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 20px;
    color: #d4b0b0;
    line-height: 1.8;
}

.love-note {
    border-top: 1px solid #3d1515;
    padding-top: 48px;
    margin-top: 48px;
}

.note-text {
    font-size: 16px;
    color: #d4b0b0;
    line-height: 1.9;
    margin: 16px 0 24px;
}

.signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 18px;
    color: #e8394a;
}

@media (max-width:600px) {
    h1 {
        font-size: 56px;
        letter-spacing: 4px;
    }

    h2 {
        font-size: 28px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    #reading, #identity, #closing {
        padding: 60px 24px;
    }

    .marquee-track {
        font-size: 16px;
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-box {
    background: #1a0a0a;
    border: 1px solid #e8394a;
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.popup-label {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    color: #e8394a;
    letter-spacing: 6px;
    margin-bottom: 24px;
}

.popup-message {
    font-size: 16px;
    color: #d4b0b0;
    line-height: 1.9;
    margin-bottom: 32px;
}

.popup-close {
    background: transparent;
    color: #e8394a;
    border: 1px solid #e8394a;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    padding: 10px 28px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 40px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #e8394a;
    color: #1a0a0a;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(500px) rotate(360deg);
        opacity: 0;
    }
}