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

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

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    font-size: 20px;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-30px) rotate(3deg); }
}

.app-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: opacity 0.5s ease;
    padding: 20px;
}

.section.hidden {
    display: none !important;
}

.hero {
    background: #F5F5DC;
    width: 100%;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    padding: 0 20px;
    max-width: 600px;
}

.typewriter {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    font-weight: 700;
    color: #8b3a3a;
    margin-bottom: 20px;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #8b3a3a;
    animation: typewriter 3.5s steps(30) 0.5s forwards, blink 1s infinite;
    width: 0;
    margin-left: auto;
    margin-right: auto;
}

@keyframes typewriter {
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: #8b3a3a; }
    51%, 100% { border-color: transparent; }
}

.subtitle {
    font-size: 1rem;
    color: #8b3a3a;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 3.5s forwards;
}

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

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.progress-bar {
    width: 250px;
    height: 8px;
    background: #ffdede;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: #ff8fa3;
    animation: loading 4s linear forwards;
}

@keyframes loading {
    from { width: 0%; }
    to { width: 100%; }
}

.loading-text {
    color: #8b3a3a;
    font-size: 1rem;
}

.heart-beat {
    display: inline-block;
    animation: beat 1s ease infinite;
}

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

.gallery-section {
    background: #F5F5DC;
    width: 100%;
}

.cute-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 40px;
    padding: 30px 20px;
    text-align: center;
    width: 90%;
    max-width: 380px;
    margin: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dudu-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cute-title {
    font-family: 'Poppins', sans-serif;
    color: #9c5c8b;
    font-size: 1.5rem;
    margin-bottom: 10px;
    padding: 0px;
}

.cute-text {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
    
}

.cute-btn, .nav-btn {
    background: #ffb6c1;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.4);
    border: 1px solid rgba(255,255,255,0.3);
    min-width: 160px;
}

.cute-btn:hover, .nav-btn:hover {
    background: #ff8fa3;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 143, 163, 0.5);
}

.video-box {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.video-box video {
    width: 100%;
    height: auto;
    display: block;
}

.balloon-container {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.balloon-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    margin-bottom: 5px;
    color: #8b3a3a;
}

.balloon-hint {
    color: #b97a7a;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

.balloons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.balloon {
    font-size: 70px;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 240, 245, 0.6);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.balloon.pop {
    animation: popOff 0.4s forwards;
    pointer-events: none;
}

@keyframes popOff {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

.result-text {
    margin-top: 25px;
    font-size: 2rem;
    color: #d47b7b;
    font-weight: 600;
    min-height: 70px;
    font-family: 'Dancing Script', cursive;
}

#page5 {
    flex-direction: column;
    padding: 20px;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #8b3a3a;
    text-align: center;
    margin-bottom: 20px;
}

.swipe-container {
    width: 100%;
    max-width: 350px;
    margin: 10px auto;
    min-height: 350px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.swipe-card {
    width: 100%;
    display: none;
    text-align: center;
}

.swipe-card.active {
    display: block;
}

.swipe-card img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.swipe-card p {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #8b3a3a;
    font-weight: 500;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.gallery-next {
    margin-top: 10px;
}

.gift-container {
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.gift-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #8b3a3a;
    margin-bottom: 10px;
}

.gift-box {
    width: 180px;
    height: 180px;
    margin: 20px auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gift-box:hover {
    transform: scale(1.1);
}

.gift-box img {
    width: 100%;
    height: auto;
}

.back-btn {
    display: flex;
    justify-content: center;
    margin: 17px auto;
    width: auto;
    background: #ffb6c1;
}
.got{
    justify-items:  center;
}
.message-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.message-popup.hidden {
    display: none;
}

.message-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 40px;
    padding: 40px 30px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.5);
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: #ff6b6b;
    background: rgba(255,107,107,0.1);
}

.message-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #8b3a3a;
    margin-bottom: 20px;
    text-align: center;
}

.message-content {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

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

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: #9c5c8b;
    text-align: right;
    margin-top: 20px;
}