* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0a1931;
    --dark-blue: #0f2654;
    --medium-blue: #0f2654;
    --light-blue: #e8f1ff;
    --gold: #d4af37;
    --light-gold: #f4e8c1;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--navy);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.8rem;
}

p {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: var(--light-blue);
    font-weight: 400;
}

/* Section Styling */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

/* Header/Opener */
#opener {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-blue) 100%);
}

.birthday-text {
    font-size: 8rem;
    margin-bottom: 0px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}

.btn:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.couple-photo {
    width: 280px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    margin-bottom: 5px;
    transition: transform 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

#message {
    background: var(--dark-blue);
    text-align: center;
    padding: 40px 0;
}

#message h2 {
    margin-bottom: 5px;
    font-size: 36px;
    font-weight: 700;
    color: white;
}

#message p {
    margin-top: 0;
    color: #ddd;
    font-size: 16px;
}


/* Gallery */
#gallery {
    background: var(--navy);
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin-top: 40px;
}

.gallery-item {
    width: 280px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 25, 49, 0.9));
    padding: 20px 10px 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Love */
#love {
            background: linear-gradient(135deg, var(--navy) 0%, var(--dark-blue) 100%);
            padding: 80px 20px;
        }

        .love-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 1200px;
            margin: 0 auto;
            gap: 50px;
        }

        .love-content {
            flex: 1;
            text-align: left;
        }

        .love-image {
            flex: 1;
            display: flex;
            justify-content: center;
        }

        .love-image img {
            width: 100%;
            max-width: 400px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .love-text {

            padding: 30px;
            border-radius: 15px;
            line-height: 1.8;
            font-size: 1.1rem;
        }

        @media (max-width: 768px) {
            .love-container {
                flex-direction: column;
                gap: 30px;
            }
            
            .love-content {
                text-align: center;
            }
            
            .love-image img {
                max-width: 300px;
            }
        }

/* Reasons Section */
#reasons {
    background: var(--dark-blue);
}

.reasons-container {
    margin: 0;
    padding: 10px;
    margin-top: 10px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.reason {
    background: rgba(176, 178, 209, 0.05);
    padding: 20px 20px;
    border-radius: 20px;
    margin: 15px auto;            /* biar selalu di tengah */
    max-width: 800px;             /* atur lebar maksimal kolom teks */
    line-height: 1.6;             /* jarak antarbaris biar enak dibaca */
    text-align: center;           /* rata tengah (opsional, bisa diganti justify) */
    color: #f0f0f0;               /* warna teks agar kontras dengan background */
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.reason.visible {
    opacity: 1;
    transform: translateY(0);
}

.photo-slider {
    position: relative;
    max-width: 320px;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slides {
    display: none;
}

.slides img {
    width: 100%;
    border-radius: 10px;
}

/* Tombol panah kiri & kanan */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 8px 12px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    user-select: none;
    transform: translateY(-50%);
    transition: background 0.3s;
}

.prev:hover, .next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Animasi fade halus */
.fade {
    animation: fadeEffect 0.6s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Music Section */
#music {
    background: var(--navy);
    text-align: center;
    padding: 80px 20px;
}

.music-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.music-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 250px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.4s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.music-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.25);
}

.music-cover {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.music-card:hover .music-cover {
    transform: scale(1.05);
}

.music-info {
    padding: 15px;
    text-align: left;
    background: linear-gradient(to top, rgba(15, 38, 84, 0.9), rgba(15, 38, 84, 0.6));
}

.music-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 5px;
}

.music-info p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: var(--light-blue);
}

.music-card.playing {
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

@media (max-width: 768px) {
    .music-gallery {
        flex-direction: column;
        align-items: center;
    }

    .music-card {
        width: 80%;
    }
}


.room {
    position: relative;
    width: 100%;
    height: 350px;
    background: #1e3a5f;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.furniture {
    position: absolute;
    background: #2d4a6e;
    border-radius: 5px;
}

.bed {
    width: 180px;
    height: 220px;
    bottom: 20px;
    left: 30px;
}

.desk {
    width: 150px;
    height: 90px;
    bottom: 20px;
    right: 30px;
}

.gift {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--navy);
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
}

.gift:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.hidden {
    display: none;
}

/* Closing Section */
#closing {
    background: linear-gradient(135deg, var(--navy) 0%, var(--dark-blue) 100%);
}

.video-container {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 40px;
    border: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
}

.video-placeholder {
    font-size: 1.5rem;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.signature {
    margin-top: 30px;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--light-blue);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(24, 90, 219, 0.8);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    border: 1px solid var(--gold);
    transition: all 0.3s ease;
}

.music-control:hover {
    background: var(--gold);
    transform: scale(1.1);
}

#musicIcon {
    font-size: 1.5rem;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.music-control:hover #musicIcon {
    color: var(--navy);
}

/* Navigation */
.nav-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
}

.dot {
    display: block;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--gold);
}

.dot.active {
    background: var(--gold);
    transform: scale(1.4);
}

/* Game Message */
#gameMessage {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    margin-top: 20px;
}

#giftMessage h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
}

#giftMessage p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .birthday-text {
        font-size: 2.8rem;
    }
    
    .couple-photo {
        width: 220px;
        height: 220px;
    }
    
    .gallery-item {
        width: 160px;
        height: 160px;
    }
    
    .video-container {
        width: 250px;
        height: 250px;
    }
    
    .nav-dots {
        display: none;
    }
    
    .message-text {
        padding: 20px;
    }
    
    .reason {
        padding: 20px;
        font-size: 1rem;
    }
    
    .gallery-caption {
        font-size: 1rem;
        padding: 15px 10px 8px;
    }
}