:root {
    --primary-romantic: #ff4d6d;
    --secondary-romantic: #ff758f;
    --accent-gold: #d4af37;
    --soft-white: #fff0f3;
    --deep-love: #590d22;
    --glass-bg: rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--soft-white);
    color: var(--deep-love);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.heart-loading {
    width: 50px;
    height: 50px;
    background: var(--primary-romantic);
    transform: rotate(45deg);
    animation: pulse 1s infinite alternate;
}

.heart-loading::before,
.heart-loading::after {
    content: '';
    width: 50px;
    height: 50px;
    background: var(--primary-romantic);
    border-radius: 50%;
    position: absolute;
}

.heart-loading::before {
    left: -25px;
}

.heart-loading::after {
    top: -25px;
}

@keyframes pulse {
    from {
        transform: rotate(45deg) scale(0.8);
    }

    to {
        transform: rotate(45deg) scale(1.2);
    }
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 5rem;
    font-family: 'Dancing Script', cursive;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn-scroll {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-romantic);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-scroll:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 77, 109, 0.4);
}

.story {
    padding: 100px 20px;
    background: var(--soft-white);
}

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

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    color: var(--primary-romantic);
}

.timeline {
    position: relative;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-romantic);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

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

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '❤️';
    position: absolute;
    width: 30px;
    height: 30px;
    right: -15px;
    background: white;
    border: 2px solid var(--primary-romantic);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.timeline-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.timeline-img:hover {
    transform: scale(1.05);
}

.pickup-lines {
    padding: 60px 20px;
    background: var(--soft-white);
    display: flex;
    justify-content: center;
}

.line-container {
    max-width: 800px;
    padding: 40px;
    text-align: center;
    font-size: 2rem;
    font-family: 'Dancing Script', cursive;
    color: var(--primary-romantic);
}

.proposal {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    padding: 20px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.silhouette {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 20px;
}

.main-question {
    font-size: 3.5rem;
    color: var(--deep-love);
    margin: 20px 0;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-yes,
.btn-no {
    padding: 15px 40px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.btn-no {
    background: #ccc;
    color: #666;
    position: relative;
}

.btn-yes:hover {
    transform: scale(1.1);
    background: var(--secondary-romantic);
}

.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hidden {
    display: none;
}

.celebration-content h1 {
    font-size: 4rem;
    color: var(--primary-romantic);
    margin-bottom: 1rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

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

.btn-reset {
    margin-top: 30px;
    padding: 10px 20px;
    border: none;
    background: var(--primary-romantic);
    color: white;
    border-radius: 20px;
    cursor: pointer;
}

/* Base animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1s;
}

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

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .timeline::after {
        left: 40px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        text-align: left;
    }

    .timeline-item.left {
        text-align: left;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 25px;
        right: auto;
    }
}
/* --- Template Heart Animation Styles --- */
.heart-animation-section {
    height: 600px;
    background: var(--soft-white);
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.template-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.body_left {
    width: 200px;
    height: 200px;
    left: 10%;
    bottom: 50px;
    position: absolute;
    z-index: 98;
}

.body_left img {
    width: 100%;
}

.template-container .love {
    width: 520px;
    height: 440px;
    left: 50%;
    top: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

.love .block {
    position: absolute;
    visibility: hidden;
}

.love .block div {
    width: 40px;
    height: 40px;
    position: absolute;
    background: url("images/heart.png") no-repeat;
    background-size: contain;
}
