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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

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

h1, h2, h3 {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #ff6b6b;
}

section {
    padding: 5rem 0;
}

/* Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="500" cy="500" r="1" fill="white"/></svg>');
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.5; }
}

/* Header */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/placeholder.svg?height=1080&width=1920');
    background-size: cover;
    background-position: center;
    position: relative;
}

.lover-name {
    color: #ff6b6b;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    min-width: 80px;
}

.time-block span:first-child {
    font-size: 2.5rem;
    font-weight: bold;
}

.label {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.countdown-label {
    font-size: 1.2rem;
    margin-top: 1rem;
    font-style: italic;
}

/* Message Section */
.message {
    background-color: rgba(0, 0, 0, 0.3);
}

.letter {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.8;
}

.letter p {
    margin-bottom: 1.5rem;
}

.signature {
    text-align: right;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #ff6b6b;
}

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

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #ff6b6b;
    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: #ff6b6b;
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

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

.date {
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.content {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.content img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s;
}

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

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

/* Reasons */
.reasons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.reason-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s;
}

.reason-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 107, 107, 0.2);
}

.reason-number {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 10px;
}

/* Song Section */
.song {
    background-color: rgba(0, 0, 0, 0.3);
}

.music-player {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.song-info {
    margin-bottom: 1rem;
}

audio {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

.heart {
    position: relative;
    width: 50px;
    height: 45px;
    margin: 0 auto 20px;
}

.heart:before,
.heart:after {
    position: absolute;
    content: "";
    left: 25px;
    top: 0;
    width: 25px;
    height: 40px;
    background: #ff6b6b;
    border-radius: 50px 50px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart:after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .countdown {
        flex-wrap: wrap;
    }
    
    .time-block {
        margin: 0.5rem;
    }
    
    .timeline-container::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 21px;
        right: auto;
    }
}