* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Dancing Script', cursive;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.stars {
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSIxIiBmaWxsPSIjZmZmIi8+PC9zdmc+') repeat;
    animation: twinkle 20s linear infinite;
}

.stars2 {
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIwLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=') repeat;
    animation: twinkle 30s linear infinite reverse;
}

.stars3 {
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48Y2lyY2xlIGN4PSI4MCIgY3k9IjgwIiByPSIxLjIiIGZpbGw9IiNmZmYiLz48L3N2Zz4=') repeat;
    animation: twinkle 40s linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

header {
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.title {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}

.love-message {
    max-width: 800px;
    margin: 0 auto 100px;
    text-align: center;
    padding: 60px 20px;
}

.heart {
    width: 200px;
    height: 200px;
    background: #ff6b9d;
    margin: 0 auto 30px;
    position: relative;
    animation: heartbeat 1.5s infinite;
}

.heart:before,
.heart:after {
    content: '';
    width: 100px;
    height: 160px;
    position: absolute;
    left: 100px;
    top: 0;
    background: #ff6b9d;
    border-radius: 100px 100px 0 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart:after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

.love-message h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Dancing Script', cursive;
}

.love-message p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
}

.btn-love {
    background: linear-gradient(45deg, #ff6b9d, #ff8e8e);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(255,107,157,0.3);
    font-family: inherit;
}

.btn-love:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255,107,157,0.5);
}

.memories-gallery {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 60px 20px;
    text-align: center;
}

.memories-gallery h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.memory-card {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.memory-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.memory-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.card-overlay p {
    font-size: 1.2rem;
}

.timeline {
    max-width: 800px;
    margin: 0 auto 100px;
    padding: 60px 20px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ff6b9d;
    transform: translateX(-50%);
}

.timeline h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
    text-align: right;
}

.timeline-item:nth-child(even) {
    text-align: left;
}

.timeline-content {
    background: rgba(255,255,255,0.1);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 45%;
    position: relative;
    display: inline-block;
}

.timeline-item.left .timeline-content {
    margin-left: 55%;
}

.timeline-item.right .timeline-content {
    margin-right: 55%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 25px;
    width: 20px;
    height: 20px;
    background: #ff6b9d;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left::before {
    right: calc(50% - 10px);
}

.timeline-item.right::before {
    left: calc(50% - 10px);
}

.music-player {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto 100px;
}

.music-player h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.audio-player {
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0,0,0,0.2);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    position: relative;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ff6b9d;
}

#modalText {
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        text-align: left !important;
    }
    
    .timeline-content {
        max-width: 70%;
        margin-left: 60px !important;
    }
    
    .timeline-item::before {
        left: 30px !important;
    }
}

