/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #FCF8F8 0%, #FBEFEF 50%, #F9DFDF 100%);
    color: #4a4a4a;
    overflow-x: hidden;
    line-height: 1.7;
}

/* Floating Hearts Background */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: floatUp 8s infinite ease-in;
    opacity: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Sparkle Effect */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #F5AFAF;
    border-radius: 50%;
    animation: sparkleAnimation 2s infinite;
    pointer-events: none;
}

@keyframes sparkleAnimation {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Music Control */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(245, 175, 175, 0.3);
}

.music-btn {
    background: #F5AFAF;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

.music-label {
    font-size: 14px;
    color: #4a4a4a;
    font-family: 'Arial', sans-serif;
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.hero-content {
    animation: fadeInUp 1.5s ease-out;
}

.main-title {
    font-size: clamp(3rem, 8vw, 5rem);
    color: #F5AFAF;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(245, 175, 175, 0.3);
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #7a7a7a;
    font-style: italic;
    margin-bottom: 60px;
}

.scroll-hint {
    font-size: 14px;
    color: #F5AFAF;
    animation: bounce 2s infinite;
    margin-top: 40px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

/* Section Styles */
section {
    min-height: 60vh;
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #F5AFAF;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Letter Section */
.letter-section {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 8px 30px rgba(245, 175, 175, 0.2);
}

.letter-text p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 25px;
    line-height: 1.8;
    color: #5a5a5a;
}

.letter-signature {
    margin-top: 40px;
    font-style: italic;
    color: #F5AFAF;
    font-size: 1.1rem;
}

/* Reasons Grid */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.reason-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(245, 175, 175, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #F5AFAF, #F9DFDF);
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(245, 175, 175, 0.3);
}

.reason-number {
    font-size: 2rem;
    color: #F5AFAF;
    font-weight: bold;
    margin-bottom: 15px;
    opacity: 0.5;
}

.reason-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #5a5a5a;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #F5AFAF, #F9DFDF);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    padding-right: 55%;
}

.timeline-item:nth-child(even) {
    padding-left: 55%;
}

.timeline-date {
    font-size: 0.9rem;
    color: #F5AFAF;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(245, 175, 175, 0.15);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 15px;
    height: 15px;
    background: #F5AFAF;
    border-radius: 50%;
    border: 3px solid #FCF8F8;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -62px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -62px;
}

.timeline-content h3 {
    color: #F5AFAF;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #5a5a5a;
    line-height: 1.6;
}

/* Distance Section */
.distance-section {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 60px 40px;
}

.distance-text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 25px;
    line-height: 1.8;
    color: #5a5a5a;
}

.distance-highlight {
    font-size: clamp(1.1rem, 2.8vw, 1.4rem);
    color: #F5AFAF;
    text-align: center;
    padding: 30px;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    font-style: italic;
    line-height: 1.8;
    box-shadow: 0 4px 15px rgba(245, 175, 175, 0.2);
}

/* Promise Section */
.promise-box {
    background: linear-gradient(135deg, rgba(252, 248, 248, 0.9), rgba(251, 239, 239, 0.9));
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(245, 175, 175, 0.3);
    border: 2px solid rgba(245, 175, 175, 0.3);
}

.promise-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #F5AFAF;
    margin-bottom: 30px;
}

.promise-text {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: #5a5a5a;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.6;
}

.promise-subtext {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #7a7a7a;
    line-height: 1.8;
    margin-bottom: 30px;
}

.promise-signature {
    font-size: 1.1rem;
    color: #F5AFAF;
    font-style: italic;
    margin-top: 20px;
}

/* Valentine Section */
.valentine-question {
    text-align: center;
    padding: 60px 20px;
}

.question-text {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #F5AFAF;
    margin-bottom: 40px;
    font-weight: 400;
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.valentine-btn {
    padding: 18px 45px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.yes-btn {
    background: #F5AFAF;
    color: white;
    box-shadow: 0 4px 15px rgba(245, 175, 175, 0.4);
}

.yes-btn:hover {
    background: #f39c9c;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 175, 175, 0.5);
}

.no-btn {
    background: rgba(255, 255, 255, 0.8);
    color: #5a5a5a;
    border: 2px solid #F5AFAF;
}

.no-btn:hover {
    background: rgba(245, 175, 175, 0.2);
}

/* Success Section */
.success-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-content {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(245, 175, 175, 0.3);
    animation: fadeInScale 0.8s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #F5AFAF;
    margin-bottom: 25px;
}

.success-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #5a5a5a;
    margin-bottom: 20px;
    line-height: 1.8;
}

.heart-burst {
    margin-top: 40px;
    font-size: 3rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.burst-heart {
    animation: heartPulse 1.5s infinite;
}

.burst-heart:nth-child(2) {
    animation-delay: 0.2s;
}

.burst-heart:nth-child(3) {
    animation-delay: 0.4s;
}

.burst-heart:nth-child(4) {
    animation-delay: 0.6s;
}

.burst-heart:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Confetti Canvas */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -62px;
    }

    .letter-section,
    .distance-section {
        padding: 40px 25px;
    }

    .promise-box {
        padding: 40px 25px;
    }

    .music-control {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }

    .music-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .music-label {
        font-size: 12px;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .button-container {
        flex-direction: column;
    }

    .valentine-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    section {
        padding: 60px 15px;
    }

    .section-title {
        margin-bottom: 30px;
    }
}
