:root {
    --primary-color: #FFC0CB;
    /* Soft Pink */
    --secondary-color: #FF69B4;
    /* Hot Pink */
    --accent-color: #8B0000;
    /* Deep Red */
    --text-color: #333;
    --bg-color: #FFF0F5;
    /* Lavender Blush */
    --white: #ffffff;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Dancing Script', cursive;
    color: var(--accent-color);
}

/* Modal Styles */
.modal {
    display: flex;
    /* Hidden by default, toggled by JS */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Music Button */
.music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.music-btn:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 192, 203, 0.5)), url('https://www.transparenttextures.com/patterns/hearts.png');
    position: relative;
    padding: 20px;
}

.title {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: fadeInDown 1.5s ease;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
    font-style: italic;
}

.couple-photo-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.couple-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Timer */
.timer-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1.5s ease;
}

.timer {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.time-box {
    text-align: center;
}

.time-box span {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
}

.time-box p {
    font-size: 0.9rem;
    color: #777;
}

.start-date {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #888;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    color: var(--secondary-color);
    animation: bounce 2s infinite;
}

/* Sections */
.section {
    padding: 80px 20px;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
}

/* Timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '❤️';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--white);
    border: 4px solid var(--secondary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -16px;
}

.right::after {
    left: -16px;
}

.content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Reasons Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bucket List */
.checklist-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.checklist-item {
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary-color);
}

/* Love Letter */
.letter-container {
    perspective: 1000px;
    max-width: 600px;
    margin: 0 auto;
}

.envelope {
    background: #f0f0f0;
    width: 300px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.envelope:hover {
    transform: scale(1.05);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-top: 100px solid #ddd;
    z-index: 2;
}

.envelope-body {
    z-index: 1;
    font-size: 1.2rem;
    color: #555;
}

.letter-content {
    display: none;
    background: #fff;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: left;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    line-height: 1.6;
    background-image: linear-gradient(#999 1px, transparent 1px);
    background-size: 100% 2em;
}

.letter-content.show {
    display: block;
    animation: fadeInUp 1s;
}

.close-letter {
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

/* Interactive */
.question-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.question-box p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
}

.btn {
    padding: 10px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s;
}

.yes-btn {
    background-color: var(--secondary-color);
    color: white;
}

.no-btn {
    background-color: #ddd;
    color: #333;
    position: relative;
    /* For movement */
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media screen and (max-width: 600px) {
    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 15px;
    }

    .left::after,
    .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }

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