/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    font-family: 'Dancing Script', cursive;
    color: #e83e8c;
}

/* Header Styles */
header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #ffccd5 0%, #ffd1dc 100%);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.title {
    font-size: 4rem;
    margin-bottom: 10px;
    color: #d81b60;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 20px;
}

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

.personalize input {
    padding: 10px 15px;
    border: 2px solid #e83e8c;
    border-radius: 25px;
    font-size: 1rem;
    width: 200px;
    outline: none;
    transition: all 0.3s ease;
}

.personalize input:focus {
    border-color: #d81b60;
    box-shadow: 0 0 8px rgba(232, 62, 140, 0.5);
}

.personalize button {
    background-color: #e83e8c;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.personalize button:hover {
    background-color: #d81b60;
}

/* Section Styles */
section {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: #e83e8c;
    margin: 10px auto;
}

/* Photo Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.photo-card {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.photo {
    height: 200px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.photo i {
    font-size: 3rem;
    color: white;
}

.photo-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Reasons List */
.reasons-list {
    list-style-type: none;
}

.reasons-list li {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #fff9fb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.reasons-list li:hover {
    transform: translateX(10px);
    background-color: #ffe6ee;
}

.heart-icon {
    color: #e83e8c;
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 30px;
}

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

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e83e8c;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

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

.timeline-item:nth-child(odd) {
    left: 0;
}

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

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid #e83e8c;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-date {
    font-weight: bold;
    color: #e83e8c;
    margin-bottom: 5px;
}

.timeline-content {
    padding: 20px;
    background-color: #fff9fb;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    margin-bottom: 10px;
}

/* Love Letter */
.love-letter {
    background-color: #fff9fb;
}

.letter-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    line-height: 1.8;
}

.letter-content p {
    margin-bottom: 15px;
}

/* Interactive Heart */
.interactive {
    text-align: center;
}

.heart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.big-heart {
    font-size: 5rem;
    color: #e83e8c;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    animation: pulse 1.5s infinite;
}

.big-heart:hover {
    transform: scale(1.2);
}

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

#heart-message {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #666;
    height: 30px;
}

/* Music Player */
.music-player {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.player-container {
    margin: 20px auto;
    max-width: 500px;
}

.player-container audio {
    width: 100%;
    border-radius: 30px;
}

/* Countdown Timer */
.countdown {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span:first-child {
    font-size: 3rem;
    font-weight: bold;
    color: #e83e8c;
    background-color: #fff5f8;
    border-radius: 10px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(232, 62, 140, 0.2);
}

.countdown-label {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.countdown-note {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #e83e8c;
    font-family: 'Dancing Script', cursive;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

/* Memory Quiz */
.memory-quiz {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.quiz-container {
    margin-top: 30px;
}

.quiz-question {
    margin-bottom: 30px;
    text-align: left;
}

.quiz-question p {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quiz-option {
    background-color: #fff5f8;
    border: 2px solid #e83e8c;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    background-color: #ffe0eb;
}

.quiz-option.correct {
    background-color: #d4edda;
    border-color: #28a745;
}

.quiz-option.incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
}

#quiz-result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff5f8;
}

.hidden {
    display: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

footer .fa-heart {
    color: #e83e8c;
}

.date {
    margin-top: 10px;
    font-style: italic;
}

/* Memory Book */
.memory-book {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.memory-form {
    background-color: #fff9fb;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #e83e8c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ffccd5;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #e83e8c;
    box-shadow: 0 0 8px rgba(232, 62, 140, 0.3);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.memory-submit {
    background-color: #e83e8c;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 20px auto 0;
}

.memory-submit:hover {
    background-color: #d81b60;
    transform: translateY(-2px);
}

.memories-container {
    margin-top: 30px;
}

.memories-container h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #e83e8c;
}

.memory-entry {
    background-color: #fff9fb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.memory-entry:hover {
    transform: translateY(-5px);
}

.memory-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ffccd5;
}

.memory-author {
    font-weight: 600;
    color: #e83e8c;
}

.memory-relation {
    background-color: #ffe0eb;
    color: #e83e8c;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.memory-date {
    color: #888;
    font-size: 0.9rem;
}

.memory-content p {
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-container::after {
        left: 31px;
    }
    
    .timeline-item::after {
        left: 21px;
        right: auto;
    }
    
    .memory-header {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 20px;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .quiz-options {
        grid-template-columns: 1fr;
    }
}