* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'aptos', cursive;
    overflow-x: hidden;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
}

.slide {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity 1s ease;
border-radius: 20px;
}

.slide.active {
opacity: 1;
z-index: 2;
}
/* Animasi partikel cinta */
.love-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    color: #ff69b4;
    font-size: 20px;
    animation: fall 6s linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: #ff69b4; }
}

/* Page Styles */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 2;
    display: none;
}

.page.active {
    display: flex;
}

.page-content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

/* Halaman 1 - Pembuka */
.main-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 30px;
    animation: heartbeat 2s infinite;
}

.subtitle {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.start-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.6);
}

/* Halaman 2 - Galeri */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.memory-card {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.memory-card:hover {
    transform: translateY(-5px);
}

.memory-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
}

.memory-caption {
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

/* Halaman 3 - 19 Alasan */
.reasons-container {
    max-width: 600px;
    margin: 0 auto;
}

.reason-item {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    margin: 15px 0;
    border-radius: 15px;
    border-left: 5px solid #ff69b4;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease;
}

.reason-item.show {
    opacity: 1;
    transform: translateX(0);
}

.reason-number {
    font-size: 1.5rem;
    color: #ff69b4;
    font-weight: 700;
}

.reason-text {
    font-size: 1.3rem;
    color: #333;
    margin-top: 10px;
}

/* Halaman 4 - Puisi */
.poem-container {
    background: rgba(255,255,255,0.9);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    max-width: 600px;
}

.poem-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #ff69b4;
    margin-bottom: 30px;
}

.poem-line {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.poem-line:nth-child(2) { animation-delay: 0.5s; }
.poem-line:nth-child(3) { animation-delay: 1s; }
.poem-line:nth-child(4) { animation-delay: 1.5s; }
.poem-line:nth-child(5) { animation-delay: 2s; }

/* Halaman 5 - Surat */
.envelope {
    width: 300px;
    height: 200px;
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.envelope:hover {
    transform: scale(1.05);
}

.envelope::after {
    content: "💌";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
}

.letter {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: none;
}

.letter.show {
    display: block;
    animation: fadeInUp 1s ease-out;
}

.letter-content {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.6;
}

/* Halaman 6 - Kado */
.gift-box {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gift-box::before {
    content: "🎁";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
}

.gift-box:hover {
    transform: scale(1.05) rotate(5deg);
}

.gift-message {
    background: rgba(255,255,255,0.9);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: none;
}

.gift-message.show {
    display: block;
    animation: fadeInUp 1s ease-out;
}

/* Halaman 7 - Penutup */
.final-message {
    background: rgba(255,255,255,0.9);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    max-width: 700px;
    margin-bottom: 30px;
}

.final-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: #ff69b4;
    margin-bottom: 20px;
}

.final-text {
    font-size: 1.4rem;
    color: #333;
    line-height: 1.6;
}

/* Confetti Animation */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff69b4;
    animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Navigation */
.nav-btn {
    background: linear-gradient(45deg, #ff69b4, #ff8e8e);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,105,180,0.4);
    margin: 10px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,105,180,0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .poem-container, .letter, .gift-message, .final-message {
        padding: 20px;
    }
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid #ff69b4;
    white-space: nowrap;
    animation: typewriter 4s steps(40) 1s forwards, blink 0.5s step-end infinite;
}